Commit 37322dc34f89eeda39c9b3a865c47172c3d95107

Authored by Etienne Pallier
1 parent fa557299

ldap anonymous bugfix

Showing 1 changed file with 3 additions and 3 deletions   Show diff stats
src/Model/Table/LdapConnectionsTable.php
... ... @@ -341,7 +341,8 @@ class LdapConnectionsTable extends AppTable
341 341 $binddn = $this->authenticationType . '=' . $user_login;
342 342 $ldappass = $user_password;
343 343 $filter = '('.$binddn.')';
344   - $just_these = array("cn");
  344 + //$just_these = array();
  345 + $just_these = [];
345 346 }
346 347 // - Authentified connection (CRAL)
347 348 else {
... ... @@ -351,8 +352,7 @@ class LdapConnectionsTable extends AppTable
351 352 $binddn = "CN=svc_ldap_cral,OU=users,OU=27,OU=sim,OU=univ-lyon1";
352 353 $ldappass = "lemotdepasse";
353 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))";
354   - //$just_these = array();
355   - $just_these = [];
  355 + $just_these = array("cn");
356 356 }
357 357 $binddn .= ','.$this->baseDn;
358 358  
... ...