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:
parent
883ee62017
commit
3c061169bc
@ -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()
|
||||
|
@ -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])
|
||||
|
Loading…
x
Reference in New Issue
Block a user