aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
| * chore: Migrate away from OC::$server->getLoggerCôme Chilliet2024-02-134-5/+10
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | feat: rename users to account or personVincent Petry2024-02-131-1/+1
|/ | | | | | Replace translated text in most locations Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Merge pull request #43387 from nextcloud/fix/migrate-away-from-ilogger-in-jobsCôme Chilliet2024-02-083-8/+9
|
* Revert "Merge branch 'master' of github.com:nextcloud/server"Louis Chemineau2024-02-083-9/+8
| | | | | This reverts commit d9d60238c7aaab9c61bf2d50c15aa59bc88c8975, reversing changes made to ba3fdb0cdcfbb84f0080a2146a4ba2f01569915d.
* fix!: Migrate jobs away from deprecated interfacesCôme Chilliet2024-02-083-8/+9
| | | | | | BREAKING CHANGE: Removed ILogFactory::getCustomLogger deprecated method Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Update apps/user_ldap/lib/Command/Search.phpFaraz Samapoor2024-02-061-1/+1
| | | | Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
* Refactors user_ldap app commands.Faraz Samapoor2024-02-0612-223/+143
| | | | | | | To improve code readability. Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com> Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
* chore: Replace OC::$server->getL10N by OCP\Util::getL10N in lib and some appsCôme Chilliet2024-02-051-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(user_ldap): Ensure host is a string when checking if `ldapi`Ferdinand Thiessen2024-01-261-1/+2
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore(deps): Update openapi-extractorprovokateurin2024-01-181-0/+2
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* Fix crash of login in case of duplicated group membershipCôme Chilliet2024-01-151-1/+1
| | | | | | | If several LDAP configurations return the same group id for a user it should still only appear once in the return of getUserGroups Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix upgrade of user_ldap when oc_group_members contains duplicated uidsCôme Chilliet2024-01-041-5/+13
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(LDAP): ensure stored groups are formatted as simple listArthur Schiwon2023-12-201-2/+2
| | | | | | | | | With array_unique it is possible that the keys are not in sequential order but have gaps. json_encode then would store them as associative array, which later on json_decode would result in a stdClass by default. This is unexpected and would also contradict the return type hint. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Merge pull request #40169 from nextcloud/enh/load-disabled-users-directlyPytal2023-12-012-2/+2
|\ | | | | enh(settings): Load from disabled users endpoint
| * Invert parameter order in getDisabledUserList to be consistentCôme Chilliet2023-11-302-2/+2
| | | | | | | | | | | | | | This matches what was done in the calls and so fixes getting disabled user list when there are several backends returning disabled users. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | feat(LDAP): warn about demoting a group while promoting anotherArthur Schiwon2023-12-011-8/+23
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | enh(LDAP): add occ command to promote an LDAP group to adminArthur Schiwon2023-12-011-0/+113
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | enh(LDAP): implement IIsAdmin interfaceArthur Schiwon2023-12-014-2/+27
|/ | | | | | | | - add configuration to specify one LDAP group acting as admin group (CLI) - implement `isAdmin()` method, basically relying on inGroup against the configured group Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-2324-103/+103
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* fix(LDAP): prevent incomplete displaynames…Arthur Schiwon2023-11-071-2/+2
| | | | | | … when reading users from primary groups or gidNumber-based groups Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Improve setup checks naming and improve database version checkCôme Chilliet2023-10-241-2/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Change SetupResult API to named constructorsCôme Chilliet2023-10-191-2/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Small cleanups in SetupCheck classesCôme Chilliet2023-10-191-8/+5
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix SetupChecks/LdapInvalidUuids.phpCôme Chilliet2023-10-191-12/+11
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* ProgressCarl Schwan2023-10-192-0/+66
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Merge pull request #40367 from nextcloud/fix/user_ldap-update-groups-on-loginCôme Chilliet2023-10-165-3/+184
|\ | | | | Fire group membership events from LDAP at login
| * Fix LDAP LoginListener by adding new group relationships to caches before ↵Côme Chilliet2023-10-123-3/+38
| | | | | | | | | | | | firing the event Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Fire group events at login for LDAP groupsCôme Chilliet2023-10-124-181/+145
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Add logging to be able to debug FirstLoginListenerCôme Chilliet2023-10-121-0/+21
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Move event listener registration to register()Côme Chilliet2023-10-121-12/+8
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Use a standard array for the stateful cacheCôme Chilliet2023-10-121-6/+18
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>