File tree 1 file changed +2
-2
lines changed
examples/simple_bind_authentication/src
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -126,14 +126,14 @@ fn main() {
126
126
do_simple_bind ( & ldap, ldap_manager_dn, ldap_manager_pass) . unwrap ( ) ;
127
127
128
128
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 ) ,
130
130
_ => ( "" . into ( ) , "" . into ( ) , false ) ,
131
131
} ;
132
132
133
133
// We do the simple bind regardless of the user existence, to protect against timing attacks
134
134
// to probe existing users
135
135
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 ) ,
137
137
false => println ! ( "Could not log in" ) ,
138
138
}
139
139
}
You can’t perform that action at this time.
0 commit comments