premier import du nouveau code ldap

ATTENTION !! ceci peut abimer l'arbre ldap pour l'instant
This commit is contained in:
opensides
2004-06-15 18:13:55 +00:00
parent 28bba34a16
commit ad6cf8772d
3 changed files with 45 additions and 41 deletions

View File

@@ -31,15 +31,15 @@ Function dolibarr_ldap_connect()
Function dolibarr_ldap_bind($ds)
{
if (defined("LDAP_SERVER_PASS") && LDAP_SERVER_PASS)
if (defined("LDAP_SERVER_PASS") && LDAP_SERVER_DN && LDAP_SERVER_PASS)
{
$ldapbind = ldap_bind($ds, LDAP_SERVER_LOGIN, LDAP_SERVER_PASS);
$ldapbind = ldap_bind($ds, LDAP_SERVER_DN, LDAP_SERVER_PASS);
}
else
/* else
{
$ldapbind = ldap_bind($ds, $dn);
$ldapbind = ldap_bind($ds, $dn); -- connection anonyme desactivee
}
*/
return $ldapbind;
}