You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/config.rs
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@ use ini::Ini;
7
7
use anyhow::Error;
8
8
use anyhow::Result;
9
9
use regex::Regex;
10
+
use secrecy::SecretString;
10
11
11
12
usecrate::SubQueryJoin;
12
13
@@ -92,7 +93,7 @@ config_options! {
92
93
ldap_server_url:String = None;"URL of the LDAP server (e.g. 'ldaps://ldap.example.com:636')",
93
94
ldap_conn_timeout:f32 = Some("10.0");"LDAP connection timeout in seconds",
94
95
ldap_bind_dn:String = None;"DN of the LDAP user to bind as (e.g. 'CN=proxyuser,OU=users,DC=example,DC=com')",
95
-
ldap_bind_password:String = None;"Password of the LDAP user to bind as",
96
+
ldap_bind_password:SecretString = None;"Password of the LDAP user to bind as",
96
97
ldap_search_base:String = None;"LDAP base DN to search in (e.g. 'OU=users,DC=example,DC=com')",
97
98
ldap_scope: ldap3::Scope = Some("subtree");"LDAP search scope. Must be 'subtree', 'onelevel' or 'base')",
98
99
ldap_query:String = None;"LDAP query to use. May contain '%USERNAME%', which will be quoted and replaced.\nExample: '(&(objectClass=person)(sAMAccountName=%USERNAME%))",
0 commit comments