来自AD服务器的UID使用“idmap config ad”用于多个域

这是我目前的设置:我们有2个名为TEST1和TEST2的域。

TEST1域是我的Linux客户端成功集成的默认域。

但是用户和组证书必须从另一个名为TEST2的受信任的域接收。

UID(uidNumber)和GID必须从TEST2 AD服务器获取。 以下是smb.conf文件的内容。

 [global] workgroup = TEST1 realm = TEST1.LOCAL netbios name = LIN01 security = ads winbind offline logon = no allow trusted domains = yes winbind enum users = no winbind enum groups = no winbind use default domain = yes template home dir = /home/%U template shell = /bin/bash idmap config * : backend = tdb idmap config * : range = 2000000-2999999 idmap config TEST2 : backend = ad idmap config TEST2 : schema_mode = rfc2307 idmap config TEST2 : range = 1000-1999999 winbind nss info = rfc2307 # wbinfo -i TEST2\\user2 failed to call wbcGetpwnam: WBC_ERR_DOMAIN_NOT_FOUND Could not get info for user TEST2\user2 # wbinfo -i TEST1\\user1 user1:*:2000000:2000004:user1:/home/user1:/bin/bash