mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Overwrite ldappwd file to fix bug when reinstalling IPA.
This commit is contained in:
parent
d0c856d547
commit
ab0f69891d
@ -108,7 +108,7 @@ class KrbInstance:
|
||||
hexpwd = ''
|
||||
for x in self.kdc_password:
|
||||
hexpwd += (hex(ord(x))[2:])
|
||||
pwd_fd = open("/var/kerberos/krb5kdc/ldappwd", "a+")
|
||||
pwd_fd = open("/var/kerberos/krb5kdc/ldappwd", "w")
|
||||
pwd_fd.write("uid=kdc,cn=sysaccounts,cn=etc,"+self.suffix+"#{HEX}"+hexpwd+"\n")
|
||||
pwd_fd.close()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user