<?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: Login password not getting updated in SAS Management Console in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Login-password-not-getting-updated-in-SAS-Management-Console/m-p/292925#M5769</link>
    <description>Thank you Paul for your expert solution.&lt;BR /&gt;Yes,it is pwencoded version of 8 asterisks and is in Unrestricted group.&lt;BR /&gt;It was resolved once access is changed.&lt;BR /&gt;I will also check to implement authdomain option.&lt;BR /&gt;Cheers&lt;BR /&gt;Mark&lt;BR /&gt;</description>
    <pubDate>Sat, 20 Aug 2016 19:25:33 GMT</pubDate>
    <dc:creator>MarkNicholas</dc:creator>
    <dc:date>2016-08-20T19:25:33Z</dc:date>
    <item>
      <title>Login password not getting updated in SAS Management Console</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Login-password-not-getting-updated-in-SAS-Management-Console/m-p/292806#M5763</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We newly setup SAS 9.4 and I have an issue with Login password not getting updated in SAS Management Console.&lt;/P&gt;
&lt;P&gt;Details :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let us say along with DefaultAuth I have multiple logins specified in my user account properties for different Auth Domains (like Oracle, Teradata).&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#ff6600"&gt;OracleAuth &amp;lt;user-id&amp;gt; &amp;lt;password&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff6600"&gt;TeradataAuth &amp;lt;user-id&amp;gt; &amp;lt;password&amp;gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For your reference, I am using the below program which helps retrieves the account id and encrypted password of the provided Authentication Domain.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;%macro Auth(AuthenticationDomain);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;%global Password UserID;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;data _null_;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp; length uri UserId Password UserId AuthId AuthenticationDomain $256;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp; rc=metadata_getnobj("omsobj:AuthenticationDomain?@Name='&amp;amp;AuthenticationDomain'",1,uri);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp; rc=metadata_getattr(uri,"Id",AuthId);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp; rc=1;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp; tn=1;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;do while(rc&amp;gt;0);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; rc=metadata_getnasn("OMSOBJ:AuthenticationDomain\"!!AuthId,"Logins",tn,uri);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if rc&amp;gt;0 then do;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arc=metadata_getattr(uri,"UserID",UserID);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arc=metadata_getattr(uri,"Password",Password);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call symput("UserID",compress(UserID));&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call symput("Password",compress(Password));&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tn=tn+1;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;end;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;run;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;%put NOTE: For AuthenticationDomain &amp;amp;AuthenticationDomain., the UserID &amp;amp;UserID has password &amp;amp;Password.. Executed as &amp;amp;sysuserid..;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;%mend;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Execute:&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#ff6600"&gt;%Auth(TeradataAuth)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I updated Login detail in the account as&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#0000ff"&gt;TeradataAuth&amp;nbsp; ABC&amp;nbsp; mypass1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The macro gives result as &lt;BR /&gt;NOTE: For AuthenticationDomain TeradataAuth, the UserID &lt;STRONG&gt;&lt;FONT color="#008000"&gt;ABC&lt;/FONT&gt; &lt;/STRONG&gt;has password &lt;STRONG&gt;&lt;FONT color="#ff6600"&gt;{SAS002}ABCD3&lt;/FONT&gt;&lt;/STRONG&gt;. Executed as Mark&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I updated Login detail in the account as&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#0000ff"&gt;TeradataAuth&amp;nbsp; ABC123&amp;nbsp; mypass2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;The macro gives result as &lt;BR /&gt;NOTE: For AuthenticationDomain TeradataAuth, the UserID &lt;STRONG&gt;&lt;FONT color="#008000"&gt;ABC123&lt;/FONT&gt;&lt;/STRONG&gt; has password &lt;STRONG&gt;&lt;FONT color="#ff6600"&gt;{SAS002}ABCD3&lt;/FONT&gt;&lt;/STRONG&gt;. Executed as Mark&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which means the password I am giving is not updated at all but the change I made to user account works. Please help to resolve this issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;BR /&gt;Mark&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2016 18:37:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Login-password-not-getting-updated-in-SAS-Management-Console/m-p/292806#M5763</guid>
      <dc:creator>MarkNicholas</dc:creator>
      <dc:date>2016-08-19T18:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Login password not getting updated in SAS Management Console</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Login-password-not-getting-updated-in-SAS-Management-Console/m-p/292851#M5765</link>
      <description>&lt;P&gt;Are you running that second query in the same SAS session? Have you tried running it in a new session? Do you still get the old encoded password?&amp;nbsp;The metadata&amp;nbsp;query functions cache metadata. I haven't tested to see if it caches across data step boundaries, but if you find that running the query in a new session returns the new encoded password then you might want to look at the &lt;A href="http://support.sas.com/documentation/cdl/en/lrmeta/67971/HTML/default/viewer.htm#n1bf4uo2etd793n1l327nzt34ayp.htm" target="_self"&gt;METADATA_PURGE&lt;/A&gt;&amp;nbsp;function to clear the cache before your second query.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2016 21:04:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Login-password-not-getting-updated-in-SAS-Management-Console/m-p/292851#M5765</guid>
      <dc:creator>PaulHomes</dc:creator>
      <dc:date>2016-08-19T21:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: Login password not getting updated in SAS Management Console</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Login-password-not-getting-updated-in-SAS-Management-Console/m-p/292864#M5767</link>
      <description>&lt;P&gt;Hi Paul,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Actually I was supposed to use this TeradataAuth to connect to TD database by triggering jobs from LSF scheduler.&lt;BR /&gt;Since, my test job was failing multiple times even though I was changing password and even locking the teradata account, I came up with the above program to replicate this issue so that I can avoid locking the account on database.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Yes, the issue persists through multiple sessions (since issue was spotted on LSF which opens a new session everytime)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As I already showed that user id is loaded correctly; issue is with password alone, so by this I understand that cache is cleared well everytime.&lt;BR /&gt;&lt;BR /&gt;My intention is to be able to trigger the job succesfully in LSF. &lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2016 22:37:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Login-password-not-getting-updated-in-SAS-Management-Console/m-p/292864#M5767</guid>
      <dc:creator>MarkNicholas</dc:creator>
      <dc:date>2016-08-19T22:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Login password not getting updated in SAS Management Console</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Login-password-not-getting-updated-in-SAS-Management-Console/m-p/292868#M5768</link>
      <description>&lt;P&gt;Is the logged password {SAS002}B6535B5C02BB1BC110FD31944FC989D3 by any chance?&amp;nbsp;If so, that's the pwencoded version of 8 asterisks:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc pwencode in='********';&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;... which indicates the metadata query is not being given the real encoded password by the metadata server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm guessing that the user Mark has user administration capabilities being a member of the &lt;EM&gt;Metadata Server: Unrestricted&lt;/EM&gt; role or the &lt;EM&gt;Metadata Server: User Administration&lt;/EM&gt; role - possibly via &lt;EM&gt;SAS Administrators&lt;/EM&gt; group membership. Is this correct? Someone who is a user administrator has the ability to see all logins and so is restricted from fetching real passwords from metadata. Does it work when you try it a normal non-administrative user? Your code works for me when it is not run as a user admin (and no cache clearing is required).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW what are you using this password for? If it's on a libname statement have you consider using the authdomain option and let SAS find the appropriate login (and if there are multiple logins available it will include logic to pick the one closest to the user in their identity hierarchy which the code above does&amp;nbsp;not). See&amp;nbsp;&lt;A href="http://blogs.sas.com/content/sasdummy/2010/11/23/five-strategies-to-eliminate-passwords-from-your-sas-programs/" target="_blank"&gt;http://blogs.sas.com/content/sasdummy/2010/11/23/five-strategies-to-eliminate-passwords-from-your-sas-programs/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2016 23:13:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Login-password-not-getting-updated-in-SAS-Management-Console/m-p/292868#M5768</guid>
      <dc:creator>PaulHomes</dc:creator>
      <dc:date>2016-08-19T23:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Login password not getting updated in SAS Management Console</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Login-password-not-getting-updated-in-SAS-Management-Console/m-p/292925#M5769</link>
      <description>Thank you Paul for your expert solution.&lt;BR /&gt;Yes,it is pwencoded version of 8 asterisks and is in Unrestricted group.&lt;BR /&gt;It was resolved once access is changed.&lt;BR /&gt;I will also check to implement authdomain option.&lt;BR /&gt;Cheers&lt;BR /&gt;Mark&lt;BR /&gt;</description>
      <pubDate>Sat, 20 Aug 2016 19:25:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Login-password-not-getting-updated-in-SAS-Management-Console/m-p/292925#M5769</guid>
      <dc:creator>MarkNicholas</dc:creator>
      <dc:date>2016-08-20T19:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Login password not getting updated in SAS Management Console</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Login-password-not-getting-updated-in-SAS-Management-Console/m-p/293026#M5770</link>
      <description>&lt;P&gt;No problem Mark. Glad to hear it's resolved. Thanks for marking the post as solved too.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2016 00:02:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Login-password-not-getting-updated-in-SAS-Management-Console/m-p/293026#M5770</guid>
      <dc:creator>PaulHomes</dc:creator>
      <dc:date>2016-08-22T00:02:02Z</dc:date>
    </item>
  </channel>
</rss>

