Index: trunk/extensions/LdapAuthentication/LdapAuthentication.php |
— | — | @@ -138,6 +138,11 @@ |
139 | 139 | |
140 | 140 | $this->printDebug( "Entering Connect", self::NONSENSITIVE ); |
141 | 141 | |
| 142 | + if ( !extension_loaded( 'ldap' ) ) { |
| 143 | + $this->printDebug( "Missing LDAP support; please ensure you have either compiled LDAP support in, or have enabled the module.", self::SENSITIVE ); |
| 144 | + return; |
| 145 | + } |
| 146 | + |
142 | 147 | //If the admin didn't set an encryption type, we default to tls |
143 | 148 | if ( isset( $wgLDAPEncryptionType[$_SESSION['wsDomain']] ) ) { |
144 | 149 | $encryptionType = $wgLDAPEncryptionType[$_SESSION['wsDomain']]; |