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 23
23
24
24
import org .springframework .core .log .LogMessage ;
25
25
import org .springframework .dao .IncorrectResultSizeDataAccessException ;
26
- import org .springframework .ldap .core .ContextSource ;
27
26
import org .springframework .ldap .core .ContextMapper ;
27
+ import org .springframework .ldap .core .ContextSource ;
28
28
import org .springframework .ldap .core .DirContextOperations ;
29
29
import org .springframework .ldap .core .LdapClient ;
30
30
import org .springframework .ldap .core .support .BaseLdapPathContextSource ;
@@ -102,11 +102,11 @@ public DirContextOperations searchForUser(String username) {
102
102
.contextSource (this .contextSource )
103
103
.defaultSearchControls (() -> this .searchControls )
104
104
.build ();
105
- LdapQuery query = LdapQueryBuilder .query ().base (this .searchBase ).filter (searchFilter , username );
105
+ LdapQuery query = LdapQueryBuilder .query ().base (this .searchBase ).filter (this . searchFilter , username );
106
106
try {
107
107
DirContextOperations operations = ldapClient .search ()
108
108
.query (query )
109
- .toObject ((ContextMapper <DirContextOperations >) ctx -> (DirContextOperations ) ctx );
109
+ .toObject ((ContextMapper <DirContextOperations >) ( ctx ) -> (DirContextOperations ) ctx );
110
110
if (operations == null ) {
111
111
throw UsernameNotFoundException .fromUsername (username );
112
112
}
You can’t perform that action at this time.
0 commit comments