summaryrefslogtreecommitdiffstats
path: root/ipaserver/install/krbinstance.py
diff options
context:
space:
mode:
authorPetr Viktorin <pviktori@redhat.com>2013-01-23 10:15:25 -0500
committerMartin Kosek <mkosek@redhat.com>2013-03-01 16:59:45 +0100
commitfc571da1af5271caf76e08c359d85e386d67f2a4 (patch)
tree8b070c4c9cf18d89a7ae8ab67289be06f9dcf316 /ipaserver/install/krbinstance.py
parent5184c312f6dd1a885c9e0e10e3763eddb8110bae (diff)
downloadfreeipa-fc571da1af5271caf76e08c359d85e386d67f2a4.tar.gz
freeipa-fc571da1af5271caf76e08c359d85e386d67f2a4.tar.xz
freeipa-fc571da1af5271caf76e08c359d85e386d67f2a4.zip
Inline inactivateEntry in its only caller
Part of the work for: https://fedorahosted.org/freeipa/ticket/2660
Diffstat (limited to 'ipaserver/install/krbinstance.py')
-rw-r--r--ipaserver/install/krbinstance.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ipaserver/install/krbinstance.py b/ipaserver/install/krbinstance.py
index 2380d55f6..f3008c918 100644
--- a/ipaserver/install/krbinstance.py
+++ b/ipaserver/install/krbinstance.py
@@ -442,7 +442,9 @@ class KrbInstance(service.Service):
# Create the special anonymous principal
installutils.kadmin_addprinc(princ_realm)
dn = DN(('krbprincipalname', princ_realm), self.get_realm_suffix())
- self.admin_conn.inactivateEntry(dn, False)
+ entry = self.admin_conn.get_entry(dn)
+ entry['nsAccountlock'] = ['TRUE']
+ self.admin_conn.update_entry(entry)
def __convert_to_gssapi_replication(self):
repl = replication.ReplicationManager(self.realm,