Examples of HdbDatabaseEntry


Examples of org.platformlayer.service.openldap.ops.ldap.HdbDatabaseEntry

    ManagedFilesystemItem directory = ManagedDirectory.build(dataDir, "0700").setGroup("openldap")
        .setOwner("openldap");
    addChild(directory);

    HdbDatabaseEntry db = buildDatabase(ldapBase, dataDir, hostName);
    addChild(db);

    OrganizationLdapEntry organization = buildOrganization(ldapBase, ldapBaseOrganization);
    organization.setTop(true);
    addChild(organization);
View Full Code Here

Examples of org.platformlayer.service.openldap.ops.ldap.HdbDatabaseEntry

        "Groups");
    addChild(groups);
  }

  private HdbDatabaseEntry buildDatabase(LdapDN ldapBase, File dataDir, String dbName) {
    HdbDatabaseEntry database = Injection.getInstance(HdbDatabaseEntry.class);

    database.setLdapDN(new LdapDN(LdapAttributes.LDAP_ATTRIBUTE_CN, "config").childDN("olcDatabase", "hdb"));
    database.setLdapRoot(ldapBase);
    database.setDataDirectory(dataDir);
    database.setDbName(dbName);

    database.setOnlyConfigureOnForce(true);

    return database;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.