I’ve just finished a challenging but very rewarding experience configuring a SAS 9.4 M2 platform on Linux to use Integrated Windows Authentication (IWA), for both server and mid-tiers ….. without using Quest Authentication Services.
The SAS platform has supported IWA on Linux since SAS 9.3 but until recently has only supported it when you “purchase, install, and configure an additional third-party product (Quest Authentication Services 4.0)”.
I’ve been wanted to do a SAS + Linux + IWA config for a while but had put it off because of the Quest requirement. What brought it back to the front of my mind was talking to someone recently about implementing IWA for a SAS Visual Analytics installation on Linux. They wanted to provide seamless login via IWA for most users, but also provide form-based logins for people who couldn’t use IWA.
I remembered seeing this section from the What’s New in SAS 9.4 (SAS 9.4 Intelligence Platform):
In the second maintenance release for SAS 9.4, Integrated Windows Authentication on Linux systems no longer requires the use of Quest Authentication Services. SAS can leverage the libraries that are shipped with the supported operating system or that are provided in most third-party authentication solutions.
It sounded like SAS 9.4 M2 would allow me to build such a config, without using Quest, and use the standard Linux libgssapi_krb5 package instead. At the same time I also remembered reading a great SAS Global Forum paper by Zhiyong Li on mid-tier fallback authentication: this is where you can configure the SAS mid-tier to fallback to form-based authentication in situations where IWA is not available or has been disabled (like you might do when you want to login using a different second identity). These both sounded like great challenges [ and fun 🙂 ], so I set about confirming my understanding of these possibilities with SAS 9.4 M2 by doing both at the same time.
After a few days of research, implementation, testing and debugging, I finalized the config last night. I got quite a buzz out of some of the mind-bending troubleshooting sessions and it was a very rewarding outcome. Other than a few relatively minor issues to resolve, it is all working very well now.
If I get some time I’ll try to write up a few blog posts with more detail on the steps, issues, troubleshooting techniques and resolutions. In the meantime here’s an outline of the approach I took:
Update 27Jul2014: For more information on the steps below, see the following blog posts:
- Installed and configured the MIT Kerberos client packages (krb5-user, libpam-krb5) on the Linux server
- Verified I could use kinit on the Linux server to authenticate and obtain a ticket granting ticket (TGT) from the Microsoft Windows Server 2012 R2 Active Directory (AD) server.
- Installed and configured Samba on the Linux server and joined the AD domain.
- Installed and configured System Security Services Daemon (SSSD) on the Linux server, and related PAM and GSSAPI packages (sssd, sssd-tools, libpam-sss, libnss-sss, libgssapi-krb5-2).
- Verified I could use ldapsearch with gssapi to query the AD server.
- Configured the PAM module pam_mkhomedir to auto-create user home directories as needed.
- Verified I could login to the Linux server with AD credentials and that getent passwd and getent group returned expected results for AD users and groups.
- Configured the SAS Metadata Server for IWA, with a SAS service account and keytab.
- Verified SAS desktop apps like SAS Enterprise Guide could connect to the metadata server using IWA and Kerberos.
- Configured the SAS Logical Workspace Server to accept IWA conections (Kerberos only).
- Verified SAS desktop apps like SAS Enterprise Guide could spawn a SAS Workspace Server from an IWA based metadata connection.
- Configured IWA, with a HTTP service account and keytab, for the SAS mid-tier.
- Verified I could login to SAS web apps using IWA.
- Configured delegation so SAS mid-tier apps (like SAS Studio) could get IWA access to a SAS Workspace Server.
- Enhanced the SAS mid-tier IWA config with fallback authentication to allow form-based login when IWA was not available.
I found the following resources essential in researching, planning, configuring and troubleshooting the SAS platform side of things:
- SAS Global Forum Paper 476-2013: Kerberos and SAS® 9.4: A Three-Headed Solution for Authentication by Stuart Rogers (SAS Institute).
- SAS Global Forum Paper SAS102-2014: An Advanced Fallback Authentication Framework for SAS® 9.4 and SAS® Visual Analytics by Zhiyong Li & Mike Roda (SAS Institute)
- Chapter 4: Configuring Integrated Windows Authentication of the Configuration Guide for SAS® 9.4 Foundation for UNIX Environments
- The How to Configure Integrated Windows Authentication section in the SAS 9.4 Intelligence Platform: Security Administration Guide, Second Edition
- The Support for Integrated Windows Authentication section in the SAS 9.4 Intelligence Platform: Middle-Tier Administration Guide, Second Edition
- The Configuring Client Machines to Use Integrated Windows Authentication section in the SAS 9.4 Intelligence Platform: Security Administration Guide, Second Edition
I hope you find this post useful. I had great fun building this configuration! Please leave a comment if you have any questions or would like to see some more posts on the topic.