summaryrefslogtreecommitdiffstats
path: root/remote/modules/pam/data/opt/openslx/scripts/pam_script_auth
diff options
context:
space:
mode:
Diffstat (limited to 'remote/modules/pam/data/opt/openslx/scripts/pam_script_auth')
-rwxr-xr-xremote/modules/pam/data/opt/openslx/scripts/pam_script_auth13
1 files changed, 13 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 e7de3a8c..656d9a01 100755
--- a/remote/modules/pam/data/opt/openslx/scripts/pam_script_auth
+++ b/remote/modules/pam/data/opt/openslx/scripts/pam_script_auth
@@ -17,6 +17,19 @@ TEMP_HOME_DIR="$USER_HOME"
# check if PAM_USER is root and skip if it is the case
[ "x${PAM_USER}" == "xroot" ] && exit 0
+# source the stuff in pam_script_auth.d, if it exists
+if [ -d "/opt/openslx/scripts/pam_script_auth.d" ]; then
+ for HOOK in $(ls "/opt/openslx/scripts/pam_script_auth.d"); do
+ # source it, in case of failure do nothing since these scripts are non-critical
+ . "/opt/openslx/scripts/pam_script_auth.d/$HOOK" || slxlog "pam-source-hooks" "Could not source '$HOOK'."
+ done
+fi
+
+###############################################################################
+#
+# Preparations for volatile /home/<user>
+#
+#
# check if we already mounted the home directory
mount | grep -q " $TEMP_HOME_DIR " && exit 0