// LdapUtil.getInstance().createGroupFromLdap(b.getName());
// }
List<LdapGroupVO> ldapGroups = new LdapGroupDAO().getAll();
for(LdapGroupVO group : ldapGroups) {
try {
ctx.lookup(group.getName()+ "," + SystemConfiguration.getInstance().getStringValue(SystemConfiguration.Key.LDAP_GROUP_PREFIX));
} catch(NamingException e) {
if(!group.getProfile().isLocked()) {
if(log.isDebugEnabled())
log.debug("locked profile [" + group.getProfile()+"]");
group.getProfile().setLocked(true);