dsinstance: Fix ldappasswd invocation to specify the server name

Apparently on some machines if this is not done SSL validation will fail.
Fixes bug #394
This commit is contained in:
Simo Sorce 2010-10-18 11:23:44 -04:00
parent 8f82db0e99
commit 2165182492

View File

@ -484,7 +484,7 @@ class DsInstance(service.Service):
os.write(admpwdfd, password)
os.close(admpwdfd)
args = ["/usr/bin/ldappasswd",
args = ["/usr/bin/ldappasswd", "-h", self.fqdn,
"-ZZ", "-x", "-D", "cn=Directory Manager",
"-y", dmpwdfile, "-T", admpwdfile,
"uid=admin,cn=users,cn=accounts,"+self.suffix]