19.6. LDAP를 사용하여 자동 마운터 맵 저장
Cryo stat
맵 파일이 아닌 LDAP 구성에 있는 map 맵을 저장하도록 Cryo stat
를 구성합니다.
사전 요구 사항
-
LDAP 클라이언트 라이브러리는 LDAP에서 automounter 맵을 검색하도록 구성된 모든 시스템에 설치해야 합니다. Red Hat Enterprise Linux에서
openldap
패키지는autofs
패키지에 종속되어 자동으로 설치되어야 합니다.
절차
-
LDAP 액세스를 구성하려면
/etc/openldap/ldap.conf
파일을 수정합니다.BASE
,URI
및스키마
옵션이 사이트에 적절하게 설정되어 있는지 확인합니다. 최근 LDAP에 자동 마운트 맵을 저장하기 위해 설정된 스키마는
rfc2307bis
초안에 설명되어 있습니다. 이 스키마를 사용하려면 스키마 정의에서 주석 문자를 제거하여/etc/autofs.conf
구성 파일에서 설정합니다. 예를 들면 다음과 같습니다.예 19.6. autofs 구성 설정
Copy to Clipboard Copied! Toggle word wrap Toggle overflow DEFAULT_MAP_OBJECT_CLASS="automountMap" DEFAULT_ENTRY_OBJECT_CLASS="automount" DEFAULT_MAP_ATTRIBUTE="automountMapName" DEFAULT_ENTRY_ATTRIBUTE="automountKey" DEFAULT_VALUE_ATTRIBUTE="automountInformation"
DEFAULT_MAP_OBJECT_CLASS="automountMap" DEFAULT_ENTRY_OBJECT_CLASS="automount" DEFAULT_MAP_ATTRIBUTE="automountMapName" DEFAULT_ENTRY_ATTRIBUTE="automountKey" DEFAULT_VALUE_ATTRIBUTE="automountInformation"
다른 모든 스키마 항목이 구성에 주석 처리되었는지 확인합니다.
rfc2307bis 스키마의
스키마의automountKey
속성은 rfc2307cn
속성을 대체합니다.
다음은 LDAP 데이터 교환 형식(LDIF) 구성의 예입니다.예 19.7. LDIF 설정
Copy to Clipboard Copied! Toggle word wrap Toggle overflow auto.master, example.com /home, auto.master, example.com auto.home, example.com foo, auto.home, example.com /, auto.home, example.com
# auto.master, example.com dn: automountMapName=auto.master,dc=example,dc=com objectClass: top objectClass: automountMap automountMapName: auto.master # /home, auto.master, example.com dn: automountMapName=auto.master,dc=example,dc=com objectClass: automount automountKey: /home automountInformation: auto.home # auto.home, example.com dn: automountMapName=auto.home,dc=example,dc=com objectClass: automountMap automountMapName: auto.home # foo, auto.home, example.com dn: automountKey=foo,automountMapName=auto.home,dc=example,dc=com objectClass: automount automountKey: foo automountInformation: filer.example.com:/export/foo # /, auto.home, example.com dn: automountKey=/,automountMapName=auto.home,dc=example,dc=com objectClass: automount automountKey: / automountInformation: filer.example.com:/export/&
추가 리소스