| |
@@ -35,11 +35,6 @@
|
| |
REMOTEKOJIHUB = 'https://koji.fedoraproject.org/kojihub'
|
| |
PACKAGEURL = 'http://kojipkgs.fedoraproject.org/'
|
| |
|
| |
- # Should probably set these from a koji config file
|
| |
- SERVERCA = os.path.expanduser('~/.fedora-server-ca.cert')
|
| |
- CLIENTCA = os.path.expanduser('~/.fedora-upload-ca.cert')
|
| |
- CLIENTCERT = os.path.expanduser('~/.fedora.cert')
|
| |
-
|
| |
session_opts = {}
|
| |
session_opts['krbservice'] = 'host'
|
| |
session_opts['krb_rdns'] = False
|
| |
@@ -69,14 +64,11 @@
|
| |
# setup the koji session
|
| |
logging.info('Setting up koji session')
|
| |
localkojisession = koji.ClientSession(LOCALKOJIHUB, session_opts)
|
| |
- remotekojisession = koji.ClientSession(REMOTEKOJIHUB)
|
| |
- if os.path.isfile(CLIENTCERT):
|
| |
- localckojisession.ssl_login(CLIENTCERT, CLIENTCA, SERVERCA)
|
| |
+ remotekojisession = koji.ClientSession(REMOTEKOJIHUB, {'krb_rdns': False})
|
| |
+ if args.keytab and args.principal:
|
| |
+ localkojisession.krb_login(principal=args.principal, keytab=args.keytab)
|
| |
else:
|
| |
- if args.keytab and args.principal:
|
| |
- localkojisession.krb_login(principal=args.principal, keytab=args.keytab)
|
| |
- else:
|
| |
- localkojisession.krb_login()
|
| |
+ localkojisession.krb_login()
|
| |
|
| |
pg = progress.TextMeter()
|
| |
|
| |
Signed-off-by: Patrick Uiterwijk puiterwijk@redhat.com