]> git.ipfire.org Git - people/stevee/pakfire.git/commitdiff
hub: Don't use a default keytab
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 27 Apr 2023 18:22:52 +0000 (18:22 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 27 Apr 2023 18:22:52 +0000 (18:22 +0000)
This might overwrite when a user is logged in.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
contrib/config/daemon.conf
src/pakfire/hub.py

index 70990a1a0d6f08668e22a71e6a5266c91c0897d3..e15eeaa0d1ab746eb7c83aa2a2ab9ab4289aa900 100644 (file)
@@ -6,4 +6,4 @@
 # server = https://pakfire.ipfire.org/
 
 # The keytab file that is being used to authenticate against the Hub
-keytab = /etc/krb5.keytab
+keytab = /etc/krb5.keytab
index a3b3c7517dec7ab97ea188aad13cffdfb8c1d355..4dba78671263482ba5aa3a28256f04f38e341af4 100644 (file)
@@ -44,8 +44,6 @@ from .i18n import _
 # Setup logging
 log = logging.getLogger("pakfire.hub")
 
-DEFAULT_KEYTAB = "/etc/krb5.keytab"
-
 # Configure some useful defaults for all requests
 tornado.httpclient.AsyncHTTPClient.configure(
        None, defaults = {
@@ -65,7 +63,7 @@ class Hub(object):
                self.url = url
 
                # Store path to keytab
-               self.keytab = keytab or DEFAULT_KEYTAB
+               self.keytab = keytab
 
                # Initialise the HTTP client
                self.client = tornado.httpclient.AsyncHTTPClient()