Skip to content

Commit c49a2f4

Browse files
authored
Update LDAP.php (#532)
This change makes the attribute mapping correct for me.
1 parent 00c3422 commit c49a2f4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/LDAP.php

+1
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ public function searchUid($username)
126126

127127
public function getUserInfo($username)
128128
{
129+
$this->_bind = @ldap_bind($this->_connection, LDAP_BIND_DN, LDAP_BIND_PASSWORD);
129130
$search = @ldap_search( $this->_connection, LDAP_BASEDN, LDAP_ATTRIBUTE_UID . '=' . $username);
130131

131132
if ($search)

0 commit comments

Comments
 (0)