use of org.platformlayer.ops.ldap.LdapDN.LdapDNComponent in project platformlayer by platformlayer.
the class LdapDomainController method buildOrganization.
private OrganizationLdapEntry buildOrganization(LdapDN ldapBase, String o) {
LdapDNComponent head = ldapBase.getHead();
if (!head.attributeName.equals("dc")) {
throw new IllegalStateException("Unexpected DN: " + ldapBase);
}
String dc = head.value;
OrganizationLdapEntry entry = OrganizationLdapEntry.build(o, dc, ldapBase);
entry.setOnlyConfigureOnForce(true);
return entry;
}
Aggregations