fix: gonna need an extra field that is stable

This commit is contained in:
silver 2023-06-15 02:45:13 +01:00
parent 6ddf3f2c2f
commit 564fe272b1
2 changed files with 8 additions and 2 deletions

View file

@ -161,7 +161,7 @@
active_directory = false; active_directory = false;
#base = "ou=users,${cfg.ldap.base}?sub?(|(skMemberOf=cn=skynet-users,ou=groups,${cfg.ldap.base}))"; #base = "ou=users,${cfg.ldap.base}?sub?(|(skMemberOf=cn=skynet-users,ou=groups,${cfg.ldap.base}))";
base = "ou=users,${cfg.ldap.base}"; base = "ou=users,${cfg.ldap.base}";
user_filter = "(skMemberOf=cn=skynet-users,ou=groups,${cfg.ldap.base})"; user_filter = "(skEnabled=TRUE)";
attributes = { attributes = {
username = "uid"; username = "uid";

View file

@ -36,10 +36,16 @@ olcAttributeTypes: ( 1.3.6.1.4.1.24441.1.6.1
EQUALITY caseIgnoreMatch EQUALITY caseIgnoreMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
) )
olcAttributeTypes: ( 1.3.6.1.4.1.24441.1.7.1
NAME 'skEnabled'
DESC 'TRUE/FALSE'
EQUALITY booleanMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.7
)
olcObjectClasses: ( 1.3.6.1.4.1.24441.1.1.1 olcObjectClasses: ( 1.3.6.1.4.1.24441.1.1.1
NAME 'skPerson' NAME 'skPerson'
DESC 'skynet person' DESC 'skynet person'
SUP top AUXILIARY SUP top AUXILIARY
MUST ( skMail $ skCreated ) MUST ( skMail $ skCreated $ skEnabled )
MAY ( skMemberOf $ skID $ skDiscord ) MAY ( skMemberOf $ skID $ skDiscord )
) )