The kpasswd keytab must not be owned by the dirsrv user.

Fix copy&paste error.
This commit is contained in:
Simo Sorce 2008-04-08 09:25:48 -04:00
parent 0f00ba24a2
commit 6778085531

View File

@ -379,8 +379,6 @@ class KrbInstance(service.Service):
self.fstore.backup_file("/etc/sysconfig/ipa_kpasswd") self.fstore.backup_file("/etc/sysconfig/ipa_kpasswd")
update_key_val_in_file("/etc/sysconfig/ipa_kpasswd", "export KRB5_KTNAME", "/var/kerberos/krb5kdc/kpasswd.keytab") update_key_val_in_file("/etc/sysconfig/ipa_kpasswd", "export KRB5_KTNAME", "/var/kerberos/krb5kdc/kpasswd.keytab")
pent = pwd.getpwnam(self.ds_user)
os.chown("/var/kerberos/krb5kdc/kpasswd.keytab", pent.pw_uid, pent.pw_gid)
def uninstall(self): def uninstall(self):
self.kpasswd.uninstall() self.kpasswd.uninstall()