summaryrefslogtreecommitdiffstats
path: root/ipalib
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2010-03-23 15:59:54 -0400
committerRob Crittenden <rcritten@redhat.com>2010-03-23 15:59:54 -0400
commit4a61ff681c73f7994d885ee2638d8378c11931c1 (patch)
tree9184731576fdbe78ce0198f6225979f44f00d283 /ipalib
parent9922f47ecbf4d7eb41d09232b01ebdbd80804497 (diff)
downloadfreeipa-4a61ff681c73f7994d885ee2638d8378c11931c1.tar.gz
freeipa-4a61ff681c73f7994d885ee2638d8378c11931c1.tar.xz
freeipa-4a61ff681c73f7994d885ee2638d8378c11931c1.zip
Fix cut-and-paste error in pwpolicy plugin
Diffstat (limited to 'ipalib')
-rw-r--r--ipalib/plugins/pwpolicy.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipalib/plugins/pwpolicy.py b/ipalib/plugins/pwpolicy.py
index 6f864386..f3338ecf 100644
--- a/ipalib/plugins/pwpolicy.py
+++ b/ipalib/plugins/pwpolicy.py
@@ -142,11 +142,11 @@ def unique_priority(ldap, priority):
"""
attrs = ('cospriority',)
- attr_filter = ldap.make_filter({'objectclass':'krbcontainer', 'cospriority':
+ attr_filter = ldap.make_filter({'objectclass':'krbcontainer', 'cospriority':priority }, rules=ldap.MATCH_ALL)
try:
(entries, truncated) = ldap.find_entries(
- attr_filter, attrs, 'cn=cosTemplates,%s' % (api.env.container_accoun
+ attr_filter, attrs, 'cn=cosTemplates,%s' % (api.env.container_accounts), scope=ldap.SCOPE_ONELEVEL
)
return False
except errors.NotFound: