Skip to content

Commit

Permalink
Update Entrypoint
Browse files Browse the repository at this point in the history
Some LDAP configurations weren't being updated.
  • Loading branch information
scanon committed Jul 26, 2024
1 parent 7ba835c commit 0262873
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 &
Expand Down

0 comments on commit 0262873

Please sign in to comment.