From 830f316909f158b12f8a5b3207efd5544893d4e8 Mon Sep 17 00:00:00 2001 From: Holger Mller Date: Mon, 20 Jun 2005 21:46:52 +0200 Subject: ability to derefence ldap aliases #406 darcs-hash:20050620194652-d49ea-c85ff90d9107f6a7c81ff3717bdba32d0f405d43.gz --- inc/auth/ldap.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/inc/auth/ldap.php b/inc/auth/ldap.php index 2f0f4f1ff..ef933a5eb 100644 --- a/inc/auth/ldap.php +++ b/inc/auth/ldap.php @@ -62,6 +62,16 @@ function auth_ldap_connect(){ } } } + //set deref mode + if($cnf['deref']){ + if(!@ldap_set_option($LDAP_CONNECTION, + LDAP_OPT_DEREF, + $cnf['deref'])){ + msg('Setting LDAP Deref mode '.$cnf['deref']. 'failed',-1); + if($cnf['debug']) + msg('LDAP errstr: '.htmlspecialchars(ldap_error($LDAP_CONNECTION)),0); + } + } } return $LDAP_CONNECTION; } -- cgit v1.2.3