summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib
Commit message (Collapse)AuthorAgeFilesLines
* Allow to set a custom timeout for ldap connectionsLouis Chemineau2022-11-302-0/+7
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* [LDAP] always create instance of own user managerArthur Schiwon2022-11-131-0/+27
| | | | | | | | - it is config specific and cannot be shared - because the Access instance is bound later, it is not obvious from the constructor Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Avoid double ldap_unbind in Wizard.phpCôme Chilliet2022-11-031-1/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix code style with codesnifferCôme Chilliet2022-11-031-18/+18
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Expose mapped user count from LDAP and use that for user limit checkCôme Chilliet2022-10-252-3/+24
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Get rid of calls to OCP\Server which is not available is 24Côme Chilliet2022-10-244-13/+11
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* [LDAP] throw exception only against prov apiArthur Schiwon2022-10-241-1/+20
| | | | | | | - unbreaks functionality for end users when on demand mapping takes place Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* LDAP to no register new users when outside of fair use or over limitsArthur Schiwon2022-10-246-38/+102
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Remove unused methodJoas Schilling2022-08-241-14/+0
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix plural usage in LDAP wizardJoas Schilling2022-08-241-13/+20
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* 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>
* 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>
* Merge pull request #31073 from nextcloud/fix/user_ldap-fix-access-typingVincent Petry2022-02-103-69/+47
|\ | | | | Improve typing in OCA\User_LDAP\Access and reduce psalm errors
| * Remove mixed type not available in PHP 7.4Côme Chilliet2022-02-081-3/+3
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>