aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib
Commit message (Collapse)AuthorAgeFilesLines
* refactor: Replace __CLASS__ with ::class referencesrefactor/self-class-referenceChristoph Wurst2024-09-152-9/+9
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #47865 from ↵Côme Chilliet2024-09-133-138/+61
|\ | | | | | | | | nextcloud/admin_audit/enh/move-to-event-listeners-v2 Move admin_audit to proper event listeners v2
| * feat(user_ldap): Introduce user id assigned typed events for LDAP usageCarl Schwan2024-09-103-138/+61
| | | | | | | | | | | | Based on work from https://github.com/nextcloud/server/pull/32019 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* | fix(LDAP): check index before accessing itArthur Schiwon2024-09-121-4/+3
|/ | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* chore: adjust code to adhere to coding standardAnna Larch2024-09-052-3/+2
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* chore: composer run cs:fixCôme Chilliet2024-08-271-2/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(user_ldap): Lowercase value for all attributes in configurationCôme Chilliet2024-08-271-0/+21
| | | | | | | Avoid surprises by making sure these are lowercased apart from documented special case user displayname. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(ldap): Fix user_ldap attribute casing to fix testsCôme Chilliet2024-08-271-3/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(user_ldap): Correctly cache that user exists to avoid a request on ↵Côme Chilliet2024-08-273-4/+1
| | | | | | mapping new user Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(user_ldap): Avoid extra LDAP request when mapping a user for the first timeCôme Chilliet2024-08-273-24/+133
| | | | | | | | Avoids using several LDAP searches to get UUID, display name and internal name, now gets all attributes at the same time. Also avoids extra request to build an unused user object in userExists. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-2523-72/+72
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Use cache in LDAP backend's checkPasswordAkhil2024-08-161-11/+9
| | | | Signed-off-by: Akhil <akhil@e.email>
* fix(LDAP): remove unneeded dependenciesArthur Schiwon2024-08-012-16/+0
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* refactor(user_ldap): Replace security annotations with respective attributesprovokateurin2024-07-272-19/+20
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix(db): Promote the use of `getDatabaseProvider` to reduce the impage of ↵Joas Schilling2024-07-191-2/+2
| | | | | | removed upstream platforms Signed-off-by: Joas Schilling <coding@schilljs.com>
* refactor: Use `IAppConfig` for setting cron typeFerdinand Thiessen2024-06-282-35/+20
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* feat(notifications): Migrate server INotifiers to new exceptionsJoas Schilling2024-06-251-3/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix: Only list remnants as disabled if option is enabledCôme Chilliet2024-06-061-0/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #45573 from nextcloud/chore/noid/spdx-batch9Andy Scherzinger2024-05-3087-1941/+242
|\ | | | | Add SPDX header - batch 9
| * chore: Add SPDX headerAndy Scherzinger2024-05-3087-1941/+242
| | | | | | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* | Merge pull request #36942 from nextcloud/unmark-login-dateJohn Molakvoæ2024-05-301-1/+6
|\ \
| * | fix: php lintJohn Molakvoæ2024-05-271-1/+1
| | | | | | | | | | | | Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
| * | unmark deleted users if their last login date is more recent than deleted dateRobin Appelman2024-05-271-1/+6
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Refactor `OC\Server::getAvatarManager` in user_ldap appAndrew Summers2024-05-301-1/+1
| |/ |/| | | | | | | | | Refactor `OC\Server::getAvatarManager` in user_ldap app (missed one) Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com>
* | feat(ldap): sync additional properties to profile and SABJake Nabasny2024-05-305-0/+73
|/ | | | | | | | | | | | | | | Synced from LDAP to profile: - Date of birth Synced from LDAP to SAB (via the profile): - Biography - Date of birth Original code by Jake Nabasny (GitHub: @slapcat) Co-authored-by: Jake Nabasny <jake@nabasny.com> Co-authored-by: Richard Steinmetz <richard@steinmetz.cloud> Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* fix: Also search in email field for disabled usersCôme Chilliet2024-05-231-1/+2
| | | | | | To match what is done for Database backend for enabled users Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* feat: Add back searching in disabled user listCôme Chilliet2024-05-232-3/+13
| | | | | | | | When disabled users where moved to their own endpoint we overlooked search, so adding it back. The search is done case-insensitive in uid and display name. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: add ldap_exop_passwd function to sensitive valueyemkareems2024-05-161-1/+1
| | | | Signed-off-by: yemkareems <yemkareems@gmail.com>
* fix: Avoid useless reference usage in user_ldapCôme Chilliet2024-04-303-2/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(user_ldap): Improve typing and fix a var nameCôme Chilliet2024-04-303-8/+14
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Fix newly spotted psalm issues, add exhaustive typed magic properties ↵Côme Chilliet2024-04-302-43/+141
| | | | | | for LDAP classes Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #44860 from nextcloud/fix/remove-unicode-logs-user-ldapCôme Chilliet2024-04-222-23/+23
|\ | | | | fix(user_ldap): Remove unicode character from log lines
| * fix(user_ldap): Remove unicode character from log linesCôme Chilliet2024-04-162-23/+23
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Merge pull request #44859 from nextcloud/feat/add-ldap-connection-setup-checkFerdinand Thiessen2024-04-182-0/+113
|\ \ | | | | | | feat(user_ldap): Add setup check to verify connection configuration
| * | feat(user_ldap): Add setup check to verify connection configurationCôme Chilliet2024-04-162-0/+113
| |/ | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Merge pull request #44658 from nextcloud/fix/migrate-away-from-resource-typeCôme Chilliet2024-04-1612-118/+75
|\ \ | |/ |/| fix: Remove obsolete resource typing
| * fix: Fix typing issues related to resource migrationCôme Chilliet2024-04-093-26/+1
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * fix: Add missing psalm-assert to isResourceCôme Chilliet2024-04-091-0/+1
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * fix: Fix small psalm errors in FTP and LDAP connectionsCôme Chilliet2024-04-091-2/+1
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * fix(user_ldap): Fix tests using wrong typesCôme Chilliet2024-04-091-1/+5
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * fix: Remove obsolete resource typingCôme Chilliet2024-04-0912-90/+68
| | | | | | | | | | | | In PHP>=8.1, LDAP and FTP resources are always typed objects Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | docs(LDAP): add info on stored DN formArthur Schiwon2024-04-052-0/+19
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | fix(LDAP): escape DN on check-userArthur Schiwon2024-04-051-1/+2
|/ | | | | | | the DN has to be escaped differently when used as a base and we were missing it here in the search method call in the check-user command. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fix: Apply new coding standard to all filesCôme Chilliet2024-04-027-27/+27
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(user_ldap): Early failure for empty password login attemptCôme Chilliet2024-03-061-7/+5
| | | | | | | | This avoids user_ldap logging about an invalid configuration with an empty password when the empty password actually comes from a login attempt. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #43764 from ↵Côme Chilliet2024-03-061-0/+4
|\ | | | | | | | | nextcloud/fix/user_ldap-ignore-unserialize-errors-in-migration fix(user_ldap): Ignore unserialize error in group membership migration
| * fix(user_ldap): Ignore unserialize error in group membership migrationCôme Chilliet2024-03-061-0/+4
| | | | | | | | | | | | | | The memberships will be checked by the background job later and data will be added to the table anyway. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | fix(user_ldap): Catch DB Exceptions when updating group membershipsCôme Chilliet2024-03-062-5/+88
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(migrations): Help developers to add description and copyright infoJoas Schilling2024-03-052-4/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #43461 from nextcloud/fix/get-rid-of-getloggerF. E Noel Nfebe2024-02-144-5/+10
|\ | | | | chore: Migrate away from OC::$server->getLogger