]> git.immae.eu Git - perso/Immae/Config/Nix.git/blobdiff - systems/eldiron/ftp_sync.sh
Squash changes containing private information
[perso/Immae/Config/Nix.git] / systems / eldiron / ftp_sync.sh
similarity index 91%
rename from modules/private/ftp_sync.sh
rename to systems/eldiron/ftp_sync.sh
index 8b0d9c5f2736f69d10f45b3d177f37983fc246fb..aff7178007032c9f20fec8c37c776e8fabb7c634 100755 (executable)
@@ -4,7 +4,7 @@ LDAPSEARCH=ldapsearch
 
 LDAP_BIND="cn=ssh,ou=services,dc=immae,dc=eu"
 LDAP_PASS=$(cat /etc/ssh/ldap_password)
-LDAP_HOST="ldap.immae.eu"
+LDAP_HOST="ldap://ldap.immae.eu"
 LDAP_BASE="dc=immae,dc=eu"
 LDAP_FILTER="(memberOf=cn=users,cn=ftp,ou=services,dc=immae,dc=eu)"
 
@@ -43,5 +43,5 @@ $key"
 $(echo "$key" | cut -d" " -f2-)"
     fi
   fi
-done < <(ldapsearch -h "$LDAP_HOST" -ZZ -LLL -D "$LDAP_BIND" -w "$LDAP_PASS" -b "$LDAP_BASE" -x -o ldif-wrap=no "$LDAP_FILTER" uid immaeSshKey)
+done < <(ldapsearch -H "$LDAP_HOST" -ZZ -LLL -D "$LDAP_BIND" -w "$LDAP_PASS" -b "$LDAP_BASE" -x -o ldif-wrap=no "$LDAP_FILTER" uid immaeSshKey)
 handle_keys "$uids" "$keys"