diff options
author | Rob Crittenden <rcritten@redhat.com> | 2008-10-24 14:42:11 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2008-10-24 14:42:11 -0400 |
commit | ce199a8dc40fe7837795e384b11b0038eafebddf (patch) | |
tree | b82769a58c98fbaa7aed744d304dbcbd15caeede /ipa_server | |
parent | 34520981eeaac5d4f37915509a9e26428e26f5c0 (diff) | |
download | freeipa-ce199a8dc40fe7837795e384b11b0038eafebddf.tar.gz freeipa-ce199a8dc40fe7837795e384b11b0038eafebddf.tar.xz freeipa-ce199a8dc40fe7837795e384b11b0038eafebddf.zip |
Change variable name that shadowed built-in (filter)
Diffstat (limited to 'ipa_server')
-rw-r--r-- | ipa_server/plugins/b_ldap.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipa_server/plugins/b_ldap.py b/ipa_server/plugins/b_ldap.py index 2c65ba45..fd78b362 100644 --- a/ipa_server/plugins/b_ldap.py +++ b/ipa_server/plugins/b_ldap.py @@ -106,7 +106,7 @@ class ldap(CrudBackend): if not object_type: return None - filter = "(&(%s=%s)(objectclass=%s))" % ( + search_filter = "(&(%s=%s)(objectclass=%s))" % ( key_attribute, self.dn.escape_dn_chars(primary_key), object_type @@ -114,7 +114,7 @@ class ldap(CrudBackend): search_base = "%s, %s" % (self.api.env.container_accounts, self.api.env.basedn) - entry = servercore.get_sub_entry(search_base, filter, ['dn', 'objectclass']) + entry = servercore.get_sub_entry(search_base, search_filter, ['dn', 'objectclass']) return entry.get('dn') |