summaryrefslogtreecommitdiff
path: root/ssh-keys.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ssh-keys.sh')
-rw-r--r--ssh-keys.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssh-keys.sh b/ssh-keys.sh
index c599514..e628bbb 100644
--- a/ssh-keys.sh
+++ b/ssh-keys.sh
@@ -10,7 +10,7 @@ sunetEmpl="leif leifj lundberg linus per john"
ignoreList="ndn-eduix nunoc"
for userHome in /home/*; do
user=$(basename "$userHome")
- keys_raw=$(/usr/bin/ldapsearch -o nettimeout=5 -o ldif-wrap=no -LLL -x -H "ldap://ldap1.nordu.net" -b "ou=people,dc=nordu,dc=net" "(&(employeeType=employee)(memberof=cn=ndn-sysadmin,ou=groups,dc=nordu,dc=net)(sshPublicKey=*)(uid=$user))" sshPublicKey)
+ keys_raw=$(/usr/bin/ldapsearch -o nettimeout=5 -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=$user))" sshPublicKey)
search_status=$?
if [ "$search_status" -ne 0 ]; then