Morris Jobke
2ad2eb38e8
Use type casting instead of *val() method
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
8 years ago
Arthur Schiwon
b61b906abe
do not catch ServerNotAvailable
might cause the user to be unavailable (race condition).
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
8 years ago
Arthur Schiwon
59c05d5447
move LDAP user attributes "sync" to background (except for ajax jobs)
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
8 years ago
Morris Jobke
0eebff152a
Update license headers
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
8 years ago
Vinicius Cubas Brand
10ca793452
Plugins infrastructure in User_LDAP
Signed-off-by: Vinicius Cubas Brand <viniciuscb@gmail.com>
8 years ago
Arthur Schiwon
c9622ccb62
fix LDAP User deletion (cleanup)
discovered a bug in the integration test which lead to following a
different code path and giving a false-positive success feedback.
Also listens now to the evendispatcher instead of old hook system
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
8 years ago
Arthur Schiwon
ab92e2ee14
listen to deletion hooks for proper handling, adjust and add tests
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
9 years ago
Arthur Schiwon
efedc81c0a
simplify returning the homePath and fixing #4117
homesToKill was not set in runtime since some changes some place else. It
required deleteUser() to be called first. The method acts independent of it
now.
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
9 years ago
Morris Jobke
89a7b007f2
Fix comments
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
8 years ago
Morris Jobke
229d17e13b
Change LDAP method names
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
9 years ago
Morris Jobke
1729e4471f
Update comments to Nextcloud
* based on PR by @Ardinis
* see #4311
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
9 years ago
Roger Szabo
5e7723f15c
restore ldap_password_renew_pr
Signed-off-by: Roger Szabo <roger.szabo@web.de>
9 years ago
Arthur Schiwon
9983e05121
LDAP's checkPassword should only catch when a user was not found, fixes #2431
Also fixes error processing after ldap_search, due to different return format
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
9 years ago
Arthur Schiwon
1e5344ffe9
log exception about user not present on LDAP on login only if loglevel is set to debug
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
9 years ago
root
861c8572c0
restore ldap_password_pr
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>
9 years ago
Victor Dubiniuk
011d5f554c
Harden empty
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
9 years ago
Arthur Schiwon
a30341823e
cache loginName2UserName and cover the method with unit tests
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
9 years ago
Jörn Friedrich Dreyer
4d31caa6f8
fix a few minor code smells
9 years ago
Thomas Müller
1177c70b9d
[stable9.1] Fix undefined OfflineUser::composeAndStoreDisplayName() - fixes #23248
9 years ago
root
1c64ee67af
comments amended
9 years ago
root
02ec8b1726
New LDAPProvider for user_ldap
9 years ago
Joas Schilling
0215b004da
Update with robin
9 years ago
Joas Schilling
813f0a0f40
Fix apps/
9 years ago
felixboehm
e901ec4941
check if renamed user is still valid by reapplying the ldap filter ( #25338 )
10 years ago
Lukas Reschke
aba539703c
Update license headers
10 years ago
Joas Schilling
b616318327
Fix several minor issues
10 years ago
Joas Schilling
c807a26bd8
Move Access to PSR-4
10 years ago
Joas Schilling
02d5b75fb4
Move BackendUtility to PSR-4
10 years ago
Joas Schilling
3f5e76162d
Move lib\user to PSR-4
10 years ago
Joas Schilling
b7fa527791
Move User_LDAP and User_Proxy to PSR-4
10 years ago
Morris Jobke
e2748e4cbf
fix usage of legacy class in LDAP
10 years ago
Morris Jobke
62a59854f0
Fix LDAP race conditions
* getFromCache is wrapped in isCached
* inbetween the two calls the cache entry hits it's TTL
* getFromCache returns null
* this fix only checkes if the returned value is null and
return only non-null values
10 years ago
Arthur Schiwon
5d3183afcd
improve log output when no LDAP user was found on login attempt
10 years ago
Lukas Reschke
c353d51810
Remove Scrutinizer Auto Fixer
10 years ago
Lukas Reschke
933f60e314
Update author information
Probably nice for the people that contributed to 9.0 to see themselves in the AUTHORS file :)
10 years ago
Arthur Schiwon
c1871f5787
Port of test_ldap_2nddispname to master
10 years ago
Scrutinizer Auto-Fixer
83a8e75614
Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
10 years ago
Thomas Müller
682821c71e
Happy new year!
10 years ago
Arthur Schiwon
1ed6132899
LDAP: do not attempt to process user records without display name, fixes fatal error
10 years ago
Morris Jobke
553a981980
Make LDAP more robust to exceptions and log them properly
10 years ago
Arthur Schiwon
4020d5b77a
look for DN changes before marking a user as deleted
10 years ago
Arthur Schiwon
8c79300156
throw NoUserException in getHome when the requested user does not exist anymore
10 years ago
Renaud Fortier
f864b55323
Remove of useless code
10 years ago
Arthur Schiwon
a876efda50
treat dn as any other attribute when building the search() return array
10 years ago
Morris Jobke
b945d71384
update licence headers via script
10 years ago
Arthur Schiwon
9d03b7c6b7
read all relevant user attributes on login and user search, in one query. saves us some.
10 years ago
Renaud Fortier
3c53a0da27
if define, check the userfilter if the user is still allowed
10 years ago
Morris Jobke
0e922b1841
Only throw exception if on new LDAP setups
* this is done by setting enforce_home_folder_naming_rule for the user_ldap
app in the app settings
11 years ago
Morris Jobke
3fa6f6f77c
Hardening home folder retrieval in user_ldap
* if the home folder naming rule is specified it should not fallback
to the "use owncloud username as home folder" scenario
* this does not allow the mixed setup of users with the attribute
and some users without the attribute (which then would fallback to
"use owncloud username as home folder" rule) anymore
11 years ago
Lukas Reschke
af01958f3e
Add missing annotations for parameters
11 years ago