idStore.getSimpleSearchFilter(RoleProfile.NAME,
SimpleSearchFilter.TYPE_EQUAL,
this.createUserRole);
SearchParameters sp = new SearchParameters(filter,
SearchParameters.SEARCH_ROLES_ONLY);
SearchResponse response = idStore.search(sp);
if (response.hasNext()) {
Role role = (Role)response.next();
idStore.getRoleManager().grantRole(role, newUser.getPrincipal());
}
}
ModProperty userAccountControl =
new ModProperty("userAccountControl",