summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib
Commit message (Collapse)AuthorAgeFilesLines
...
| * | 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>
* Merge pull request #22176 from ↵Morris Jobke2020-08-112-2/+2
|\ | | | | | | | | nextcloud/debt/noid/table-render-too-many-arguments Remove unexpected argument
| * Remove unexpected argumentDaniel Kesselberg2020-08-102-2/+2
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | use break not continue in switch to avoid warningArthur Schiwon2020-08-101-5/+5
|/ | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Merge pull request #16737 from tofuSCHNITZEL/feature-zimbraldapblizzz2020-08-072-84/+127
|\ | | | | new Group-Member association attribute (zimbraMailForwardingAddress)
| * added "zimbraMailForwardingAddress" as a Group-Member association attribute ↵Tobias Perschon2020-08-072-84/+127
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to enable the use of Zimbra Distribution Lists as groups in nextcloud when connecting to a zimbra LDAP Signed-off-by: Tobias Perschon <tobias@perschon.at> fix cs:check Signed-off-by: Tobias Perschon <tobias@perschon.at> Update apps/user_ldap/lib/Group_LDAP.php Co-authored-by: blizzz <blizzz@arthur-schiwon.de> Signed-off-by: Tobias Perschon <tobias@perschon.at>
* | Merge pull request #21738 from ↵Morris Jobke2020-08-071-1/+10
|\ \ | |/ |/| | | | | nextcloud/techdebt/14552/migrate-OC_Group-post_removeFromGroup Migrate OC_Group post_removeFromGroup hook to actual event object
| * Migrate OC_Group post_removeFromGroup hook to actual event objectMorris Jobke2020-07-301-1/+10
| | | | | | | | | | | | | | | | Ref #14552 This adds a BeforeUserRemovedEvent to the LDAP backend because it was missing. It's not really before, but we don't have the before state. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | reset the cookie internally in new API when abandoning paged results opArthur Schiwon2020-07-291-1/+11
|/ | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Use the proper IAppContainer and IServerContainer type hints to know which ↵Morris Jobke2020-07-211-11/+11
| | | | | | code runs with which container Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Adjust apps' code to use the ContainerInterfaceChristoph Wurst2020-07-211-32/+38
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Migrate LDAP to the PSR containerChristoph Wurst2020-07-161-12/+15
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use IBootstrap for the app user_ldapMorris Jobke2020-07-141-8/+57
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Do not use custom DI object names for user_ldapMorris Jobke2020-07-136-8/+14
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #21639 from ↵Morris Jobke2020-07-061-0/+101
|\ | | | | | | | | nextcloud/techdebt/noid/move-away-from-database-xml Move away from database xml
| * Move user_ldap to migrationsJoas Schilling2020-07-061-0/+101
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #21171 from nextcloud/enh/noid/tidy-up-group-ldapMorris Jobke2020-07-063-199/+161
|\ \ | |/ |/| tidy up Group_LDAP
| * tidy up Group_LDAPArthur Schiwon2020-06-083-199/+161
| | | | | | | | | | | | | | | | | | | | * remove unused method * resolve code duplication * remove usage of deprectad Util::writeLog * phpDoc updates * signature updates Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Also always return in app commandsJoas Schilling2020-06-268-12/+23
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | fix strings being passed where arrays where expectedArthur Schiwon2020-06-242-25/+7
| | | | | | | | | | | | also brought type hints up to internal API level Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>