Skip to content

Commit 4cd6f92

Browse files
committed
(docker-based-examples) updted example text
1 parent 3591f2d commit 4cd6f92

File tree

1 file changed

+2
-2
lines changed
  • examples/simple_bind_authentication/src

1 file changed

+2
-2
lines changed

examples/simple_bind_authentication/src/main.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -126,14 +126,14 @@ fn main() {
126126
do_simple_bind(&ldap, ldap_manager_dn, ldap_manager_pass).unwrap();
127127

128128
let (dn, passwd, valid) = match ldap_dn_lookup(&ldap, user_to_authenticate.as_str()) {
129-
Ok(fry_dn) => (fry_dn, pwd_to_authenticate, true),
129+
Ok(dn) => (dn, pwd_to_authenticate, true),
130130
_ => ("".into(), "".into(), false),
131131
};
132132

133133
// We do the simple bind regardless of the user existence, to protect against timing attacks
134134
// to probe existing users
135135
match do_simple_bind(&ldap, dn.as_str(), passwd.as_str()).is_ok() && valid {
136-
true => println!("Successfully signed in as fry"),
136+
true => println!("Successfully signed in as {}", dn),
137137
false => println!("Could not log in"),
138138
}
139139
}

0 commit comments

Comments
 (0)