mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Fix cut-and-paste error in pwpolicy plugin
This commit is contained in:
parent
9922f47ecb
commit
4a61ff681c
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user