mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-04-28 18:30:24 +02:00
Implemented user_objects
This commit is contained in:
parent
3203151e84
commit
ec79cb8921
@ -65,4 +65,8 @@ ldap:
|
|||||||
uri: "{% if applications.ldap.network.local | bool %}ldap://{{ applications.ldap.hostname }}{% else %}ldaps://{{ domains.ldap }}{% endif %}:{{ _ldap_server_port }}"
|
uri: "{% if applications.ldap.network.local | bool %}ldap://{{ applications.ldap.hostname }}{% else %}ldaps://{{ domains.ldap }}{% endif %}:{{ _ldap_server_port }}"
|
||||||
network:
|
network:
|
||||||
local: "{{applications.ldap.network.local}}" # Uses the application configuration to define if local network should be available or not
|
local: "{{applications.ldap.network.local}}" # Uses the application configuration to define if local network should be available or not
|
||||||
|
user_objects:
|
||||||
|
- person # Basic person attributes (sn, cn …) – RFC 4519
|
||||||
|
- inetOrgPerson # Extended Internet / intranet person – RFC 2798
|
||||||
|
- posixAccount # POSIX/UNIX login attributes (uidNumber, gidNumber …) – RFC 2307
|
||||||
|
- nextcloudUser # Nextcloud-specific auxiliary attributes (nextcloudQuota, nextcloudEnabled) – Nextcloud schema
|
||||||
|
@ -2070,7 +2070,7 @@
|
|||||||
"false"
|
"false"
|
||||||
],
|
],
|
||||||
"userObjectClasses": [
|
"userObjectClasses": [
|
||||||
"person, inetOrgPerson, nextcloudUser"
|
"{{ ldap.user_objects | join(', ') }}"
|
||||||
],
|
],
|
||||||
"rdnLDAPAttribute": [
|
"rdnLDAPAttribute": [
|
||||||
"{{ldap.attributes.user_id}}"
|
"{{ldap.attributes.user_id}}"
|
||||||
|
@ -16,9 +16,9 @@ description: Container for application access profiles
|
|||||||
# Create User {{ username }}
|
# Create User {{ username }}
|
||||||
#######################################################################
|
#######################################################################
|
||||||
dn: {{ ldap.attributes.user_id }}={{ username }},{{ ldap.dn.users }}
|
dn: {{ ldap.attributes.user_id }}={{ username }},{{ ldap.dn.users }}
|
||||||
objectClass: top
|
{% for cls in ldap.user_objects %}
|
||||||
objectClass: inetOrgPerson
|
objectClass: {{ cls }}
|
||||||
objectClass: posixAccount
|
{% endfor %}
|
||||||
{{ ldap.attributes.user_id }}: {{ username }}
|
{{ ldap.attributes.user_id }}: {{ username }}
|
||||||
sn: {{ username }}
|
sn: {{ username }}
|
||||||
cn: {{ username }}
|
cn: {{ username }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user