summaryrefslogtreecommitdiffstats
path: root/sync
diff options
context:
space:
mode:
authorAlexander Sulfrian <alex@spline.inf.fu-berlin.de>2015-04-09 15:43:28 +0200
committerroot <root@plonk.spline.inf.fu-berlin.de>2015-04-09 15:43:52 +0200
commit8f22682d7e6bb5e79a46a6d2a528cb7e472cfab9 (patch)
tree82300662aaa1a60d04cc0d5d0c7d41c3826adeb7 /sync
downloadsync-8f22682d7e6bb5e79a46a6d2a528cb7e472cfab9.tar.gz
sync-8f22682d7e6bb5e79a46a6d2a528cb7e472cfab9.tar.bz2
sync-8f22682d7e6bb5e79a46a6d2a528cb7e472cfab9.zip
Initial commitHEADmaster
Diffstat (limited to 'sync')
-rwxr-xr-xsync12
1 files changed, 12 insertions, 0 deletions
diff --git a/sync b/sync
new file mode 100755
index 0000000..61f0be1
--- /dev/null
+++ b/sync
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+SCRIPT="$0"
+test -L "$SCRIPT" && SCRIPT="$(readlink -f "$SCRIPT")"
+DIR="$(dirname "$SCRIPT")"
+
+BASE="ou=People,dc=spline,dc=inf,dc=fu-berlin,dc=de"
+BINDDN="cn=admin,dc=spline,dc=inf,dc=fu-berlin,dc=de"
+PASSWD="/etc/ldapadd.secret"
+AWKSCRIPT="$DIR/pwd.awk"
+
+exec ldapsearch -b "$BASE" -D "$BINDDN" -y "$PASSWD" uid userPassword | awk -f "$AWKSCRIPT" | ssh -T spline-status