correction with userdn

This commit is contained in:
Emmanuel Garette 2022-10-01 19:16:07 +02:00
parent 1a3d562829
commit 30b4e12ae8
2 changed files with 2 additions and 2 deletions

View file

@ -6,7 +6,7 @@ from json import load as _load, dump as _dump
from os.path import dirname as _dirname, abspath as _abspath, join as _join, isfile as _isfile from os.path import dirname as _dirname, abspath as _abspath, join as _join, isfile as _isfile
_HERE = _dirname(_abspath(__main__.__file__)) _HERE = _dirname(_dirname(_abspath(__main__.__file__)))
_SSHA_PASSWORD_DIR = _join(_HERE, 'password', 'ssha.json') _SSHA_PASSWORD_DIR = _join(_HERE, 'password', 'ssha.json')

View file

@ -19,7 +19,7 @@ userPassword:: %%ssha_encode(%%password)
%end for %end for
# Users # Users
%set %%userdn = 'cn=' + %%username + ',' + %%ldapclient_base_dn %set %%userdn = 'cn=' + %%username + ',' + %%calc_ldapclient_base_dn(%%ldapclient_base_dn)
%set %%userfamilydn = 'cn=' + %%username_family + ',' + %%calc_ldapclient_base_dn(%%ldapclient_base_dn, family_name=%%name_family) %set %%userfamilydn = 'cn=' + %%username_family + ',' + %%calc_ldapclient_base_dn(%%ldapclient_base_dn, family_name=%%name_family)
%set %%acc = [(%%userdn, %%username, ['alias_' + %%username]), %set %%acc = [(%%userdn, %%username, ['alias_' + %%username]),
(%%userfamilydn, %%username_family, ['alias_' + %%username_family]), (%%userfamilydn, %%username_family, ['alias_' + %%username_family]),