Apply changes for koji-gc hotfix
This commit is contained in:
parent
15bc834f36
commit
7c5a3b7730
1 changed files with 2 additions and 2 deletions
|
@ -131,7 +131,7 @@ def get_options():
|
|||
['keytab', None, 'string'],
|
||||
['principal', None, 'string'],
|
||||
['krbservice', None, 'string'],
|
||||
['krb_rdns', True, 'boolean'],
|
||||
['krb_rdns', None, 'boolean'],
|
||||
['runas', None, 'string'],
|
||||
['user', None, 'string'],
|
||||
['password', None, 'string'],
|
||||
|
@ -352,7 +352,7 @@ def activate_session(session):
|
|||
elif options.user:
|
||||
#authenticate using user/password
|
||||
session.login()
|
||||
elif has_krb_creds():
|
||||
elif has_krb_creds() or (options.keytab and options.principal):
|
||||
try:
|
||||
if options.keytab and options.principal:
|
||||
session.krb_login(principal=options.principal, keytab=options.keytab, proxyuser=options.runas)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue