Mik*_*ike 8 windows-7 nfs kerberos scientific-linux freeipa
我正在尝试将 Windows 7 Enterprise 客户端配置为使用 Kerberos 和 Linux KDC 在 Linux NFS 服务器上挂载 NFSv4 共享。
设置是:
脚步:
在 IPA 服务器上,使用密码为 Windows 客户端创建一个主体:
Run Code Online (Sandbox Code Playgroud)ipa host-add --ip-address=10.10.0.100 win7ent-client.contoso.com ipa-getkeytab -s ipa.contoso.com -p host/win7ent-client.contoso.com -k win7ent-client.keytab -P ^ | This will create a principal and register the client with IPA server Set a random password - e.g. - jU96e3Urp6
为客户端添加 NFS 服务:
ipa service-add nfs/win7ent-client.contoso.com
在 Windows 客户端上:
Run Code Online (Sandbox Code Playgroud)ksetup /setdomain CONTOSO.COM ksetup /setmachpassword <password set on step 1> ksetup /addrealmflags CONTOSO.COM sendaddress delegate ksetup /mapuser * *
重新启动 Windows 客户端
跑:
ksetup.exe /DumpState
这显示了当前配置:
Run Code Online (Sandbox Code Playgroud)default realm = CONTOSO.COM (external) CONTOSO.COM: (no kdc entries for this realm) Realm Flags = 0x5 SendAddress Delegate Mapping all users (*) to a local account by the same name (*).
在 Windows 客户端上创建本地用户,不需要密码,名称在 IPA 服务器上已存在。否则,您将收到错误 - 1332:未完成帐户名和安全 ID 之间的映射
测试您是否可以作为用户获得票证:
runas /user:joe@CONTOSO.COM cmd
在新的命令窗口中,运行:
列表
这将输出当前的票证信息:
当前登录 ID 为 0:0x6c70e
Cached Tickets: (1)
#0> Client: joe @ CONTOSO.COM
Server: krbtgt/CONTOSO.COM @ CONTOSO.COM
KerbTicket Encryption Type: AES-256-CTS-HMAC-SHA1-96
Ticket Flags 0x40e10000 -> forwardable renewable initial pre_authent name_canonicalize
Start Time: 2/22/2014 5:22:07 (local)
End Time: 2/23/2014 5:22:07 (local)
Renew Time: 3/1/2014 5:22:07 (local)
Session Key Type: AES-256-CTS-HMAC-SHA1-96
Run Code Online (Sandbox Code Playgroud)NFS 服务器配置
Run Code Online (Sandbox Code Playgroud)mkdir -p /winshare/joe chown -R joe:joe/winshare/joe exportfs -o rw,sec=krb5 *:/winshare/joe
尝试在 Windows 客户端上挂载上述共享时:
mount -o sec=krb5 nfs.contoso.com:/winshare/joe E:
我收到以下错误:
网络错误 - 121
Type 'NET HELPMSG 121' for more information.
C:\Windows\system32>NET HELPMSG 121
The semaphore timeout period has expired.
Run Code Online (Sandbox Code Playgroud)
尝试使用ms-nfs41-client-x64也失败:
C:\Users\joe\Desktop\ms-nfs41-client-x64>nfs_mount.exe -o sec=krb5 * nfs.contoso.com:/winshare/joe
WNetUseConnection(*:, \\nfs.contoso.com\winshare\joe) failed with error code 1231.
The network location cannot be reached. For information about network troubleshooting, see Windows Help.
Run Code Online (Sandbox Code Playgroud)
使用 Kerberos 时,唯一不起作用的是 NFS。
据我所知,这一步可能不需要:
为客户端添加NFS服务:
Run Code Online (Sandbox Code Playgroud)ipa service-add nfs/win7ent-client.contoso.com
您需要服务器的 nfs 服务。
如果您确定 Windows 客户端需要 nfs 服务,那么它很可能应该使用与该客户端的主机主体完全相同的密码。
另外:您是否在服务器上启用了安全 nfs?我不记得很久以前搬到 CentOS 7 时的具体情况(systemctl (enable|start) nfs-secure 是你的朋友),但我认为你应该在 /etc/sysconfig/nfs.conf 中查找它。
归档时间: |
|
查看次数: |
4039 次 |
最近记录: |