mirror of
https://github.com/nitnelave/lldap.git
synced 2023-04-12 14:25:13 +00:00
parent
36eed1e091
commit
c108921dcf
@ -15,7 +15,7 @@ use ldap3_server::proto::{
|
|||||||
LdapFilter, LdapOp, LdapPartialAttribute, LdapPasswordModifyRequest, LdapResult,
|
LdapFilter, LdapOp, LdapPartialAttribute, LdapPasswordModifyRequest, LdapResult,
|
||||||
LdapResultCode, LdapSearchRequest, LdapSearchResultEntry, LdapSearchScope,
|
LdapResultCode, LdapSearchRequest, LdapSearchResultEntry, LdapSearchScope,
|
||||||
};
|
};
|
||||||
use tracing::{debug, instrument, warn};
|
use tracing::{debug, info, instrument, warn};
|
||||||
|
|
||||||
#[derive(Debug, PartialEq, Eq, Clone)]
|
#[derive(Debug, PartialEq, Eq, Clone)]
|
||||||
struct LdapDn(String);
|
struct LdapDn(String);
|
||||||
@ -738,6 +738,7 @@ impl<Backend: BackendHandler + LoginHandler + OpaqueHandler> LdapHandler<Backend
|
|||||||
let parsed_filters = match user_filter {
|
let parsed_filters = match user_filter {
|
||||||
None => filters,
|
None => filters,
|
||||||
Some(u) => {
|
Some(u) => {
|
||||||
|
info!("Unpriviledged search, limiting results");
|
||||||
UserRequestFilter::And(vec![filters, UserRequestFilter::UserId((*u).clone())])
|
UserRequestFilter::And(vec![filters, UserRequestFilter::UserId((*u).clone())])
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -802,6 +803,7 @@ impl<Backend: BackendHandler + LoginHandler + OpaqueHandler> LdapHandler<Backend
|
|||||||
let parsed_filters = match user_filter {
|
let parsed_filters = match user_filter {
|
||||||
None => filter,
|
None => filter,
|
||||||
Some(u) => {
|
Some(u) => {
|
||||||
|
info!("Unpriviledged search, limiting results");
|
||||||
GroupRequestFilter::And(vec![filter, GroupRequestFilter::Member((*u).clone())])
|
GroupRequestFilter::And(vec![filter, GroupRequestFilter::Member((*u).clone())])
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user