Fixed typo in reset-adminpassword
This commit is contained in:
parent
2cb9ddcbe1
commit
5c5ebce5dd
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user