mirror of
https://github.com/valitydev/salt.git
synced 2024-11-06 16:45:27 +00:00
Enable open mode for master authentication
This commit is contained in:
parent
36984c8d40
commit
d376f4b988
@ -189,7 +189,7 @@ class ReqServer(threading.Thread):
|
||||
pubfn = os.path.join(self.opts['pki_dir'],
|
||||
'minions',
|
||||
load['hostname'])
|
||||
if os.path.isfile(pubfn):
|
||||
if os.path.isfile(pubfn) and not self.opts['open_mode']:
|
||||
if not open(pubfn, 'r').read() == load['pub']:
|
||||
# The keys don't authenticate, return a failure
|
||||
ret = {'enc': 'clear',
|
||||
|
Loading…
Reference in New Issue
Block a user