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.

2. Stop the <strong>NIS</strong>+ service.# svcadm disable network/rpc/nisplus:default3. Open the /lib/svc/method/nisplus file.Use the editor of your choice.4. Edit the file to add the desired options.Change:if [ -d /var/nis/data -o -d /var/nis/$hostname ]; then/usr/sbin/rpc.nisd || exit $To:if [ -d /var/nis/data -o -d /var/nis/$hostname ]; then/usr/sbin/rpc.nisd -Y -B || exit $?In this example, the -Y <strong>and</strong> -B options are added to rpc.nisd, so the options areautomatically implemented at startup.5. Save <strong>and</strong> quit the /lib/svc/method/nisplus file.6. Start the <strong>NIS</strong>+ service.# svcadm enable network/rpc/nisplus:defaultCreating Attributes <strong>and</strong> Object ClassesDepending on how you configure the <strong>NIS</strong>+/<strong>LDAP</strong> mapping, you might need to createa number of new <strong>LDAP</strong> attributes <strong>and</strong> object classes. The examples show how to dothis by specifying LDIF data that can be used as input to the ldapadd comm<strong>and</strong>.Create a file containing the LDIF data, <strong>and</strong> then invoke ldapadd(1).# ldapadd -D bind-DN -f ldif -fileThis method works with Sun Java System <strong>Directory</strong> Server, <strong>and</strong> might work withother <strong>LDAP</strong> servers as well.Note – Except for the defaultSearchBase, preferredServerList, <strong>and</strong>authenticationMethod attributes, as well as the SYNTAX specifications, the objectidentifiers (OIDs) used in this chapter are intended for illustration only. As no officialOIDs have been assigned, you are free to use any suitable OIDs.Chapter 16 • Transitioning From <strong>NIS</strong>+ to <strong>LDAP</strong> 255

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

Saved successfully!

Ooh no, something went wrong!