summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib
Commit message (Collapse)AuthorAgeFilesLines
* Remove redundant cast to string in user_ldapCôme Chilliet2023-01-021-2/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix psalm spotted errors with new requirementsCôme Chilliet2023-01-021-7/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #35839 from nextcloud/feat/user_ldap-longer-ttl-for-fallbackVincent Petry2022-12-201-4/+5
|\ | | | | Apply a longer TTL of 15min to falling back on backup server
| * Apply a longer TTL of 15min to falling back on backup serverCôme Chilliet2022-12-201-4/+5
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Merge pull request #34772 from nextcloud/fix/clean-ldap-access-factory-usageCôme Chilliet2022-12-208-69/+59
|\ \ | |/ |/| Make sure to use AccessFactory to create Access instances and use DI
| * Merge branch 'master' into fix/clean-ldap-access-factory-usageCôme Chilliet2022-11-217-111/+156
| |\ | | | | | | Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
| * | Fix return type for countUsers methodCôme Chilliet2022-10-254-10/+9
| | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | Make sure to use AccessFactory to create Access instances and use DICôme Chilliet2022-10-255-60/+51
| | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | Fixed backup host logicCôme Chilliet2022-12-191-26/+24
| | | | | | | | | | | | | | | | | | | | | Now forcing backup host applies to both main and background. And background will fallback to backup if not responding. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | Make code clearer for background hostCôme Chilliet2022-12-191-8/+8
| | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | Use a dedicated LDAP host and port for background jobs if configuredCôme Chilliet2022-12-192-6/+18
| | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | Merge pull request #35231 from ↵Côme Chilliet2022-12-191-7/+14
|\ \ \ | | | | | | | | | | | | | | | | nextcloud/fix/user_ldap-cache-fetched-list-of-groups Cache the fetched list of groups
| * | | Cache the fetched list of groupsCôme Chilliet2022-11-171-7/+14
| | |/ | |/| | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | Merge pull request #24574 from zenlord/ldapi-unix-socket-supportCôme Chilliet2022-12-084-74/+102
|\ \ \ | | | | | | | | Ldapi unix socket support
| * | | Merge branch 'master' into ldapi-unix-socket-supportCôme Chilliet2022-11-2219-809/+570
| |\| | | | | | | | | | Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
| * | | Add ldap-unix-socket support - squashed commits to files Connection.php, ↵Vincent Van Houtte2022-09-094-65/+93
| | | | | | | | | | | | | | | | | | | | | | | | Configuration.php, Wizard.php, LDAP.php and view.js Signed-off-by: Vincent Van Houtte <vvh@aplusv.be>
* | | | Use TimedJob from OCP instead of OCCôme Chilliet2022-12-051-2/+8
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | | Merge pull request #35355 from nextcloud/artonge/feat/ldap_connection_timeoutblizzz2022-11-302-0/+7
|\ \ \ \ | | | | | | | | | | Allow to set a custom timeout for ldap connections
| * | | | Allow to set a custom timeout for ldap connectionsLouis Chemineau2022-11-232-0/+7
| | |/ / | |/| | | | | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* | | | Merge pull request #35230 from nextcloud/fix/user_ldap-log-backup-switchCôme Chilliet2022-11-241-7/+12
|\ \ \ \ | | | | | | | | | | Log switching to LDAP backup host because main one is not available
| * | | | Improve a bit codestyleCôme Chilliet2022-11-221-3/+2
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | | | Log as warning instead of info when main LDAP server is unreachableCôme Chilliet2022-11-211-1/+1
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | | | Log switching to LDAP backup host because main one is not availableCôme Chilliet2022-11-171-5/+11
| |/ / / | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* / / / Cache display name even if it was not filledCôme Chilliet2022-11-171-3/+4
|/ / / | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | [LDAP] always create instance of own user managerArthur Schiwon2022-11-101-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>
* | | Merge pull request #34702 from nextcloud/fix/clean-ldap-wizard-typingVincent Petry2022-11-042-106/+101
|\ \ \ | | | | | | | | Clean up LDAP Wizard typing
| * | | Fix $host var handling to avoid passing null to ldap_connectCôme Chilliet2022-10-251-2/+2
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | | Clean up LDAP Wizard typingCôme Chilliet2022-10-202-104/+99
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | | Merge pull request #34691 from nextcloud/profiler/ldap-backtraceCarl Schwan2022-10-252-2/+4
|\ \ \ \ | | | | | | | | | | Add backtrace to ldap profiler collector
| * | | | Add backtrace to ldap profiler collectorCarl Schwan2022-10-202-2/+4
| |/ / / | | | | | | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | | / Expose mapped user count from LDAP and use that for user limit checkCôme Chilliet2022-10-242-3/+24
| |_|/ |/| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | Merge pull request #33945 from nextcloud/fix/noid/fair-use-ldapSimon L2022-10-216-38/+121
|\ \ \ | |/ / |/| | LDAP to not register new users when outside of fair use or over limits
| * | [LDAP] throw exception only against prov apiArthur Schiwon2022-10-181-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-186-38/+102
| | | | | | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | | Merge pull request #30223 from nextcloud/nested_ldap_groupsCôme Chilliet2022-10-203-194/+160
|\ \ \ | | | | | | | | Nested ldap groups
| * | | Fix psalmCarl Schwan2022-10-201-1/+4
| | | | | | | | | | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
| * | | Check if cache is present with issetCarl Schwan2022-10-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Otherwise we get false for empty array Signed-off-by: Carl Schwan <carl@carlschwan.eu>
| * | | Bring back small fixes by CarlCôme Chilliet2022-10-201-8/+6
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | | Fix LDAP recursive nested group supportCôme Chilliet2022-10-201-4/+7
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | | Revert Carl changes on apps/user_ldap/lib/Group_LDAP.phpCarl Schwan2022-10-201-27/+12
| | | | | | | | | | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
| * | | Fix user_ldap testsCarl Schwan2022-10-202-14/+14
| | | | | | | | | | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
| * | | Add back runtime cache for intermediate ldap read resultsCarl Schwan2022-10-201-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | This is a small optimization that save a few LDAP queries Signed-off-by: Carl Schwan <carl@carlschwan.eu>
| * | | Only cache base inGroup searchCarl Schwan2022-10-201-8/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | And not intermediate search for nested groups, this is causing issues othewise with nested groups Signed-off-by: Carl Schwan <carl@carlschwan.eu>
| * | | Add missing copyright author in Group_LDAPCôme Chilliet2022-10-201-0/+1
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | | Removed unused use declarationCôme Chilliet2022-10-201-1/+0
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | | Fix types in docblocksCôme Chilliet2022-10-201-0/+1
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | | Refactor group membership listing for nested groupsCôme Chilliet2022-10-201-147/+67
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | | Small optimisation of _groupMembersCôme Chilliet2022-10-201-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This will not change the result as users are check to be existing afterwards but avoids this check when we know it’s a group. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | | Refactor _groupMembers to correctly use cache on intermediate resultsCôme Chilliet2022-10-201-35/+28
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | | Fix merging list with nullCarl Schwan2022-10-201-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes some cases observed with the debugger where we end up merging a non empty list with null. The result is then null and the looping over the items would then end. Signed-off-by: Carl Schwan <carl@carlschwan.eu>