Kumpelinus
08/28/2025, 9:55 AMKumpelinus
08/28/2025, 9:55 AMKumpelinus
08/28/2025, 9:55 AMKumpelinus
08/28/2025, 9:55 AMKumpelinus
08/28/2025, 9:55 AMnitnelave
08/28/2025, 9:57 AMnitnelave
08/28/2025, 9:57 AMnitnelave
08/28/2025, 9:57 AMKumpelinus
08/28/2025, 9:57 AMKumpelinus
08/28/2025, 11:07 AMT0by
08/28/2025, 7:58 PM-b dc=example,dc=com -s one
, the server should only show ou=People
and ou=Groups
as the scope(depth) is one. However in the current state, this gets ignored and the servers returns all entries instead, which is the main cause of issue with the LDAP browsers I tested. I tried some implementations without changing much of the existing code (basically intercepting) but this gets dirty very quickly.
(Also the way subschema requests are intercepted now can be done a bit more cleany if we have one central place where the request is processed).
Any opionions on this matter?:) ( @nitnelave )nitnelave
08/29/2025, 6:01 AMnitnelave
09/02/2025, 12:28 PMKumpelinus
09/02/2025, 12:29 PMnitnelave
09/02/2025, 9:50 PMT0by
09/02/2025, 9:54 PMKumpelinus
09/03/2025, 9:11 AMtoml
[trusted_header_options]
enabled = true
header_name = "Remote-User"
logout_url = "https://auth.example.com/logout"
trusted_cidrs = ["127.0.0.0/8", "::1/128"]
idk. I don't like this. Maybe I should make it be trusted_proxies or smth? And the section name is also a bit meh.Kumpelinus
09/03/2025, 9:11 AMKumpelinus
09/03/2025, 9:11 AMnitnelave
09/03/2025, 9:30 AMnitnelave
09/03/2025, 9:31 AMKumpelinus
09/03/2025, 9:49 AMnitnelave
09/04/2025, 7:23 AMgplubeck
09/06/2025, 8:54 PMgplubeck
09/06/2025, 9:26 PM#[derive(Debug, Clone, Deserialize, Serialize)]
#[serde(default)]
pub struct PasswordPolicyOptions {
// Minimum total length of the password
// Recommended Size is 8
pub min_length: usize,
// Minimum number of uppercase characters required.
// 0 means not required.
// This is not recommended, but only implemented for various bad policy requrements
pub min_uppercase: usize,
/// Minimum number of lowercase characters required.
// 0 means not required.
// This is not recommended, but only implemented for various bad policy requrements
pub min_lowercase: usize,
// Minimum number of digits required.
// 0 means not required.
// This is not recommended, but only implemented for various bad policy requrements
pub min_digits: usize,
// Minimum number of special characters required
// This is not recommended, but only implemented for various bad policy requrements
pub min_special: usize,
// Set of allowed special characters
// If min_special is zero, characters will not be looked at
// This is not recommended, but only implemented for various bad policy requrements
pub allowed_specials: Vec<char>,
}
nitnelave
09/07/2025, 5:57 AMgplubeck
09/07/2025, 1:32 PMgplubeck
09/08/2025, 2:34 AMnitnelave
09/08/2025, 6:16 AMgplubeck
09/08/2025, 10:51 PM