summaryrefslogtreecommitdiffstats
path: root/ipa_server
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2008-10-24 14:42:11 -0400
committerRob Crittenden <rcritten@redhat.com>2008-10-24 14:42:11 -0400
commitce199a8dc40fe7837795e384b11b0038eafebddf (patch)
treeb82769a58c98fbaa7aed744d304dbcbd15caeede /ipa_server
parent34520981eeaac5d4f37915509a9e26428e26f5c0 (diff)
downloadfreeipa-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.py4
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')