aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib/Access.php
Commit message (Collapse)AuthorAgeFilesLines
* Remove unneeded semicolon and parenthesesMorris Jobke2018-01-261-3/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use type casting instead of *val() methodMorris Jobke2018-01-261-15/+15
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* do not catch ServerNotAvailableArthur Schiwon2018-01-261-0/+3
| | | | | | might cause the user to be unavailable (race condition). Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Cleanup OC_User and OCP\UserMorris Jobke2018-01-161-2/+2
| | | | | | * mainly removes deprecated methods and old static code Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* revert resolving of recursion (3628d4d65d67d12afc93d969de61cb06a33179fd)Arthur Schiwon2018-01-111-5/+2
| | | | | | | | without recursion we have issues with internal states. paged search status are set to false, cookies are not being set. In the end we have endless requests which pile up enormously with a high initial offset. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* enrich log message with backtrace, but level it down to DEBUGArthur Schiwon2018-01-111-3/+3
| | | | | | | The message is not helpful anyway for an admin, and oftentimes is just valid (e.g. when searching with an offset beyond users in LDAP). Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* don't show recurring msg when pages result was turned offArthur Schiwon2017-12-211-2/+5
| | | | | | and only as debug level otherwise. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Fixes hex2bin() in LDAPMorris Jobke2017-12-131-5/+7
| | | | | | Untangles the two if-else clauses into a more readable format. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* don't cache user, if no internal user id was retrieved/assignedArthur Schiwon2017-12-071-7/+10
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* ensure that users are cached when they are retrievedArthur Schiwon2017-12-071-6/+11
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* resolve DIArthur Schiwon2017-11-091-7/+7
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* move LDAP user attributes "sync" to background (except for ajax jobs)Arthur Schiwon2017-11-091-23/+49
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* don't skip updating when ajax is set as background job modeArthur Schiwon2017-11-091-4/+15
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* move ldap user sync to background (WIP)Arthur Schiwon2017-11-091-15/+19
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Update license headersMorris Jobke2017-11-061-1/+4
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* avoid unnecessary recursionArthur Schiwon2017-10-251-10/+9
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fix counting found results in search opArthur Schiwon2017-09-141-3/+6
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fix limit-flaw in search on paged resultsArthur Schiwon2017-09-141-8/+8
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* suppress superflous php error on rejected password changeRoger Szabo2017-06-301-1/+1
| | | | Signed-off-by: Roger Szabo <roger.szabo@web.de>
* fix pagingArthur Schiwon2017-05-261-3/+4
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* make sure used ldap connection resource is always up to dateArthur Schiwon2017-05-251-6/+8
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* moved to something a little less invasive. back to passing CR around.bline2017-05-251-36/+40
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* special case for controlPagedResultResponse. It would be nice if there was a ↵bline2017-05-251-33/+78
| | | | | | generic way to pass by reference with call_user_func_array.. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Merge pull request #1023 from GitHubUser4234/ldap_password_renew_prblizzz2017-04-241-1/+1
|\ | | | | Handle password expiry in user_ldap
| * blizzz comments 03.04.2017Roger Szabo2017-04-061-1/+1
| | | | | | | | Signed-off-by: Roger Szabo <roger.szabo@web.de>
* | Change LDAP method namesMorris Jobke2017-04-121-11/+11
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Update comments to NextcloudMorris Jobke2017-04-111-24/+24
|/ | | | | | | * based on PR by @Ardinis * see #4311 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove legacy class OC_Group and OC_UserMorris Jobke2017-03-091-2/+2
| | | | | | * basically a straight replacement of the wrapped code at the calling code parts Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix determining the UUID attribute, default of the override is nullArthur Schiwon2017-02-171-1/+1
| | | | 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-4/+0
| | | | | | Also fixes error processing after ldap_search, due to different return format Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Gracefully deny users or groups with too long DNsArthur Schiwon2017-01-251-0/+3
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* adjust: sanitizeDN resides in HelperArthur Schiwon2016-12-051-1/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Extract lowercase conversion out of the loopJuan Pablo Villafáñez2016-12-051-1/+2
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* range support for LDAP read operationsArthur Schiwon2016-12-051-22/+121
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Add testsLukas Reschke2016-11-231-0/+3
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* restore ldap_password_prroot2016-11-231-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* Merge branch 'master' into downstream-ldap-3Arthur Schiwon2016-10-161-1/+0
|\ | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * symfony replaced table helper by class, fixes two broken LDAP occ commandsArthur Schiwon2016-10-121-1/+0
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Harden emptyVictor Dubiniuk2016-10-131-11/+15
|/ | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* cache loginName2UserName and cover the method with unit testsArthur Schiwon2016-10-071-0/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fix a few minor code smellsJörn Friedrich Dreyer2016-08-291-2/+1
|
* New LDAPProvider for user_ldaproot2016-07-221-59/+14
|
* Fix apps/Joas Schilling2016-07-211-2/+4
|
* Escape special characters (#25429)Aaron Wood2016-07-201-1/+1
| | | | | | | | | | | | | | | | | | * Escape LIKE parameter * Escape LIKE parameter * Escape LIKE parameter * Escape LIKE parameter * Escape LIKE parameter * Use correct method in the AbstractMapping class * Change the getNamesBySearch method so that input can be properly escaped while still supporting matches * Don't escape hardcoded wildcard
* Fix null pointer exception in user_ldap (#25062)Jörn Friedrich Dreyer2016-06-211-1/+8
|
* Update license headersLukas Reschke2016-05-261-3/+3
|
* Fix several minor issuesJoas Schilling2016-05-251-2/+2
|
* Move Access to PSR-4Joas Schilling2016-05-251-0/+1762