Unix/유닉스와 디렉토리

ldapclient

ForceCore 2006. 7. 8. 05:59
PAM으로 LDAP인증을 했을 때 왜 실패했는지 알게 되었다.
현재 컴퓨터가 LDAP서버이긴 하지만
LDAP클라이언트 설정이 하나도 안 되어 있기 때문이다.
(-_-....)

nsswitch.ldap을 nsswitch.conf로 이름을 변경하는 것도 설정의
일부이기는 하나, 다른 설정이 하나도 되어 있지 않아서
"좋은일"이 일어나진 않았던 것이다.


http://mleahu.home.cern.ch/mleahu/doc/unix/ldap/Using%20LDAP%20to%20Manage%20Unix%20Accounts.htm

으으으음... 어떻게 하지 -0-?
얼마 전에 다운받은 Sun에서 만든 White Paper를 보니까
(White Paper:백서 -_-;;)

ldapclient init 서버주소
를 하는게 있다.

# ldapclient init localhost
도메인 용 defaultSearchBase 찾기 실패
응?

# ldapclient -v init localhost
findBaseDN: 시작
findBaseDN: ldap 실행되지 않음
findBaseDN: __ns_ldap_default_config() 호출중
2 namingcontexts를 찾음
findBaseDN: __ns_ldap_list(NULL, "(&(objectclass=nisDomainObject)(nisdomain=))"
rootDN[0] dc=xxx,dc=ac,dc=kr
찾을 수 없음:DN dc=xxx,dc=ac,dc=kr용 nisDomainObject를 찾을 수 없음
findBaseDN: __ns_ldap_list(NULL, "(&(objectclass=nisDomainObject)(nisdomain=))"
rootDN[1] o=NetscapeRoot
찾을 수 없음:DN o=NetscapeRoot용 nisDomainObject를 찾을 수 없음
found_cxt = -1
findBaseDN: 오류 종료
도메인 용 defaultSearchBase 찾기 실패

이게 뭔소리고 -0-?

매뉴얼을 다시 읽어보니, ldapclient는 nis쓰던 컴퓨터에 쓰면 된다고 한다 -_-;;
매뉴얼을 잘 읽자 ㅠ.ㅠ