13.07.2015 Views

Naming and Directory Services (DNS, NIS, and LDAP)

Naming and Directory Services (DNS, NIS, and LDAP)

Naming and Directory Services (DNS, NIS, and LDAP)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

EXAMPLE 11–1 Running idsconfig for the Example, Inc. Network(Continued)directoryserver -s myserver vlvindex -n userRoot -T west.example.com.getip6entPopulating the <strong>Directory</strong> Server UsingldapaddentNote – Before populating the directory server with data, you must configure the serverto store passwords in UNIX Crypt format if you are using pam_unix. If you areusing pam_ldap, you can store passwords in any format. For more information aboutsetting the password in UNIX crypt format, see the Sun Java System <strong>Directory</strong> Serverdocuments.ldapaddent reads from the st<strong>and</strong>ard input (that being an /etc/filename likepasswd) <strong>and</strong> places this data to the container associated with the service. Clientconfiguration determines how the data will be written by default.Note – ldapaddent(1M) can only run on an <strong>LDAP</strong> client. Chapter 12 describes how toconfigure a client for the <strong>LDAP</strong> naming service.▼How to Populate Sun Java System <strong>Directory</strong> ServerWith User Password Data Using ldapaddentSee ldapaddent(1M). See Chapter 9 for information about <strong>LDAP</strong> security <strong>and</strong>write-access to the directory server.●Use the ldapaddent comm<strong>and</strong> to add /etc/passwd entries to the server.# ldapaddent -D "cn=directory manager" -f /etc/passwd passwdChapter 11 • Setting Up Sun Java System <strong>Directory</strong> Server With <strong>LDAP</strong> Clients (Tasks) 171

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!