<?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 SAS Program for Internal account password expiry Notification in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Program-for-Internal-account-password-expiry-Notification/m-p/346436#M79899</link>
    <description>&lt;P&gt;Hello Friends,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can any one please help me with below request.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any sas program which Notifies us &amp;nbsp;when the sas internal account password expires if we set the&lt;/P&gt;
&lt;P&gt;the password expiry to&amp;nbsp;limited time in Metadata.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;your help would be greatly appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
    <pubDate>Sat, 01 Apr 2017 22:25:46 GMT</pubDate>
    <dc:creator>sasprofile</dc:creator>
    <dc:date>2017-04-01T22:25:46Z</dc:date>
    <item>
      <title>SAS Program for Internal account password expiry Notification</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Program-for-Internal-account-password-expiry-Notification/m-p/346436#M79899</link>
      <description>&lt;P&gt;Hello Friends,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can any one please help me with below request.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any sas program which Notifies us &amp;nbsp;when the sas internal account password expires if we set the&lt;/P&gt;
&lt;P&gt;the password expiry to&amp;nbsp;limited time in Metadata.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;your help would be greatly appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Sat, 01 Apr 2017 22:25:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Program-for-Internal-account-password-expiry-Notification/m-p/346436#M79899</guid>
      <dc:creator>sasprofile</dc:creator>
      <dc:date>2017-04-01T22:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Program for Internal account password expiry Notification</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Program-for-Internal-account-password-expiry-Notification/m-p/346464#M79911</link>
      <description>&lt;P&gt;There is nothing OOTB as far as I know but you can always query SAS metadata and implement your own process.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below SAS sample code which should give you a start.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data metaUsers;
  length metaUser $20;
  input metaUser:$20.;
  datalines;
sasdemo
sastrust
;
run;

options metaserver="*****"
	metaport=8561
	metauser="sasadm@saspw"
	metapass="*****"
	metarepository="Foundation";


data sample(drop=_:);
  set metaUsers;
  length uri $256 AccountExpirationDate $26 UseStdExpirationDays $1;

  _rc1=metadata_getnasn("omsobj:Person?@Name='"||strip(metaUser)||"'",
                          "InternalLoginInfo",
                          1,
                          uri);
  if (_rc1&amp;gt;0) then 
    do;
      _rc2=metadata_getattr(uri,"AccountExpirationDate",AccountExpirationDate);
      _rc2=metadata_getattr(uri,"UseStdExpirationDays",UseStdExpirationDays);
    end;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Using above code run as a daily job you then could compare the result with the current system date and send out alerts based on some criteria (i.e. expiration within the next 5 working days).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Be careful with SAS Managed accounts and follow the guidelines of how to change passwords there.&lt;/P&gt;
&lt;H2 class="xis-title"&gt;&lt;EM&gt;Managed Passwords&lt;/EM&gt;&lt;/H2&gt;
&lt;DIV id="n0u47qmwa1ebk2n1ffiwsx6ftauh" class="xis-topicContent"&gt;
&lt;DIV id="p0wbj82lbohaben1nhdqcbskkvrs" class="xis-paragraph"&gt;&lt;EM&gt;Passwords for a few service accounts require special coordination because these passwords are included in configuration files. To update these passwords, use the SAS Deployment Manager.&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/bisecag/69827/HTML/default/viewer.htm#p13mipjyz9eh9bn14mqtjgrd2lia.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/bisecag/69827/HTML/default/viewer.htm#p13mipjyz9eh9bn14mqtjgrd2lia.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would also exclude at least one admin account like sasadm@saspw from any expiration and lockout policies to never ever loose admin access.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Apr 2017 02:24:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Program-for-Internal-account-password-expiry-Notification/m-p/346464#M79911</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-04-02T02:24:23Z</dc:date>
    </item>
  </channel>
</rss>

