aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Fix psalm errors about groupExists return typeCôme Chilliet2023-09-052-9/+5
| | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | Add batch methods in user backendsCarl Schwan2023-09-052-2/+35
| | | | | | | | | | | | | | | | | | This allows for faster group search with significantly less DB traffic Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | | Do not log passwords in debug modeAnna Larch2023-08-241-0/+9
| |/ |/| | | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* | Add unique index for user_ldap group membershipsCôme Chilliet2023-08-101-0/+1
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Fix check-group --update for deleted groupsCôme Chilliet2023-08-101-2/+10
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Use BIGINT for new table id fieldCôme Chilliet2023-08-101-2/+1
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Removed GroupCreatedEvent/GroupDeletedEvent from UpdateGroupsServiceCôme Chilliet2023-08-101-6/+0
| | | | | | | | | | | | | | This should be handled when mapping groups, not when registering their members. An empty group may still exist. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Dispatch UserRemovedEvents for removed groupsCôme Chilliet2023-08-101-0/+12
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | [user_ldap] Small perf improvements suggestion from reviewCôme Chilliet2023-08-102-2/+2
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Fix check-group command for new groupsCôme Chilliet2023-08-101-6/+12
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Fix getKnownGroups return valueCôme Chilliet2023-08-101-1/+1
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Add output to check-group --update commandCôme Chilliet2023-08-101-1/+25
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Always empty cache before updating a groupCôme Chilliet2023-08-101-0/+1
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Fix errors in UpdateGroupsService.phpCôme Chilliet2023-08-101-4/+4
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Add missing primary key for ldap_group_membershipCôme Chilliet2023-08-101-0/+6
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Add check-group commandCôme Chilliet2023-08-104-10/+198
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Move UpdateGroups methods to a serviceCôme Chilliet2023-08-102-172/+187
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Add group events to UpdateGroupsCôme Chilliet2023-08-101-0/+7
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Refactor user_ldap group membership to use flat DBCôme Chilliet2023-08-105-90/+308
| | | | | | | | | | | | Move away from serialized arrays. Also use a QBMapper class for the new table. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Merge pull request #39058 from nextcloud/fix/fix-ldap-filters-for-empty-searchCôme Chilliet2023-08-081-2/+6
|\ \ | | | | | | Avoid adding (attribute=) part to filter which will confuse LDAP servers
| * | Avoid adding (attribute=) part to filter which will confuse LDAP serversCôme Chilliet2023-06-291-2/+6
| | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | user_ldap: Add OpenAPI specjld31032023-07-311-76/+26
| | | | | | | | | | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* | | fix(dispatcher): Move remaining simple cases in apps/ folder to IEventDispatcherJoas Schilling2023-07-251-4/+2
| |/ |/| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #34443 from nextcloud/feat/add-enabled-user-backendCôme Chilliet2023-07-035-63/+111
|\ \ | |/ |/| Add IProvideEnabledStateBackend interface
| * Add method to list disabled users to IProvideEnabledStateBackendCôme Chilliet2023-06-292-0/+16
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Fix since annotations and add boolean return type for setUserEnabledCôme Chilliet2023-06-202-3/+4
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Use DI for DeletedUsersIndex and fix testsCôme Chilliet2023-05-252-24/+33
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * [user_ldap] Add per-connection setting for marking remnants as disabledCôme Chilliet2023-05-233-2/+6
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Use the new IProvideEnabledStateBackend interface in user_ldapCôme Chilliet2023-05-233-40/+58
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Merge pull request #38457 from nextcloud/fix/improve-ldap-offset-search-perfArthur Schiwon2023-06-221-2/+9
|\ \ | | | | | | Use default page size for jumping to desired offset
| * | Fix paged search when offset is not a multiple of default page sizeCôme Chilliet2023-06-201-2/+8
| | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | Use default page size for jumping to desired offsetCôme Chilliet2023-05-251-2/+3
| |/ | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* / Refactors "strpos" calls in /apps/user_ldap to improve code readability.Faraz Samapoor2023-06-029-16/+16
|/ | | | Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
* Merge pull request #37903 from nextcloud/fix/user_ldap-fix-multiple-ldap-supportCôme Chilliet2023-05-022-21/+5
|\ | | | | Fix multiple LDAP configuration support by fixing AccessFactory
| * Add comment about Manager instance not being sharedCôme Chilliet2023-04-271-0/+1
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Fix multiple LDAP configuration support by fixing AccessFactoryCôme Chilliet2023-04-242-21/+4
| | | | | | | | | | | | | | It must not reuse the same OCA\User_LDAP\User\Manager instance for several Access instances. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Clear up return typesCôme Chilliet2023-04-273-6/+12
| | | | | | | | | | | | usersInGroup index by int for BC, searchInGroup index by uid (string). Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Let OC\Group\Group handle the fallback and remove default implementation ↵Côme Chilliet2023-04-271-11/+2
| | | | | | | | | | | | from ABackend Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Optimize retrieving display name when searching for users in a groupCarl Schwan2023-04-272-4/+17
| | | | | | | | | | | | | | | | | | This is recurrent scenario that we are searching for users and then for each users we fetch the displayName. This is inefficient, so instead try to do one query to fetch everything (e.g. Database backend) or use the already existing DisplayNameCache helper. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Merge pull request #36784 from nextcloud/fix/user_ldap-update-groups-fail-getDaniel2023-04-241-1/+12
|\ \ | |/ |/| Properly test and log when a group is not found
| * Properly test and log when a group is not foundCôme Chilliet2023-02-201-1/+12
| | | | | | | | | | | | | | Avoid an error about passing null instead of IGroup to the event constructor, instead skip the failed group and log the problem. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | code stylingMarc Hefter2023-04-241-5/+5
| | | | | | | | | | Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Marc Hefter <marchefter@march42.net>
* | Update apps/user_ldap/lib/User/User.phpMarc Hefter2023-04-241-1/+1
| | | | | | | | Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Marc Hefter <marchefter@march42.net>
* | removed profile data from LDAP will get removedMarc Hefter2023-04-211-12/+18
| | | | | | | | | | | | | | | | If attribute mapping is configured and no value present in LDAP, the according profile field is emptied. Removing an attribute e.g. phone from LDAP will cause the phone number being removed from profile. Signed-off-by: Marc Hefter <marchefter@gmail.com>
* | Merge pull request #36565 from march42/feature/ldap_update_profileSimon L2023-04-204-1/+212
|\ \ | | | | | | [user_ldap] Update profile from LDAP fields
| * | optimized handling of user profile data changeMarc Hefter2023-04-141-1/+23
| | | | | | | | | | | | | | | | | | | | | Check profile data checksum before updating user profile, to ensure data has changed. Write checksum to user settings and cache. Signed-off-by: Marc Hefter <marchefter@gmail.com>
| * | error handling in update profile from LDAPMarc Hefter2023-04-111-1/+7
| | | | | | | | | | | | | | | | | | added error message on InvalidArgumentException Signed-off-by: Marc Hefter <marchefter@gmail.com>
| * | trying to make github-code-scanning bot happyMarc Hefter2023-04-061-2/+3
| | | | | | | | | | | | Signed-off-by: Marc Hefter <marchefter@gmail.com>
| * | added simple data conversion for LDAP attributesMarc Hefter2023-04-061-7/+19
| | | | | | | | | | | | Signed-off-by: Marc Hefter <marchefter@gmail.com>
| * | handling, formatting of postalAddress attribute syntaxMarc Hefter2023-04-061-24/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | replace '$' with ', ' delimiter for address property reformatted some code to 80 column early check and return, if wasRefreshed('profile') removed FIXMEs after digging and double checking Signed-off-by: Marc Hefter <marchefter@gmail.com>