diff options
-rwxr-xr-x | install.sh | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -19,10 +19,11 @@ if ! which ldapsearch >> /dev/null; then echo "Failed to install ldap-utils" exit 1 fi - if ! ldapsearch -o nettimeout=2 -o ldif-wrap=no -LLL -x -H "ldaps://ldap.nordu.net" -b "ou=people,dc=nordu,dc=net" "(&(employeeType=employee)(memberof=cn=ndn-sysadmin,ou=groups,dc=nordu,dc=net)(sshPublicKey=*)(uid=markus))" uid >> /dev/null; then - echo "Failed to perform ldapsearch" - exit 1 - fi +fi + +if ! ldapsearch -o nettimeout=2 -o ldif-wrap=no -LLL -x -H "ldaps://ldap.nordu.net" -b "ou=people,dc=nordu,dc=net" "(uid=markus)" uid >> /dev/null; then + echo "Failed to perform ldapsearch" + exit 1 fi if ! curl -s --show-error "$SSH_URL" > "$SSH_KEYS_PATH"; then |