- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {Connection c =
DataSource dataSource;dataSource.getConnection()
String url;DriverManager.getConnection(url)
IdentityDatabaseUtil.getDBConnection()
- Smart code suggestions by Codota
}
private List<String> fetchGroupsFromLdapUser(User user, AuthenticationOrigin authenticationOrigin) throws NamingException { List<String> groups = new ArrayList<>(); if (user == null) { return groups; } String userRdn = (String) user.getAttributes().get("LDAP_RDN"); String base = ((String) authenticationOrigin.getOptions().get(AuthenticationOrigin.USERS_SEARCH)); return LDAPUtils.getGroupsFromLdapUser(authenticationOrigin.getHost(), userRdn, base); }
throw new CatalogException("Internal error: This error should never happen."); authenticationManagerMap.get(authId).authenticate(((String) user.first().getAttributes().get("LDAP_RDN")), password, true);
assertEquals(userPost.getAttributes().get(entry.getKey()), entry.getValue());