usersCache.setMaxElementsOnDisk(
redbackRuntimeConfiguration.getUsersCacheConfiguration().getMaxElementsOnDisk() );
-
ldapUserMapper.initialize();
return Boolean.TRUE;
toProperties( ldapConfiguration.getExtraProperties() ) );
ldapConnection = ldapConnectionFactory.getConnection( ldapConnectionConfiguration );
+
+ ldapConnection.close();
+
+ // verify groups dn value too
+
+ ldapConnectionConfiguration =
+ new LdapConnectionConfiguration( ldapConfiguration.getHostName(), ldapConfiguration.getPort(),
+ ldapConfiguration.getBaseGroupsDn(),
+ ldapConfiguration.getContextFactory(), ldapConfiguration.getBindDn(),
+ ldapConfiguration.getPassword(),
+ ldapConfiguration.getAuthenticationMethod(),
+ toProperties( ldapConfiguration.getExtraProperties() ) );
+
+ ldapConnection = ldapConnectionFactory.getConnection( ldapConnectionConfiguration );
}
catch ( InvalidNameException e )
{