diff options
author | Guilhem Moulin <guilhem.moulin@fripost.org> | 2012-09-27 03:32:46 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem.moulin@fripost.org> | 2012-09-27 03:32:46 +0200 |
commit | aa3340e58fc5b993bfc88070edf543a2ed82ef94 (patch) | |
tree | c2befe421e70971fd89be72073833b208b919ef2 /bin/ldap-krb5 | |
parent | 7672946edb73d485e5eb0ffd75964f2cea2caaa0 (diff) |
Fixing unicode.
Diffstat (limited to 'bin/ldap-krb5')
-rwxr-xr-x | bin/ldap-krb5 | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/bin/ldap-krb5 b/bin/ldap-krb5 deleted file mode 100755 index 368db8e..0000000 --- a/bin/ldap-krb5 +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh - -# Keep renewing/recreating kerberos tickets for ldap/hostname - -if [ $(id -u) -ne 0 ]; then - echo "Error: You are not root" - exit 1 -fi - -. /etc/default/slapd -KSTART="k5start -b -f ${KRB5_KTNAME} -u ldap -i $(hostname --fqdn) -q -K 60" -case "${1}" in - start) - pgrep -U "${SLAPD_USER}" -G "${SLAPD_GROUP}" -fx "${KSTART}" >/dev/null \ - || sudo -u "${SLAPD_USER}" ${KSTART} \ - || exit 1 - ;; - stop) - pkill -U "${SLAPD_USER}" -G "${SLAPD_GROUP}" -fx "${KSTART}" >/dev/null \ - ;; - *) - echo "Usage: $0 {start|stop}" >&2 - exit 1 - ;; -esac |