Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests: alltests/test_krb5: Remove files provider #7194

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions src/tests/multihost/alltests/test_krb5.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from __future__ import print_function
import pytest
from sssd.testlib.common.utils import sssdTools
from sssd.testlib.common.ssh2_python import check_login_client
from sssd.testlib.common.ssh2_python import check_login_client, check_login_client_bool


@pytest.mark.usefixtures('setup_sssd_krb', 'create_posix_usersgroups')
Expand All @@ -33,7 +33,9 @@ def test_0001_krb5_not_working_based_on_k5login(self,
'with-files-access-provider')
multihost.client[0].service_sssd('stop')
client_tool = sssdTools(multihost.client[0])
domain_params = {'id_provider': 'files',
domain_params = {'proxy_lib_name': 'files',
'passwd_files': '/etc/passwd',
'proxy_pam_target': 'sssd-shadowutils',
'access_provider': 'krb5'}
client_tool.sssd_conf('domain/example1', domain_params)
dmain_delete = {"ldap_user_home_directory": "/home/%u",
Expand All @@ -49,10 +51,10 @@ def test_0001_krb5_not_working_based_on_k5login(self,
multihost.client[0].run_command(f'chgrp {user} /home/{user}/.k5login')
multihost.client[0].run_command(f'chmod 664 /home/{user}/.k5login')
multihost.client[0].service_sssd('restart')
with pytest.raises(Exception):
check_login_client(multihost, user, 'Secret123')
ssh = check_login_client_bool(multihost, user, "Secret123")
multihost.client[0].run_command(f'rm -vf /home/{user}/.k5login')
multihost.client[0].service_sssd('restart')
assert ssh, f"{user} is not able to login"
check_login_client(multihost, user, 'Secret123')
multihost.client[0].run_command('authselect select sssd')

Expand Down
Loading