summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #25101 from nextcloud/fix/noid/ldap-known-groupsChristoph Wurst2021-01-291-1/+1
|\ | | | | LDAP: make actually use of batch read known groups
| * really use known groupsArthur Schiwon2021-01-121-1/+1
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | fix parameter provided as string not arrayArthur Schiwon2021-01-281-1/+3
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Merge pull request #25128 from nextcloud/ldapprovider-get-propertyblizzz2021-01-221-11/+42
|\ \ | | | | | | extend ILDAPProvider to allow reading arbitrairy ldap attributes for users
| * | extend ILDAPProvider to allow reading arbitrairy ldap attributes for usersRobin Appelman2021-01-191-11/+42
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | silence log messageArthur Schiwon2021-01-211-1/+1
|/ / | | | | | | | | | | | | - this appears too often (in some configurations) when qualifying group members which do not meet the criteria Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Merge pull request #25036 from nextcloud/fix/noid/limitied-allowed-items-db-in_2blizzz2021-01-141-6/+47
|\ \ | |/ |/| respect DB restrictions on number of arguments in statements and queries
| * silence psalm false positiveArthur Schiwon2021-01-131-0/+2
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * respect DB limits limit per statement and queryArthur Schiwon2021-01-111-6/+45
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Migrate internal classes to the OCP db col typesChristoph Wurst2021-01-121-1/+1
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Bump doctrine/dbal from 2.12.0 to 3.0.0Christoph Wurst2021-01-081-25/+43
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Revert "(LDAP) respect DB limits of arguments in an IN statement"Roeland Jago Douma2021-01-081-17/+5
|
* respect DB limits of arguments in a IN listArthur Schiwon2021-01-071-5/+17
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Update license headersChristoph Wurst2020-12-303-0/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #22916 from J0WI/unifiy-links-to-php.netRoeland Jago Douma2020-12-223-3/+3
|\ | | | | Unify links to php.net
| * Unify links to php.netJ0WI2020-09-173-3/+3
| | | | | | | | | | | | Update all links to https://www.php.net/ Signed-off-by: J0WI <J0WI@users.noreply.github.com>
* | Update all license headers for Nextcloud 21Christoph Wurst2020-12-1615-25/+10
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #24402 from nextcloud/fix/24252/ldap-ingroup-memberidblizzz2020-12-151-11/+22
|\ \ | | | | | | LDAP: fix inGroup for memberUid type of group memberships
| * | check number of members after potential resolving of rdnsArthur Schiwon2020-11-271-4/+5
| | | | | | | | | | | | | | | | | | | | | - the type check is not necessary anymore for the return type of _groupMembers() Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * | use faster and less hungry foreachArthur Schiwon2020-11-271-10/+8
| | | | | | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * | moved the array_reduce to fix large search caseTobias Perschon2020-11-271-10/+17
| | | | | | | | | | | | | | | | | | also added some additional comments and renamed some vars to make it intuitive whats in them Signed-off-by: Tobias Perschon <tobias@perschon.at>
| * | flatten result array as expected by following codeArthur Schiwon2020-11-261-2/+7
| | | | | | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | | Migrate LDAP's install.php to a repair stepChristoph Wurst2020-11-272-12/+58
|/ / | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Don't leave cursors open when tests failJoas Schilling2020-11-091-1/+4
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | fix insert valuesArthur Schiwon2020-11-061-2/+2
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | only delete specified configArthur Schiwon2020-11-061-0/+1
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Correctly place the array typeJoas Schilling2020-11-061-1/+1
| |
* | Use query builder to interact with member managementJoas Schilling2020-11-061-12/+16
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Use query builder instead of OC_DB in user_ldapJoas Schilling2020-11-0610-36/+30
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | fix potentially passing null to events where IUser is expectedArthur Schiwon2020-10-301-2/+7
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | adds unit test for updategroups background jobArthur Schiwon2020-10-301-56/+92
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Document the backend registered events of LDAPMorris Jobke2020-10-292-0/+10
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | user share manager to determine share ownershipArthur Schiwon2020-10-268-112/+74
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | fixes determining whether former user is a share ownerArthur Schiwon2020-10-261-11/+4
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | split instantiation from business logic in OfflineUserArthur Schiwon2020-10-261-1/+24
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | LDAP simplify User_Proxy and Group_Proxy signaturesArthur Schiwon2020-10-2310-179/+67
| | | | | | | | | | | | | | | | | | - make User_Proxy and Group_Proxy easy to instantiate - simplify dependent code - move commands to info.xml - make UpdateGroups job class non-static Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | tame psalm. why does it ignore '@property'?Arthur Schiwon2020-10-191-5/+1
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | when nesting is not enabled, the group filter can be applied right awayArthur Schiwon2020-10-191-1/+6
| | | | | | | | | | | | | | | | - helps performance, but skipping unnecessary entries - reduces reoccuring info-level log output against groups that do not qualify ("no or empty name") Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Format code to a single space around binary operatorsChristoph Wurst2020-10-0510-148/+148
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* announce added user and group backend later as there might be interdepsArthur Schiwon2020-09-111-3/+3
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* switch to typed event for LDAPs user added to group caseArthur Schiwon2020-09-101-1/+4
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Update license headers for Nextcloud 20 (again)Christoph Wurst2020-09-071-1/+2
| | | | | | | There are still lots of outdated headers, so time for another round of updates. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* add repair step to clean up DB off lastFeatureRefresh entries in user prefsArthur Schiwon2020-09-041-0/+65
| | | | | | - also removes related app setting "updateAttributesInterval" Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* these code bits were part of old logic that was already refactored outArthur Schiwon2020-09-041-53/+0
| | | | | | - only references were in unit tests Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-2411-5/+12
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use matching parameter names form interfaces and implementationsMorris Jobke2020-08-192-10/+14
| | | | | | Found by Psalm 3.14.1 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* provide event class to LDAP loaded event to fix deprecation messageArthur Schiwon2020-08-123-5/+113
| | | | | | * and also dispatch the typed event as current approach to it Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* remove logging message carrying no valuable informationArthur Schiwon2020-08-121-8/+5
| | | | | | | | the exception caught is not an error, but due to valid configuration and code flow is expecting this. For an admin it is confusing, and it carries no information worth for debugging. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* do not flip available state to unavailable, allow empty resultsArthur Schiwon2020-08-112-11/+21
| | | | | | | | | - the detection relies that the first, requested result is not empty - it might be empty though – groups without members - protect switching from available to unavailable - switching the other way around was also not envisaged either Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* LDAP: shortcut in reading nested group members when IN_CHAIN is availableArthur Schiwon2020-08-112-0/+36
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>