26 lines
770 B
Text
26 lines
770 B
Text
# 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
|
|
## 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
|