hide error messages from ldapsearch
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
92a5316886
commit
cc267252f6
@ -54,8 +54,8 @@ LDAP_DOMAIN_DN=${LDAP_DOMAIN_DN:=${DN0}}
|
||||
RES_DN=$(ldapsearch -LLL -H ldap:/// -D cn=${LDAP_ADMIN_CN},${LDAP_DOMAIN_DN} \
|
||||
-w "${LDAP_ADMIN_PASSWORD}" -s base \
|
||||
-b "uid=${USER_UID},ou=People,${LDAP_DOMAIN_DN}" \
|
||||
"(objectClass=*)" \
|
||||
| egrep '^dn: ' | sed -e 's/^dn: //g' 2>/dev/null)
|
||||
"(objectClass=*)" 2>/dev/null \
|
||||
| egrep '^dn: ' | sed -e 's/^dn: //g' )
|
||||
[[ -z ${RES_DN} ]]
|
||||
assert "User already present. Please choose a different UID."
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user