<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Texto de bal\00E3o Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";
mso-fareast-language:EN-US;}
span.EstiloDeEmail17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.TextodebaloChar
{mso-style-name:"Texto de bal\00E3o Char";
mso-style-priority:99;
mso-style-link:"Texto de bal\00E3o";
font-family:"Tahoma","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="PT-BR" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I need some help from you whom have already Request Tracker with Active Directory!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">After struggle for some days trying to authenticate Active Directory users with the External Auth module I bring you my Apache Log and configuration of the Plugin. May someone help me with advices??? I would love to see my Request Tracker
linked to the Active Directory of the company.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">My Operational Systems are: <o:p></o:p></p>
<p class="MsoNormal">Request Tracker 4.2.2 – Ubuntu 13.10<o:p></o:p></p>
<p class="MsoNormal">Active Directory – Windows 2008 Server<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Well after trying to figure out how the Plugin Works I wanted to make sure my Active Directory was acessible and the Bind account was working. So I check with the command:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">ldapsearch -x -h pdcsti.stitelecom.local -p 389 -D "cn=rt-ldap,cn=Users,dc=stitelecom,dc=local" -w secret -s sub -b 'cn=Users,dc=stitelecom,dc=local' "(&(objectClass=*))"<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">When I do it the output is a loto f Users, Groups and other objects from the AD. So I suppose the AD is ready right??<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Follow the RT part...<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">+++++In the /var/log/apache2/error.log++++++<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">[4638] [Thu Feb 6 14:41:01 2014] [info]: RT::Authen::ExternalAuth::CanonicalizeUserInfo returning Disabled: , EmailAddress: rtop@stitelecom.com.br, ExternalAuthId: rtop, Gecos: rtop, Name: rtop, Privileged: , RealName: (/opt/rt4/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:685)<o:p></o:p></p>
<p class="MsoNormal">[4638] [Thu Feb 6 14:41:01 2014] [info]: Autocreated external user rtop ( 118 ) (/opt/rt4/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:281)<o:p></o:p></p>
<p class="MsoNormal">[4638] [Thu Feb 6 14:41:01 2014] [info]: My_LDAP AUTH FAILED rtop (can't bind: LDAP_INVALID_CREDENTIALS 49 ) (/opt/rt4/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:227)<o:p></o:p></p>
<p class="MsoNormal">[4638] [Thu Feb 6 14:41:01 2014] [error]: FAILED LOGIN for rtop from 10.10.1.137 (/opt/rt4/sbin/../lib/RT/Interface/Web.pm:814)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">++++++ In the RT_Siteconfig.pm: +++++++<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Plugin( "RT::Authen::ExternalAuth" );<o:p></o:p></p>
<p class="MsoNormal">Set($ExternalAuthPriority, [ 'My_LDAP' ] );<o:p></o:p></p>
<p class="MsoNormal">Set($ExternalInfoPriority, [ 'My_LDAP' ] );<o:p></o:p></p>
<p class="MsoNormal">Set($AutoCreateNonExternalUsers, 0);<o:p></o:p></p>
<p class="MsoNormal">Set($ExternalSettings, {<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">'My_LDAP' => {<o:p></o:p></p>
<p class="MsoNormal"> 'type' => 'ldap',<o:p></o:p></p>
<p class="MsoNormal"> 'server' => 'pdcsti.stitelecom.local',<o:p></o:p></p>
<p class="MsoNormal"> 'user' => 'cn=rt-ldap,cn=Users,dc=stitelecom,dc=local',<o:p></o:p></p>
<p class="MsoNormal"> 'pass' => 'secret',<o:p></o:p></p>
<p class="MsoNormal"> 'base' => 'dc=stitelecom,dc=local',<o:p></o:p></p>
<p class="MsoNormal"> 'filter' => '(objectclass=*)',<o:p></o:p></p>
<p class="MsoNormal"> 'group' => 'cn=RTUsers,ou=RT4,ou=STI,dc=stitelecom,dc=local',<o:p></o:p></p>
<p class="MsoNormal"> 'group_attr' => 'uniqueMember',<o:p></o:p></p>
<p class="MsoNormal"> 'tls' => 0,<o:p></o:p></p>
<p class="MsoNormal"> 'ssl_version' => 3,<o:p></o:p></p>
<p class="MsoNormal"> 'net_ldap_args' => [ version => 3 ],<o:p></o:p></p>
<p class="MsoNormal"> 'attr_match_list' => [<o:p></o:p></p>
<p class="MsoNormal"> 'Name',<o:p></o:p></p>
<p class="MsoNormal"> 'EmailAddress',<o:p></o:p></p>
<p class="MsoNormal"> ],<o:p></o:p></p>
<p class="MsoNormal"> 'attr_map' => {<o:p></o:p></p>
<p class="MsoNormal"> 'Name' => 'sAMAccountName',<o:p></o:p></p>
<p class="MsoNormal"> 'EmailAddress' => 'mail',<o:p></o:p></p>
<p class="MsoNormal"> 'ExternalAuthId' => 'sAMAccountName',<o:p></o:p></p>
<p class="MsoNormal"> },<o:p></o:p></p>
<p class="MsoNormal"> },<o:p></o:p></p>
<p class="MsoNormal">} );<o:p></o:p></p>
<p class="MsoNormal">1;<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">THANK YOU IN ADVANCE!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:PT-BR"><img width="384" height="144" id="Imagem_x0020_1" src="cid:image002.jpg@01CF2352.98585550" alt="Diego2013"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>