Christoph Wurst
28f8eb5dba
Add visibility to all constants
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
6 years ago
Christoph Wurst
a7c8d26d31
Add visibility to all properties and move static keyword
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
6 years ago
Christoph Wurst
caff1023ea
Format control structures, classes, methods and function
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>
6 years ago
Christoph Wurst
14c996d982
Use elseif instead of else if
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
6 years ago
Christoph Wurst
afbd9c4e6e
Unify function spacing to PSR2 recommendation
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
6 years ago
Christoph Wurst
2fbad1ed72
Fix (array) indent style to always use one tab
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
6 years ago
Christoph Wurst
1a9330cd69
Update the license headers for Nextcloud 19
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
6 years ago
Christoph Wurst
b80ebc9674
Use the short array syntax, everywhere
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
6 years ago
Christoph Wurst
5bf3d1bb38
Update license headers
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
6 years ago
Arthur Schiwon
3372bcc7fc
fixes possible override of uniqueMember by autodetection
* uniqueMember was the default so we did not know whether this setting is
desired or the initial value
* autodetection of the user-group association attribute runs only when it
was not set (as far as we knew)
* the default is now empty
* thus LDAPProvider might return this value as well (in exceptional cases)
* if a group base is given (edge case), use this instead of general base
* resolves #12682
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
7 years ago
Arthur Schiwon
38a90130ce
move log constants to ILogger
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
8 years ago
Arthur Schiwon
16d4ff4d39
parameter provided to L10N::n() could have been a string
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
8 years ago
Morris Jobke
a661f043e1
Remove unneeded semicolon and parentheses
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
8 years ago
Morris Jobke
2ad2eb38e8
Use type casting instead of *val() method
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
8 years ago
Morris Jobke
c1e4f9f305
Use type casting instead of *val() method
It should be up to 6x faster
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
8 years ago
Morris Jobke
0eebff152a
Update license headers
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
8 years ago
Joas Schilling
45e2c415d4
Fix comparison in the ldap app
Signed-off-by: Joas Schilling <coding@schilljs.com>
9 years ago
Arthur Schiwon
9b2f171cbd
do not attempt to recognise cert issue by using LDAPTLS_REQCERT
first, it does not work (at least not everywhere/reliably), second if it
did it was not reset properly. Removes a bit of complexity.
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
9 years ago
Allan Nordhøy
ddc804aa32
: Bigversal and LDAP
9 years ago
Tobias Brunner
f8735a3205
recognize groupOfUniqueNames as valid LDAP group object
This was already partly done in f88109b but was missed in the
fetchGroups function.
9 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>
9 years ago
Victor Dubiniuk
011d5f554c
Harden empty
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
9 years ago
Roeland Jago Douma
bdf4bf4669
DI IConfig into ldap helper
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
9 years ago
Jörn Friedrich Dreyer
4d31caa6f8
fix a few minor code smells
10 years ago
Joas Schilling
0215b004da
Update with robin
10 years ago
Joas Schilling
813f0a0f40
Fix apps/
10 years ago
Robin Appelman
81d4d85803
add groupOfUniqueNames as valid group object class
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
aa7b600383
Move Configuration to PSR-4
10 years ago
Joas Schilling
7db6b487f5
Move Helper to PSR-4
10 years ago
Joas Schilling
391531851c
Move interface to PSR-4
10 years ago
Joas Schilling
5b3087d375
Move LDAP Utility to PSR-4
10 years ago
Joas Schilling
d4e828f39e
Move wizard
10 years ago
Stefan Weil
16df1c5188
apps: Fix typos (found by codespell) ( #23862 )
Signed-off-by: Stefan Weil <sw@weilnetz.de>
10 years ago
Lukas Reschke
c353d51810
Remove Scrutinizer Auto Fixer
10 years ago
Thomas Müller
682821c71e
Happy new year!
10 years ago
Arthur Schiwon
a32b002cff
always use an LDAP URL when connecting to LDAP
11 years ago
Arthur Schiwon
8eeaf11d41
add port to host only, if an URL is used instead of a plain hostname
10 years ago
Arthur Schiwon
16aa339475
add method to count users by loginname and use it for diagnose test, fixes #20151
10 years ago
Arthur Schiwon
dd2e887a8d
adjust handling changed return array structure from search() and fetchList()
10 years ago
Arthur Schiwon
4a5cecd6fa
allow an attribute to return more than one value
10 years ago
Morris Jobke
b945d71384
update licence headers via script
10 years ago
Arthur Schiwon
353a8e442f
fix possible infinite loop when reading groups in the wizard
10 years ago
Arthur Schiwon
6d06d1c5a4
LDAP Wizard: do not be picky about credentials when only looking for the port
10 years ago
Nicolas Grekas
472d48f6e3
Do not use OC*::mb_*_replace(), they are useless
11 years ago
Arthur Schiwon
6f69fab384
port detection needs to take care of now thrown exceptions when LDAP server is not available
11 years ago
Arthur Schiwon
91841bb25d
Implement a faster way for checking availability of memberOf. Users tab in the wizard benefits.
11 years ago
Arthur Schiwon
cdb0689334
handle unallowed auth exception on port detection
11 years ago