From ebe9d4aca2580f30439b089638599507b5b50cfb Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sun, 1 Mar 2015 19:20:29 +0000 Subject: [PATCH] fixed typo --- lam/lib/account.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lam/lib/account.inc b/lam/lib/account.inc index 3ff38d07..2f574722 100644 --- a/lam/lib/account.inc +++ b/lam/lib/account.inc @@ -782,7 +782,7 @@ function ldapGetDN($dn, $attributes = array('dn'), $handle = null) { $return = null; $sr = @ldap_read($handle, escapeDN($dn), 'objectClass=*', $attributes, 0, 0, 0, LDAP_DEREF_NEVER); if ($sr) { - $entries = ldap_get_entries($_SESSION['ldap']->server(), $sr); + $entries = ldap_get_entries($handle, $sr); if ($entries) { cleanLDAPResult($entries); $return = $entries[0];