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 --- .../opt/openslx/scripts/pam_script_auth.d/99-run_virt_credentials | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'core/modules/run-virt/data/opt/openslx/scripts') diff --git a/core/modules/run-virt/data/opt/openslx/scripts/pam_script_auth.d/99-run_virt_credentials b/core/modules/run-virt/data/opt/openslx/scripts/pam_script_auth.d/99-run_virt_credentials index c1761d2d..61df37f8 100644 --- a/core/modules/run-virt/data/opt/openslx/scripts/pam_script_auth.d/99-run_virt_credentials +++ b/core/modules/run-virt/data/opt/openslx/scripts/pam_script_auth.d/99-run_virt_credentials @@ -70,5 +70,13 @@ if [ -n "$TEMP_HOME_DIR" ]; then fi fi +# Now copy all the share mount options over from the current ldap plugin +if [ -n "$SLX_LDAP_FILE" ] && [ -s "$SLX_LDAP_FILE" ]; then + grep '^SHARE_' "$SLX_LDAP_FILE" + if [ -n "$USER_DN" ] && [ "$(echo "$USER_DN" | wc -l)" = 1 ]; then + set | grep '^USER_DN=' + fi +fi > "${TEMP_HOME_DIR}/.openslx/shares" + true -- cgit v1.2.3-55-g7522