fix: Return backend search result DN

This commit is contained in:
selfhoster selfhoster 2026-09-18 20:37:49 +02:00
commit b0294bdc40

View file

@ -191,7 +191,7 @@ pub async fn search_by_email_attribute(
for (entry, ctrl) in &mut entries {
trace!("Search result from backend: {entry:?}");
// TODO: maybe don't fail the whole search request here???
let mut dn = match Dn::from_dn_str(&lbr.dn) {
let mut dn = match Dn::from_dn_str(&entry.dn) {
Ok(dn) => dn,
Err(e) => {
SearchError::from(e)