<?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: User ID variable in odbc.ini file? in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/User-ID-variable-in-odbc-ini-file/m-p/425408#M11793</link>
    <description>&lt;P&gt;Thanks.&amp;nbsp;Hopefully this solution will work for us.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really appreciate both responses I received.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jonno&lt;/P&gt;</description>
    <pubDate>Fri, 05 Jan 2018 22:02:25 GMT</pubDate>
    <dc:creator>Jonno</dc:creator>
    <dc:date>2018-01-05T22:02:25Z</dc:date>
    <item>
      <title>User ID variable in odbc.ini file?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/User-ID-variable-in-odbc-ini-file/m-p/425246#M11787</link>
      <description>&lt;P&gt;In an odbc.ini, is it possible to use a reference variable that&amp;nbsp;resolves to the user's login ID in SAS when they connect? For example, if the ODBC driver has a variable UID, I might want something like this below.&amp;nbsp;So at runtime I want ${USER} (or however I reference it) to resolve to the logged in user's SAS login ID.&amp;nbsp;I understand that kerberos is an option, but I'm looking for a solution using SAS internal/local accounts. SAS is running on Linux, and users are using SAS through a web browser.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[MYCONNECTION]&lt;/P&gt;&lt;P&gt;UID=${USER}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2018 14:54:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/User-ID-variable-in-odbc-ini-file/m-p/425246#M11787</guid>
      <dc:creator>Jonno</dc:creator>
      <dc:date>2018-01-05T14:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: User ID variable in odbc.ini file?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/User-ID-variable-in-odbc-ini-file/m-p/425250#M11788</link>
      <description>&lt;P&gt;Not to my knowledge. Never seen it. But you may decide to use&amp;nbsp;the "complete" or "noprompt" option to your ODBC libname statement where you have the entire odbc.ini file inside your SAS code. Any variable content could then be dealt with via macro variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See &lt;A href="http://support.sas.com/kb/52/777.html" target="_blank"&gt;Usage Note 52777&lt;/A&gt;&amp;nbsp;for details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;An example would be:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname mydata odbc complete="driver=SQL Server;
                              user=&amp;amp;SYSUSERID;
                              pwd=password;
                              database=SQL-database;
                              Server=server-name" 
                   schema=schema-name;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Will be a challenge to stick in the password without spilling that into&amp;nbsp;source code and log files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;-- Jan.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2018 20:17:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/User-ID-variable-in-odbc-ini-file/m-p/425250#M11788</guid>
      <dc:creator>jklaverstijn</dc:creator>
      <dc:date>2018-01-05T20:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: User ID variable in odbc.ini file?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/User-ID-variable-in-odbc-ini-file/m-p/425295#M11789</link>
      <description>&lt;P&gt;Thanks for the info and example, Jan. Based on that, I think we'll need to enable kerberos (IWA). This database we're using for ODBC is already kerberos enabled (although other DBs are not). The driver allows a DelegateKrbCredentials option, but we have not enabled kerberos authentication for users on the SAS server. Enabling this may be complicated with this configuration and may also be very disruptive to the&amp;nbsp;existing&amp;nbsp;environment/users.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideally, I think we would prefer to continue using local SAS logins, but use kerberos credentials with this driver only. But, I&amp;nbsp;assume that is not possible. Actually, ideally, IWA would have been enabled when SAS was originally installed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your input.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jonno&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2018 17:00:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/User-ID-variable-in-odbc-ini-file/m-p/425295#M11789</guid>
      <dc:creator>Jonno</dc:creator>
      <dc:date>2018-01-05T17:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: User ID variable in odbc.ini file?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/User-ID-variable-in-odbc-ini-file/m-p/425407#M11792</link>
      <description>&lt;P&gt;Not too sure how this works with Linux SAS servers, but with Windows-based servers it is perfectly acceptable to only have IWA configured for the SAS ODBC database connection but not with the SAS server login. For example if you are using EG, your EG profile can use an actual userid/password not IWA, then you can specify IWA in your ODBC connection string (in Windows this is "trusted_connection=yes").&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2018 21:56:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/User-ID-variable-in-odbc-ini-file/m-p/425407#M11792</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-01-05T21:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: User ID variable in odbc.ini file?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/User-ID-variable-in-odbc-ini-file/m-p/425408#M11793</link>
      <description>&lt;P&gt;Thanks.&amp;nbsp;Hopefully this solution will work for us.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really appreciate both responses I received.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jonno&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2018 22:02:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/User-ID-variable-in-odbc-ini-file/m-p/425408#M11793</guid>
      <dc:creator>Jonno</dc:creator>
      <dc:date>2018-01-05T22:02:25Z</dc:date>
    </item>
  </channel>
</rss>

