1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2025-03-21 18:50:38 +03:00

Replace KRB5CCNAME to machine_kinit()

This commit is contained in:
Evgeny Sinelnikov 2020-07-01 00:27:54 +04:00
parent 883ee62017
commit 3c061169bc
2 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,6 @@ class gpoa_controller:
'''
GPOA controller entry point
'''
os.environ['KRB5CCNAME'] = 'FILE:{}'.format(self.cache_path)
self.__kinit_successful = machine_kinit(self.cache_path)
self.start_plugins()
self.start_backend()

View File

@ -29,6 +29,7 @@ def machine_kinit(cache_name=None):
Perform kinit with machine credentials
'''
host = get_machine_name()
os.environ['KRB5CCNAME'] = 'FILE:{}'.format(cache_name)
kinit_cmd = ['kinit', '-k', host]
if cache_name:
kinit_cmd.extend(['-c', cache_name])