summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib
Commit message (Collapse)AuthorAgeFilesLines
* Avoid double ldap_unbind in Wizard.phpCôme Chilliet2022-10-111-1/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix code style with codesnifferCôme Chilliet2022-10-111-18/+18
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix typos in apps/ subdirectoryluz paz2022-09-055-10/+10
| | | | | | | Found via `codespell -q 3 -S l10n,./apps/files_external/3rdparty -L adn,ba,boxs,keypair,jus,optionel,ressource,tabel ./apps/` Signed-off-by: luz paz <luzpaz@github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Merge pull request #33047 from nextcloud/fix/ijob-logger-deprecatedCarl Schwan2022-08-231-4/+4
|\ | | | | Deprecated ILogger from IJob
| * Port existing server code to new interfaceCarl Schwan2022-08-081-4/+4
| | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Remove unused methodJoas Schilling2022-08-221-14/+0
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Fix plural usage in LDAP wizardJoas Schilling2022-08-221-13/+20
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Move CappedMemoryCache to OCPCarl Schwan2022-07-143-3/+3
| | | | | | | | This is an helpful helper that should be used in more place than just server and this is already the case with groupfodlers, deck, user_oidc and more using it, so let's make it public Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* simplify blizzz2022-06-281-1/+1
| | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de> Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
* delete groups in chunks instead of one by oneArthur Schiwon2022-06-281-5/+11
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* cleanup LDAP's UpdateGroupsArthur Schiwon2022-06-281-41/+43
| | | | | | | | | | | | | | - TimedJob from API - DI of config - property types - throws hints in phpdoc - argument and return types - replace depracet execute() with executeStatement or -Query - a missing return statement Co-authored-by: Carl Schwan <carl@carlschwan.eu> Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Fix profiler trying to serialize invalid utf8Carl Schwan2022-06-201-1/+9
| | | | | | | The cookie value contains invalid utf8 characters most of the time so let's just ignore it as it is also not that interesting to analyse. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Add stricter psalm type for CappedMemoryCacheCarl Schwan2022-05-123-52/+24
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Don't use slow hashing to check the LDAP bindingCarl Schwan2022-05-051-8/+3
| | | | | | | | | Using password_hash is expensive and should be used for hashing passwords when saving them in the database. Here we just want to see if the bind was already done with the given password, so use a fast hashing algorythm. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix createNamedParameter in LDAP migrationsJohn Molakvoæ2022-04-072-2/+2
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Merge pull request #31661 from ↵blizzz2022-04-055-21/+162
|\ | | | | | | | | nextcloud/enh/user_ldap-add-command-to-unmap-groups Add ldap:reset-group command to unmap groups from LDAP
| * Fix user_ldap unit testsCôme Chilliet2022-04-011-4/+3
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Add missing fileCôme Chilliet2022-04-011-0/+111
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Add type information to fix psalm errorCôme Chilliet2022-04-011-0/+1
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Add ldap:reset-group command to unmap groups from LDAPCôme Chilliet2022-04-014-18/+48
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Merge pull request #30823 from nextcloud/work/profilerCarl Schwan2022-04-042-9/+73
|\ \ | |/ |/| | | | | | | Built-in profiler This adds the required API for collecting information about requests. This information can then be displayed with the new 'profiler' app.
| * Add a built-in profiler inside NextcloudCarl Schwan2022-04-042-9/+73
| | | | | | | | | | | | The webui is provided by a seperate application named profiler Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Fix assignment of the LDAP Wizard connectionChristoph Wurst2022-03-311-1/+1
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Avoid updating _lastChange when nothing is changed in the configurationCôme Chilliet2022-03-313-3/+4
| | | | | | | | | | | | | | Had to set at least one var when creating an empty configuration in order to save the default values. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Do not update _lastChanged on auto-detected attributesCôme Chilliet2022-03-311-1/+5
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Use the new octetLength function to filter lines to migrateCôme Chilliet2022-03-301-8/+4
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Adapt max length limit in AbstactMapping to match databaseCôme Chilliet2022-03-301-2/+2
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | shrink ldap_dn column to 4000Arthur Schiwon2022-03-301-0/+117
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | limit ldap_dn columns to 4000Arthur Schiwon2022-03-303-6/+6
|/ | | | | | | - enlarging string cols from 255 to more than 4000 fails on default Oracle installations for invalid datatype conversion Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Add octetLength and charLength to function builder, and testsCôme Chilliet2022-03-241-2/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Use getLengthExpression to measure field length instead of likeCôme Chilliet2022-03-241-1/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* do not forget DB table prefix with truncate queryArthur Schiwon2022-03-181-1/+1
| | | | | | | | - as used in LDAP's AbstractMapping::clear() method - and in Comment's ManagerTest::setUp() - fixes a DB Exception with Oracle Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Merge pull request #31421 from ↵Côme Chilliet2022-03-177-222/+148
|\ | | | | | | | | nextcloud/fix/user_ldap-fix-ldap-connection-resets user_ldap fix ldap connection resets
| * Set $limit as int as well in Access::count private methodCôme Chilliet2022-03-081-8/+8
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Fix unit testsCôme Chilliet2022-03-035-19/+40
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Fix types in OCA\User_LDAP\ConfigurationCôme Chilliet2022-03-032-59/+31
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Remove redundant is_array checkCôme Chilliet2022-03-031-11/+9
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Improve typing in user_ldap to detect problems earlyCôme Chilliet2022-03-033-93/+40
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Fix executeRead when connection is reset because of a timeoutCôme Chilliet2022-03-031-36/+24
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Merge pull request #31542 from nextcloud/psalm-userCountsCarl Schwan2022-03-142-2/+6
|\ \ | | | | | | Fix psalm issue about userCounts
| * | Use "use" to import namespacesCarl Schwan2022-03-141-1/+3
| | | | | | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
| * | Fix psalm issue about userCountsCarl Schwan2022-03-112-2/+4
| | | | | | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | | Fix similar potential problems with fetchOne loopsCôme Chilliet2022-03-082-4/+4
| | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | Fix duplicated UUID detection when there are empty uuidsCôme Chilliet2022-03-081-1/+1
|/ / | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | code styleArthur Schiwon2022-03-031-2/+2
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | be conservative when reading from fresh created columnArthur Schiwon2022-03-031-3/+13
|/ | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Make it explicit that a DN can be used for ldap:check-userCôme Chilliet2022-02-172-4/+10
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Improve typing in apps/user_ldap/lib/Command/CheckUser.phpCôme Chilliet2022-02-171-12/+4
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Remove parenthesis around return in apps/user_ldap/lib/Command/CheckUser.phpCôme Chilliet2022-02-171-1/+1
| | | | | | Co-authored-by: Carl Schwan <carl@carlschwan.eu> Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix ldap:check-user method for newly created LDAP usersCôme Chilliet2022-02-171-15/+11
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>