readme: Add more information about the configuration of LDAP clients

This commit is contained in:
Valentin Tolmer
2021-10-19 00:20:50 +09:00
committed by nitnelave
parent a43364a70f
commit 7d9c1b1eec
2 changed files with 72 additions and 56 deletions

View File

@@ -41,14 +41,14 @@ fn get_group_id_from_distinguished_name(
if parts.len() == base_tree.len() + 2 {
if parts[1].0 != "ou" || parts[1].1 != "groups" || parts[0].0 != "cn" {
bail!(
r#"Unexpected user DN format. Expected: "cn=groupname,ou=groups,{}""#,
r#"Unexpected group DN format. Expected: "cn=groupname,ou=groups,{}""#,
base_dn_str
);
}
Ok(parts[0].1.to_string())
} else {
bail!(
r#"Unexpected user DN format. Expected: "cn=groupname,ou=groups,{}""#,
r#"Unexpected group DN format. Expected: "cn=groupname,ou=groups,{}""#,
base_dn_str
);
}