Implemented user_objects

This commit is contained in:
2025-04-24 21:17:06 +02:00
parent 3203151e84
commit ec79cb8921
3 changed files with 9 additions and 5 deletions

View File

@@ -2070,7 +2070,7 @@
"false"
],
"userObjectClasses": [
"person, inetOrgPerson, nextcloudUser"
"{{ ldap.user_objects | join(', ') }}"
],
"rdnLDAPAttribute": [
"{{ldap.attributes.user_id}}"

View File

@@ -16,9 +16,9 @@ description: Container for application access profiles
# Create User {{ username }}
#######################################################################
dn: {{ ldap.attributes.user_id }}={{ username }},{{ ldap.dn.users }}
objectClass: top
objectClass: inetOrgPerson
objectClass: posixAccount
{% for cls in ldap.user_objects %}
objectClass: {{ cls }}
{% endfor %}
{{ ldap.attributes.user_id }}: {{ username }}
sn: {{ username }}
cn: {{ username }}