Roeland Jago Douma
c6f6413bb1
Fix ldap tests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
7 years ago
Jarkko Lehtoranta
6a62b4784a
LDAP: Add testStartTlsNegotiationFailure unit test
Signed-off-by: Jarkko Lehtoranta <devel@jlranta.com>
7 years ago
Jarkko Lehtoranta
3a6511eac8
LDAP: Add testBindWithInvalidCredentials unit test
Signed-off-by: Jarkko Lehtoranta <devel@jlranta.com>
7 years ago
Jarkko Lehtoranta
97e14cccf2
LDAP: Fix testUseBackupServer unit test
Signed-off-by: Jarkko Lehtoranta <devel@jlranta.com>
7 years ago
Arthur Schiwon
a619d349bf
add convenience script to run all tests at once
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
7 years ago
Arthur Schiwon
f11d998371
Make IDE happy
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
7 years ago
Arthur Schiwon
10ef98a3b1
add missing INotificationManager when creating User backend, LDAP
UserManager
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
7 years ago
Arthur Schiwon
43f451e9e0
Fix usersInGroup retrieval
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
7 years ago
Xuanwo
8db21ad8c8
user_ldap: Add support for gidNumber
This patch is based on the work of @dleeuw (https://github.com/dleeuw )
(See https://github.com/nextcloud/server/issues/2640#issuecomment-269615883 for more details).
The difference is user & group data will be written into cache to have
better performance, and functions splited from primaryGroupID series to
make them more readable.
Fixed https://github.com/nextcloud/server/issues/2640
Signed-off-by: Xuanwo <xuanwo@yunify.com>
7 years ago
Morris Jobke
229d17e13b
Change LDAP method names
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
7 years ago
Morris Jobke
1729e4471f
Update comments to Nextcloud
* based on PR by @Ardinis
* see #4311
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
7 years ago
Roger Szabo
5fa218051b
unit test adjustment
Signed-off-by: Roger Szabo <roger.szabo@web.de>
7 years ago
Roger Szabo
0ea8729d1d
lower case for attributes
Signed-off-by: Roger Szabo <roger.szabo@web.de>
7 years ago
Roger Szabo
bd907a5dac
usertest adjustment
Signed-off-by: Roger Szabo <roger.szabo@web.de>
7 years ago
Roger Szabo
9ed4fb0494
usertest adjustment
Signed-off-by: Roger Szabo <roger.szabo@web.de>
7 years ago
Roger Szabo
5e7723f15c
restore ldap_password_renew_pr
Signed-off-by: Roger Szabo <roger.szabo@web.de>
7 years ago
Juan Pablo Villafáñez
4622bebded
Include tests for "default" and "none" quotas
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
7 years ago
Juan Pablo Villafáñez
ebd1a7d4b2
Add new testes to cover more cases
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
7 years ago
Juan Pablo Villafáñez
e9b96062e6
Adjust current tests to match the expectations
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
7 years ago
Morris Jobke
a5ba1f7803
Remove legacy class OC_Group and OC_User
* basically a straight replacement of the wrapped code at the calling code parts
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
7 years ago
Robert Scheck
25a2cb8c6e
Only request "IndexIgnore" if mod_autoindex is loaded
Signed-off-by: Robert Scheck <robert@fedoraproject.org>
7 years ago
Arthur Schiwon
ce97ab92c6
add tests to DB group
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
7 years ago
Arthur Schiwon
42ddb12fd9
Background jobs can take 4k of characters only. We find a good batch size.
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
7 years ago
Arthur Schiwon
497ee3e3e6
Add repair steps
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
7 years ago
Arthur Schiwon
45615cc940
add integration test for uuid attr detection
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
7 years ago
Arthur Schiwon
b740a21399
Fix integration test by not relying on Fake instances
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
7 years ago
Arthur Schiwon
03ae7b654f
Gracefully deny users or groups with too long DNs
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
7 years ago
Joas Schilling
95ef625a9d
Fix tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years ago
Joas Schilling
5812e99f1d
Fix app section tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years ago
Lukas Reschke
4c5e7d270a
Add tests
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
7 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>
7 years ago
Arthur Schiwon
a49d571799
fix and tidy up tests after merge conflicts
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
7 years ago
Victor Dubiniuk
c4fcd1f282
Update tests for phunit 5.5
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
7 years ago
Roeland Jago Douma
7d2f70ef72
Use more IConfig and add unit tests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
7 years ago
Roeland Jago Douma
bdf4bf4669
DI IConfig into ldap helper
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
7 years ago
Arthur Schiwon
a30341823e
cache loginName2UserName and cover the method with unit tests
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
7 years ago
Arthur Schiwon
979612fa08
get rid of test warnings
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
7 years ago
Joas Schilling
01cf85e4e5
Fix the User_LDAP app
7 years ago
Roeland Jago Douma
5fb2eee5df
Fix getMock user_ldap
7 years ago
Jörn Friedrich Dreyer
4d31caa6f8
fix a few minor code smells
8 years ago
Lukas Reschke
7ffb7b0d84
Use MockBuilder instead of createMock
CI uses an older PHPUnit
8 years ago
Lukas Reschke
8a7a0f3287
Add unit tests
8 years ago
root
bd65a17203
Nextcloud license header for new files
8 years ago
root
1c64ee67af
comments amended
8 years ago
root
32fb6beac3
final changes
8 years ago
Arthur Schiwon
686cb599b6
fix autoloading in LPAP integration tests, resolves #544
8 years ago
root
02ec8b1726
New LDAPProvider for user_ldap
8 years ago
Joas Schilling
813f0a0f40
Fix apps/
8 years ago
Aaron Wood
7c0de08cc4
Escape special characters (#25429)
* 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
8 years ago
Vincent Petry
059778bef0
Add unit test for LDAP multi group caching
8 years ago