mirror of
https://github.com/lldap/lldap.git
synced 2026-07-25 17:58:44 +00:00
server: Prevent passwords and secrets from being printed
This commit is contained in:
committed by
nitnelave
parent
617a0f53fa
commit
9124339b96
+3
-2
@@ -20,10 +20,11 @@ mod domain;
|
||||
mod infra;
|
||||
|
||||
async fn create_admin_user(handler: &SqlBackendHandler, config: &Configuration) -> Result<()> {
|
||||
let pass_length = config.ldap_user_pass.unsecure().len();
|
||||
assert!(
|
||||
config.ldap_user_pass.len() >= 8,
|
||||
pass_length >= 8,
|
||||
"Minimum password length is 8 characters, got {} characters",
|
||||
config.ldap_user_pass.len()
|
||||
pass_length
|
||||
);
|
||||
handler
|
||||
.create_user(CreateUserRequest {
|
||||
|
||||
Reference in New Issue
Block a user