aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib/LDAP.php
Commit message (Collapse)AuthorAgeFilesLines
* chore: Add SPDX headerAndy Scherzinger2024-05-301-30/+4
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix: add ldap_exop_passwd function to sensitive valueyemkareems2024-05-161-1/+1
| | | | Signed-off-by: yemkareems <yemkareems@gmail.com>
* fix: Avoid useless reference usage in user_ldapCôme Chilliet2024-04-301-0/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Remove obsolete resource typingCôme Chilliet2024-04-091-1/+1
| | | | | | In PHP>=8.1, LDAP and FTP resources are always typed objects Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-231-2/+2
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* Do not log passwords in debug modeAnna Larch2023-08-241-0/+9
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* Refactors "strpos" calls in /apps/user_ldap to improve code readability.Faraz Samapoor2023-06-021-1/+1
| | | | Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
* Do not send a pagination control with size = 0 if cookie is emptyCôme Chilliet2023-03-131-9/+13
| | | | | | | It only makes sense to send a pagination control with size 0 with a cookie to abandon a paged search. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge branch 'master' into ldapi-unix-socket-supportCôme Chilliet2022-11-221-80/+79
|\ | | | | Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
| * Add backtrace to ldap profiler collectorCarl Schwan2022-10-201-1/+2
| | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
| * Cleanup typing and improve loggingCôme Chilliet2022-10-201-43/+47
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Fix ldap_parse_result callCôme Chilliet2022-10-201-4/+13
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Pass paging information directly to search and get rid of adapterCôme Chilliet2022-10-201-16/+11
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Unfold call to ldap_parse_result. Handle cookie outside of adapter.Côme Chilliet2022-10-201-13/+17
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Remove useless getReadArgs/setReadArgs methods from PagedResultsCôme Chilliet2022-10-201-2/+1
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Remove dead code in paged result handlingCôme Chilliet2022-10-201-14/+1
| | | | | | | | | | | | | | There is only one paged result API now that PHP 7.2 is long dead. Starting by removing empty function calls. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Add ldap-unix-socket support - squashed commits to files Connection.php, ↵Vincent Van Houtte2022-09-091-1/+1
|/ | | | | | Configuration.php, Wizard.php, LDAP.php and view.js Signed-off-by: Vincent Van Houtte <vvh@aplusv.be>
* 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 a built-in profiler inside NextcloudCarl Schwan2022-04-041-9/+23
| | | | | | The webui is provided by a seperate application named profiler Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Merge pull request #30299 from nextcloud/fix/log_filesJohn Molakvoæ2021-12-201-1/+1
|\
| * Check if directoy is writable instead of possibly missing fileCarl Schwan2021-12-201-1/+1
| | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Fix PHP 8.1 support for user_ldap applicationCôme Chilliet2021-12-161-68/+24
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Allow to log DB, redis and LDAP requests into filesJoas Schilling2021-12-011-1/+15
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-1/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* removes PagedResults adapter for PHP < 7.3Arthur Schiwon2021-04-261-6/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Update license headersChristoph Wurst2020-12-301-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #22916 from J0WI/unifiy-links-to-php.netRoeland Jago Douma2020-12-221-1/+1
|\ | | | | Unify links to php.net
| * Unify links to php.netJ0WI2020-09-171-1/+1
| | | | | | | | | | | | Update all links to https://www.php.net/ Signed-off-by: J0WI <J0WI@users.noreply.github.com>
* | Format code to a single space around binary operatorsChristoph Wurst2020-10-051-1/+1
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headers for 19Christoph Wurst2020-04-291-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* PHP-CS-Fixer greenRoeland Jago Douma2020-04-161-2/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* use serverControls directly with LDAP calls, fixes 19127Arthur Schiwon2020-04-141-18/+47
| | | | | | | | - 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-11/+11
| | | | | | | | | | | | | | | 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>
* Use elseif instead of else ifChristoph Wurst2020-04-101-8/+8
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the short array syntax, everywhereChristoph Wurst2020-03-261-3/+3
| | | | 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>
* LDAP Password Modify Extended Operation supportPeter Kubica2019-03-191-0/+11
| | | | Signed-off-by: Peter Kubica <peter@kubica.ch>
* avoid logging of "Partial search results returned: Sizelimit exceeded at"Arthur Schiwon2018-11-071-1/+17
| | | | | | | LDAP servers respond with that even if a limit was passed with the request. Having this statement logged causes a lot of confusion. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* functions that were checked for are present since PHP 5.4, supported is >=/Arthur Schiwon2018-10-251-10/+0
| | | | | | | * so the check from older days is really not necessary anymore * resolves #10923 Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* throw ServerNotAvailableException when LDAP is caught shutting downArthur Schiwon2018-01-021-7/+10
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fix phpdoc return types (no code change)Arthur Schiwon2017-07-211-2/+2
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* LDAP's checkPassword should only catch when a user was not found, fixes #2431Arthur Schiwon2017-01-301-28/+82
| | | | | | Also fixes error processing after ldap_search, due to different return format Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Add testsLukas Reschke2016-11-231-1/+1
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* restore ldap_password_prroot2016-11-231-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Roger Szabo <roger.szabo@web.de> remove notification part Signed-off-by: Roger Szabo <roger.szabo@web.de> blizzz comments Signed-off-by: Roger Szabo <roger.szabo@web.de> morris comment Signed-off-by: Roger Szabo <roger.szabo@web.de> improved error message for changing password Signed-off-by: Roger Szabo <roger.szabo@web.de> blizz comments 20161013 Signed-off-by: Roger Szabo <roger.szabo@web.de> Signed-off-by: Roger Szabo <roger.szabo@web.de> Adjust HintException usage Signed-off-by: Roger Szabo <roger.szabo@web.de> Signed-off-by: Roger Szabo <roger.szabo@web.de>
* fix a few minor code smellsJörn Friedrich Dreyer2016-08-291-0/+1
|
* Fix apps/Joas Schilling2016-07-211-2/+3
|
* Update license headersLukas Reschke2016-05-261-2/+3
|
* Move interface to PSR-4Joas Schilling2016-05-251-1/+0
|