summaryrefslogtreecommitdiffstats
path: root/ipalib
diff options
context:
space:
mode:
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 6f864386d..f3338ecf9 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: