mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Make sure the nolog argument to ipautil.run is not a bare string
ipautil.run expects a tuple of passwords for nolog; passing a single string causes all individual letters from that string to be replaced by Xes. This fixes such a call, and adds a sanity check to ipautil.run that prevents lone strings from being used in nolog. https://fedorahosted.org/freeipa/ticket/2419
This commit is contained in:
committed by
Rob Crittenden
parent
7fe63f8233
commit
a09063cbb8
@@ -305,7 +305,7 @@ class KrbInstance(service.Service):
|
||||
self.master_password + '\n',
|
||||
)
|
||||
try:
|
||||
ipautil.run(args, nolog=(self.master_password), stdin=''.join(dialogue))
|
||||
ipautil.run(args, nolog=(self.master_password,), stdin=''.join(dialogue))
|
||||
except ipautil.CalledProcessError, e:
|
||||
print "Failed to initialize the realm container"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user