forked from stove/dataset
40 lines
1.8 KiB
YAML
40 lines
1.8 KiB
YAML
%set %%username = "rougail_test@silique.fr"
|
|
%set %%username_family = "rougail_test@gnunux.info"
|
|
%set %%familydn = %%calc_ldapclient_base_dn(%%ldapclient_base_dn, family_name='gnunux')
|
|
address: %%ip_eth0
|
|
admin_dn: %%ldapclient_user
|
|
admin_password: %%ldapclient_user_password
|
|
user_dn: cn=%%username,%%ldap_user_dn
|
|
user_password: %%get_password(server_name=%%ldap_server_address, username=%%username, description="ldap user", type="cleartext", hide=%%hide_secret, temporary=True)
|
|
user_family_dn: cn=%%username_family,%%familydn
|
|
user_family_password: %%get_password(server_name=%%ldap_server_address, username=%%username_family, description="ldap family user", type="cleartext", hide=%%hide_secret, temporary=True)
|
|
base_account_dn: %%ldap_account_dn
|
|
base_user_dn: %%ldap_user_dn
|
|
base_family_dn: %%familydn
|
|
base_group_dn: %%ldap_group_dn
|
|
%for %%idx in %%range(3)
|
|
%set %%name = 'remote_test' + %%str(%%idx)
|
|
remote%%idx: cn=%%name,%%ldapclient_base_dn
|
|
remote_password%%idx: %%get_password(server_name=%%domain_name_eth0, username=%%name, description="remote account", type="cleartext", hide=%%hide_secret, temporary=True)
|
|
%end for
|
|
users:
|
|
%for %%user in %%accounts.users.ldap_user_mail
|
|
%%user: cn=%%user,%%ldap_user_dn
|
|
%end for
|
|
%for %%family in %%accounts.families
|
|
%set %%families = %%calc_ldapclient_base_dn(%%ldapclient_base_dn, %%family)
|
|
%for %%user in %%accounts['family_' + %%family]['users_' + %%family]['ldap_user_mail_' + %%family]
|
|
%%user: cn=%%user,%%families
|
|
%end for
|
|
%end for
|
|
groups:
|
|
users:
|
|
%for %%user in %%accounts.users.ldap_user_mail
|
|
- cn=%%user,%%ldap_user_dn
|
|
%end for
|
|
%for %%family in %%accounts.families
|
|
%%family:
|
|
%for %%user in %%accounts['family_' + %%family]['users_' + %%family]['ldap_user_mail_' + %%family]
|
|
- cn=%%user,%%families
|
|
%end for
|
|
%end for
|