To enable the True SSO feature on an Ubuntu virtual machine (VM), install the libraries on which the True SSO feature depends, the root Certificate Authority (CA) certificate to support trusted authentication, and Horizon Agent. If True SSO authentication is also issued by a subordinate CA, then you must install the entire certificate chain of root and subordinate CA certificates. To complete the authentication setup, you must edit some configuration files.
Use the following procedure to enable True SSO on an Ubuntu VM.
Prerequisites
-
Configure True SSO for Omnissa Access and Horizon Connection Server.
-
Complete the steps described in Integrate an Ubuntu Virtual Machine with Active Directory for True SSO .
-
Get a root CA certificate and save it to
/tmp/certificate.ceron the Ubuntu VM. See How to Export Root Certification Authority Certificate.If a subordinate CA is also an issuing authority, then get the entire chain of root and subordinate CA certificates and save it to
/tmp/certificate.ceron the Ubuntu VM.
Procedure
-
On the Ubuntu VM, install the
pkcs11support package.sudo apt install libpam-pkcs11 -
Install the
libnss3-toolspackage.sudo apt install libnss3-tools -
Install the root CA certificate or certificate chain.
-
Locate the root CA certificate or certificate chain that you downloaded, and transfer it to a PEM file.
openssl x509 -inform der -in /tmp/certificate.cer -out /tmp/certificate.pem -
Make an
/etc/pki/nssdbdirectory to contain the system database.sudo mkdir -p /etc/pki/nssdb -
Use the
certutilcommand to install the root CA certificate or certificate chain to the system database/etc/pki/nssdb.Replace "root CA cert" in the following example command with the name of the root CA certificate in the system database.
sudo certutil -A -d /etc/pki/nssdb -n "root CA cert" -t "CT,C,C" -i /tmp/certificate.pem -
Make an
/etc/pam_pkcs11/cacertsdirectory and copy the root CA certificate or certificate chain there.mkdir -p /etc/pam_pkcs11/cacerts sudo cp /tmp/certificate.pem /etc/pam_pkcs11/cacerts -
Create a hash link for the root CA certificate or certificate chain. In the
/etc/pam_pkcs11/cacertsdirectory, run the following command.pkcs11_make_hash_link
-
-
Install the Horizon Agent package, with True SSO enabled.
sudo ./install_viewagent.sh -T yes -
Add the following parameter to the Horizon Agent custom configuration file
viewagent-custom.conf. Use the following example, where NETBIOS_NAME_OF_DOMAIN is the NetBIOS name of your organization's domain.NetbiosDomain=NETBIOS_NAME_OF_DOMAIN -
Edit the
/etc/pam_pkcs11/pam_pkcs11.confconfiguration file.-
If needed, create the
/etc/pam_pkcs11/pam_pkcs11.confconfiguration file. Locate the example file in/usr/share/doc/libpam-pkcs11/examples, copy it to the/etc/pam_pkcs11directory, and rename the file topam_pkcs11.conf. Add your system information to the contents of the file as needed. -
Modify the
/etc/pam_pkcs11/pam_pkcs11.confconfiguration file so that it includes content similar to the following example.Note: For Ubuntu 20.04 or later, append
msto the end of theuse_mappersline.
-
-
Modify the
authparameters in the PAM configuration file.-
Open the PAM configuration file.
-
Edit the PAM configuration file, as shown in the following example.
-
-
In Linux terminal, set the mode for
/etc/krb5.confconfiguration file equal to644as shown in the following example.sudo chmod 644 /etc/krb5.conf ls -l /etc/krb5.conf-rw-r--r-- 1 root root xxx xx xx xxxx /etc/krb5.confNote: If you do not modify the permissions attributes of
/etc/krb5.confas specified, the True SSO feature might not work. -
Restart the VM and log back in.
Was this page helpful?