콘텐츠로 이동






LDAP구성 2. 클라이언트 구성하기

LDAP 클라이언트 구성

  1. 패키지 설치하기
    $> yum install openldap-clients nss-pam-ldapd \
    pam_ldap autofs nfs-utils -y
    
  2. 인증방법 LDAP 추가
  3. setup에서 -> Authentication configuration -> Use LDAP, Use LDAP Authentication 두개 체크하고 NEXT
  4. Server: ldap://ldap://igoni.kr 서버도메인
  5. Base DN: dc=my-domain,dc=com
  6. 하고 OK하면 되고, SSL기반일 경우에는 Use TLS에 체크하면 됨.
  7. 인증모듈 확인
    $> cat /etc/pam.d/system-auth | grep ldap
    session     optional      pam_ldap.so
    
  8. ldap사용자 로그인할때 자동으로 홈디렉토리 마운트
    $> cat /etc/auto.master
    /home  /etc/auto.home
    
    $> cat /etc/auto.home
    *   -rw,soft,intr,rsize=8192,wsize=8192   192.168.10.10:/home/&
    
  9. ldap Client 서비스 활성화후 시작
    $> /etc/init.d/nslcd start
    $> chkconfig nslcd on
    
  10. autofs 서비스 활성화 & 시작
    $> /etc/init.d/autofs start
    $> chkconfig autofs on