Search in sources :

Example 1 with LdapDNComponent

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;
}
Also used : OrganizationLdapEntry(org.platformlayer.service.openldap.ops.ldap.OrganizationLdapEntry) LdapDNComponent(org.platformlayer.ops.ldap.LdapDN.LdapDNComponent)

Aggregations

LdapDNComponent (org.platformlayer.ops.ldap.LdapDN.LdapDNComponent)1 OrganizationLdapEntry (org.platformlayer.service.openldap.ops.ldap.OrganizationLdapEntry)1