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.

Console Message Displays When ypserv -ir (or -Ir) RunsProblem: A simple message is displayed on the console <strong>and</strong> the server exits (adetailed description is written to syslog).Cause: The syntax of the mapping file might be incorrect.Solution: Check <strong>and</strong> correct the syntax in the <strong>NIS</strong><strong>LDAP</strong>mapping file.<strong>NIS</strong> Daemon Exits at StartupProblem: When ypserv or other <strong>NIS</strong> daemons run, an <strong>LDAP</strong>-related errormessage is logged <strong>and</strong> the daemon exits.Cause: The cause might be one of the following:■■The <strong>LDAP</strong> server cannot be contacted.An entry found in an <strong>NIS</strong> map or in the DIT is incompatible with the mappingspecified.■ An attempt to read or write to the <strong>LDAP</strong> server returns an error.Solution: Examine the error log on the <strong>LDAP</strong> server. See the <strong>LDAP</strong> errors that arelisted in “Common <strong>LDAP</strong> Error Messages” on page 244.Unexpected Results From <strong>NIS</strong> OperationsProblem: <strong>NIS</strong> operations do not return the expected results, but no errors arelogged.Cause: Incorrect entries might exist in the <strong>LDAP</strong> or <strong>NIS</strong> maps, which results inmappings not completing as intended.Solution: Check <strong>and</strong> correct entries in the <strong>LDAP</strong> DIT <strong>and</strong> in the N2L versions ofthe <strong>NIS</strong> maps.1. Check that the correct entries exist in the <strong>LDAP</strong> DIT, <strong>and</strong> correct the entries asneeded.If you are using the Sun Java System <strong>Directory</strong> Server, start the managementconsole by running directoryserver startconsole.2. Check that the N2L versions of the <strong>NIS</strong> maps in the /var/yp directory containthe expected entries by comparing the newly generated map to the originalmap. Correct entries as needed.# cd /var/yp/domainname# makedbm -u test.byname# makedbm -u <strong>LDAP</strong>_test.bynameBe aware of the following when checking the output for the maps:■■The order of entries might not be the same in both files.Use the sort comm<strong>and</strong> before comparing output.The use of white space might not be the same in both files.Use the diff -b comm<strong>and</strong> when comparing output.Processing Order of <strong>NIS</strong> Maps246 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!