mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
trusts: combine filters with AND to make sure only the intended domain matches
This commit is contained in:
committed by
Alexander Bokovoy
parent
ced2170b9d
commit
c088c940e6
@@ -255,7 +255,8 @@ class trust(LDAPObject):
|
||||
trust_type = kwargs.get('trust_type')
|
||||
if trust_type is None:
|
||||
ldap = self.backend
|
||||
filter = ldap.make_filter({'objectclass': ['ipaNTTrustedDomain'], 'cn': [keys[-1]]})
|
||||
filter = ldap.make_filter({'objectclass': ['ipaNTTrustedDomain'], 'cn': [keys[-1]] },
|
||||
rules=ldap.MATCH_ALL)
|
||||
filter = ldap.combine_filters((filter, "ipaNTSIDBlacklistIncoming=*"), rules=ldap.MATCH_ALL)
|
||||
try:
|
||||
result = ldap.get_entries(DN(self.container_dn, self.env.basedn),
|
||||
|
Reference in New Issue
Block a user