<?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: DefaultAuth Authentication Domain to Pass-Through from Oracle in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/DefaultAuth-Authentication-Domain-to-Pass-Through-from-Oracle/m-p/351540#M10454</link>
    <description>Just checking, are you logged into the metadata server in this session?</description>
    <pubDate>Thu, 20 Apr 2017 04:42:22 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2017-04-20T04:42:22Z</dc:date>
    <item>
      <title>DefaultAuth Authentication Domain to Pass-Through from Oracle</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/DefaultAuth-Authentication-Domain-to-Pass-Through-from-Oracle/m-p/351435#M10442</link>
      <description>&lt;P&gt;My SAS and Oracle user names/passwords are the same.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to use the authdomain="DefaultAuth" option in a PROC SQL pass-through:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
connect to oracle as currcon (authdomain="DefaultAuth" path="EDWPRO");
create table myoutput as
select * from connection to currcon
(SELECT * FROM  mylib.myinput t);
disconnect from currcon ;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Log:&lt;/P&gt;&lt;PRE&gt;24         proc sql;
25         connect to oracle as currcon (authdomain="DefaultAuth" path="EDWPRO");
WARNING: No login information was available for authdomain DefaultAuth.
ERROR: ORACLE connection error: ORA-12162: TNS:net service name is incorrectly specified.
NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.
26         create table mytable as
27         select * from connection to currcon
28         (SELECT * FROM  mylib.myinput t);
NOTE: Statement not executed due to NOEXEC option.
29         disconnect from currcon ;
NOTE: Statement not executed due to NOEXEC option.
30         quit;
NOTE: The SAS System stopped processing this step because of errors.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's returning with "No login information was available for authdomain DefaultAuth."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Everything I have found says to&amp;nbsp;ask a&amp;nbsp;SAS admin to&amp;nbsp;create a new Authentication Domain and name it "OracleAuth", but this is not an easy thing to get done in my organizaion.&amp;nbsp; I don't understand why I can't extract the&amp;nbsp;password&amp;nbsp;from DefaultAuth to connect to Oracle.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used this code to try to pull them manually, but still can't extract the password:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;         %macro Auth(AuthenticationDomain);
         %global Password UserID;
         data _null_;
            length uri UserId Password UserId AuthId AuthenticationDomain $256;
            rc=metadata_getnobj("omsobj:AuthenticationDomain?@Name='&amp;amp;AuthenticationDomain'",1,uri);
            rc=metadata_getattr(uri,"Id",AuthId);
            rc=1;
            tn=1;
         do while(rc&amp;gt;0);
             rc=metadata_getnasn("OMSOBJ:AuthenticationDomain\"!!AuthId,"Logins",tn,uri);
              if rc&amp;gt;0 then do;
                 arc=metadata_getattr(uri,"UserID",UserID);
                 arc=metadata_getattr(uri,"Password",Password);
                 call symput("UserID",compress(UserID));
                 call symput("Password",compress(Password));
              end;
             tn=tn+1;
         end;
         run;
         %put NOTE: For AuthenticationDomain &amp;amp;AuthenticationDomain., the UserID &amp;amp;UserID has password &amp;amp;Password.. Executed as &amp;amp;sysuserid..;
         %mend;
         
         %Auth(DefaultAuth)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The UserId comes back, but the password is coming through with "."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do I need to invoke a system&amp;nbsp;option to make this work, or&amp;nbsp;can DefaultAuth flat out just&amp;nbsp;not be used to log into Oracle.&amp;nbsp; And if so, why does&amp;nbsp;the password&amp;nbsp;not return with the %Auth macro?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 19:50:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/DefaultAuth-Authentication-Domain-to-Pass-Through-from-Oracle/m-p/351435#M10442</guid>
      <dc:creator>DanZ</dc:creator>
      <dc:date>2017-04-19T19:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: DefaultAuth Authentication Domain to Pass-Through from Oracle</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/DefaultAuth-Authentication-Domain-to-Pass-Through-from-Oracle/m-p/351540#M10454</link>
      <description>Just checking, are you logged into the metadata server in this session?</description>
      <pubDate>Thu, 20 Apr 2017 04:42:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/DefaultAuth-Authentication-Domain-to-Pass-Through-from-Oracle/m-p/351540#M10454</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-04-20T04:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: DefaultAuth Authentication Domain to Pass-Through from Oracle</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/DefaultAuth-Authentication-Domain-to-Pass-Through-from-Oracle/m-p/351657#M10455</link>
      <description>&lt;P&gt;I'm on a grid and connected to one of the nodes in this session.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2017 13:07:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/DefaultAuth-Authentication-Domain-to-Pass-Through-from-Oracle/m-p/351657#M10455</guid>
      <dc:creator>DanZ</dc:creator>
      <dc:date>2017-04-20T13:07:29Z</dc:date>
    </item>
  </channel>
</rss>

