Index: trunk/extensions/LdapAuthentication/LdapAuthentication.php |
— | — | @@ -140,8 +140,9 @@ |
141 | 141 | |
142 | 142 | $this->printDebug( "Entering Connect", NONSENSITIVE ); |
143 | 143 | |
144 | | - if ( !extension_loaded( 'ldap' ) ) { |
| 144 | + if ( !function_exists( 'ldap_connect' ) ) { |
145 | 145 | $this->printDebug( "It looks like you are issing LDAP support; please ensure you have either compiled LDAP support in, or have enabled the module. If the authentication is working for you, the plugin isn't properly detecting the LDAP module, and you can safely ignore this message.", NONSENSITIVE ); |
| 146 | + return false; |
146 | 147 | } |
147 | 148 | |
148 | 149 | //If the admin didn't set an encryption type, we default to tls |