Commit ad93c6d4898729c84f20650c821e4862299fa822
1 parent
37322dc3
Exists in
master
and in
3 other branches
ajout $auth_dn
Showing
1 changed file
with
5 additions
and
4 deletions
Show diff stats
src/Model/Table/LdapConnectionsTable.php
@@ -336,8 +336,8 @@ class LdapConnectionsTable extends AppTable | @@ -336,8 +336,8 @@ class LdapConnectionsTable extends AppTable | ||
336 | // Set LDAP parameters | 336 | // Set LDAP parameters |
337 | // - Anonymous connection (IRAP, IAS, LATMOS) | 337 | // - Anonymous connection (IRAP, IAS, LATMOS) |
338 | if ($LDAP_ANONYMOUS) { | 338 | if ($LDAP_ANONYMOUS) { |
339 | - //$dn = "ou=users,dc=irap,dc=omp,dc=eu"; | ||
340 | - //$dn = $this->baseDn; | 339 | + //$dn = $this->baseDn; // "ou=users,dc=irap,dc=omp,dc=eu" |
340 | + $auth_dn = ''; //= $this->authDn; | ||
341 | $binddn = $this->authenticationType . '=' . $user_login; | 341 | $binddn = $this->authenticationType . '=' . $user_login; |
342 | $ldappass = $user_password; | 342 | $ldappass = $user_password; |
343 | $filter = '('.$binddn.')'; | 343 | $filter = '('.$binddn.')'; |
@@ -346,10 +346,11 @@ class LdapConnectionsTable extends AppTable | @@ -346,10 +346,11 @@ class LdapConnectionsTable extends AppTable | ||
346 | } | 346 | } |
347 | // - Authentified connection (CRAL) | 347 | // - Authentified connection (CRAL) |
348 | else { | 348 | else { |
349 | - //$dn = "dc=univ-lyon1,dc=fr"; | 349 | + //$dn = $this->baseDn; // "dc=univ-lyon1,dc=fr"; |
350 | //$binddn="CN=svc_ldap_cral,OU=users,OU=27,OU=sim,OU=univ-lyon1,DC=univ-lyon1,DC=fr"; | 350 | //$binddn="CN=svc_ldap_cral,OU=users,OU=27,OU=sim,OU=univ-lyon1,DC=univ-lyon1,DC=fr"; |
351 | //$binddn = "CN=svc_ldap_cral,OU=users,OU=27,OU=sim,OU=univ-lyon1,".$dn; | 351 | //$binddn = "CN=svc_ldap_cral,OU=users,OU=27,OU=sim,OU=univ-lyon1,".$dn; |
352 | - $binddn = "CN=svc_ldap_cral,OU=users,OU=27,OU=sim,OU=univ-lyon1"; | 352 | + $auth_dn = "CN=svc_ldap_cral,OU=users,OU=27,OU=sim,OU=univ-lyon1"; //= $this->authDn; |
353 | + $binddn = $auth_dn; | ||
353 | $ldappass = "lemotdepasse"; | 354 | $ldappass = "lemotdepasse"; |
354 | $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))"; | 355 | $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))"; |
355 | $just_these = array("cn"); | 356 | $just_these = array("cn"); |