mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Fix mark_entry_active()
Reverse order of search filter so we return a useful NotFound exception
This commit is contained in:
parent
dd9206deb6
commit
5237fcbf42
@ -127,10 +127,10 @@ class ldap(CrudBackend):
|
||||
if not object_type:
|
||||
return None
|
||||
|
||||
search_filter = "(&(%s=%s)(objectclass=%s))" % (
|
||||
search_filter = "(&(objectclass=%s)(%s=%s))" % (
|
||||
object_type,
|
||||
key_attribute,
|
||||
self.dn.escape_dn_chars(primary_key),
|
||||
object_type
|
||||
self.dn.escape_dn_chars(primary_key)
|
||||
)
|
||||
|
||||
search_base = "%s, %s" % (self.api.env.container_accounts, self.api.env.basedn)
|
||||
@ -153,7 +153,7 @@ class ldap(CrudBackend):
|
||||
return servercore.get_ipa_config()
|
||||
|
||||
def mark_entry_active(self, dn):
|
||||
return servercore.mark_entry_inactive(dn)
|
||||
return servercore.mark_entry_active(dn)
|
||||
|
||||
def mark_entry_inactive(self, dn):
|
||||
return servercore.mark_entry_inactive(dn)
|
||||
|
Loading…
Reference in New Issue
Block a user