<?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: Getting Windows user id/logonID in SAS IntraNet application in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Getting-Windows-user-id-logonID-in-SAS-IntraNet-application/m-p/190033#M4420</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, I'm not a web server expert.&lt;/P&gt;&lt;P&gt;You should have one at your site, if not, you should be a bit concerned...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Jan 2015 09:52:38 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2015-01-20T09:52:38Z</dc:date>
    <item>
      <title>Getting Windows user id/logonID in SAS IntraNet application</title>
      <link>https://communities.sas.com/t5/Developers/Getting-Windows-user-id-logonID-in-SAS-IntraNet-application/m-p/190030#M4417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.63636302948px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Is it possible to get windows logon information, in a SAS IntraNet program, for the user visiting the "site"?&lt;/P&gt;&lt;P style="font-size: 13.63636302948px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.63636302948px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: Calibri, sans-serif; color: #1f497d;"&gt;&amp;amp;SYSUSERID (which we normally use for scheduled programs) simply gives "SYSTEM".&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.63636302948px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.63636302948px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Using SAS 9.3 together with Apache 2.2.25.&lt;/P&gt;&lt;P style="font-size: 13.63636302948px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.63636302948px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Thank you.&lt;/P&gt;&lt;P style="font-size: 13.63636302948px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.63636302948px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Best&lt;/P&gt;&lt;P style="font-size: 13.63636302948px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Kasper&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2015 08:56:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Getting-Windows-user-id-logonID-in-SAS-IntraNet-application/m-p/190030#M4417</guid>
      <dc:creator>bergsorensen</dc:creator>
      <dc:date>2015-01-20T08:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Windows user id/logonID in SAS IntraNet application</title>
      <link>https://communities.sas.com/t5/Developers/Getting-Windows-user-id-logonID-in-SAS-IntraNet-application/m-p/190031#M4418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IntrNet, long time ago. Not considering moving to Stored Process Server...?&lt;/P&gt;&lt;P&gt;As I recall it, you need to configure your web server to use Windows Authentication.&lt;/P&gt;&lt;P&gt;Once that is in place, you should be able to pick up the user id:s.&lt;/P&gt;&lt;P&gt;If you not find the exact macro variable name in the documentation, use %put _all_;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2015 09:30:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Getting-Windows-user-id-logonID-in-SAS-IntraNet-application/m-p/190031#M4418</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2015-01-20T09:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Windows user id/logonID in SAS IntraNet application</title>
      <link>https://communities.sas.com/t5/Developers/Getting-Windows-user-id-logonID-in-SAS-IntraNet-application/m-p/190032#M4419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Linus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im not familiar with stored processes (we normally dont run SAS web applications - we use vb.net for that).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any experience with what should be modified on apache for that to be possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Kasper&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2015 09:33:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Getting-Windows-user-id-logonID-in-SAS-IntraNet-application/m-p/190032#M4419</guid>
      <dc:creator>bergsorensen</dc:creator>
      <dc:date>2015-01-20T09:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Windows user id/logonID in SAS IntraNet application</title>
      <link>https://communities.sas.com/t5/Developers/Getting-Windows-user-id-logonID-in-SAS-IntraNet-application/m-p/190033#M4420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, I'm not a web server expert.&lt;/P&gt;&lt;P&gt;You should have one at your site, if not, you should be a bit concerned...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2015 09:52:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Getting-Windows-user-id-logonID-in-SAS-IntraNet-application/m-p/190033#M4420</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2015-01-20T09:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Windows user id/logonID in SAS IntraNet application</title>
      <link>https://communities.sas.com/t5/Developers/Getting-Windows-user-id-logonID-in-SAS-IntraNet-application/m-p/190034#M4421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAS/intrnet is of the time before bi/di and the metadataserver&lt;BR /&gt; You will find parts of in the STP guide like: &lt;A href="http://support.sas.com/documentation/cdl/en/stpug/67499/HTML/default/viewer.htm#p00x78ovjek7jbn15wpssatl33oo.htm" title="http://support.sas.com/documentation/cdl/en/stpug/67499/HTML/default/viewer.htm#p00x78ovjek7jbn15wpssatl33oo.htm"&gt;SAS(R) 9.4 Stored Processes: Developer's Guide, Second Edition&lt;/A&gt; (sessions)&lt;/P&gt;&lt;P&gt;SAS/intrnet is:&amp;nbsp; &lt;A href="http://support.sas.com/documentation/cdl/en/dispatch/64895/HTML/default/viewer.htm#sessions.htm" title="http://support.sas.com/documentation/cdl/en/dispatch/64895/HTML/default/viewer.htm#sessions.htm"&gt;SAS/IntrNet(R) 9.4: Application Dispatcher&lt;/A&gt; (adding sessions)&lt;/P&gt;&lt;P&gt;For succeeding request you are needing theo sessions. the first can be a own build login. You can also use webserver authentication&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/dispatch/64895/HTML/default/viewer.htm#appsec.htm" title="http://support.sas.com/documentation/cdl/en/dispatch/64895/HTML/default/viewer.htm#appsec.htm"&gt;SAS/IntrNet(R) 9.4: Application Dispatcher&lt;/A&gt; (Application Server Secuirty)&lt;/P&gt;&lt;P&gt;There are generic webserver variables as of &lt;A href="http://support.sas.com/documentation/cdl/en/dispatch/64895/HTML/default/viewer.htm#p0km1uoi5iud95n1fbyys5fqnyqn.htm" title="http://support.sas.com/documentation/cdl/en/dispatch/64895/HTML/default/viewer.htm#p0km1uoi5iud95n1fbyys5fqnyqn.htm"&gt;SAS/IntrNet(R) 9.4: Application Dispatcher&lt;/A&gt; (exporting variables) of the configuration.&lt;/P&gt;&lt;P&gt;The active ones can be seen when going into debug mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As the connection is seen as an external one the first would be getting it as an internal (web server authentication?)&lt;/P&gt;&lt;P&gt;Remember Ad is one of the many LDAP implementations. Although AD cannot be used to implement Unix security it could be sufficient the have a known user.&lt;/P&gt;&lt;P&gt;The restriction wil still be the service account of the OS that is being used (broker).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2015 11:50:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Getting-Windows-user-id-logonID-in-SAS-IntraNet-application/m-p/190034#M4421</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2015-01-20T11:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Windows user id/logonID in SAS IntraNet application</title>
      <link>https://communities.sas.com/t5/Developers/Getting-Windows-user-id-logonID-in-SAS-IntraNet-application/m-p/190035#M4422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Running apache 2.2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Installed mod_auth_sspi-1.0.4&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Added this to the apache conf:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LoadModule sspi_auth_module modules/mod_auth_sspi.so&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and this under &amp;lt;directory..&amp;gt;:&lt;/P&gt;&lt;P&gt;#SSPI&lt;/P&gt;&lt;P&gt;AuthName "A Protected Place"&lt;/P&gt;&lt;P&gt;AuthType SSPI&lt;/P&gt;&lt;P&gt;SSPIAuth On&lt;/P&gt;&lt;P&gt;SSPIAuthoritative On&lt;/P&gt;&lt;P&gt;SSPIOfferBasic On&lt;/P&gt;&lt;P&gt;SSPIUsernameCase upper&lt;/P&gt;&lt;P&gt;require valid-user&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Added the corrosponding Export lines to the SAS broker conf:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Export REMOTE_USER&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _RMTUSER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and tadaaa!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sample program:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;%let userid = %sysfunc(substr("&amp;amp;_RMTUSER",11,6)); /* domain\userid, domain is 10 character long + 1 for the \ */&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;file _webout;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;put '&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;put '&amp;lt;html xmlns="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.w3.org/1999/xhtml"&gt;http://www.w3.org/1999/xhtml&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;put '&amp;lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&amp;gt;';&lt;/P&gt;&lt;P&gt;put '&amp;lt;body&amp;gt;';&lt;/P&gt;&lt;P&gt;put 'Your User ID is: &amp;lt;b&amp;gt;'@;&lt;/P&gt;&lt;P&gt;put "&amp;amp;USERID";&lt;/P&gt;&lt;P&gt;put '&amp;lt;/b&amp;gt;';&lt;/P&gt;&lt;P&gt;put '&amp;lt;/body&amp;gt;';&lt;/P&gt;&lt;P&gt;put '&amp;lt;/html&amp;gt;';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2015 14:21:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Getting-Windows-user-id-logonID-in-SAS-IntraNet-application/m-p/190035#M4422</guid>
      <dc:creator>bergsorensen</dc:creator>
      <dc:date>2015-01-20T14:21:53Z</dc:date>
    </item>
  </channel>
</rss>

