WindowsからSamba共有にアクセスする

WindowsからSamba共有にアクセスする

LinuxボックスにSamba共有を設定していますが、Windowsからのみアクセス可能です。Microsoft ネットワーク クライアント: 通信にデジタル署名する (常に)

この設定を有効にして接続できるように、Linux 側で設定してほしいとのことです。Windows ユーザーが自分の側でセキュリティ オプションを無効にしたり無効にしたりせずにこの共有にアクセスできるようにするには、最低限何をすればよいでしょうか。


関連する可能性のある情報:

  • Linux ボックスは SLES 11 SP2 と Samba 3.6.3 を実行しています
  • Windows ボックスは Active Directory で Windows Server 2008 を実行しています

これは私の smb.conf です:

# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
# samba-doc package is installed.
# Date: 2012-02-03
[global]
    workgroup = $WINDOWS_DOMAIN_NAME
    passdb backend = tdbsam
    map to guest = Bad User
    include = /etc/samba/dhcp.conf
    logon path = \\%L\profiles\.msprofile
    logon home = \\%L\%U\.9xprofile
    logon drive = P:
    usershare allow guests = No
    add machine script = /usr/sbin/useradd  -c Machine -d /var/lib/nobody -s /bin/false %m$
    domain logons = No
    domain master = No
    security = domain
    idmap gid = 10000-20000
    idmap uid = 10000-20000
    wins support = No
    wins server = 
    encrypt passwords = yes

[$shareName]
    comment = linux share
    inherit acls = Yes
    path = /home/$user/$shareName
    read only = No
    available = yes
    browseable = yes
    public = yes
    writable = yes

現在、共有にアクセスしようとすると、/var/log/messages に次のようなエラーが表示されます。

linux smbd[3336]: [2014/01/24 11:23:25.214046,  0] rpc_client/cli_pipe_schannel.c:54(get_schannel_session_key_common)
linux smbd[3336]:   get_schannel_session_key: could not fetch trust account password for domain '$WINDOWS_DOMAIN_NAME'
linux smbd[3336]: [2014/01/24 11:23:25.216148,  0] rpc_client/cli_pipe_schannel.c:184(cli_rpc_pipe_open_schannel)
linux smbd[3336]:   cli_rpc_pipe_open_schannel: failed to get schannel session key from server $DOMAIN_CONTROLLER for domain $WINDOWS_DOMAIN_NAME.
linux smbd[3336]: [2014/01/24 11:23:25.219196,  0] auth/auth_domain.c:193(connect_to_domain_password_server)
linux smbd[3336]:   connect_to_domain_password_server: unable to open the domain client session to machine $DOMAIN_CONTROLLER. Error was : NT_STATUS_CANT_ACCESS_DOMAIN_INFO.

答え1

/etc/samba/smb.conf ファイルに 2 つの重要なステートメントがありません。

  server signing = auto
  client signing = auto

これで大丈夫でしょう。

関連情報