summaryrefslogtreecommitdiffstats
path: root/ipaserver/install/krbinstance.py
diff options
context:
space:
mode:
authorPetr Viktorin <pviktori@redhat.com>2013-01-23 09:35:55 -0500
committerMartin Kosek <mkosek@redhat.com>2013-03-01 16:59:45 +0100
commite815c1893d4f8118c1308cb7e306826442988863 (patch)
treeff9d3c447d63481229dd809e1ffb021ac3d3a990 /ipaserver/install/krbinstance.py
parentf8ad7cb96f065ca0dc557d8be95fd33a95d34d17 (diff)
downloadfreeipa-e815c1893d4f8118c1308cb7e306826442988863.tar.gz
freeipa-e815c1893d4f8118c1308cb7e306826442988863.tar.xz
freeipa-e815c1893d4f8118c1308cb7e306826442988863.zip
Replace deleteEntry with delete_entry
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, 2 insertions, 2 deletions
diff --git a/ipaserver/install/krbinstance.py b/ipaserver/install/krbinstance.py
index 71490603d..26de08d46 100644
--- a/ipaserver/install/krbinstance.py
+++ b/ipaserver/install/krbinstance.py
@@ -104,7 +104,7 @@ class KrbInstance(service.Service):
service_dn = DN(('krbprincipalname', principal), self.get_realm_suffix())
service_entry = self.admin_conn.getEntry(service_dn, ldap.SCOPE_BASE)
- self.admin_conn.deleteEntry(service_dn)
+ self.admin_conn.delete_entry(service_entry)
# Create a host entry for this master
host_dn = DN(
@@ -263,7 +263,7 @@ class KrbInstance(service.Service):
"(objectclass=nsSaslMapping)")
for r in res:
try:
- self.admin_conn.delete_entry(r.dn)
+ self.admin_conn.delete_entry(r)
except Exception, e:
root_logger.critical(
"Error during SASL mapping removal: %s", e)