summaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
authorSimon Rettberg2014-09-11 14:30:00 +0200
committerSimon Rettberg2014-09-11 14:30:00 +0200
commitcb166c8cfcbd599306da453c80831194128a5cb0 (patch)
treeccfee878c9fff06b108da4cdf14a5db7fcb68a6c /data
parentForce NFS Version 3 (diff)
downloadtmlite-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/mountscript2
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