mirror of
https://github.com/ViViDboarder/bitwarden_rs_ldap.git
synced 2024-12-22 09:07:34 +00:00
also log uid when email not found
This commit is contained in:
parent
2f6ecc6860
commit
8be4057e3b
@ -142,7 +142,11 @@ fn invite_from_ldap(
|
||||
// println!("Invite response: {:?}", response);
|
||||
}
|
||||
} else {
|
||||
println!("Warning: Email field, {:?}, not found on user", mail_field);
|
||||
match ldap_user.attrs.get("uid").and_then(|l| l.first()) {
|
||||
Some(user_uid) =>
|
||||
println!("Warning: Email field, {:?}, not found on user {}", mail_field, user_uid),
|
||||
None => println!("Warning: Email field, {:?}, not found on user", mail_field)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user