- enable use of a Kerberos service name other than host/ on the hub

- get the Kerberos realm from the client principal, rather than assuming the last two components of the domain name
This commit is contained in:
Mike Bonnet 2011-01-06 15:54:53 -05:00
parent 93f20257f3
commit eea730300a
13 changed files with 64 additions and 22 deletions

View file

@ -159,6 +159,7 @@ def get_options():
'offline_retry' : None,
'offline_retry_interval' : None,
'poll_interval': 5,
'krbservice': 'host',
'cert': '~/.koji/client.crt',
'ca': '~/.koji/clientca.crt',
'serverca': '~/.koji/serverca.crt',
@ -5620,7 +5621,7 @@ if __name__ == "__main__":
options, command, args = get_options()
session_opts = {}
for k in ('user', 'password', 'debug_xmlrpc', 'debug', 'max_retries',
for k in ('user', 'password', 'krbservice', 'debug_xmlrpc', 'debug', 'max_retries',
'retry_interval', 'offline_retry', 'offline_retry_interval',
'anon_retry'):
value = getattr(options,k)