summaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
authorSimon Rettberg2015-02-24 16:26:17 +0100
committerSimon Rettberg2015-02-24 16:26:17 +0100
commita566736e62ebca8a0e93c5c07c3c07cceded9826 (patch)
tree2aaa537d644c5c6b473b458e0dc287bfa7796ca0 /data
parentFix AD pam and scripts (diff)
downloadtmlite-bwlp-a566736e62ebca8a0e93c5c07c3c07cceded9826.tar.gz
tmlite-bwlp-a566736e62ebca8a0e93c5c07c3c07cceded9826.tar.xz
tmlite-bwlp-a566736e62ebca8a0e93c5c07c3c07cceded9826.zip
Bump
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 a48ca3a..4fa5f36 100644
--- a/data/ad/mountscript
+++ b/data/ad/mountscript
@@ -10,7 +10,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}" 2>/dev/null || \
+ ldapsearch -x -LLL uid="${PAM_USER}" homeMount realAccount > "/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