Éloi Rivard
e2b96af1ee
Moved LDAP configuration entry to BACKENDS.LDAP
2023-04-10 20:31:54 +02:00
Éloi Rivard
65efece01e
Renamed LDAPObject.initialize in LDAPObject.install
2023-04-09 23:17:24 +02:00
Éloi Rivard
08f8bfbfdb
Moved user and group management in the core submodule
2023-04-09 13:34:38 +02:00
Éloi Rivard
b413344385
Properly delete users in ldap unit tests
2023-04-08 20:14:30 +02:00
Éloi Rivard
087ec1ef58
Fixed remaining ldap attribute calls
2023-04-07 22:38:01 +02:00
Éloi Rivard
db3a4a74ff
Renamed user attributes to match SCIM naming convention
2023-04-07 20:12:24 +02:00
Éloi Rivard
61940844e6
Properly handle LDAP date timezones
2023-03-18 00:39:32 +01:00
Éloi Rivard
6474d39fac
Removes useless tests initializations
2023-03-12 20:18:49 +01:00
Éloi Rivard
fb1c6446fa
Users can only search other users based on the fields they can read or write
2023-03-12 19:04:39 +01:00
Éloi Rivard
822988536d
LDAPObject can have several objectClass
2023-03-11 19:46:12 +01:00
Éloi Rivard
3406428f13
Renamed group attributes to match SCIM naming convention
2023-03-11 12:54:27 +01:00
Éloi Rivard
971cf317c9
Used 'id' instead of 'dn'
2023-03-10 18:14:15 +01:00
Éloi Rivard
fbf449edd6
LDAPObject fuzzy search
2023-03-09 19:31:59 +01:00
Éloi Rivard
091270df53
LDAPObject pagination performance improvements
...
Creates a LDAPObjectQuery class that is returned by LDAPObject.filter
This avoids to create objects for each ldap result, but only for the
asked slice. It also store the whole results length so `len` calls are
a bit faster.
2023-03-09 19:31:59 +01:00
Éloi Rivard
990c624c32
Save one LDAP connection when calling save()
2023-03-09 13:00:17 +01:00
Éloi Rivard
d0f6c341f3
LDAPObject refactoring
2023-03-09 01:14:07 +01:00
Éloi Rivard
53581404ab
LDAPObject dn attributes are automatically initialized
2023-03-08 23:53:53 +01:00
Éloi Rivard
d201d6f617
Lazy conversion of LDAP to python format for LDAPObject attributes
2023-03-08 18:54:27 +01:00
Éloi Rivard
7e42467bfc
Renamed LDAPObject.rdn in LDAPObject.rdn_attribute
2023-03-08 18:50:33 +01:00
Éloi Rivard
c5b11d2fb3
Merge LDAPObject.all and LDAPObject.filter in LDAPObject.query
2023-03-07 17:58:27 +01:00
Éloi Rivard
32f6595c02
objectClass is not mandatory for User and Group creation
2022-12-29 00:29:26 +01:00
Éloi Rivard
482f949c09
Fixed LDAP operational attributes handling
2022-12-15 12:41:31 +01:00
Éloi Rivard
2773f1c34c
unit tests: ldap filter tests
2022-12-15 00:15:10 +01:00
Éloi Rivard
a621fc1163
unit tests: ldap utils
2022-12-15 00:03:01 +01:00
Éloi Rivard
f9df8300ce
unit tests: ldap objects repr
2022-12-14 21:06:59 +01:00
Éloi Rivard
1f3a29ddeb
unit tests: ldap domain is dc=mydomain,dc=tld
2022-11-05 19:52:57 +01:00
Éloi Rivard
11a750d238
Refactored tests so ldap connection is not a mandatory argument anymore for most LDAPObject methods
2022-05-18 16:55:37 +02:00
Éloi Rivard
d976d47b1a
Test refactoring
2022-05-18 11:31:26 +02:00
emillumine
653e79d7a8
fix dn in case of leading space or special char in id attribute
...
according to openldap doc, the default is to silently eliminate spaces around AVA separators, RDN component separators and RDN separators
https://www.openldap.org/software/man.cgi?query=ldap_str2dn
2022-03-14 10:03:05 +01:00
Éloi Rivard
16d2d71194
split oidc tests from the rest
2022-01-11 19:42:26 +01:00