<?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 metadata server credential in SQL pass through code in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-metadata-server-credential-in-SQL-pass-through-code/m-p/489224#M31587</link>
    <description>&lt;P&gt;Our SAS servers are on Linux and use PAM and LDAP for authentication.&lt;/P&gt;</description>
    <pubDate>Thu, 23 Aug 2018 12:34:57 GMT</pubDate>
    <dc:creator>mpg</dc:creator>
    <dc:date>2018-08-23T12:34:57Z</dc:date>
    <item>
      <title>Using metadata server credential in SQL pass through code</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-metadata-server-credential-in-SQL-pass-through-code/m-p/489096#M31583</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it possible for Enterprise Guide to use a non-stored metadata server login credential as a database credential when running a SQL pass-through statement?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Context:&lt;/P&gt;
&lt;P&gt;Our Enterprise Guide users connect to a metadata server with individual credentials, and the same&amp;nbsp;individual credentials&amp;nbsp;are used to connect to an Oracle database. We don't allow&amp;nbsp;users to store their credentials in their profile or in their metadata user profile, but we encourage them to set the option in EG to persist their credential for the session. I'd like to avoid users entering and storing their credentials in program code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've tried the following code unsuccessfully:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL;

	CONNECT TO oracle AS alias 
	(
		authdomain="DefaultAuth"
		path=dbPath
		preserve_comments
	); 
 	SELECT * FROM connection to alias
	(
		SELECT count(*) FROM schema.table
	);
	DISCONNECT FROM alias;

QUIT;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;After the CONNECT TO statement, I get the following errors:&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;NOTE:&amp;nbsp; Credential could not be obtained from SAS metadata server.
WARNING: No login information was available for authdomain DefaultAuth.
ERROR: ORACLE connection error: ORA-12162: TNS:net service name is incorrectly specified.
&lt;/PRE&gt;
&lt;P class="p3"&gt;Thanks in advance for any advice.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 23:47:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-metadata-server-credential-in-SQL-pass-through-code/m-p/489096#M31583</guid>
      <dc:creator>mpg</dc:creator>
      <dc:date>2018-08-22T23:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Using metadata server credential in SQL pass through code</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-metadata-server-credential-in-SQL-pass-through-code/m-p/489105#M31584</link>
      <description>&lt;P&gt;Yes it is possible. I'm assuming you are using the IWA option (Integrated Windows Authentication) in your EG connection profile. Is that correct? If so then you want that to delegate your IWA credentials to your Oracle database connections.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What OS does your SAS servers run on? If you don't credential delegation already set up then that needs to be configured in your SAS application server Kerboros settings. This is a task for a SAS or IT administrator.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not so familiar with how this works with Oracle but I know how it works with SQL Server. Hopefully someone with more Oracle experience can add to this post.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 01:24:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-metadata-server-credential-in-SQL-pass-through-code/m-p/489105#M31584</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-08-23T01:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: Using metadata server credential in SQL pass through code</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-metadata-server-credential-in-SQL-pass-through-code/m-p/489224#M31587</link>
      <description>&lt;P&gt;Our SAS servers are on Linux and use PAM and LDAP for authentication.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 12:34:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-metadata-server-credential-in-SQL-pass-through-code/m-p/489224#M31587</guid>
      <dc:creator>mpg</dc:creator>
      <dc:date>2018-08-23T12:34:57Z</dc:date>
    </item>
  </channel>
</rss>

