]> source.dussan.org Git - nextcloud-server.git/commit
fixes returning the base when multiple are specified
authorArthur Schiwon <blizzz@arthur-schiwon.de>
Wed, 19 Jun 2019 11:39:15 +0000 (13:39 +0200)
committerArthur Schiwon <blizzz@arthur-schiwon.de>
Thu, 27 Jun 2019 09:35:47 +0000 (11:35 +0200)
commitd1ead1dfd276d22001f0980f119d61602d2f072a
treeb3954388fbc0e739a5716827361c0c168860052c
parent3c06d861b69eb9d7d9c73d650ee5f16ec8d796b6
fixes returning the base when multiple are specified

* reading the config directly will return the value with line breaks
* using the proper accessor gives us all bases in an array
* returns the first matching one
* having user id provided for the group base is strange and does not let
  us operate like this. here we return the first one. might change in
  future, a backportable fix won't have an API change however.

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
apps/user_ldap/lib/LDAPProvider.php
apps/user_ldap/tests/LDAPProviderTest.php