1.2 KiB
finallycoffee.nextcloud.ldap-user-backend ansible role
Ansible role for managing LDAP authentication of nextcloud instances using ansible.
Prerequisites
This role assumes a nextcloud instance is up and running, and has the user_ldap
nextcloud app installed. For starting a nextcloud instance, see the
finallycoffee.nextcloud.server role, for managing nextcloud apps see the
finallycoffee.nextcloud.apps ansible role.
Configuration
-
Set
nc_ldap_api_methodto eitheroccorhttpto control wether the configuration is set usingphp occcommand line calls or thehttpAPI of theuser_ldapnextcloud app. -
For
nc_ldap_api_method: occ, ensurenc_ldap_containeris set to the name of the docker container where nextcloud is running, andnc_ldap_occ_useris the user the container / nextcloud itself runs as.nc_ldap_occ_commandcan also be tweaked ifphpis not in the path, but the default should be fine in most cases. -
For
nc_ldap_api_method: http, ensurenc_ldapi_api_instance_urlcontains the URL to the nextcloud server, including protocol (and port, if non-standard), andnc_ldap_api_basic_auth_[user|password]contain the credentials of an admin user with the rights to edit the LDAP settings.