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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

authenticationMethod=sasl/cram-md5nisplus<strong>LDAP</strong>proxyUser=cn=nisplusAdmin,ou=People,dc=some,dc=domainnisplus<strong>LDAP</strong>proxyPassword=awordBe sure to protect the file where the password is stored from unauthorized access.Using SSLThe rpc.nisd daemon also supports transport layer encryption of <strong>LDAP</strong> traffic usingSSL. Consult your <strong>LDAP</strong> server documentation to generate an SSL certificate for<strong>LDAP</strong> server authentication. Store the certificate in a file on the <strong>NIS</strong>+ server(/var/nis/cert7.db, for example) <strong>and</strong> modify /etc/default/rpc.nisd asfollows.nisplus<strong>LDAP</strong>TLS=sslnisplus<strong>LDAP</strong>TLSCertificateDBPath=/var/nis/cert7.dbBe sure to protect the certificate file from unauthorized access. Note that the aboveprovides session encryption <strong>and</strong> authentication of the <strong>LDAP</strong> server to the rpc.nisd.It does not provide authentication of the rpc.nisd to the <strong>LDAP</strong> server, since thecertificate does not contain anything that identifies the <strong>LDAP</strong> client (rpc.nisd).However, you can combine SSL with another authentication method (simple,sasl/digest-md5) in order to achieve mutual authentication.Performance <strong>and</strong> IndexingWhen the rpc.nisd daemon is asked to enumerate an <strong>NIS</strong>+ table (using niscat(1)for example) that is mapped from <strong>LDAP</strong>, it will enumerate the corresponding <strong>LDAP</strong>container if at least one entry in the table has an expired TTL. Although this containerenumeration is done in the background, so that <strong>LDAP</strong> performance is of limitedimportance, it can nevertheless be beneficial to establish <strong>LDAP</strong> indices to speed upcontainer enumeration for large containers.To obtain an estimate of the amount of time required for enumeration of a particularcontainer, you can use a comm<strong>and</strong> like the following.% /bin/time ldapsearch -h server-address -D bind-DN -w password \-b container, search-base ’cn=*’ /dev/nullwhere■■server-addressIP address portion of preferredServerList value from/etc/default/rpc.nisdbind-DNnisplus<strong>LDAP</strong>proxyUser value from /etc/default/rpc.nisd272 System Administration Guide: <strong>Naming</strong> <strong>and</strong> <strong>Directory</strong> <strong>Services</strong> (<strong>DNS</strong>, <strong>NIS</strong>, <strong>and</strong> <strong>LDAP</strong>) • January 2005

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

Saved successfully!

Ooh no, something went wrong!