<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Using Windows Active Directory in SAS Linux using kerberos passing credentials to SQL Server DB in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Using-Windows-Active-Directory-in-SAS-Linux-using-kerberos/m-p/950164#M29245</link>
    <description>The reason why I was detailed on the list of  checks was also to point you out in the direction of items to do in case you have not done it yet. What else do you need?&lt;BR /&gt;</description>
    <pubDate>Thu, 07 Nov 2024 18:11:11 GMT</pubDate>
    <dc:creator>JuanS_OCS</dc:creator>
    <dc:date>2024-11-07T18:11:11Z</dc:date>
    <item>
      <title>Using Windows Active Directory in SAS Linux using kerberos  passing credentials to SQL Server DB</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Using-Windows-Active-Directory-in-SAS-Linux-using-kerberos/m-p/949842#M29218</link>
      <description>&lt;P&gt;Looking for information on how to setup in a Linux Base SAS deployment using version 9.4 m7 , where we currently can pass Windows Active Directory sign on information into SAS but want to be able to then pass that AD information to databases in SQL Server.&amp;nbsp; In talking with SAS they said they recommended using Kerberos.&amp;nbsp; We are looking for information on how to setup the pass through of info to Linux so that users would only need to supply their sign on information once and the sign on information wouldn't need to be in a lib ref statement, etc. it would be passed automatically. How would we set this up in SAS to pass the info.&amp;nbsp; If anyone also knows the Kerberos settings that would be needed, that would be helpful as we are not sure how to set that up.&amp;nbsp; We have setup Kerberos thru our Linux admin and currently when we try to pass the information we are getting the following error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;ERROR: CLI error trying to establish connection: [SAS][ODBC SQL Server Wire Protocol driver]Security Services Error: Unspecified&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; error at the GSS layer.&amp;nbsp; There may be other messages with more info. : [SAS][ODBC SQL Server Wire Protocol driver]Security&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Services Error: Server not found in Kerberos database.&lt;BR /&gt;ERROR: Error in the LIBNAME statement.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;The libname statement is setup as follows:&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;LIBNAME tempwork odbc dsn=temp_work SCHEMA=XXXXXX;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Please let me know if you need further information&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Thanks&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 14:41:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Using-Windows-Active-Directory-in-SAS-Linux-using-kerberos/m-p/949842#M29218</guid>
      <dc:creator>jim11</dc:creator>
      <dc:date>2024-11-04T14:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using Windows Active Directory in SAS Linux using kerberos  passing credentials to SQL Server DB</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Using-Windows-Active-Directory-in-SAS-Linux-using-kerberos/m-p/949846#M29220</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;there are several options, this one is relatively easy, shared a while ago by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18432"&gt;@PaulHomes&lt;/a&gt;&amp;nbsp;:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://platformadmin.com/blogs/paul/2015/07/active-directory-authentication-for-sas-on-linux-with-realmd/" target="_blank"&gt;https://platformadmin.com/blogs/paul/2015/07/active-directory-authentication-for-sas-on-linux-with-realmd/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;realmd can make the life easy for the first step, which is the OS side.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From here, you will need to ensure the Kerberos registration in AD through a service account (UPN) trusted for delegation, which contains the SPNs of your SASservice/host.domain and of your database too, as documented.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 14:58:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Using-Windows-Active-Directory-in-SAS-Linux-using-kerberos/m-p/949846#M29220</guid>
      <dc:creator>JuanS_OCS</dc:creator>
      <dc:date>2024-11-04T14:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using Windows Active Directory in SAS Linux using kerberos  passing credentials to SQL Server DB</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Using-Windows-Active-Directory-in-SAS-Linux-using-kerberos/m-p/950131#M29242</link>
      <description>&lt;P&gt;I reviewed the link, I think that that is setting up Windows AD pass to SAS in linux which is what we do today using realmd.&amp;nbsp; I would like to find out once we are able to pass the info, how can I get SAS to use the info and pass it down to SQL Server databases, etc so that users would not need to embed signons and passwords in their SAS code.&amp;nbsp; We would like it to be able to just pass the credentials that sas used from AD and use them again for SQL Server authentication.&amp;nbsp; Is there a part in that where SAS can pass the info or Linux?&amp;nbsp; The error I am seeing when we try saying that the server (SQL Server database) is not in the Kerberos database error message...not sure where to update that or fix this issue?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2024 16:18:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Using-Windows-Active-Directory-in-SAS-Linux-using-kerberos/m-p/950131#M29242</guid>
      <dc:creator>jim11</dc:creator>
      <dc:date>2024-11-07T16:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Using Windows Active Directory in SAS Linux using kerberos  passing credentials to SQL Server DB</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Using-Windows-Active-Directory-in-SAS-Linux-using-kerberos/m-p/950134#M29243</link>
      <description>&lt;P&gt;Okay, I understand you have SSO working with Kerberos and SAS working fine.&lt;/P&gt;
&lt;P&gt;Does this mean..?&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;your SAS EG users can login with IWA already, without credentials?&lt;/LI&gt;
&lt;LI&gt;Does a kinit &amp;amp; klist work giving you a valid ticket?&lt;/LI&gt;
&lt;LI&gt;Have you enabled your SAS Servers (starting with SAS Workspace server) to enable working with Kerberos? Eg:&lt;/LI&gt;
&lt;/UL&gt;
&lt;PRE&gt;-authkerb
-princ your-service-account@YOUR.REALM.COM
-keytab /path/to/service-account.keytab&lt;/PRE&gt;
&lt;UL&gt;
&lt;LI&gt;Do you have a keytab created for your UPN and SPN as I indicated earlier? Eg:&lt;/LI&gt;
&lt;LI&gt;
&lt;PRE&gt;ktutil
addent -password -p your-service-account@YOUR.REALM.COM -k 1 -e RC4-HMAC
wkt /path/to/service-account.keytab&lt;/PRE&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Did you set your SAS startup scripts to load the environment variables?&lt;/LI&gt;
&lt;/UL&gt;
&lt;PRE&gt;export KRB5_KTNAME=/path/to/service-account.keytab
export KRB5_CONFIG=/etc/krb5.conf
export SAS_USE_KERBEROS=1&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Having you already have done this:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;You need to configure your SLQ database for Kerberos authentication, to allow GSSAPI&lt;/LI&gt;
&lt;LI&gt;You created a SPN for the database (ensure it is registered in your SPNs together with the SPN of your SAS service)&lt;/LI&gt;
&lt;LI&gt;Test your Kerberos Authentication, without SAS, with your SQL server client of choice&lt;/LI&gt;
&lt;LI&gt;In SAS Metadata, have an Authentication Domain for your database. Meaning: a) create a group for your database users, include your users, in connection tab add the login of your service account to database connection (UPN?), assigning a label to your Authdomain (eg, SQLAuth); Optionally in addition, in your library, point to the database and the chosen Auth Domain. If you do this, when you use the libname generated by the metadata, the authdomain will be automatically used.&lt;/LI&gt;
&lt;LI&gt;If you your code (eg autoexec) use the libname, just use the "authdomain" when it is not taken directly from the metadata.&lt;/LI&gt;
&lt;LI&gt;Do test your connection&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;This being said, I assume your service account, your users, the SAS server and the SQL server are under the same domain tree, and not in branches or other domains. If you need to cross domains, Kerberos/SSO will not work (or it is quite challenging and not supported by Microsoft, Linux or SAS).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you or your team have enough confidence in Kerberos, you can probably achieve it by yourself. If not, as you see it has some complexity, I would highly advise to reach out to a certified SAS professional, either in SAS or an specialized partner.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2024 16:42:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Using-Windows-Active-Directory-in-SAS-Linux-using-kerberos/m-p/950134#M29243</guid>
      <dc:creator>JuanS_OCS</dc:creator>
      <dc:date>2024-11-07T16:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: Using Windows Active Directory in SAS Linux using kerberos  passing credentials to SQL Server DB</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Using-Windows-Active-Directory-in-SAS-Linux-using-kerberos/m-p/950153#M29244</link>
      <description>&lt;P&gt;Let me clairify...When we log into SAS in Linux via putty we provide the username and it will use that to validate against AD and allow you in...without the user providing the password...in SAS EG we provide the username and password same as our Windows AD account so in that way users don't have to have different credentials for SAS as we are using AD to validate them... At this time we don't have SSO setup in sas where they would log into their laptop and SSO would get them logged into SAS, etc...&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2024 17:15:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Using-Windows-Active-Directory-in-SAS-Linux-using-kerberos/m-p/950153#M29244</guid>
      <dc:creator>jim11</dc:creator>
      <dc:date>2024-11-07T17:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using Windows Active Directory in SAS Linux using kerberos passing credentials to SQL Server DB</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Using-Windows-Active-Directory-in-SAS-Linux-using-kerberos/m-p/950164#M29245</link>
      <description>The reason why I was detailed on the list of  checks was also to point you out in the direction of items to do in case you have not done it yet. What else do you need?&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Nov 2024 18:11:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Using-Windows-Active-Directory-in-SAS-Linux-using-kerberos/m-p/950164#M29245</guid>
      <dc:creator>JuanS_OCS</dc:creator>
      <dc:date>2024-11-07T18:11:11Z</dc:date>
    </item>
  </channel>
</rss>

