From 0262873624033ae34c13791acceff565af2570fb Mon Sep 17 00:00:00 2001 From: Shane Canon Date: Fri, 26 Jul 2024 08:27:53 -0700 Subject: [PATCH] Update Entrypoint Some LDAP configurations weren't being updated. --- entrypoint.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 49d914f..b9b86a5 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -2,16 +2,16 @@ +if [ ! -z "$OTP_PROXY_URL" ] ; then + echo "Replacing OTP Proxy with $OTP_PROXY_URL" + sed -i "s|https://otpproxy.nersc.gov|$OTP_PROXY_URL|" /etc/pam.d/sshauth +fi + if [ ! -z "$LDAP_BASE" ] ; then echo "Replacing LDAP BASE with $LDAP_BASE" sed -i "s/ou=nim-ldap,ou=host,o=ldapsvc,dc=nersc,dc=gov/${LDAP_BASE}/" /etc/nslcd.conf sed -i "s/ou=nim-ldap,ou=host,o=ldapsvc,dc=nersc,dc=gov/${LDAP_BASE}/" /etc/pam_ldap.conf - -fi - -if [ ! -z "$OTP_PROXY_URL" ] ; then - echo "Replacing OTP Proxy with $OTP_PROXY_URL" - sed -i "s|https://otpproxy.nersc.gov|$OTP_PROXY_URL|" /etc/pam.d/sshauth + sed -i "s/ou=cori,ou=Host,o=ldapsvc,dc=nersc,dc=gov/${LDAP_BASE}/" /etc/pam.d/sshauth fi nslcd &