另請注意,Debian 長期支援 (LTS) 團隊對 Debian 10 的支援已於 2024 年 6 月 30 日終止。
在 Horizon 8 桌面平台環境中,若要在執行 Samba 相容 Linux 發行版的即時複製虛擬機器 (VM) 上支援 SSO,您可以在最佳配置映像的 Linux 虛擬機器上設定 Samba,然後使用 Samba 將即時複製的 Debian 10 Linux 虛擬機器以離線網域加入的方式加入 Active Directory。
一般而言,Samba 支援將執行 Horizon Agent 所支援之 Linux 發行版的即時複製桌面平台,透過離線網域加入的方式加入 Active Directory。
不過,我們建議在執行較新版發行版的桌面平台上使用 SSSD 驗證,而僅在執行 Debian 10 或更舊版本的桌面平台上使用 Samba。
如果您仍想使用 Samba 而非建議的 SSSD,以下程序僅提供一個使用 Samba 將即時複製的 Debian 10 Linux 虛擬機器以離線網域加入方式加入 Active Directory 的簡單預設範例。您可以變更 Samba 設定以符合您的需求。
程序
-
在最佳配置映像 Linux 虛擬機器上,安裝
winbind和samba套件。sudo apt install samba krb5-config krb5-user winbind libpam-winbind libnss-winbind如有需要,請安裝
smbfs和smbclient等相依性程式庫。 -
使用下列命令來安裝 Samba
tdb-tools套件。sudo apt install tdb-tools -
安裝 Horizon Agent for Linux。請參閱在 Linux 機器上安裝 Horizon Agent。
-
編輯
/etc/samba/smb.conf組態檔,使其內容與下列範例類似。[global] security = ads realm = LAB.EXAMPLE.COM workgroup = LAB idmap config * : backend = tdb idmap config * : range = 10000-20000 winbind enum users = yes winbind enum groups = yes template homedir = /home/%D/%U template shell = /bin/bash client use spnego = yes client ntlmv2 auth = yes encrypt passwords = yes winbind use default domain = yes restrict anonymous = 2 -
編輯
/etc/krb5.conf組態檔,使其內容與下列範例類似。[libdefaults] default_realm = EXAMPLE.COM krb4_config = /etc/krb.conf krb4_realms = /etc/krb.realms kdc_timesync = 1 ccache_type = 4 forwardable = true proxiable = true [realms] EXAMPLE.COM = { kdc = 10.111.222.33 } [domain_realm] example.com = EXAMPLE.COM .example.com = EXAMPLE.COM -
編輯
/etc/nsswitch.conf組態檔,如下列範例所示。passwd: files winbind group: files winbind shadow: files winbind gshadow: files -
確認主機名稱正確無誤,且系統日期和時間已與 DNS 系統同步化。
-
若要讓 Horizon Agent 知道該 Linux 虛擬機器是使用 Samba 方法加入網域,請在
/etc/omnissa/viewagent-custom.conf檔案中設定下列選項。將 YOURDOMAIN 取代為網域的 NetBIOS 名稱。OfflineJoinDomain=samba NetbiosDomain=YOURDOMAIN -
重新啟動最佳配置映像 Linux 虛擬機器,並重新登入。
此頁面對您有幫助嗎?