11장. 로컬 SSSD 설정에서 오타 오류 제거
호스트의 /etc/sssd/sssd.conf
파일에 sssctl config-check
명령을 사용하여 오타 오류가 있는지 테스트할 수 있습니다.
사전 요구 사항
- 루트로 로그인되어 있습니다.
-
sssd-tools
패키지가 설치됩니다.
절차
sssctl config-check
명령을 입력합니다.# sssctl config-check Issues identified by validators: 1 [rule/allowed_domain_options]: Attribute 'ldap_search' is not allowed in section 'domain/<domain_name>'. Check for typos. Messages generated during configuration merging: 0 Used configuration snippet files: 0
/etc/sssd/sssd.conf
파일을 열고 오타를 수정합니다. 예를 들어 이전 단계에서 오류 메시지가 수신되면 ldap_search를ldap_search
_base[...] [domain/<domain_name>] ldap_search_base = dc=<domain_component>,dc=<tld> [...]
- 파일을 저장합니다.
SSSD를 다시 시작:
# systemctl restart sssd
검증
sssctl config-check
명령을 입력합니다.# sssctl config-check
출력은 문제를 찾을 수 없음을 나타냅니다.
Issues identified by validators: 0 Messages generated during configuration merging: 0 Used configuration snippet files: 0
/etc/sssd/sssd.conf
파일에 오타 오류가 없습니다.