summaryrefslogtreecommitdiffstats
path: root/remote/modules
diff options
context:
space:
mode:
authorSimon Rettberg2014-01-24 14:29:31 +0100
committerSimon Rettberg2014-01-24 14:29:31 +0100
commit8c7136bc29eec5cf8b1acd6dc3c15e19d48d6033 (patch)
tree4b7999891890f6681f8a687e68ddf9c912419dd2 /remote/modules
parent[vmchooser] Don't wait for non-existent service "download-config.service", do... (diff)
downloadtm-scripts-8c7136bc29eec5cf8b1acd6dc3c15e19d48d6033.tar.gz
tm-scripts-8c7136bc29eec5cf8b1acd6dc3c15e19d48d6033.tar.xz
tm-scripts-8c7136bc29eec5cf8b1acd6dc3c15e19d48d6033.zip
[pam] Define USER_UID in pam_auth script
Diffstat (limited to 'remote/modules')
-rwxr-xr-xremote/modules/pam/data/opt/openslx/scripts/pam_script_auth1
1 files changed, 1 insertions, 0 deletions
diff --git a/remote/modules/pam/data/opt/openslx/scripts/pam_script_auth b/remote/modules/pam/data/opt/openslx/scripts/pam_script_auth
index 611b565a..284e78ca 100755
--- a/remote/modules/pam/data/opt/openslx/scripts/pam_script_auth
+++ b/remote/modules/pam/data/opt/openslx/scripts/pam_script_auth
@@ -4,6 +4,7 @@
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/openslx/usr/sbin:/opt/openslx/usr/bin:/opt/openslx/sbin:/opt/openslx/bin"
PASSWD=$(getent passwd "$PAM_USER")
+USER_UID=$(echo "$PASSWD" | awk -F ':' '{print $3}')
USER_GID=$(echo "$PASSWD" | awk -F ':' '{print $4}')
USER_HOME=$(echo "$PASSWD" | awk -F ':' '{print $6}')