File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
ldap/src/main/java/org/springframework/security/ldap/search Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 2323
2424import org .springframework .core .log .LogMessage ;
2525import org .springframework .dao .IncorrectResultSizeDataAccessException ;
26- import org .springframework .ldap .core .ContextSource ;
2726import org .springframework .ldap .core .ContextMapper ;
27+ import org .springframework .ldap .core .ContextSource ;
2828import org .springframework .ldap .core .DirContextOperations ;
2929import org .springframework .ldap .core .LdapClient ;
3030import org .springframework .ldap .core .support .BaseLdapPathContextSource ;
@@ -102,11 +102,11 @@ public DirContextOperations searchForUser(String username) {
102102 .contextSource (this .contextSource )
103103 .defaultSearchControls (() -> this .searchControls )
104104 .build ();
105- LdapQuery query = LdapQueryBuilder .query ().base (this .searchBase ).filter (searchFilter , username );
105+ LdapQuery query = LdapQueryBuilder .query ().base (this .searchBase ).filter (this . searchFilter , username );
106106 try {
107107 DirContextOperations operations = ldapClient .search ()
108108 .query (query )
109- .toObject ((ContextMapper <DirContextOperations >) ctx -> (DirContextOperations ) ctx );
109+ .toObject ((ContextMapper <DirContextOperations >) ( ctx ) -> (DirContextOperations ) ctx );
110110 if (operations == null ) {
111111 throw UsernameNotFoundException .fromUsername (username );
112112 }
You can’t perform that action at this time.
0 commit comments