<?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 Authenticating webservices in an NTLM environment in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/authenticating-webservices-in-an-ntlm-environment/m-p/147724#M103115</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Some quick background to the system architecture first;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Alfresco 2.1 system "AlfrescoProd" running on server A, configured to authenticate via NTLM against Active Directory on domain THEDOMAIN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Custom java application "AceApp" running on server B, which also authenticates via NTLM against Active Directory on domain THEDOMAIN&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a requirement to make some web services based calls from AceApp to AlfrescoProd to pull some alfresco based content into AceApp. Is there a way to use the NTLM credentials that have already been gathered by AceApp's authentication mechanism along with the web service calls to AlfrescoProd to make sure that the web service call is executed on the AlfrescoProd side as the same user that is using AceApp?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Dec 2007 02:47:19 GMT</pubDate>
    <dc:creator>marcus</dc:creator>
    <dc:date>2007-12-12T02:47:19Z</dc:date>
    <item>
      <title>Authenticating webservices in an NTLM environment</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/authenticating-webservices-in-an-ntlm-environment/m-p/147724#M103115</link>
      <description>Some quick background to the system architecture first;1. Alfresco 2.1 system "AlfrescoProd" running on server A, configured to authenticate via NTLM against Active Directory on domain THEDOMAIN2. Custom java application "AceApp" running on server B, which also authenticates via NTLM against Active</description>
      <pubDate>Wed, 12 Dec 2007 02:47:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/authenticating-webservices-in-an-ntlm-environment/m-p/147724#M103115</guid>
      <dc:creator>marcus</dc:creator>
      <dc:date>2007-12-12T02:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: Authenticating webservices in an NTLM environment</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/authenticating-webservices-in-an-ntlm-environment/m-p/147725#M103116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To follow up, there's a method that I know works, but takes advantage of some cross site request forgery stuff that could be exploited if used nefariously, which is why I'm hoping there's a less exploitable way of doing things&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Create the following in Data Dictionary/Scripts/key.js&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;var output = 'var _ALF_TICKET = "'+session.ticket+'";';&lt;BR /&gt;output;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Add the following to your own application&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;script type="text/javascript" src="&lt;A href="http://alfresco.domain:8080/alfresco/command/script/execute?scriptPath=/Company%20Home/Data%20Dictionary/Scripts/key.js" rel="nofollow noopener noreferrer"&gt;http://alfresco.domain:8080/alfresco/command/script/execute?scriptPath=/Company%20Home/Data%20Dictionary/Scripts/key.js&lt;/A&gt;"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;script type="text/javascript"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;// if _ALF_TICKET now exists, lets refresh with it as a parameter&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (_ALF_TICKET != null) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// use some ajax to blast _ALF_TICKET back into your application and bounce off to the next page&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2007 04:49:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/authenticating-webservices-in-an-ntlm-environment/m-p/147725#M103116</guid>
      <dc:creator>marcus</dc:creator>
      <dc:date>2007-12-12T04:49:20Z</dc:date>
    </item>
  </channel>
</rss>

