summaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/install.sh b/install.sh
index d7c3308..b1f937f 100755
--- a/install.sh
+++ b/install.sh
@@ -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