aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib/Command/CheckUser.php
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Refactors user_ldap app commands.Faraz Samapoor2024-02-061-21/+15
| | | | | | | 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: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-231-9/+9
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* Make it explicit that a DN can be used for ldap:check-userCôme Chilliet2022-02-171-2/+8
| | | | 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>
* Ignore cache in occ ldap:check-ldap commandCôme Chilliet2021-11-221-1/+1
| | | | | | | | | This avoids having to wait or reset the cache after deleting a user in the LDAP. This also fixes a PHP error when running ldap:check-ldap --update on a deleted but cached user. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-1/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Also always return in app commandsJoas Schilling2020-06-261-2/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headers for 19Christoph Wurst2020-04-291-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* use serverControls directly with LDAP calls, fixes 19127Arthur Schiwon2020-04-141-1/+1
| | | | | | | | - adapters for PHP API version to Support PHP < 7.3 - switch to pass only one base per search - cookie logic is moved from Access to API adapters Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-4/+3
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix (array) indent style to always use one tabChristoph Wurst2020-04-091-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-051-1/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-221-4/+4
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* adds an --update flag to check-user for manual sync of the ldap recordArthur Schiwon2019-07-181-8/+38
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Update comments to NextcloudMorris Jobke2017-04-111-2/+2
| | | | | | | * based on PR by @Ardinis * see #4311 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix apps/Joas Schilling2016-07-211-2/+3
|
* Update license headersLukas Reschke2016-05-261-1/+2
|
* Move Helper to PSR-4Joas Schilling2016-05-251-2/+2
|
* Move lib\user to PSR-4Joas Schilling2016-05-251-2/+2
|
* Move User_LDAP and User_Proxy to PSR-4Joas Schilling2016-05-251-2/+2
|
* Move Command namespace to PSR-4Joas Schilling2016-05-251-0/+134