mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 17:48:25 +01:00
premier import du nouveau code ldap
ATTENTION !! ceci peut abimer l'arbre ldap pour l'instant
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user