-
Notifications
You must be signed in to change notification settings - Fork 231
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
Conversation
def test_sudo_kerberos_ticket(self, multihost, create_aduser_group): | ||
""" | ||
:title: Verify pam_sss_gss.so can handle large kerberos ticket | ||
for sudo |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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' |
There was a problem hiding this comment.
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:' |
There was a problem hiding this comment.
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}' |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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 )
There was a problem hiding this 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
Verifies: #5568
Bug: https://bugzilla.redhat.com/show_bug.cgi?id=1948657