Changed [@user_id] by [USER_ID] in replacement for search query
FEA: ItEr74S09LdapAuhentication
This commit is contained in:
parent
63b414eab9
commit
35f20d5248
2 changed files with 4 additions and 2 deletions
|
|
@ -92,6 +92,8 @@ public class LDAPCustomAuthenticationProvider extends
|
|||
|
||||
private static final String COLON = ":";
|
||||
|
||||
private static final String USER_ID_SUBSTITUTION = "[USER_ID]";
|
||||
|
||||
@Override
|
||||
protected void additionalAuthenticationChecks(UserDetails arg0,
|
||||
UsernamePasswordAuthenticationToken arg1)
|
||||
|
|
@ -303,7 +305,7 @@ public class LDAPCustomAuthenticationProvider extends
|
|||
LdapTemplate ldapTemplate, String username) {
|
||||
|
||||
String queryRoles = configuration.getLdapSearchQuery().replace(
|
||||
"[@user_id]", username);
|
||||
USER_ID_SUBSTITUTION, username);
|
||||
|
||||
final LDAPConfiguration ldapConfig = configuration;
|
||||
String groupsPath = configuration.getLdapGroupPath();
|
||||
|
|
|
|||
|
|
@ -365,7 +365,7 @@
|
|||
<label value="${i18n:_('Role search query:')}" />
|
||||
<hbox>
|
||||
<textbox id="ldapSearchQuery" value="@{configurationController.ldapConfiguration.ldapSearchQuery}" width="300px"/>
|
||||
<label value="${i18n:__('Example: {0}', 'uid=[@user_id],ou=groups,ou=people,dc=example,dc=org')}" />
|
||||
<label value="${i18n:__('Example: {0}', 'uid=[USER_ID],ou=groups,ou=people,dc=example,dc=org')}" />
|
||||
</hbox>
|
||||
</row>
|
||||
</rows>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue