//make ambari detect active configuration
properties.setProperty(Configuration.LDAP_BASE_DN_KEY, "dc=ambari,dc=the apache,dc=org");
properties.setProperty(Configuration.LDAP_GROUP_BASE_KEY, "ou=the groups,dc=ambari,dc=the apache,dc=org");
try {
install(new ControllerModule(properties));
} catch (Exception e) {
throw new RuntimeException(e);
}
}