<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 12 (filtered medium)">
<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:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","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;}
span.yshortcuts
        {mso-style-name:yshortcuts;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</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-CA link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Hi Ben,<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Barring things like the user not being authorized, or your base
being incorrect, try limiting your attr_map down to just the essentials. I got
errors trying to map things that I thought should work just fine. I can’t
remember what error I got, but it wasn’t descriptive and it caused a
complete failure of the process.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>-Mike<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US 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>Ben<br>
<b>Sent:</b> September-02-09 2:20 PM<br>
<b>To:</b> rt-users@lists.bestpractical.com<br>
<b>Subject:</b> [rt-users] RT::Authen::ExternalAuth error<o:p></o:p></span></p>

</div>

<p class=MsoNormal><o:p> </o:p></p>

<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0>
 <tr>
  <td valign=top style='padding:0cm 0cm 0cm 0cm'>
  <div>
  <p class=MsoNormal>Hi, All,<o:p></o:p></p>
  </div>
  <div>
  <p class=MsoNormal> <o:p></o:p></p>
  </div>
  <div>
  <p class=MsoNormal>I have errors with RT 3.6.5 and
  RT-Authen-ExternalAuth-0.05 on my centos box.<o:p></o:p></p>
  </div>
  <div>
  <p class=MsoNormal>following are error messages:<o:p></o:p></p>
  </div>
  <div>
  <p class=MsoNormal>[Tue Sep  1 23:39:32 2009] [critical]:
  RT::User::_GetBoundLdapObj Can't bind: LDAP_INVALID_DN_SYNTAX 34 (/usr/local/lib/rt3/lib/RT/User_Vendor.pm:1056)<br>
  [Tue Sep  1 23:39:32 2009] [critical]: RT::User::_GetBoundLdapObj Can't
  bind: LDAP_INVALID_DN_SYNTAX 34
  (/usr/local/lib/rt3/lib/RT/User_Vendor.pm:1056)<o:p></o:p></p>
  </div>
  <div>
  <p class=MsoNormal> <o:p></o:p></p>
  </div>
  <div>
  <p class=MsoNormal>And my configuration:<o:p></o:p></p>
  </div>
  <div>
  <p class=MsoNormal> <o:p></o:p></p>
  </div>
  <div>
  <p class=MsoNormal>Set( @Plugins, qw(RT::Authen::ExternalAuth) ); <br>
  Set($ExternalAuthPriority,  [   'My_LDAP' ]);<br>
  Set($ExternalInfoPriority,  [  'My_LDAP' ]);<o:p></o:p></p>
  </div>
  <div>
  <p class=MsoNormal><br>
  Set($ExternalServiceUsesSSLorTLS,    0);<br>
  Set($AutoCreateNonExternalUsers,    0);<o:p></o:p></p>
  </div>
  <div>
  <p class=MsoNormal>Set($ExternalSettings,     
  {   <br>
                                 
  'My_LDAP'       =>  {   <br>
                                      
  'type'=>'ldap',<br>
                                      
  'auth'=>1,<br>
                                      
  'info'=>  1,<br>
                                      
  'server'=>  '<a href="http://tldap01.smith.com/" target="_blank"><span
  class=yshortcuts>tldap01.smith.com</span></a>',<br>
                                      
  'user'                     
  =>  'rt3',<br>
                                      
  'pass'                   
  =>  'mypassword',<br>
                                      
  'base'=> 'ou=people,dc=smith,dc=com',<o:p></o:p></p>
  </div>
  <div>
  <p class=MsoNormal>                                    
  'filter'=>  '(objectClass=person)',<br>
                                      
  'd_filter'                 
  =>  '(userAccountControl:1.2.840.113556.1.4.803:=2)',<br>
                                                         
  'tls'                      
  =>  0,<br>
                                                         
  'net_ldap_args'            
  => [    version =>  3   ],<br>
                                                        
  #
  'group'                    
  =>  'GROUP_NAME',<br>
                                                        
  #
  'group_attr'               
  =>  'GROUP_ATTR',<br>
                                                         
  'attr_match_list'          
  => [    'Name',<br>
                                                                                             
  'EmailAddress', <br>
                                                                                             
  'RealName',<br>
                                                                                             
  'WorkPhone', <br>
                                                                                             
  'Address2'<br>
                                                                                         
  ],<br>
                                                         
  'attr_map'                 
  =>  {   'Name' => 'sAMAccountName',<br>
                                                                                             
  'EmailAddress' => 'mail',<br>
                                                                                             
  'Organization' => 'physicalDeliveryOfficeName',<br>
                                                                                             
  'RealName' => 'cn',<br>
                                                                                             
  'ExternalAuthId' => 'sAMAccountName',<br>
                                                                                             
  'Gecos' => 'sAMAccountName',<br>
                                                                                             
  'WorkPhone' => 'telephoneNumber',<br>
                                                                                             
  'Address1' => 'streetAddress',<br>
                                                                                             
  'City' => 'l',<br>
                                                                                             
  'State' => 'st',<br>
                                                                                             
  'Zip' => 'postalCode',<br>
                                                                                             
  'Country' => 'co'<br>
                                                                                         
  }<br>
                                                     
  }<br>
                                 
  }<o:p></o:p></p>
  </div>
  <div>
  <p class=MsoNormal> <o:p></o:p></p>
  </div>
  <div>
  <p class=MsoNormal> <o:p></o:p></p>
  </div>
  <div>
  <p class=MsoNormal>Am I doing soething wrong? <o:p></o:p></p>
  </div>
  <div>
  <p class=MsoNormal> <o:p></o:p></p>
  </div>
  <div>
  <p class=MsoNormal>Thanks, Please advise.<o:p></o:p></p>
  </div>
  <div>
  <p class=MsoNormal> <o:p></o:p></p>
  </div>
  <div>
  <p class=MsoNormal> <o:p></o:p></p>
  </div>
  <div>
  <p class=MsoNormal>Regards,<o:p></o:p></p>
  </div>
  <div>
  <p class=MsoNormal>Ben<o:p></o:p></p>
  </div>
  </td>
 </tr>
</table>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Calibri","sans-serif"'><o:p> </o:p></span></p>

</div>

</body>

</html>