diff options
author | Simon Rettberg | 2014-09-11 14:30:00 +0200 |
---|---|---|
committer | Simon Rettberg | 2014-09-11 14:30:00 +0200 |
commit | cb166c8cfcbd599306da453c80831194128a5cb0 (patch) | |
tree | ccfee878c9fff06b108da4cdf14a5db7fcb68a6c /data | |
parent | Force NFS Version 3 (diff) | |
download | tmlite-bwlp-cb166c8cfcbd599306da453c80831194128a5cb0.tar.gz tmlite-bwlp-cb166c8cfcbd599306da453c80831194128a5cb0.tar.xz tmlite-bwlp-cb166c8cfcbd599306da453c80831194128a5cb0.zip |
Use SSL for AD-LDAP-connections
Diffstat (limited to 'data')
-rw-r--r-- | data/ad/mountscript | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/ad/mountscript b/data/ad/mountscript index 2256904..74c511e 100644 --- a/data/ad/mountscript +++ b/data/ad/mountscript @@ -9,7 +9,7 @@ if ! grep -q "^${PAM_USER}:" "/etc/passwd"; then # determine fileserver and share for home directories touch "/tmp/ldapsearch.${PAM_USER}" chmod 0600 "/tmp/ldapsearch.${PAM_USER}" - ldapsearch -x -LLL uid="${PAM_USER}" homeMount > "/tmp/ldapsearch.${PAM_USER}" || \ + ldapsearch -x -LLL uid="${PAM_USER}" homeMount > "/tmp/ldapsearch.${PAM_USER}" 2>/dev/null || \ { slxlog "pam-ad-ldapquery" "Could not query LDAP server for parameters of user '${PAM_USER}'."; exit 1; } VOLUME=$(cat "/tmp/ldapsearch.${PAM_USER}" | grep ^homeMount | head -n 1 | cut -d" " -f2) [ -z "${VOLUME}" ] && slxlog "pam-ad-ldapvolume" "LDAP server did not provide 'homeMount'. Aborting mount for ${PAM_USER}." && exit 1 |