mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-04-28 18:30:24 +02:00
Solved LDAP Bug
This commit is contained in:
parent
331ff20272
commit
2fa5e57c5d
@ -1,4 +1,4 @@
|
||||
# Todos
|
||||
- Implement auto password hash
|
||||
- Implement auto memberof setup
|
||||
- Create a Dockerfile (may in an own repository) with memberOf
|
||||
- Find a better decoupling solution for nextcloud
|
@ -37,7 +37,6 @@
|
||||
include_tasks: create_ldif_files.yml
|
||||
loop:
|
||||
- configuration
|
||||
- schema
|
||||
loop_control:
|
||||
loop_var: folder
|
||||
|
||||
@ -50,6 +49,37 @@
|
||||
- python-ldap
|
||||
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,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 )
|
||||
)
|
@ -1 +0,0 @@
|
||||
This folder contains schemas for the different applications to import
|
Loading…
x
Reference in New Issue
Block a user