fixed LDAP_DEREF_NEVER
This commit is contained in:
parent
261a794249
commit
1676c1b81d
|
@ -4,6 +4,8 @@ December 2014 4.8
|
|||
- Usability improvements
|
||||
- LAM Pro:
|
||||
-> Self service: added option if referrals should be followed
|
||||
- fixed bugs:
|
||||
-> missing LDAP_DEREF_NEVER in some cases (169)
|
||||
|
||||
|
||||
07.10.2014 4.7.1
|
||||
|
|
|
@ -780,7 +780,7 @@ function ldapGetDN($dn, $attributes = array('dn'), $handle = null) {
|
|||
$handle = $_SESSION['ldap']->server();
|
||||
}
|
||||
$return = null;
|
||||
$sr = @ldap_read($handle, escapeDN($dn), 'objectClass=*', $attributes);
|
||||
$sr = @ldap_read($handle, escapeDN($dn), 'objectClass=*', $attributes, 0, 0, 0, LDAP_DEREF_NEVER);
|
||||
if ($sr) {
|
||||
$entries = ldap_get_entries($_SESSION['ldap']->server(), $sr);
|
||||
if ($entries) {
|
||||
|
|
|
@ -510,7 +510,7 @@ class imapAccess extends baseModule {
|
|||
// read LAM login user data
|
||||
$data = $_SESSION['ldap']->decrypt_login();
|
||||
$dn = $data[0];
|
||||
$sr = @ldap_read($_SESSION['ldap']->server(), $dn, '(objectclass=*)', $attrNames);
|
||||
$sr = @ldap_read($_SESSION['ldap']->server(), $dn, '(objectclass=*)', $attrNames, 0, 0, 0, LDAP_DEREF_NEVER);
|
||||
if ($sr) {
|
||||
$info = @ldap_get_entries($_SESSION['ldap']->server(), $sr);
|
||||
if ($info) {
|
||||
|
|
|
@ -215,7 +215,7 @@ function lamRunLamdaemonTestSuite($serverName, $serverTitle, $testQuota, $contai
|
|||
$container->addElement($spacer);
|
||||
$credentials = $_SESSION['ldap']->decrypt_login();
|
||||
$unixOk = false;
|
||||
$sr = @ldap_read($_SESSION['ldap']->server(), $credentials[0], "objectClass=posixAccount", array('uid'));
|
||||
$sr = @ldap_read($_SESSION['ldap']->server(), $credentials[0], "objectClass=posixAccount", array('uid'), 0, 0, 0, LDAP_DEREF_NEVER);
|
||||
if ($sr) {
|
||||
$entry = @ldap_get_entries($_SESSION['ldap']->server(), $sr);
|
||||
$userName = $entry[0]['uid'][0];
|
||||
|
|
Loading…
Reference in New Issue