add forgotten keytab var
Signed-off-by: Stephen Coady <scoady@redhat.com>
This commit is contained in:
parent
06796caabf
commit
e66217f737
1 changed files with 2 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
||||||
import logging
|
import logging
|
||||||
|
import os
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
import requests.exceptions
|
import requests.exceptions
|
||||||
|
@ -19,6 +20,7 @@ class Client(object):
|
||||||
def __init__(self, url, principal=None):
|
def __init__(self, url, principal=None):
|
||||||
self.url = url
|
self.url = url
|
||||||
self.principal = principal
|
self.principal = principal
|
||||||
|
os.environ["KRB5_CLIENT_KTNAME"] = "/etc/krb5.keytab"
|
||||||
try:
|
try:
|
||||||
creds = Credentials(usage="initiate")
|
creds = Credentials(usage="initiate")
|
||||||
except exceptions.GSSError as e:
|
except exceptions.GSSError as e:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue