Update Ldap.php

This commit is contained in:
Dmitrii Zolotov 2016-03-14 21:35:39 +06:00 committed by Dmitry Khomutov
commit f42bb7a4d2
No known key found for this signature in database
GPG key ID: 7EB36C9576F9ECB9

View file

@ -28,7 +28,6 @@ class Ldap extends AbstractProvider implements LoginPasswordProvider
$mailAttribute = $config["mailAttribute"];
$ldap = ldap_connect($server);
ldap_set_option($ldap, LDAP_OPT_PROTOCOL_VERSION, 3);
var_dump($mailAttribute."=".$user->getEmail());
$ls = ldap_search($ldap, $config["base"], $mailAttribute."=".$user->getEmail());
$le = ldap_get_entries($ldap, $ls);
if ($le["count"]==0) return false;