Solved LDAP Bug

This commit is contained in:
Kevin Veen-Birkenbach 2025-04-25 21:43:56 +02:00
parent 331ff20272
commit 2fa5e57c5d
No known key found for this signature in database
GPG Key ID: 44D8F11FD62F878E
4 changed files with 33 additions and 23 deletions

View File

@ -1,4 +1,4 @@
# Todos # Todos
- Implement auto password hash
- Implement auto memberof setup - Implement auto memberof setup
- Create a Dockerfile (may in an own repository) with memberOf - Create a Dockerfile (may in an own repository) with memberOf
- Find a better decoupling solution for nextcloud

View File

@ -37,7 +37,6 @@
include_tasks: create_ldif_files.yml include_tasks: create_ldif_files.yml
loop: loop:
- configuration - configuration
- schema
loop_control: loop_control:
loop_var: folder loop_var: folder
@ -50,6 +49,37 @@
- python-ldap - python-ldap
state: present state: present
- name: Create Nextcloud Schema
ldap_entry:
dn: "cn=nextcloud,cn=schema,cn=config"
objectClass:
- top
- olcSchemaConfig
attributes:
cn: nextcloud
olcAttributeTypes:
- >-
( 1.3.6.1.4.1.99999.1
NAME 'nextcloudQuota'
DESC 'Quota for Nextcloud'
EQUALITY integerMatch
ORDERING integerOrderingMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
SINGLE-VALUE
)
olcObjectClasses:
- >-
( 1.3.6.1.4.1.99999.2
NAME 'nextcloudUser'
DESC 'Auxiliary class for Nextcloud attributes'
AUXILIARY
MAY ( nextcloudQuota )
)
server_uri: "ldap://127.0.0.1:{{ ports.localhost.ldap.ldap }}"
bind_dn: "cn={{ applications.ldap.users.administrator.username }},cn=config"
bind_pw: "{{ applications.ldap.administrator_password }}"
state: present
############################################################################### ###############################################################################
# 1) Create the LDAP entry if it does not yet exist # 1) Create the LDAP entry if it does not yet exist
############################################################################### ###############################################################################

View File

@ -1,19 +0,0 @@
# nextcloud.schema
dn: cn=nextcloud,cn=schema,cn=config
objectClass: olcSchemaConfig
cn: nextcloud
olcAttributeTypes: ( 1.3.6.1.4.1.99999.1
NAME 'nextcloudQuota'
DESC 'Quota for Nextcloud'
EQUALITY integerMatch
ORDERING integerOrderingMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
SINGLE-VALUE
)
olcObjectClasses: ( 1.3.6.1.4.1.99999.2
NAME 'nextcloudUser'
DESC 'Auxiliary class for Nextcloud attributes'
AUXILIARY
MAY ( nextcloudQuota )
)

View File

@ -1 +0,0 @@
This folder contains schemas for the different applications to import