ldapConfig.getUserProperties().getUserProfileMapping().configureFromUserAttributes(uaMap);
// group properties
Node ndGroup = (Node) xpath.evaluate("groups", ndLdap, XPathConstants.NODE);
if (ndGroup != null) {
LdapGroupProperties props = ldapConfig.getGroupProperties();
props.setGroupDisplayNameAttribute(xpath.evaluate(
"@displayNameAttribute", ndGroup));
props.setGroupDynamicMemberAttribute(xpath.evaluate(
"@dynamicMemberOfGroupsAttribute", ndGroup));
props.setGroupDynamicMembersAttribute(xpath.evaluate(
"@dynamicMembersAttribute", ndGroup));
props.setGroupMemberAttribute(xpath.evaluate("@memberAttribute", ndGroup));
props.setGroupMemberSearchPattern(xpath.evaluate("@memberSearchPattern",
ndGroup));
props.setGroupNameSearchPattern(xpath.evaluate("@nameSearchPattern",
ndGroup));
props.setGroupSearchDIT(xpath.evaluate("@searchDIT", ndGroup));
}
// metadata management groups
NodeList nlMmg = (NodeList) xpath.evaluate("groups/metadataManagementGroup",ndLdap,XPathConstants.NODESET);
for (int i = 0; i < nlMmg.getLength(); i++) {