항상 ldap_cachemgr 데몬이 올바르게 실행되고 작동해야 합니다. 그렇지 않으면 시스템이 작동하지 않습니다. LDAP 클라이언트 서비스인 svc:/network/ldap/client를 설정하고 시작하면 클라이언트 SMF 메소드가 자동으로 ldap_cachemgr 데몬을 시작합니다. 다음과 같은 다양한 방법으로 LDAP 클라이언트 서비스가 온라인 상태인지 여부를 확인할 수 있습니다.
svcs 명령을 사용하여 서비스가 사용으로 설정되었는지 확인합니다.
# svcs \*ldap\* STATE STIME FMRI disabled Aug_24 svc:/network/ldap/client:default
–l 옵션을 사용하여 서비스에 대한 모든 정보를 확인합니다.
# svcs -l network/ldap/client:default fmri svc:/network/ldap/client:default name LDAP Name Service Client enabled false state disabled next_state none state_time Thu Oct 20 23:04:11 2011 logfile /var/svc/log/network-ldap-client:default.log restarter svc:/system/svc/restarter:default contract_id manifest /lib/svc/manifest/network/ldap/client.xml manifest /lib/svc/manifest/milestone/config.xml manifest /lib/svc/manifest/network/network-location.xml manifest /lib/svc/manifest/system/name-service/upgrade.xml dependency optional_all/none svc:/milestone/config (online) dependency optional_all/none svc:/network/location:default (online) dependency require_all/none svc:/system/filesystem/minimal (online) dependency require_all/none svc:/network/initial (online) dependency require_all/restart svc:/network/nis/domain (online) dependency optional_all/none svc:/system/manifest-import (online) dependency require_all/none svc:/milestone/unconfig (online) dependency optional_all/none svc:/system/name-service/upgrade (online)
–g 옵션을 ldap_cachemgr에 전달합니다.
이 옵션은 문제를 진단할 때 유용한 보다 광범위한 상태 정보를 제공합니다.
# /usr/lib/ldap/ldap_cachemgr -g cachemgr configuration: server debug level 0 server log file "/var/ldap/cachemgr.log" number of calls to ldapcachemgr 19 cachemgr cache data statistics: Configuration refresh information: Previous refresh time: 2010/11/16 18:33:28 Next refresh time: 2010/11/16 18:43:28 Server information: Previous refresh time: 2010/11/16 18:33:28 Next refresh time: 2010/11/16 18:36:08 server: 192.168.0.0, status: UP server: 192.168.0.1, status: ERROR error message: Can't connect to the LDAP server Cache data information: Maximum cache entries: 256 Number of cache entries: 2
ldap_cachemgr 데몬이 사용 안함으로 설정된 경우 다음 명령을 통해 사용으로 설정합니다.
# svcadm enable network/ldap/client
데몬에 대한 자세한 내용은 ldap_cachemgr(1M) 매뉴얼 페이지를 참조하십시오.