diff --git a/src/Model/Table/LdapConnectionsTable.php b/src/Model/Table/LdapConnectionsTable.php index 67d559d..0476ba1 100755 --- a/src/Model/Table/LdapConnectionsTable.php +++ b/src/Model/Table/LdapConnectionsTable.php @@ -336,8 +336,8 @@ class LdapConnectionsTable extends AppTable // Set LDAP parameters // - Anonymous connection (IRAP, IAS, LATMOS) if ($LDAP_ANONYMOUS) { - //$dn = "ou=users,dc=irap,dc=omp,dc=eu"; - //$dn = $this->baseDn; + //$dn = $this->baseDn; // "ou=users,dc=irap,dc=omp,dc=eu" + $auth_dn = ''; //= $this->authDn; $binddn = $this->authenticationType . '=' . $user_login; $ldappass = $user_password; $filter = '('.$binddn.')'; @@ -346,10 +346,11 @@ class LdapConnectionsTable extends AppTable } // - Authentified connection (CRAL) else { - //$dn = "dc=univ-lyon1,dc=fr"; + //$dn = $this->baseDn; // "dc=univ-lyon1,dc=fr"; //$binddn="CN=svc_ldap_cral,OU=users,OU=27,OU=sim,OU=univ-lyon1,DC=univ-lyon1,DC=fr"; //$binddn = "CN=svc_ldap_cral,OU=users,OU=27,OU=sim,OU=univ-lyon1,".$dn; - $binddn = "CN=svc_ldap_cral,OU=users,OU=27,OU=sim,OU=univ-lyon1"; + $auth_dn = "CN=svc_ldap_cral,OU=users,OU=27,OU=sim,OU=univ-lyon1"; //= $this->authDn; + $binddn = $auth_dn; $ldappass = "lemotdepasse"; $filter = "(&(objectClass=person)(memberOf:1.2.840.113556.1.4.1941:=cn=ucbl.osu.cral,ou=groups,ou=27,ou=sim,ou=univ-lyon1,dc=univ-lyon1,dc=fr))"; $just_these = array("cn"); -- libgit2 0.21.2