summaryrefslogtreecommitdiffstats
path: root/core/modules/pam-slx-plug
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/pam-slx-plug')
-rwxr-xr-xcore/modules/pam-slx-plug/data/opt/openslx/pam/exec_session6
l---------core/modules/pam-slx-plug/data/opt/openslx/scripts/pam_script_ses_close.d1
l---------core/modules/pam-slx-plug/data/opt/openslx/scripts/pam_script_ses_open.d1
3 files changed, 5 insertions, 3 deletions
diff --git a/core/modules/pam-slx-plug/data/opt/openslx/pam/exec_session b/core/modules/pam-slx-plug/data/opt/openslx/pam/exec_session
index 8e7b7bff..b1e271cd 100755
--- a/core/modules/pam-slx-plug/data/opt/openslx/pam/exec_session
+++ b/core/modules/pam-slx-plug/data/opt/openslx/pam/exec_session
@@ -13,8 +13,8 @@ export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/o
if [ "$PAM_TYPE" = "open_session" ]; then
# OPEN OPEN OPEN
- # source the stuff in pam_script_ses_open.d, if it exists
- for HOOK in /opt/openslx/scripts/pam_script_ses_open.d/*; do
+ # source the stuff in session-open.d, if it exists
+ for HOOK in /opt/openslx/pam/hooks/session-open.d/*; do
[ -f "$HOOK" ] || continue
# source it, in case of failure do nothing since these scripts are non-critical
( . "$HOOK" ) || slxlog "pam-hooks-ses-open" "Could not source '$HOOK'."
@@ -23,7 +23,7 @@ if [ "$PAM_TYPE" = "open_session" ]; then
elif [ "$PAM_TYPE" = "close_session" ]; then
# CLOSE CLOSE CLOSE
# source hooks if there are any
- for HOOK in /opt/openslx/scripts/pam_script_ses_close.d/*; do
+ for HOOK in /opt/openslx/pam/hooks/session-close.d/*; do
[ -f "$HOOK" ] || continue
# failure is non-critical
( . "$HOOK" ) || slxlog "pam-hooks-ses-close" "Could not source '$HOOK'."
diff --git a/core/modules/pam-slx-plug/data/opt/openslx/scripts/pam_script_ses_close.d b/core/modules/pam-slx-plug/data/opt/openslx/scripts/pam_script_ses_close.d
new file mode 120000
index 00000000..db47dbe3
--- /dev/null
+++ b/core/modules/pam-slx-plug/data/opt/openslx/scripts/pam_script_ses_close.d
@@ -0,0 +1 @@
+/opt/openslx/pam/hooks/session-close.d \ No newline at end of file
diff --git a/core/modules/pam-slx-plug/data/opt/openslx/scripts/pam_script_ses_open.d b/core/modules/pam-slx-plug/data/opt/openslx/scripts/pam_script_ses_open.d
new file mode 120000
index 00000000..3ae27c4f
--- /dev/null
+++ b/core/modules/pam-slx-plug/data/opt/openslx/scripts/pam_script_ses_open.d
@@ -0,0 +1 @@
+/opt/openslx/pam/hooks/session-open.d \ No newline at end of file