Samba 공유 - Active Directory 그룹에 대한 액세스를 제한하는 방법

Samba 공유 - Active Directory 그룹에 대한 액세스를 제한하는 방법

저는 Active Directory 도메인 환경에서 작업 중이며 Windows 클라이언트가 SUSE UNIX 서버의 특정 디렉터리에 액세스할 수 있도록 일부 Samba 공유를 구성하려고 합니다.

각 공유에 대한 액세스는 특정 AD 그룹으로 제한되어야 합니다.

내 smb.conf 파일은 다음과 같지만 Windows 공유 양식으로 이동하면 자격 증명 프롬프트 또는 액세스 거부 메시지가 나타납니다. 또한 \\SERVER_NAME 또는 \\IP_ADDRESS를 사용하여 서버를 탐색할 때 Samba 로그에 약간 다른 메시지가 표시됩니다.

[global]
    netbios name = SERVER-NAME
    security = domain
    realm = MYDOMAIN.ORG.UK
    workgroup = MYDOMAIN
    password server = *
    idmap config * : range = 10000-20000

    cups options = raw
    kerberos method = secrets and keytab
    logon path = \\%L\profiles\.msprofile
    logon home = \\%L\%U\.9xprofile
    logon drive = P:
    map to guest = Bad User
    passdb backend = tdbsam
    null passwords = yes
    printing = cups
    printcap name = cups
    printcap cache time = 750
    template homedir = /home/%D/%U
    template shell = /bin/bash
    usershare allow guests = no

    winbind refresh tickets = yes
    winbind offline logon = yes
    winbind cache time = 10
    winbind enum users = yes
    winbind enum groups = yes
    winbind use default domain = yes

    log file = /var/log/samba/samba.log
    max log size = 1000
    log level = 2

[share1]
        path = /path/to/share/1
        read only = yes
        browseable = yes
        valid users = @ad-group-for-share-1

[share2]
        path = /path/to/share/2
        read only = no
        browseable = yes
        valid users = @ad-group-for-share-2

\\servername\share1...을 검색하면 Samba 로그에 다음이 표시됩니다.

[2019/05/30 11:21:01.182411,  1] ../source3/auth/token_util.c:431(add_local_groups)
  SID S-1-5-21-2037406089-871956902-1971066577-68326 -> getpwuid(10010) failed
[2019/05/30 11:21:01.182460,  1] ../source3/auth/auth_generic.c:172(auth3_generate_session_info_pac)
  Failed to map kerberos pac to server info (NT_STATUS_UNSUCCESSFUL)
[2019/05/30 11:21:01.203035,  3] ../source3/lib/util_procid.c:54(pid_to_procid)
  pid_to_procid: messaging_dgm_get_unique failed: No such file or directory

\\ip-address\share1을 탐색하면 Samba 로그에 다음이 표시됩니다.

[2019/05/30 11:22:01.416559,  2] ../source3/auth/auth.c:305(auth_check_ntlm_password)
  check_ntlm_password:  authentication for user [MY-USERNAMER] -> [MY-USERNAME] -> [my-username] succeeded
[2019/05/30 11:22:01.417038,  1] ../source3/auth/token_util.c:431(add_local_groups)
  SID S-1-5-21-2037406089-871956902-1971066577-68326 -> getpwuid(10010) failed
[2019/05/30 11:22:01.417425,  1] ../source3/auth/token_util.c:431(add_local_groups)
  SID S-1-5-21-2037406089-871956902-1971066577-68326 -> getpwuid(10010) failed
[2019/05/30 11:22:01.436657,  3] ../source3/lib/util_procid.c:54(pid_to_procid)
  pid_to_procid: messaging_dgm_get_unique failed: No such file or directory

내가 무엇을 놓치고 있나요? 이 문제를 어떻게 해결할 수 있나요? Windows 클라이언트가 이러한 공유에 액세스할 수 있도록 하려면 어떻게 해야 합니까?

관련 정보