<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:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@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:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
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;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
span.EmailStyle19
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
p.Textodebalo, li.Textodebalo, div.Textodebalo
{mso-style-name:"Texto de bal\00E3o";
mso-style-link:"Texto de bal\00E3o Char";
margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
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";}
span.EmailStyle22
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:"Courier New";}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:70.85pt 85.05pt 70.85pt 85.05pt;}
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="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Here is mine which is working great<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""># WorkingLDAP Connection<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""> 'Connect_LDAP' => {
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""> 'type' => 'ldap',
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""> 'server' => '192.168.250.49',
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""> 'user' => 'CN=Secret,OU=Users_Special,OU=Copesan,DC=Copesan,DC=local',<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""> 'pass' => Secret,
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""> 'base' => 'DC=copesan,DC=local',<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""> 'filter' => '(&(ObjectCategory=User)(ObjectClass=Person))',<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""> 'd_filter' => '(userAccountControl:1.2.840.113556.1.4.803:=2)',<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""> 'tls' => 0,
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""># 'ssl_version' => 3,
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""> 'net_ldap_args' => [ version => 3 ],
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""># 'group' => 'CN=RTUsers,OU=CampusServices,DC= mydomain,DC=mydomain,DC=edu',<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""># 'group_attr' => 'member',
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""> 'attr_match_list' => [ 'Name', 'EmailAddress' ],<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""> 'attr_map' => { 'Name' => 'sAMAccountName',<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""> 'EmailAddress' => 'mail',<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""> 'Organization' => 'physicalDeliveryOfficeName',<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""> 'RealName' => 'cn',
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""> 'ExternalAuthId' => 'sAMAccountName',<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""> 'Gecos' => 'sAMAccountName',<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""> 'WorkPhone' => 'telephoneNumber',<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""> 'Address1' => 'streetAddress',<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""> 'City' => 'l',
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""> 'State' => 'st',
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""> 'Zip' => 'postalCode',<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""> 'Country' => 'co'
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""> }
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""> }
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""> }<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">I would question the conical name of the user the log email address is different from the name .local versus .com.br. Should the local have a .br as well? Also in the
conical name you do not have an OU in the path.</span><span style="color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Thanks<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">Bryon Baker<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">Network Operations Manager<o:p></o:p></span></p>
<p class="MsoNormal"><b><i><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:red">Copesan</span></i></b><b><i><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"> - Specialists in Pest Solutions<o:p></o:p></span></i></b></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">800-267-3726 • 262-783-6261 ext. 2296<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D"><a href="mailto:cstephan@copesan.com">bbaker@copesan.com</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"><a href="http://www.copesan.com/"><span style="color:black">www.copesan.com</span></a><o:p></o:p></span></p>
<p class="MsoNormal"><b><i><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:red">"Servicing North America with Local Care"</span></i></b><span style="color:#1F497D"><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> rt-users-bounces@lists.bestpractical.com [mailto:rt-users-bounces@lists.bestpractical.com]
<b>On Behalf Of </b>Diego Andrade<br>
<b>Sent:</b> Thursday, February 06, 2014 11:46 AM<br>
<b>To:</b> rt-users@lists.bestpractical.com<br>
<b>Subject:</b> [rt-users] Help with Active Directory Auth on 4.2.2<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="PT-BR">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR">I need some help from you whom have already Request Tracker with Active Directory!<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR">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></span></p>
<p class="MsoNormal"><span lang="PT-BR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR">My Operational Systems are: <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR">Request Tracker 4.2.2 – Ubuntu 13.10<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR">Active Directory – Windows 2008 Server<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR">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></span></p>
<p class="MsoNormal"><span lang="PT-BR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR">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></span></p>
<p class="MsoNormal"><span lang="PT-BR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR">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></span></p>
<p class="MsoNormal"><span lang="PT-BR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR">Follow the RT part...<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR">+++++In the /var/log/apache2/error.log++++++<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR">[4638] [Thu Feb 6 14:41:01 2014] [info]: RT::Authen::ExternalAuth::CanonicalizeUserInfo returning Disabled: , EmailAddress:
<a href="mailto:rtop@stitelecom.com.br">rtop@stitelecom.com.br</a>, 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></span></p>
<p class="MsoNormal"><span lang="PT-BR">[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></span></p>
<p class="MsoNormal"><span lang="PT-BR">[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></span></p>
<p class="MsoNormal"><span lang="PT-BR">[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></span></p>
<p class="MsoNormal"><span lang="PT-BR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR">++++++ In the RT_Siteconfig.pm: +++++++<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR">Plugin( "RT::Authen::ExternalAuth" );<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR">Set($ExternalAuthPriority, [ 'My_LDAP' ] );<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR">Set($ExternalInfoPriority, [ 'My_LDAP' ] );<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR">Set($AutoCreateNonExternalUsers, 0);<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR">Set($ExternalSettings, {<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR">'My_LDAP' => {<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR"> 'type' => 'ldap',<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR"> 'server' => 'pdcsti.stitelecom.local',<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR"> 'user' => 'cn=rt-ldap,cn=Users,dc=stitelecom,dc=local',<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR"> 'pass' => 'secret',<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR"> 'base' => 'dc=stitelecom,dc=local',<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR"> 'filter' => '(objectclass=*)',<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR"> 'group' => 'cn=RTUsers,ou=RT4,ou=STI,dc=stitelecom,dc=local',<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR"> 'group_attr' => 'uniqueMember',<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR"> 'tls' => 0,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR"> 'ssl_version' => 3,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR"> 'net_ldap_args' => [ version => 3 ],<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR"> 'attr_match_list' => [<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR"> 'Name',<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR"> 'EmailAddress',<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR"> ],<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR"> 'attr_map' => {<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR"> 'Name' => 'sAMAccountName',<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR"> 'EmailAddress' => 'mail',<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR"> 'ExternalAuthId' => 'sAMAccountName',<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR"> },<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR"> },<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR">} );<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR">1;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR">THANK YOU IN ADVANCE!<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR" style="mso-fareast-language:PT-BR"><img border="0" width="384" height="144" id="Imagem_x0020_1" src="cid:image001.jpg@01CF2334.CF54DAB0" alt="Diego2013"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR"><o:p> </o:p></span></p>
</div>
</body>
</html>