包含在尋找其他文件熱門支援資源 | 以 PDF 格式下載這本書 (1065 KB)
Chapter 17 TroubleshootingThis chapter describes configuration problems and suggested solutions. Monitoring Client StatusThis section shows various commands that can be used to help determine the state of the LDAP client environment. For more information see the section on troubleshooting which will give more information on common problems and how to solve them. Also see the man pages for additional information on the options that can be used. Verifying ldap_cachemgr is runningThe ldap_cachemgr daemon must be running and functioning correctly at all times. Otherwise, nothing works. There are two ways to check if ldap_cachemgr is running.
Checking the Current Profile InformationBecome superuser and run ldapclient with the list option. # ldapclient list
Currently the /var/ldap files are in ASCII format, but that could change to binary at some time and cating 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. The simplest form, ldaplist with no arguments will dump 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 above assume you are already 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. # ldapsearch -h server1 -b "dc=west,dc=example,dc=com" -s one "objectclass=*"
Configuration Problems and SolutionsThe following discussion briefly describes LDAP configuration problems and suggested solutions to the problems. Unresolved HostnameThe Solaris operating environment LDAP client backend returns fully qualified hostnames for host lookups, such as hostnames returned by gethostbyname(3N) and getipnodebyname(3N). 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 any dot), the client backend 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(3) modules for user authentication during the logins. When using the standard UNIXTM 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.
Lookup Too SlowThe LDAP database relies on indexes to improve the performance. A major performance degradation occurs when indexes are not configured properly. As part of the documentation, we have provided a common set of attributes that should be indexed. You can also add your own indexes to improve performance at your site. ldapclient Cannot Bind to Serverldapclient failed to initialize the client when using the init profile option. There are several possible reasons for this failure.
Using ldap_cachemgr for DebuggingUsingldap_cachemgr with the —g option can be a useful way to debug, as you can view the current client configuration and statistics. For example, #ldap_cachemgr —g would print current configuration and statistics to standard output, including the status of all LDAP servers, as mentioned previously. Note that you do not need to become superuser to execute this command. ldapclient Hangs During SetupIf the ldapclient command hangs, hitting Ctrl-C will exit after restoring the previous environment. If this happens, check with the server administrator to make sure the server is running. Also check the server list attributes on either the profile or the command line and make sure the server information is correct. Frequently Asked QuestionsCan I use LDAP naming services with Older Solaris Releases?Currently, LDAP is only supported in Solaris 8 and Solaris 9. For differences between the two see New LDAP Naming Service Features for Solaris 9. What are the DIT Default Locations in Solaris LDAP Naming Services? |
|||