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

ProcedureHow to Populate Sun Java System Directory Server With User Password Data Using ldapaddent

See ldapaddent(1M). See Chapter 9, LDAP Basic Components and Concepts (Overview) for information about LDAP security and write-access to the directory server.

  1. Use the ldapaddent command to add /etc/passwd entries to the server.

    # ldapaddent -D "cn=directory manager" -f /etc/passwd passwd