<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://rt-wiki.bestpractical.com/index.php?action=history&amp;feed=atom&amp;title=NTLM</id>
	<title>NTLM - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://rt-wiki.bestpractical.com/index.php?action=history&amp;feed=atom&amp;title=NTLM"/>
	<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=NTLM&amp;action=history"/>
	<updated>2026-08-23T07:31:58Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://rt-wiki.bestpractical.com/index.php?title=NTLM&amp;diff=2308&amp;oldid=prev</id>
		<title>Admin: 2 revisions imported</title>
		<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=NTLM&amp;diff=2308&amp;oldid=prev"/>
		<updated>2016-04-06T20:15:46Z</updated>

		<summary type="html">&lt;p&gt;2 revisions imported&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The following document will allow you to setup authentication against a windows domain using mod_perl and [[AuthenHTLM]]&lt;br /&gt;
&lt;br /&gt;
Follow the steps given below for getting NTLM authentication working.&lt;br /&gt;
&lt;br /&gt;
 1. Install/Configure mod_perl under Apache - (and get it working of-course)&lt;br /&gt;
 2. Download the following files for doing NTLM authentication (the following files worked for us)&lt;br /&gt;
        * For Fedora Core systems download the module from&lt;br /&gt;
        http://search.cpan.org/~speeves/Apache2-AuthenNTLM-0.02/AuthenNTLM.pm&lt;br /&gt;
        * For Debian Linux systems, download the module from&lt;br /&gt;
        http://search.cpan.org/~speeves/Apache-AuthenNTLM-2.10&lt;br /&gt;
 &lt;br /&gt;
 3. Install the module&lt;br /&gt;
 &lt;br /&gt;
     tar xvfz Apache*AuthenNTLM*.tgz&lt;br /&gt;
     cd Apache*AuthenNTLM*&lt;br /&gt;
     perl Makefile.PL&lt;br /&gt;
     make&lt;br /&gt;
     make test&lt;br /&gt;
     make install&lt;br /&gt;
 &lt;br /&gt;
 4. Edit the Apache configuration and enable KeepAlive&lt;br /&gt;
 &lt;br /&gt;
     KeepAlive On&lt;br /&gt;
 &lt;br /&gt;
    Restart your Apache server.&lt;br /&gt;
 &lt;br /&gt;
 5. Configure apache to do the authentication. For example in .htaccess add&lt;br /&gt;
 &lt;br /&gt;
    # Enable the Authentication module&lt;br /&gt;
    PerlAuthenHandler Apache2::AuthenNTLM&lt;br /&gt;
 &lt;br /&gt;
    #                    domain      pdc         bdc&lt;br /&gt;
    # Domain : Your windows domain&lt;br /&gt;
    # pdc : Primary Domain Controller&lt;br /&gt;
    # bdc : Backup Domain controller.&lt;br /&gt;
    #&lt;br /&gt;
    # Note : Multiple domains can be specified.&lt;br /&gt;
 &lt;br /&gt;
    PerlAddVar ntdomain  &amp;quot;OURDOMAIN  domainpdc domainsdc&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
    # What should be the default domain&lt;br /&gt;
    PerlSetVar defaultdomain OURDOMAIN&lt;br /&gt;
 &lt;br /&gt;
    # The user names are in the form &amp;quot;OURDOMAIN\user_name&amp;quot;. Let us split it.&lt;br /&gt;
    PerlSetVar splitdomainprefix 1&lt;br /&gt;
 &lt;br /&gt;
    # Set the debug variables&lt;br /&gt;
    PerlSetVar ntlmdebug 0&lt;br /&gt;
    PerlSetVar ntlmauthoritative off&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
    More documentation is available in the accompanying README file in the tarball or the following link&lt;br /&gt;
 &lt;br /&gt;
    Once this is done, the domain user is populated as REMOTE_USER in the http server variables,&lt;br /&gt;
    which can be picked up by any application for doing authentication.&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
  6. Configure RT for external web authentication. In RT_SiteConfig.pm:&lt;br /&gt;
 &lt;br /&gt;
     Set($WebExternalAuth , &amp;#039;1&amp;#039;);&lt;br /&gt;
     Set($WebFallbackToInternalAuth , &amp;#039;1&amp;#039;);&lt;br /&gt;
     Set($WebExternalGecos , undef);&lt;br /&gt;
     Set($WebExternalAuto , &amp;#039;1&amp;#039;);&lt;br /&gt;
 &lt;br /&gt;
  7. # Configure the apache virtual host to use mod_ntlm for authentication:&lt;br /&gt;
 &lt;br /&gt;
  &amp;amp;lt;VirtualHost *&amp;amp;gt;&lt;br /&gt;
     ServerName rt.example.com&lt;br /&gt;
     DocumentRoot /opt/rt3&lt;br /&gt;
     AddHandler fastcgi-script fcgi&lt;br /&gt;
     Alias /NoAuth/Images/ /opt/rt3/share/html/NoAuth/images/&lt;br /&gt;
     ScriptAlias / /opt/rt3/bin/mason_handler.fcgi/&lt;br /&gt;
     &amp;amp;lt;Directory &amp;quot;/opt/rt3&amp;quot;&amp;amp;gt;&lt;br /&gt;
          AddDefaultCharset UTF-8&lt;br /&gt;
          SetHandler fastcgi-script&lt;br /&gt;
          AuthName &amp;quot;Request Tracker&amp;quot;&lt;br /&gt;
          AuthType ntlm,basic&lt;br /&gt;
          require valid-user&lt;br /&gt;
     &amp;amp;lt;/Directory&amp;amp;gt;&lt;br /&gt;
 &lt;br /&gt;
     &amp;amp;lt;Location /REST/1.0/NoAuth&amp;amp;gt;&lt;br /&gt;
          satisfy any&lt;br /&gt;
          allow from all&lt;br /&gt;
     &amp;amp;lt;/Location&amp;amp;gt;&lt;br /&gt;
     &amp;amp;lt;Location /NoAuth&amp;amp;gt;&lt;br /&gt;
          satisfy any&lt;br /&gt;
          allow from all&lt;br /&gt;
     &amp;amp;lt;/Location&amp;amp;gt;&lt;br /&gt;
     &amp;amp;lt;Location /NoAuth/images&amp;amp;gt;&lt;br /&gt;
          SetHandler default-handler&lt;br /&gt;
     &amp;amp;lt;/Location&amp;amp;gt;&lt;br /&gt;
 &lt;br /&gt;
  &amp;amp;lt;/VirtualHost&amp;amp;gt;&lt;br /&gt;
 &lt;br /&gt;
  8. Restart Apache&lt;br /&gt;
 &lt;br /&gt;
  9. Add the URL of your RT apache vhost to either the &amp;quot;trusted sites&amp;quot; or &amp;quot;intranet sites&amp;quot; zone of Internet Explorer.&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
You can do this on a site-wide basis via the Group Policy Object for your domain controller:&lt;br /&gt;
&lt;br /&gt;
  1. Run &amp;quot;MMC&amp;quot; from Start-&amp;amp;gt;Run&lt;br /&gt;
  2. From the &amp;quot;Console&amp;quot; menu, select &amp;quot;Add/Remove Snap-in&amp;quot;&lt;br /&gt;
  3. From the &amp;quot;Add/Remove Snap-in&amp;quot; dialog, hit the &amp;quot;Add&amp;quot; button.&lt;br /&gt;
  4. Select &amp;quot;Group Policy&amp;quot; and hit &amp;quot;Add&amp;quot;. This will bring up the &amp;quot;Select Group Policy&amp;quot; wizard.&lt;br /&gt;
  5. Hit the &amp;quot;Browse...&amp;quot; button, then select the Default Domain Policy for your domain and hit OK.&lt;br /&gt;
  6. Hit the &amp;quot;Finish&amp;quot; button in the Select Group Policy wizard, then the &amp;quot;Close&amp;quot; button on the &amp;quot;Add&lt;br /&gt;
     Standalone Snap-in&amp;quot; dialog, then the &amp;quot;OK&amp;quot; button of the &amp;quot;Add/Remove Snap-in&amp;quot; dialog.&lt;br /&gt;
  7. From the Default Domain Policy root, browse down to: User Configuration -&amp;amp;gt; Windows Settings -&amp;amp;gt;&lt;br /&gt;
     Internet Explorer Maintenence -&amp;amp;gt; Security, and double-click on the &amp;quot;Security Zones and Content&lt;br /&gt;
     Ratings&amp;quot; object.&lt;br /&gt;
  8. From the &amp;quot;Security Zones and Content Settings&amp;quot; tab, select the &amp;quot;Import the current security&lt;br /&gt;
     zones and privacy settings&amp;quot; radio button and click the &amp;quot;Modify Settings&amp;quot; button.&lt;br /&gt;
  9. This will bring up the GPO version of the &amp;quot;Internet Properties&amp;quot; control panel. Select either&lt;br /&gt;
     the &amp;quot;Local Intranet&amp;quot; or &amp;quot;Trusted Sites&amp;quot; zone as appropriate for your organization and hit the&lt;br /&gt;
     &amp;quot;Sites&amp;quot; button in order to add your RT vhost to that zone. If your RT vhost is not SSL-secured,&lt;br /&gt;
     you will need to un-check the &amp;quot;Require server verification&amp;quot; checkbox before adding the site.&lt;br /&gt;
     adding a domain to trusted sites&lt;br /&gt;
 10. Hit &amp;quot;OK&amp;quot; to close the &amp;quot;Internet Properties&amp;quot; panel, and then &amp;quot;OK&amp;quot; to close the &amp;quot;Security Zones and&lt;br /&gt;
     Content Ratings&amp;quot; panel. You can then close the entire MMC console.&lt;br /&gt;
 11. Your end-users may need to reboot for the Group Policy to be applied to them.&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If you add [[AutoCreateFromExternalUserInfo]] to this you will be able to allow users to create and modify and view tickets from the website.&lt;br /&gt;
&lt;br /&gt;
Special thanks to http://blank.org/memory/output/rt-ad-sso.html and drupal.org/node/44718&lt;br /&gt;
&lt;br /&gt;
Sites from which I pieced together the information to get this document&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>