diff --git a/bin/reset-adminpassword b/bin/reset-adminpassword index de671a4..f2e2d71 100755 --- a/bin/reset-adminpassword +++ b/bin/reset-adminpassword @@ -23,7 +23,7 @@ get_ldapdomain [ ! -d "/federated/apps/ldap" ] && echo "* ldap is not installed." && exit 2 LDAP_BIND_PASSWORD=$(cat /federated/apps/ldap/.ldap.secret) -if [[ $LDAP_DOMIAN_MIDDLE ]]; then +if [[ $LDAP_DOMAIN_MIDDLE ]]; then # Check if admin user exists first [[ ! $(docker exec ldap ldapsearch -x -LLL -H ldap://localhost -b dc=$LDAP_DOMAIN_FIRST,dc=$LDAP_DOMAIN_MIDDLE,dc=$LDAP_DOMAIN_LAST -w $LDAP_BIND_PASSWORD -D cn=admin,dc=$LDAP_DOMAIN_FIRST,dc=$LDAP_DOMAIN_MIDDLE,dc=$LDAP_DOMAIN_LAST uid=admin) ]] && echo "* admin user doesn't exist." && exit 2