Index: trunk/extensions/LdapAuthentication/LdapAuthentication.php |
— | — | @@ -1068,7 +1068,7 @@ |
1069 | 1069 | $this->printDebug( "Using base: $base", SENSITIVE ); |
1070 | 1070 | |
1071 | 1071 | $entry = @ldap_search( $this->ldapconn, $base, $filter, $attributes ); |
1072 | | - if ( !$entry ) { |
| 1072 | + if ( @ldap_count_entries($this->ldapconn,$entry)==0 ) { |
1073 | 1073 | $this->printDebug( "Couldn't find an entry", NONSENSITIVE ); |
1074 | 1074 | $this->fetchedUserInfo = false; |
1075 | 1075 | return ''; |