24fd9c4 Bug 618454 - mod_admserv should only clear NSS caches and shutdown if NSS is initialized

Authored and Committed by rmeggins 13 years ago
    Bug 618454 - mod_admserv should only clear NSS caches and shutdown if NSS is initialized
    
    https://bugzilla.redhat.com/show_bug.cgi?id=618454
    Resolves: bug 618454
    Bug Description: mod_admserv should only clear NSS caches and shutdown if NSS is initialized
    Branch: master
    Fix Description: Check NSS_IsInitialized before clearing caches.  We also do
    an NSS_Shutdown here - with the new NSS fips mode, you cannot load the
    softoken after a fork unless you have first shutdown NSS - Apache loads and
    unloads its modules several times during the startup phase, so we have to
    make sure we completely shutdown NSS when the module is unloaded so that we
    can load it again and start the NSS engine when the module is re-loaded.
    Finally, change ldap_unbind_ext_s to just ldap_unbind_ext - ldap_unbind is
    always asynchronous.
    This should also fix https://bugzilla.redhat.com/show_bug.cgi?id=555296
    Platforms tested: RHEL5 x86_64, Fedora 14 x86_64
    Flag Day: no
    Doc impact: no
    
        
file modified
+18 -14