From 216903a3f988ca97249e4227b6b8996c9a7b22ab Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Sat, 10 Mar 2018 15:55:33 +0100 Subject: [pam-slx-plug/run-virt] Create a usable shares file for run-virt Global /opt/openslx/inc/shares is legacy fallback only --- .../pam-slx-plug/data/opt/openslx/pam/auth-source.d/99-slx-ldap | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'core/modules/pam-slx-plug') diff --git a/core/modules/pam-slx-plug/data/opt/openslx/pam/auth-source.d/99-slx-ldap b/core/modules/pam-slx-plug/data/opt/openslx/pam/auth-source.d/99-slx-ldap index 7fcf1383..e4f2704e 100644 --- a/core/modules/pam-slx-plug/data/opt/openslx/pam/auth-source.d/99-slx-ldap +++ b/core/modules/pam-slx-plug/data/opt/openslx/pam/auth-source.d/99-slx-ldap @@ -158,6 +158,7 @@ run_auth() { } TEMPFILES_LDAP= +SLX_LDAP_FILE= for s_file in /opt/openslx/pam/slx-ldap.d/*; do unset_ldap_vars @@ -167,7 +168,10 @@ for s_file in /opt/openslx/pam/slx-ldap.d/*; do slxlog --echo "pam-slxldap-empty" "LDAP config '$s_file' is missing URI or BASE" continue fi - run_auth && break + if run_auth; then + SLX_LDAP_FILE="$s_file" + break + fi done if [ -z "$USER_UID" ]; then -- cgit v1.2.3-55-g7522