Also, be aware that Debian 10 support from the Debian Long Term Support (LTS) team has reached its end-of-life on June 30, 2024.
In a Horizon 8 desktop environment, to support SSO on an instant-cloned virtual machine (VM) running a Samba-compatible Linux distribution, you could configure Samba on the golden-image Linux VM and then use Samba to offline domain join the instant-cloned Debian 10 Linux VM to Active Directory.
Generally speaking, Samba supports offline domain join with Active Directory for instant-cloned desktops running Linux distributions supported by Horizon Agent.
However, we recommend using SSSD Authentication for desktops running newer distributions and Samba only for desktops running Debian 10 and older.
If you still want to use Samba instead of the recommended SSSD, the following procedure is only a simple default example for using Samba to offline domain join an instant-cloned Debian 10 Linux VM to Active Directory. You can change the Samba settings to meet your requirement.
Procedure
-
On your golden-image Linux VM, install the
winbindandsambapackages.sudo apt install samba krb5-config krb5-user winbind libpam-winbind libnss-winbindIf needed, install any dependent libraries such as
smbfsandsmbclient. -
Install the Samba
tdb-toolspackage using the following command.sudo apt install tdb-tools -
Install Horizon Agent for Linux. See Install Horizon Agent on a Linux Machine.
-
Edit the
/etc/samba/smb.confconfiguration file so that it has content similar to the following example.[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 -
Edit the
/etc/krb5.confconfiguration file so that it has content similar to the following example.[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 -
Edit the
/etc/nsswitch.confconfiguration file, as shown in the following example.passwd: files winbind group: files winbind shadow: files winbind gshadow: files -
Verify that the host name is correct and that the system date and time are synchronized with your DNS system.
-
To inform Horizon Agent that the Linux VM is domain-joined using the Samba method, configure the following options in the
/etc/omnissa/viewagent-custom.conffile. Replace YOURDOMAIN with the NetBIOS name of your domain.OfflineJoinDomain=samba NetbiosDomain=YOURDOMAIN -
Restart the golden-image Linux VM and log back in.
Was this page helpful?