Skip to content

Commit cf16c42

Browse files
committed
add todo comment
1 parent f2d8d2e commit cf16c42

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rust/user-info-fetcher/src/backend/active_directory.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,9 @@ fn user_name_filter(username: &str) -> Result<String, Error> {
202202
))
203203
}
204204

205+
/// Returns the default Kerberos realm name, which is used to construct user filters.
206+
/// TODO: this could be moved in a backend specific initialization function,
207+
/// but currently there is no trait for backend implementations.
205208
fn default_realm_name() -> Result<String, Error> {
206209
let krb_context = KrbContext::new().context(KerberosContextSnafu)?;
207210
let krb_realm = krb_context.default_realm().context(KerberosRealmSnafu)?;

0 commit comments

Comments
 (0)