From 253161f2297bd2140df9128a11dc1ce44350014c Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Jan 17 2017 19:12:19 +0000 Subject: Allow principal and keytab in cli config Signed-off-by: Patrick Uiterwijk --- diff --git a/cli/koji.conf b/cli/koji.conf index 4294603..ae77e4e 100644 --- a/cli/koji.conf +++ b/cli/koji.conf @@ -19,6 +19,12 @@ ;the service name of the principal being used by the hub ;krbservice = host +;the principal to auth as for automated clients +;principal = client@EXAMPLE.COM + +;the keytab to auth as for automated clients +;keytab = /etc/krb5.keytab + ;configuration for SSL authentication ;client certificate diff --git a/koji/__init__.py b/koji/__init__.py index ed57965..55e11ae 100644 --- a/koji/__init__.py +++ b/koji/__init__.py @@ -1584,6 +1584,8 @@ def read_config(profile_name, user_config=None): 'poll_interval': 6, 'krbservice': 'host', 'krb_rdns': True, + 'principal': None, + 'keytab': None, 'cert': None, 'ca': '', # FIXME: remove in next major release 'serverca': None,