mirror of
https://github.com/nitnelave/lldap.git
synced 2023-04-12 14:25:13 +00:00
ldap: Improve support for group filters
This commit is contained in:
parent
e68d46d4fe
commit
f98023e67f
@ -585,7 +585,9 @@ impl<Backend: BackendHandler + LoginHandler + OpaqueHandler> LdapHandler<Backend
|
|||||||
bail!("Unsupported group filter: {:?}", filter)
|
bail!("Unsupported group filter: {:?}", filter)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
LdapFilter::And(v) if v.is_empty() => Ok(None),
|
LdapFilter::And(v) => v
|
||||||
|
.iter()
|
||||||
|
.fold(Ok(None), |o, f| Ok(o?.xor(self.get_group_filter(f)?))),
|
||||||
_ => bail!("Unsupported group filter: {:?}", filter),
|
_ => bail!("Unsupported group filter: {:?}", filter),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user