summaryrefslogtreecommitdiffstats
path: root/ipaserver/ipaldap.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/ipaldap.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/ipaldap.py')
-rw-r--r--ipaserver/ipaldap.py19
1 files changed, 0 insertions, 19 deletions
diff --git a/ipaserver/ipaldap.py b/ipaserver/ipaldap.py
index b4d0a5d9a..72fc4afee 100644
--- a/ipaserver/ipaldap.py
+++ b/ipaserver/ipaldap.py
@@ -1697,25 +1697,6 @@ class IPAdmin(LDAPClient):
return modlist
- def inactivateEntry(self,dn, has_key):
- """Rather than deleting entries we mark them as inactive.
- has_key defines whether the entry already has nsAccountlock
- set so we can determine which type of mod operation to run."""
-
- assert isinstance(dn, DN)
- modlist = []
-
- if has_key:
- operation = ldap.MOD_REPLACE
- else:
- operation = ldap.MOD_ADD
-
- modlist.append((operation, "nsAccountlock", "TRUE"))
-
- with self.error_handler():
- self.modify_s(dn, modlist)
- return True
-
def waitForEntry(self, dn, timeout=7200, attr='', quiet=True):
filter = "(objectclass=*)"
attrlist = []