mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-17 12:03:45 +00:00
Full name in LDAP is usually cn; compare ldap_connect() to false
Signed-off-by: Olivier Mehani <shtrom+friendica@ssji.net>
This commit is contained in:
parent
bba50284ca
commit
d6f727974b
1 changed files with 2 additions and 2 deletions
|
@ -47,7 +47,7 @@
|
|||
* // attribute to get email - optional - default : 'mail'
|
||||
* $a->config['ldapauth']['ldap_autocreateaccount_emailattribute'] = 'mail';
|
||||
* // attribute to get nickname - optional - default : 'givenName'
|
||||
* $a->config['ldapauth']['ldap_autocreateaccount_nameattribute'] = 'givenName';
|
||||
* $a->config['ldapauth']['ldap_autocreateaccount_nameattribute'] = 'cn';
|
||||
*
|
||||
* ...etc.
|
||||
*/
|
||||
|
@ -97,7 +97,7 @@ function ldapauth_authenticate($username,$password) {
|
|||
|
||||
$connect = @ldap_connect($ldap_server);
|
||||
|
||||
if(! $connect) {
|
||||
if($connect === false) {
|
||||
logger("ldapauth: could not connect to $ldap_server");
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue