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: pam_sss_gss.so doesn't work with large kerberos tickets #5815 #5817

Closed
wants to merge 1 commit into from

Conversation

shridhargadekar
Copy link
Contributor

def test_sudo_kerberos_ticket(self, multihost, create_aduser_group):
"""
:title: Verify pam_sss_gss.so can handle large kerberos ticket
for sudo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only one indent is required

8. Remove sudo cache
9. Run sudo command again
:expectedresults:
1. Should succeed
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indent is required

:id: 456ea53b-6702-4b8e-beb1-eee841b85fed
:bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1948657
:steps:
1. Add sudo rule in IPA-server for AD-users
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indent is required

(aduser, adgroup) = create_aduser_group
client = sssdTools(multihost.client[0], multihost.ad[0])
ipaserver = sssdTools(multihost.master[0])
cmd = 'dnf install -y sssd sssd-kcm'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This part is really required ?? IDM-CI will install it i think ?

client.sssd_conf(domain_section, params)
krbkcm = '/etc/krb5.conf.d/kcm_default_ccache'
bk_krbkcm = '/tmp/kcm_default_ccache'
src = 'KCM:'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

defined but used nowhere

krbkcm = '/etc/krb5.conf.d/kcm_default_ccache'
bk_krbkcm = '/tmp/kcm_default_ccache'
src = 'KCM:'
dest = 'FILE:/tmp/krb5cc_%{uid}'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

defined but used nowhere

cmd = f'echo "{aduser} ALL=(ALL) ALL" >> /etc/sudoers'
multihost.client[0].run_command(cmd, raiseonerr=False)
try:
ssh = SSHClient(multihost.client[0].sys_hostname,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SSHClient not defined anywhere (Not imported )

ssh = SSHClient(multihost.client[0].sys_hostname,
username=aduser, password='Secret123')

except paramiko.ssh_exception.AuthenticationException:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

paramiko is not defined anywhere (Not imported )

@aborah-sudo aborah-sudo self-requested a review October 6, 2021 13:35
Copy link
Contributor

@aborah-sudo aborah-sudo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make sure run at least once before pushing the changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants