I ran into the problem, that the attribute I was search for had the matching rule of "exactMatch".
Example:
E-Mail Address is stored in mixed case: [email protected]
LDAP Search will not retrieve any values when the user enters: [email protected]
Solution: instead of comparing user input and attribute value by
<?php
if($data[$i]['mail'][0] == $username) {
// this will run into nothing
}
?>
use strcasecmp instead:
<?php
if(strcasecmp($data[$i]['mail'][0], $username) == 0) {
// works
}