diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2015-10-01 13:56:32 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2016-01-14 08:04:49 +0100 |
commit | 7aa84318ae7181a89c89a89b3e01d796ae91b343 (patch) | |
tree | 40afdb52bb1cdafcf7431d86feebb03fc249b310 /tests/torture.c | |
parent | 0e98f1214dd6d80d15aee7f74df40bf7ddd6f81e (diff) | |
download | libssh-7aa84318ae7181a89c89a89b3e01d796ae91b343.tar.gz libssh-7aa84318ae7181a89c89a89b3e01d796ae91b343.tar.xz libssh-7aa84318ae7181a89c89a89b3e01d796ae91b343.zip |
tests: Turn on PAM support in sshd with pam_wrapper
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'tests/torture.c')
-rw-r--r-- | tests/torture.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/torture.c b/tests/torture.c index 719f8f16..067dc5d9 100644 --- a/tests/torture.c +++ b/tests/torture.c @@ -915,6 +915,8 @@ static void torture_setup_create_sshd_config(void **state) "UsePrivilegeSeparation no\n" "StrictModes no\n" "\n" + "UsePAM yes\n" + "\n" #if OPENSSH_VERSION_MAJOR == 6 && OPENSSH_VERSION_MINOR >= 7 "HostKeyAlgorithms +ssh-dss\n" "Ciphers +3des-cbc,aes128-cbc,aes192-cbc,aes256-cbc,blowfish-cbc\n" @@ -958,6 +960,7 @@ void torture_setup_sshd_server(void **state) /* Set the default interface for the server */ setenv("SOCKET_WRAPPER_DEFAULT_IFACE", "10", 1); setenv("UID_WRAPPER_ROOT", "1", 1); + setenv("PAM_WRAPPER", "1", 1); s = *state; @@ -970,6 +973,7 @@ void torture_setup_sshd_server(void **state) setenv("SOCKET_WRAPPER_DEFAULT_IFACE", "21", 1); unsetenv("UID_WRAPPER_ROOT"); + unsetenv("PAM_WRAPPER"); } void torture_teardown_socket_dir(void **state) |