server: Prevent passwords and secrets from being printed

This commit is contained in:
Valentin Tolmer
2021-11-11 10:36:42 +01:00
committed by nitnelave
parent 617a0f53fa
commit 9124339b96
8 changed files with 41 additions and 19 deletions

View File

@@ -437,7 +437,7 @@ mod tests {
let sql_pool = get_in_memory_db().await;
let config = ConfigurationBuilder::default()
.ldap_user_dn("admin".to_string())
.ldap_user_pass("test".to_string())
.ldap_user_pass(secstr::SecUtf8::from("test"))
.build()
.unwrap();
let handler = SqlBackendHandler::new(config, sql_pool);