121 lines
3.7 KiB
Plaintext
Executable File
121 lines
3.7 KiB
Plaintext
Executable File
%import pyeole.ssha
|
|
|
|
# Entrée 3: ou=%%cadolesldap_organization,%%cadolesldap_basedn
|
|
dn: ou=%%cadolesldap_organization,%%cadolesldap_basedn
|
|
%if %%eole_module == "seth"
|
|
changetype: add
|
|
%end if
|
|
objectclass: organizationalUnit
|
|
objectclass: top
|
|
ou: %%cadolesldap_organization
|
|
|
|
# Entrée 4: ou=%%cadolesldap_niveau01branche,ou=%%cadolesldap_organization,%%cadolesldap_basedn
|
|
dn: ou=%%cadolesldap_niveau01branche,ou=%%cadolesldap_organization,%%cadolesldap_basedn
|
|
%if %%eole_module == "seth"
|
|
changetype: add
|
|
%end if
|
|
objectclass: organizationalUnit
|
|
objectclass: top
|
|
ou: %%cadolesldap_niveau01branche
|
|
|
|
# Entrée 5: cn=%%cadolesldap_niveau01name,ou=%%cadolesldap_niveau01branche,ou=%%cadolesldap_organization,%%cadolesldap_basedn
|
|
dn: cn=%%cadolesldap_niveau01name,ou=%%cadolesldap_niveau01branche,ou=%%cadolesldap_organization,%%cadolesldap_basedn
|
|
%if %%eole_module == "seth"
|
|
changetype: add
|
|
%end if
|
|
objectclass: posixGroup
|
|
objectclass: top
|
|
%if %%eole_module == "seth"
|
|
objectclass: group
|
|
%else
|
|
objectclass: sambaGroupMapping
|
|
%end if
|
|
objectclass: cadolesGroup
|
|
objectclass: cadolesSiren
|
|
cn: %%cadolesldap_niveau01name
|
|
gidnumber: 1
|
|
memberuid: admin
|
|
%if %%eole_module != "seth"
|
|
cadolesMember: uid=admin,ou=users,ou=%%cadolesldap_organization,%%cadolesldap_basedn
|
|
%end if
|
|
%if %%eole_module != "seth"
|
|
sambagrouptype: 2
|
|
sambasid: 1
|
|
%end if
|
|
%if not %%is_empty(%%cadolesldap_niveau01siren)
|
|
siren: %%cadolesldap_niveau01siren
|
|
%else
|
|
siren: %%cadolesldap_niveau01name
|
|
%end if
|
|
|
|
# Entrée 6: ou=%%cadolesldap_niveau02branche,ou=%%cadolesldap_organization,%%cadolesldap_basedn
|
|
dn: ou=%%cadolesldap_niveau02branche,ou=%%cadolesldap_organization,%%cadolesldap_basedn
|
|
%if %%eole_module == "seth"
|
|
changetype: add
|
|
%end if
|
|
objectclass: organizationalUnit
|
|
objectclass: top
|
|
ou: %%cadolesldap_niveau02branche
|
|
|
|
# Entrée 7: ou=groups,ou=%%cadolesldap_organization,%%cadolesldap_basedn
|
|
dn: ou=groups,ou=%%cadolesldap_organization,%%cadolesldap_basedn
|
|
%if %%eole_module == "seth"
|
|
changetype: add
|
|
%end if
|
|
objectclass: organizationalUnit
|
|
objectclass: top
|
|
ou: groups
|
|
|
|
# Entrée 8: ou=users,ou=%%cadolesldap_organization,%%cadolesldap_basedn
|
|
dn: ou=users,ou=%%cadolesldap_organization,%%cadolesldap_basedn
|
|
%if %%eole_module == "seth"
|
|
changetype: add
|
|
%end if
|
|
objectclass: organizationalUnit
|
|
objectclass: top
|
|
ou: users
|
|
|
|
%if %%eole_module == "seth"
|
|
# Entrée 9: cn=admin,ou=users,ou=%%cadolesldap_organization,%%cadolesldap_basedn
|
|
dn: cn=admin,ou=users,ou=%%cadolesldap_organization,%%cadolesldap_basedn
|
|
%else
|
|
# Entrée 9: uid=admin,ou=users,ou=%%cadolesldap_organization,%%cadolesldap_basedn
|
|
dn: uid=admin,ou=users,ou=%%cadolesldap_organization,%%cadolesldap_basedn
|
|
%end if
|
|
%if %%eole_module == "seth"
|
|
changetype: add
|
|
%end if
|
|
objectclass: top
|
|
objectclass: person
|
|
objectclass: organizationalPerson
|
|
%if %%eole_module == "seth"
|
|
objectclass: user
|
|
%end if
|
|
objectclass: inetOrgPerson
|
|
objectclass: cadolesPerson
|
|
objectclass: cadolesSiren
|
|
objectclass: cadolesSiret
|
|
authlevel: simple
|
|
uid: admin
|
|
cn: admin
|
|
sn: %%cadolesldap_organization
|
|
displayname: Administrateur %%cadolesldap_organization
|
|
givenname: Administrateur
|
|
%if not %%is_empty(%%system_mail_to)
|
|
mail: %%system_mail_to
|
|
%end if
|
|
%if not %%is_empty(%%cadolesldap_niveau01siren)
|
|
siren: %%cadolesldap_niveau01siren
|
|
%else
|
|
siren: %%cadolesldap_niveau01name
|
|
%end if
|
|
niveau01: %%cadolesldap_niveau01name
|
|
userpassword: %%pyeole.ssha.ssha_encode(%%cadolesldap_pwdadmin)
|
|
|
|
%if %%eole_module == "seth"
|
|
# FIXME CadolesMember ...
|
|
# Entrée 9bis: cn=%%cadolesldap_niveau01name,ou=%%cadolesldap_niveau01branche,ou=%%cadolesldap_organization,%%cadolesldap_basedn
|
|
#dn: cn=%%cadolesldap_niveau01name,ou=%%cadolesldap_niveau01branche,ou=%%cadolesldap_organization,%%cadolesldap_basedn
|
|
#changetype: add
|
|
#cadolesMember: cn=admin,ou=users,ou=%%cadolesldap_organization,%%cadolesldap_basedn
|
|
%end if |