Éloi Rivard
6e2659ac54
LDAPObject refactorings
...
filter sets the LDAP attributes in .attrs
__init__ sets the LDAP attributes in .changes
2023-01-24 18:00:25 +01:00
Éloi Rivard
a0f3e951dc
LDAPObject delayed self.may and self.must initializations
2023-01-24 17:56:25 +01:00
Éloi Rivard
6ebc74ccaa
LDAPObject assumes every LDAP attribute is a list
2023-01-24 17:54:11 +01:00
Éloi Rivard
4f23dd07df
Fixed a misnamed variable in LDAPObject
2023-01-22 22:58:18 +01:00
Éloi Rivard
b7eb995d4f
Reorderded LDAPObject methods
2023-01-22 20:29:33 +01:00
Éloi Rivard
bb264fefa1
Avoid calls to ldap_object_attributes()
outside the ldap_backend
...
module.
2023-01-22 20:08:25 +01:00
Éloi Rivard
7cb2da3ca3
refactoring: start to split the canaille installation between submodules
2022-12-29 02:11:56 +01:00
Éloi Rivard
32f6595c02
objectClass is not mandatory for User and Group creation
2022-12-29 00:29:26 +01:00
Éloi Rivard
1efe6c8879
coverage: ignore some teardown branching
2022-12-27 22:16:21 +01:00
Éloi Rivard
234eeacb6a
ldapobject: minor refactoring
2022-12-27 21:10:53 +01:00
Éloi Rivard
45246c25aa
removed useless guards for LDAP timeout
2022-12-27 20:25:59 +01:00
Éloi Rivard
482f949c09
Fixed LDAP operational attributes handling
2022-12-15 12:41:31 +01:00
Éloi Rivard
7c6fd25524
Add nonce to the claims_supported server metadata list
2022-12-15 11:59:00 +01:00
Éloi Rivard
a39e76ee08
fix User and Group base dn
2022-12-15 11:53:51 +01:00
Éloi Rivard
eac4437351
unit tests: improved ldap utils coverage
2022-12-15 00:22:37 +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
42a0e3e3d8
extracted conversion utilities from LDAPObject class
2022-12-14 21:18:51 +01:00
Éloi Rivard
f9df8300ce
unit tests: ldap objects repr
2022-12-14 21:06:59 +01:00
Éloi Rivard
fda205cbf5
ldap_backend: improved coverage
2022-12-13 19:04:33 +01:00
Éloi Rivard
164d228980
Ignore untestable blocks
2022-12-10 01:11:33 +01:00
Éloi Rivard
62b62b684f
Fixed client preconsent disabling
2022-11-16 17:36:16 +01:00
Éloi Rivard
239cf6bcc7
Refactored LDAPObject
...
- delete attributes when value is [None]
- ability to set attributes other than those contained in MAY and MUST
because some operational attributes does not appear in those
- Make python datetime.min match the minimum LDAP date
- Use enums to store LDAP syntaxes
2022-11-15 12:33:45 +01:00
Éloi Rivard
660b143b45
LDAPObject: fixed a bug in python <-> ldap attributes conversion.
...
This should fix the CI.
2022-11-14 18:15:34 +01:00
Éloi Rivard
791e2c8362
LDAP backends loads the operational attributes when it reads an object in the directory
2022-11-01 21:05:36 +01:00
Éloi Rivard
659efaf7ef
Variable renaming
2022-10-21 17:03:38 +02:00
Éloi Rivard
95ec09fe54
Implemented RP-initiated logout
2022-06-02 17:56:10 +02: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
9a22352958
setup_ldap_models takes a config parameter instead of an app parameter
2022-05-18 13:44:54 +02:00
emillumine
ffd85e5ee0
remove commented code
2022-03-14 10:03:05 +01:00
emillumine
8d804616fd
add a 'all' utility class method to LDAPObject to retrieve all class instances
2022-03-14 10:03:05 +01:00
emillumine
da1b911172
set User.object_class and Group.object_class based on config when setting ldap models
...
permit filtering with object_class by default in User.filter() and Group.filter()
avoid having user/group base root in default filter results
2022-03-14 10:03:05 +01: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
07d1826905
Fixed some packaging issues
2022-03-08 19:22:52 +01:00
sblondon
3016f2504b
Fix: spellcheck configuration key
2022-03-01 18:55:02 +00:00
Éloi Rivard
a74d68aee1
AuthorizationCode and Token have a new id parameter
2022-02-16 18:00:30 +01:00
Éloi Rivard
1d0f1e2f24
LdapObject an have attribute name different than the schema
2022-01-18 18:04:25 +01:00