mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Enable open mode for master authentication
This commit is contained in:
parent
36984c8d40
commit
d376f4b988
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue