diff --git a/README.md b/README.md index ee7f2be..21ceefc 100644 --- a/README.md +++ b/README.md @@ -72,6 +72,8 @@ Password for SMTP authentication. Ldap host. ## LDAP_PORT +- default: 389 + Ldap port. ## LDAP_TLS diff --git a/rootfs/etc/cont-init.d/00-nextcloud b/rootfs/etc/cont-init.d/00-nextcloud index 274e5ea..7a69aed 100644 --- a/rootfs/etc/cont-init.d/00-nextcloud +++ b/rootfs/etc/cont-init.d/00-nextcloud @@ -46,6 +46,6 @@ if [ $? -ne 1 ]; then s6-setuidgid nginx ./occ config:app:set --value "$LDAP_BIND_PASSWORD" user_ldap ldap_agent_password s6-setuidgid nginx ./occ config:app:set --value "$LDAP_GROUP_FILTER" user_ldap ldap_group_filter s6-setuidgid nginx ./occ config:app:set --value "$LDAP_USER_DISPLAY_NAME" user_ldap ldap_display_name - s6-setuidgid nginx ./occ config:app:set --value "$LDAP_PORT" user_ldap ldap_port + s6-setuidgid nginx ./occ config:app:set --value "${LDAP_PORT:-389}" user_ldap ldap_port s6-setuidgid nginx ./occ config:app:set --value "$LDAP_BASE_USER_DN" user_ldap ldap_base_users fi