summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/tests
Commit message (Collapse)AuthorAgeFilesLines
* TO REVERT LATER: disable some tests in UserTestRoeland Jago Douma2019-11-271-5/+5
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Mode to modern phpunitRoeland Jago Douma2019-11-2721-160/+160
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix more testsRoeland Jago Douma2019-11-271-1/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make phpunit8 compatibleRoeland Jago Douma2019-11-2720-22/+22
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Some php-cs fixesRoeland Jago Douma2019-11-2216-24/+23
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Don't process known avatars from LDAPArthur Schiwon2019-09-041-0/+93
| | | | | | | | | * avoids useless FS operation * avoids useless DB writes * avoids useless addressbook updates * addendum to #17001 Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* invalidates user when plugin reported deletion successArthur Schiwon2019-06-261-2/+20
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Merge pull request #15964 from nextcloud/enh/noid/user-creation-optionsblizzz2019-06-211-2/+17
|\ | | | | Opt-in for generation userid, requiring email addresses
| * ensures mapping of chosen useridArthur Schiwon2019-06-191-2/+17
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | fixes returning the base when multiple are specifiedArthur Schiwon2019-06-191-16/+61
|/ | | | | | | | | | | * 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>
* caches the displayname after an LDAP plugin set itArthur Schiwon2019-06-181-3/+27
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* group display name support (service level + ldap)Arthur Schiwon2019-05-271-0/+39
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fix user creation using LDAP PluginVinicius Cubas Brand2019-03-211-1/+1
| | | | Signed-off-by: Vinicius Cubas Brand <viniciuscb@gmail.com>
* remove unused use statementArthur Schiwon2019-03-061-1/+0
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fix nested group retrieval also for 2 other casesArthur Schiwon2019-03-051-24/+32
| | | | | | and also consolidate logic in one method Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Fixed unit test: groupsMatchFilter will not be called multiple times anymore.Roland Tapken2019-03-051-1/+1
| | | | Signed-off-by: Roland Tapken <roland@bitarbeiter.net>
* Fix testsJulius Härtl2019-03-011-4/+6
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* add LDAP ConfigHandler for external storages and "$home" varArthur Schiwon2019-02-142-3/+51
| | | | | | | | * handler registered upon OCA\\Files_External::loadAdditionalBackends event as user_ldap is loaded before files_external * new configuration field "ldapExtStorageHomeAttribute" (not in GUI yet) Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* ensure attribute names are lower casedArthur Schiwon2019-02-141-2/+6
| | | | | | | otherwise they will be skipped when the results is being formatted and the lower-cased result keys do not match. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* ensure db is pristine before starting the testsArthur Schiwon2019-01-041-0/+3
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* add tests for the DUIArthur Schiwon2018-12-211-0/+118
| | | | | | as they are interact with the DB they are more integraiton than unit tests Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* avoid logging of "Partial search results returned: Sizelimit exceeded at"Arthur Schiwon2018-11-071-0/+40
| | | | | | | LDAP servers respond with that even if a limit was passed with the request. Having this statement logged causes a lot of confusion. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* remove app specific IUserTools and consolidate testArthur Schiwon2018-10-301-124/+100
| | | | | | | Just some house keeping. IUserTools with used in even older days for easier creation of Access instances… Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Merge pull request #12054 from nextcloud/fix/5212/interact-with-userobjectRoeland Jago Douma2018-10-301-4/+39
|\ | | | | LDAP: announce display name changes so that addressbook picks it up
| * do not run into UniqueConstraintViolationExceptionArthur Schiwon2018-10-301-8/+18
| | | | | | | | | | | | | | … when an unmapped user logs in for the first time when background job mode is ajax and no memcache was configured. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * only write when the displayname differs, but then announce itArthur Schiwon2018-10-251-0/+25
| | | | | | | | | | | | refs #5212 and fixes #9112 Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | remove unneeded empty search attribute values, fixes #12086Arthur Schiwon2018-10-291-1/+6
|/ | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* [LDAP] The WebUI Wizard also should not assign empty config IDsArthur Schiwon2018-08-231-4/+2
| | | | | | | | | | | | | With 689df9a843dd0505088143de039af775a3f92612 the behaviour to assign only non-empty config IDs was introduced. Only, this was only effective for CLI and OCS API. Related to #3270. The web UI creates now also a full configuration on first load. This fixes #5094. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fix unit testsArthur Schiwon2018-08-151-10/+47
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* tests for user storage locationArthur Schiwon2018-08-101-186/+0
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* convert pagination testsArthur Schiwon2018-08-091-36/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* convert connection testsArthur Schiwon2018-08-091-172/+0
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* integration test to ensure entries without displayname don't cause troubleArthur Schiwon2018-08-091-81/+0
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* convert LDAP offline and backup server integration testsArthur Schiwon2018-08-091-124/+0
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* integration test checking the group filterArthur Schiwon2018-08-091-127/+0
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Fix tests for backup ldap server connectionJulius Härtl2018-07-131-2/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* adjust and add more unit testsArthur Schiwon2018-07-053-17/+95
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* allow admin to disable fetching of avatars as well as a specific attributeArthur Schiwon2018-07-052-22/+56
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* let user set avatar in nextcloud von LDAP provides invalid image dataArthur Schiwon2018-07-032-0/+133
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Iron User_LDAP testsArthur Schiwon2018-07-032-1029/+525
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Merge pull request #10034 from nextcloud/fix/noid/ldap-silence-quota-logmsgsblizzz2018-06-281-132/+100
|\ | | | | lower log level for quota manipulation cases
| * lower log level for quota manipulation casesArthur Schiwon2018-06-281-132/+100
| | | | | | | | | | | | and simplify the forest of ifs a little bit Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | LDAP backup server should not be queried when auth failsArthur Schiwon2018-06-271-3/+50
|/ | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* check user state when fetching to avoid dealing with offline objectsArthur Schiwon2018-05-291-2/+37
| | | | | | fixes #9502 Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* adjust unit tests for \"Invalid argument supplied for foreach()\" fixRoger Szabo2018-05-091-4/+4
| | | | Signed-off-by: Roger Szabo <roger.szabo@web.de>
* DI for NC's user managerArthur Schiwon2018-04-051-4/+8
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* LDAP backend to emit announce and revoke signals on mapping changesArthur Schiwon2018-04-051-0/+23
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Remove deprecated \OCP\User::userExistsRoeland Jago Douma2018-03-261-5/+4
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Remove deprecated OCP\User::getDisplaynameRoeland Jago Douma2018-03-251-2/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Remove deprecated \OCP\User::getUsersRoeland Jago Douma2018-03-251-5/+14
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>