Kevin,<br><br>If i could Prefix a string,can i use AD authentication ?Can you guide me with that hack ?thanks in advance<br><br>Murugan<br><br><div class="gmail_quote">On Mon, Mar 26, 2012 at 7:15 PM, Kevin Falcone <span dir="ltr"><<a href="mailto:falcone@bestpractical.com">falcone@bestpractical.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Sat, Mar 24, 2012 at 03:59:27PM +0530, Murugan wrote:<br>
>    I am new to RT and installed RT4.05 in Ubuntu 11.10 with RT External authentication.Active<br>
>    Directory users whose login ID is numeric(say 0001234 which will be their employee id ) cannot<br>
>    log in in RT(user names not created in RT).<br>
>    All others whose AD Login ID are alphabet/alphanumeric(like b001) can log in (user name<br>
>    created in RT).<br>
>    I tried LDAP import also and it fails fails with messages like<br>
>    [warning]: Skipping user '0003503', as it is numeric<br>
>    (/opt/rt4/local/plugins/RT-Extension-LDAPImport/lib/RT/Extension/LDAPImport.pm:969)<br>
><br>
>    Is there any way to authenticate or import users from LDAP without changing AD user names?<br>
<br>
If you search the list archives, you'll find people who've hacked up<br>
RT-Authen-ExternalAuth or LDAPImporter to handle number usernames by<br>
prefixing a string.  RT does not allow numeric usernames, so this is a<br>
required workaround.  I don't think we've received a patch to make<br>
that feature core in RT-Authen-ExternalAuth or the LDAPImporter.<br>
<br>
-kevin<br>
<br>
>    This is my RT External Auth Config file<br>
><br>
>    Set($ExternalAuthPriority, [ 'My_LDAP' ] );<br>
>    Set($ExternalInfoPriority, [ 'My_LDAP' ] );<br>
>    Set($ExternalServiceUsesSSLorTLS, 0);<br>
>    Set($AutoCreateNonExternalUsers, 0);<br>
><br>
>    Set($ExternalSettings, {<br>
>    'My_LDAP' => {<br>
><br>
>    'type' => 'ldap',<br>
>    'server' => '[1]<a href="http://serverr.domain.com" target="_blank">serverr.domain.com</a>',<br>
>    'user' => 'cn=RT,ou=ouname,dc=example,dc=com',<br>
>    'pass' => 'Welcome123',<br>
>    'base' => 'dc=example,dc=com',<br>
><br>
>    'filter' => '(&(ObjectCategory=User)(ObjectClass=Person))',<br>
>    'd_filter' => '(userAccountControl:1.2.840.113556.1.4.803:=2)',<br>
><br>
>    'tls' => 0,<br>
>    # 'ssl_version' => 3,<br>
><br>
>    'net_ldap_args' => [ version => 3 ],<br>
>    # 'group' => 'cn=RT Users,dc=sps,dc=co,dc=in',<br>
>    # 'group_attr' => 'member',<br>
><br>
>    'attr_match_list' => [ 'Name','EmailAddress' ],<br>
>    'attr_map' => { 'Name' => 'sAMAccountName',<br>
>    'EmailAddress' => 'mail',<br>
>    'Organization' => 'physicalDeliveryOfficeName',<br>
>    'RealName' => 'cn',<br>
>    'ExternalAuthId' => 'AMAccountName',<br>
>    'Gecos' => 'sAMAccountName',<br>
>    'WorkPhone' => 'telephoneNumber',<br>
>    'Address1' => 'streetAddress',<br>
>    'City' => 'l',<br>
>    'State' => 'st',<br>
>    'Zip' => 'postalCode',<br>
>    'Country' => 'co'<br>
>    }<br>
><br>
>    In RT_Site Config.PM<br>
><br>
>    Set(@Plugins, qw(RT::Authen::ExternalAuth<br>
>    RTx::Calendar<br>
>    RT::Extension::JSGantt<br>
>    RT::Extension::QuickCalls<br>
>    RT::Extension::SLA<br>
>    RTx::TicketlistTransactions<br>
>    RT::Extension::Utils<br>
>    RTx::WorkflowBuilder<br>
>    RT::Extension::NotifyOwners));<br>
><br>
>    require "/opt/rt4/local/plugins/RT-Authen-ExternalAuth/etc/RT_SiteConfig.pm";<br>
>    Set($AutoCreate, {Privileged => 1});<br>
><br>
>    Am i missing something ?<br>
><br>
>    Regards<br>
>    Murugan<br>
><br>
> References<br>
><br>
>    Visible links<br>
>    1. <a href="http://serverr.domain.com/" target="_blank">http://serverr.domain.com/</a><br>
</blockquote></div><br>