System Administration Guide: Naming and Directory Services (DNS, NIS, and LDAP)

ProcedureHow to Populate the Directory Server With Additional Profiles Using ldapclient

  1. Become superuser or assume an equivalent role.

    Roles contain authorizations and privileged commands. For more information about roles, see Chapter 9, Using Role-Based Access Control (Tasks), in System Administration Guide: Security Services.

  2. Use ldapclient with the genprofile command.

    # ldapclient genprofile \
    -a profileName=myprofile \
    -a defaultSearchBase=dc=west,dc=example,dc=com \
    -a "defaultServerList=" \

    > myprofile.ldif

  3. Upload the new profile to the server.

    # ldapadd -h -D “cn=directory manager” -f myprofile.ldif