1.6.3. IdM 클라이언트에 Samba 서버 설치 및 구성


IdM 클라이언트에 Samba를 설치하고 구성하여 통합 인증과 파일을 안전하게 공유할 수 있습니다. IdM 도메인 계정을 활용하여 액세스 권한을 얻습니다. 네트워크 전체에서 원활한 리소스 공유를 가능하게 하는 적절한 사전 요구 사항 및 구성을 보장합니다.

사전 요구 사항

프로세스

  1. ipa-client-samba 패키지를 설치합니다.

    [root@idm_client]# dnf install ipa-client-samba
  2. ipa-client-samba 유틸리티를 사용하여 클라이언트를 준비하고 초기 Samba 구성을 생성합니다.

    [root@idm_client]# ipa-client-samba
    Searching for IPA server...
    IPA server: DNS discovery
    Chosen IPA master: idm_server.idm.example.com
    SMB principal to be created: cifs/idm_client.idm.example.com@IDM.EXAMPLE.COM
    NetBIOS name to be used: IDM_CLIENT
    Discovered domains to use:
    
     Domain name: idm.example.com
    NetBIOS name: IDM
             SID: S-1-5-21-525930803-952335037-206501584
        ID range: 212000000 - 212199999
    
     Domain name: ad.example.com
    NetBIOS name: AD
             SID: None
        ID range: 1918400000 - 1918599999
    
    Continue to configure the system with these values? [no]: yes
    Samba domain member is configured. Please check configuration at /etc/samba/smb.conf and start smb and winbind services
  3. 기본적으로 ipa-client-samba[homes] 섹션을 /etc/samba/smb.conf 파일에 자동으로 추가합니다. 이 섹션에서는 사용자가 연결할 때 사용자의 홈 디렉터리를 동적으로 공유합니다. 이 서버에 홈 디렉터리가 없거나 공유하려는 경우 /etc/samba/smb.conf 에서 제거합니다.

    [homes]
        read only = no
  4. 디렉토리와 프린터를 공유합니다. 자세한 내용은 다음을 참조하십시오.

  5. 로컬 방화벽에서 Samba 클라이언트에 필요한 포트를 엽니다.

    [root@idm_client]# firewall-cmd --permanent --add-service=samba-client
    [root@idm_client]# firewall-cmd --reload
  6. smbwinbind 서비스를 활성화하고 시작합니다.

    [root@idm_client]# systemctl enable --now smb winbind
    참고

    nmbd 서비스를 시작하지 마십시오. Active Directory와 함께 Samba를 사용하는 경우 상호 운용성에는 NetBIOS가 필요하지 않습니다. DNS는 AD 환경에서 이름 확인을 처리합니다.

검증

  • samba-client 패키지가 설치된 다른 IdM 도메인 멤버에서 다음 확인 단계를 실행합니다.

    • Kerberos 인증을 사용하여 Samba 서버의 공유를 나열합니다.

      $ smbclient -L idm_client.idm.example.com -U user_name --use-kerberos=required
      lp_load_ex: changing to config backend registry
      
          Sharename       Type      Comment
          ---------       ----      -------
          example         Disk
          IPC$            IPC       IPC Service (Samba 4.15.2)
      ...

      자세한 내용은 시스템의 ipa-client-samba(1) 매뉴얼 페이지를 참조하십시오.

Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 문서 정보

Legal Notice

Theme

© 2026 Red Hat
맨 위로 이동