Updated configuration files
This commit is contained in:
@@ -327,6 +327,13 @@ impl LdapMappings {
|
||||
fn entry_to_principal(&self, entry: SearchEntry) -> Principal<String> {
|
||||
let mut principal = Principal::default();
|
||||
|
||||
tracing::debug!(
|
||||
context = "ldap",
|
||||
event = "fetch_princpal",
|
||||
entry = ?entry,
|
||||
"LDAP entry"
|
||||
);
|
||||
|
||||
for (attr, value) in entry.attrs {
|
||||
if self.attr_name.contains(&attr) {
|
||||
principal.name = value.into_iter().next().unwrap_or_default();
|
||||
|
||||
@@ -481,11 +481,11 @@ impl ParseValue for Canonicalization {
|
||||
impl ParseValue for IpLookupStrategy {
|
||||
fn parse_value(key: impl AsKey, value: &str) -> super::Result<Self> {
|
||||
Ok(match value.to_lowercase().as_str() {
|
||||
"ipv4-only" => IpLookupStrategy::Ipv4Only,
|
||||
"ipv6-only" => IpLookupStrategy::Ipv6Only,
|
||||
//"ipv4-and-ipv6" => IpLookupStrategy::Ipv4AndIpv6,
|
||||
"ipv6-then-ipv4" => IpLookupStrategy::Ipv6thenIpv4,
|
||||
"ipv4-then-ipv6" => IpLookupStrategy::Ipv4thenIpv6,
|
||||
"ipv4_only" => IpLookupStrategy::Ipv4Only,
|
||||
"ipv6_only" => IpLookupStrategy::Ipv6Only,
|
||||
//"ipv4_and_ipv6" => IpLookupStrategy::Ipv4AndIpv6,
|
||||
"ipv6_then_ipv4" => IpLookupStrategy::Ipv6thenIpv4,
|
||||
"ipv4_then_ipv6" => IpLookupStrategy::Ipv4thenIpv6,
|
||||
_ => {
|
||||
return Err(format!(
|
||||
"Invalid IP lookup strategy {:?} for property {:?}.",
|
||||
|
||||
Reference in New Issue
Block a user