2022-03-15 12:12:09 +01:00
|
|
|
# Remote
|
|
|
|
%for %%remote in %%accounts.remotes
|
|
|
|
%set %%name = %%normalize_family(%%remote)
|
|
|
|
dn: %%accounts['remote_' + %%name]['dn_' + %%name]
|
|
|
|
changetype: modify
|
|
|
|
replace: userPassword
|
|
|
|
userPassword:: %%ssha_encode(%%accounts['remote_' + %%name]['password_' + %%name])
|
|
|
|
|
|
|
|
%end for
|
2022-05-04 10:29:03 +02:00
|
|
|
## Users
|
|
|
|
#%for %%user in %%accounts.users.ldap_user_mail
|
|
|
|
#dn: cn=%%user,ou=users,%%ldap_base_dn
|
|
|
|
#changetype: modify
|
|
|
|
#replace: homeDirectory
|
|
|
|
#homeDirectory: /srv/home/users/%%user
|
|
|
|
#
|
|
|
|
#%end for
|
|
|
|
## Families
|
|
|
|
#%for %%family in %%accounts.families
|
|
|
|
# %for %%user in %%accounts['family_' + %%family]['users_' + %%family]['ldap_user_mail_' + %%family]
|
|
|
|
#dn: cn=%%user,ou=%%family,ou=families,%%ldap_base_dn
|
|
|
|
#replace: homeDirectory
|
|
|
|
#homeDirectory: /srv/home/families/%%family/%%user
|
|
|
|
#
|
|
|
|
# %end for
|
|
|
|
#%end for
|