<div dir="ltr"><div class="gmail_quote"><div dir="ltr">Hello,<div><br></div><div>I have installed RT 4.2.2 on CentOS 6.5 which  is working fine without AD.</div><div><br></div><div>I tested Active Directory Authentication and it worked ,  but now the authentication is failing with the following error.</div>

<div><br></div><div>in rt.log </div><div><div>[1165] [Thu Mar 20 01:40:14 2014] [error]: FAILED LOGIN for administrator from 192.168.51.60 (/opt/rt4/sbin/../lib/RT/Interface/Web.pm:814)</div></div><div><br></div><div>in messages</div>

<div><br></div><div>Mar 19 21:40:14 rt RT: [1165] FAILED LOGIN for administrator from 192.168.51.60<br></div><div><br></div><div>Tried with changing log to debug but its not dumping any debug logs.</div><div><br></div><div>

Here is my Site Config <br></div><div><br></div><div><div>#Logs</div><div>Set($LogToSyslog    , 'debug');</div><div>Set($LogToFile , 'debug'); #debug is very noisy</div><div>Set($LogDir, '/opt/rt4/var/log/');</div>

<div>Set($LogToFileNamed , "rt.log");    #log to rt.log</div></div><div><br></div><div><div>'My_LDAP' =>  {</div><div>                                              'type'              =>  'ldap',</div>

<div>                                              'server'            =>  '192.168.51.48',</div><div>                                              'user'              =>  '<a href="mailto:rtuser@aaa.bbb.com" target="_blank">rtuser@aaa.bbb.com</a>',</div>

<div>                                              'pass'              =>  'secret',</div><div>                                              'base'              =>  'cn=users,DC=aaa,DC=bbb, DC=com',</div>

<div>                                              'filter'            =>  '(&(ObjectCategory=User)(ObjectClass=Person))',</div><div>                                              'd_filter'          =>  '(userAccountControl:1.2.840.113556.1.4.803:=2)',</div>

<div>                                              'tls'               =>  0,</div><div>                                              'ssl_version'       =>  3,</div><div>                                              'net_ldap_args'     => [    version =>  3   ],</div>

<div>                                              'attr_match_list'   => [    'Name',</div><div>                                                                          'EmailAddress'</div><div>

                                                                     ],</div><div>                                              'attr_map'          =>  {   'Name' => 'sAMAccountName',</div><div>

                                                                          'EmailAddress' => 'mail',</div><div>                                                                          'Organization' => 'physicalDeliveryOfficeName',</div>

<div>                                                                          'RealName' => 'cn',</div><div>                                                                          'ExternalAuthId' => 'sAMAccountName',</div>

<div>                                                                          'Gecos' => 'sAMAccountName',</div><div>                                                                          'WorkPhone' => 'telephoneNumber',</div>

<div>                                                                          'Address1' => 'streetAddress',</div><div>                                                                          'City' => 'l',</div>

<div>                                                                          'State' => 'st',</div><div>                                                                          'Zip' => 'postalCode',</div>

<div>                                                                          'Country' => 'co'</div></div><div><br></div><div><div>#AD Users/Group Import</div><div>Set($LDAPHost,'ldap://<a href="http://192.168.51.48" target="_blank">192.168.51.48</a>');</div>

<div>    Set($LDAPUser,'<a href="mailto:rtuser@aaa.bbb.com" target="_blank">rtuser@aaa.bbb.com</a>');</div><div>    Set($LDAPPassword,'secret');</div><div>    Set($LDAPBase, 'DC=aaa,DC= bbb, DC=com');</div>
<div>    Set($LDAPFilter, '(&(objectclass=person)(!(objectclass=computer)))');</div>
<div>    Set($LDAPMapping, {Name         => 'uid', # required</div><div>                       EmailAddress => 'mail',</div><div>                       RealName     => 'cn',</div><div>                       WorkPhone    => 'telephoneNumber',</div>

<div>                       Organization => 'departmentName'});</div><div><br></div><div>Set($LDAPGroupBase, ' DC=aaa, DC=bbb, DC=com');</div><div>   Set($LDAPGroupFilter, '(&(objectclass=group)(!(objectclass=computer)))');</div>

<div>   Set($LDAPGroupMapping, {Name               => 'cn',</div><div>                          Member_Attr        => 'member',</div><div>                          Member_Attr_Value  => 'dn' });</div>

</div><div>Also i am not able to import  users where as groups were imported successfully.</div><div><br></div><div>I get the following error while running import for users.</div><div><br></div><div><div>[1194] [Thu Mar 20 02:06:47 2014] [warning]: No Name or Emailaddress for user, skipping $VAR1 = {</div>

<div>          'WorkPhone' => '',</div><div>          'RealName' => 'Guest',</div><div>          'Organization' => '',</div><div>          'Name' => '',</div>

<div>          'EmailAddress' => ''</div><div>        }; (/opt/rt4/local/plugins/RT-Extension-LDAPImport/lib/RT/Extension/LDAPImport.pm:1524)</div><div>No Name or Emailaddress for user, skipping $VAR1 = {</div>

<div>          'WorkPhone' => '',</div><div>          'RealName' => 'Guest',</div><div>          'Organization' => '',</div><div>          'Name' => '',</div>

<div>          'EmailAddress' => ''</div><div>        };</div></div><div><div>[1194] [Thu Mar 20 02:06:47 2014] [warning]: No Name or Emailaddress for user, skipping $VAR1 = {</div><div>          'WorkPhone' => '',</div>

<div>          'RealName' => 'Administrator',</div><div>          'Organization' => '',</div><div>          'Name' => '',</div><div>          'EmailAddress' => ''</div>

<div>        }; (/opt/rt4/local/plugins/RT-Extension-LDAPImport/lib/RT/Extension/LDAPImport.pm:1524)</div><div>No Name or Emailaddress for user, skipping $VAR1 = {</div><div>          'WorkPhone' => '',</div>

<div>          'RealName' => 'Administrator',</div><div>          'Organization' => '',</div><div>          'Name' => '',</div><div>          'EmailAddress' => ''</div>

<div>        };</div></div><div><div>[1194] [Thu Mar 20 02:06:47 2014] [warning]: No Name or Emailaddress for user, skipping $VAR1 = {</div><div>          'WorkPhone' => '',</div><div>          'RealName' => 'Recruiter1',</div>

<div>          'Organization' => '',</div><div>          'Name' => '',</div><div>          'EmailAddress' => ''</div><div>        }; (/opt/rt4/local/plugins/RT-Extension-LDAPImport/lib/RT/Extension/LDAPImport.pm:1524)</div>

<div>No Name or Emailaddress for user, skipping $VAR1 = {</div><div>          'WorkPhone' => '',</div><div>          'RealName' => 'Recruiter1',</div><div>          'Organization' => '',</div>

<div>          'Name' => '',</div><div>          'EmailAddress' => ''</div><div>        };</div></div><div><br></div><div>Probably my LDAP/AD mapping is not correct ,My Active Directory is on  Windows Server 2012 .</div>

<div><br></div><div>Please help me resolve these 2 issues.</div><div><br></div><div>Thanks in advance.</div><span class="HOEnZb"><font color="#888888"><div>Mohammed</div><div><br></div><div><br></div></font></span></div>

</div><br></div>