![]() |
![]() |
| |||||
Chapter 17LDAP Troubleshooting (Reference)This chapter describes configuration problems and suggests solutions for resolving them. Monitoring Client StatusThe following sections show various commands to help determine the state of the LDAP client environment. Also see the man pages for additional information about the options that can be used. Verifying ldap_cachemgr Is RunningThe ldap_cachemgr daemon must be running and functioning correctly at all times. Otherwise, the system doesn't work. There are two ways to check if ldap_cachemgr is running.
Checking the Current Profile InformationBecome superuser and run ldapclient with the -l option.
Currently the /var/ldap files are in ASCII format. Because the files could change to binary at some time, concatenating the files would cause problems. ldapclient list is the supported method for accessing this information. Verifying Basic Client-Server CommunicationThe best way to show that your client is talking to the LDAP server is with the ldaplist command. Using ldaplist with no arguments dumps all the containers on the server. This works as long as the containers exist, and do not have to be populated. If the first step works, you can try ldaplist passwd username or ldaplist hosts hostname but if they contain lots of data you might want to pick a less populated service, or pipe them to head or more. Checking Server Data From a Non-Client MachineMost of the commands in the previous sections assume you already have created an LDAP client. If you have not created a client and want to check the data on the server, use the ldapsearch command. The following example lists all of the containers.
Configuration Problems and SolutionsThe following sections describe LDAP configuration problems and suggests solutions to the problems. Unresolved HostnameThe Solaris operating environment LDAP client back end returns fully qualified host names for host lookups, such as host names returned by gethostbyname() and getaddrinfo(). If the name stored is qualified, that is, contains at least one dot, the client returns the name as is. For example, if the name stored is hostB.eng, the returned name is hostB.eng. If the name stored in the LDAP directory is not qualified (it does not contain a dot), the client back end appends the domain part to the name. For example, if the name stored is hostA, the returned name is hostA.domainname. Unable to Reach Systems in the LDAP Domain RemotelyIf the DNS domain name is different from the LDAP domain name, then the LDAP naming service cannot be used to serve host names unless the host names are stored fully qualified. Login Does Not WorkLDAP clients use the PAM modules for user authentication during login. When using the standard UNIX PAM module, the password is read from the server and checked on the client side. This can fail due to one of the following reasons:
| |||||
| |||||