Browse Source

roles/nextcloud: ldap groups memberof overlay fix

python3
Zolfa 5 years ago
parent
commit
6eb3fd6125
Signed by: zolfa GPG Key ID: E1A43B038C4D6616
1 changed files with 13 additions and 0 deletions
  1. +13
    -0
      roles/nextcloud/tasks/main.yaml

+ 13
- 0
roles/nextcloud/tasks/main.yaml View File

@ -177,9 +177,17 @@
command: 'config:app:set'
key: 'user_ldap enabled'
value: 'yes'
register: nextcloud_ldap_was_disabled
tags:
- 'service_password'
- name: 'insall app user_ldap'
import_tasks: 'occ.yaml'
vars:
occ_args: 'app:enable user_ldap'
nojson: true
ignore_changes: true
- name: 'configure user_ldap'
occ:
command: 'config:app:set'
@ -197,12 +205,17 @@
ldap_base_groups: 'ou=Group,{{ ldap_basedn }}'
ldap_login_filter: '(&(cn=%uid)(authorizedService=nextcloud))'
ldap_user_filter: '(authorizedService=nextcloud)'
ldap_group_filter: '(objectClass=groupOfNames)'
ldap_group_member_assoc_attribute: 'member'
ldap_attributes_for_user_search: 'cn'
ldap_attributes_for_group_search: 'cn'
ldap_display_name: 'sn'
ldap_email_attr: 'mail'
ldap_tls: '{{ 1 if ldap_tls_enabled else 0 }}'
ldap_experienced_admin: '1'
ldap_configuration_active: '1'
tags:
- 'ldap'
- name: 'generate nextcloud ldap password'
gen_passwd: 'length=32'


Loading…
Cancel
Save