Running ldap config during installation

Hi, I’m installing Nextcloud (26 and 27) with docker-compose. My problem is I’m trying to config the ldap user settings during setup. I have tested app-hooks but the user_ldap does not seem to be available during the setup.
I can enable the user_ldap app in a script in app-hooks/post-installation but how/when to run “php /var/www/html/occ ldap:set-config s01…”? If I run it in a post-installation script I only get “Invalid configID”.

Are you creating an empty config to set first?

I.e. occ ldap:create-empty-config

See here:

https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/occ_command.html#ldap-commands

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.