summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolger Mller <zarath@gmx.de>2005-06-20 21:46:52 +0200
committerHolger Mller <zarath@gmx.de>2005-06-20 21:46:52 +0200
commit830f316909f158b12f8a5b3207efd5544893d4e8 (patch)
treee09981a35001c6782928ea9771b4f0164e9fc358
parent50deadbca63a3145ba22d7312705a39dbbdcbe7e (diff)
downloadrpg-830f316909f158b12f8a5b3207efd5544893d4e8.tar.gz
rpg-830f316909f158b12f8a5b3207efd5544893d4e8.tar.bz2
ability to derefence ldap aliases #406
darcs-hash:20050620194652-d49ea-c85ff90d9107f6a7c81ff3717bdba32d0f405d43.gz
-rw-r--r--inc/auth/ldap.php10
1 files changed, 10 insertions, 0 deletions
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;
}