From 096dfc01c49e85df20d7b7ca57638ae7488ba2ab Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Tue, 30 Jan 2018 08:42:09 +0100 Subject: [PATCH] set default ldap port to 389 --- README.md | 2 ++ rootfs/etc/cont-init.d/00-nextcloud | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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