fasjson-aliases: set the keytab env var

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
Aurélien Bompard 2021-03-25 22:36:22 +01:00
parent 740109a295
commit ee65c1dbf0
No known key found for this signature in database
GPG key ID: 31584CFEB9BF64AD

View file

@ -113,6 +113,9 @@ def rename(filename, aliases_file):
def main():
args = sys.argv[1:]
# Use the system's keytab for authentication
os.environ["KRB5_CLIENT_KTNAME"] = "/etc/krb5.keytab"
try:
if not args:
gen_all_aliases()