|
@@ -60,6 +60,9 @@ public class LdapAuthenticationRealmService {
|
|
ldapContext.getCredentials(),
|
|
ldapContext.getCredentials(),
|
|
ldapContext.getMsadDomain());
|
|
ldapContext.getMsadDomain());
|
|
ldapServer.setActiveDirectoryUtils(ldapUtils);
|
|
ldapServer.setActiveDirectoryUtils(ldapUtils);
|
|
|
|
+ if(ldapContext.getAccountMapping().equalsIgnoreCase("YES")) {
|
|
|
|
+ ldapServer.setMapping(true);
|
|
|
|
+ }
|
|
ldapAuthenticationServers.add(ldapServer);
|
|
ldapAuthenticationServers.add(ldapServer);
|
|
|
|
|
|
}else {
|
|
}else {
|
|
@@ -71,6 +74,9 @@ public class LdapAuthenticationRealmService {
|
|
ldapContext.getBasedn());
|
|
ldapContext.getBasedn());
|
|
standardLdapServer.setLdapUtils(ldapUtils);
|
|
standardLdapServer.setLdapUtils(ldapUtils);
|
|
standardLdapServer.setFilterAttribute(ldapContext.getFilters());
|
|
standardLdapServer.setFilterAttribute(ldapContext.getFilters());
|
|
|
|
+ if(ldapContext.getAccountMapping().equalsIgnoreCase("YES")) {
|
|
|
|
+ standardLdapServer.setMapping(true);
|
|
|
|
+ }
|
|
ldapAuthenticationServers.add(standardLdapServer);
|
|
ldapAuthenticationServers.add(standardLdapServer);
|
|
}
|
|
}
|
|
}
|
|
}
|