LDAPExternalAuth not importing email into RT

Hi,

I am very new to RT and setting it for the first time. I am trying to set
up the ExternalAuth extention so the my organizaiton can log into RT with
their corporate login/pass. I have successfully been able to set up
ExternalAuth to a point where anyone can log in, and if the user does not
exist in RT, it is automatically created. The only issue I am getting is
that only the user name, and real name are being populated in RT. I also
want email to be added automatically as well.

I also ran a dry RTLDAPImport run, and even in those results, the email does
not show up.

Here is a snippet for LDAPExternalAuth from my RT_SiteConfig file:

/Set( @Plugins, qw(RT::Authen::ExternalAuth) );

Set($ExternalAuthPriority, [‘My_LDAP’] );
Set($ExternalInfoPriority, [‘My_LDAP’] );
Set($ExternalServiceUsesSSLorTLS, 0);
Set($AutoCreateNonExternalUsers, 0);

Set($ExternalSettings, {
# AN EXAMPLE LDAP SERVICE
’My_LDAP’ => {
‘type’ => ‘ldap’,

    'server'                    =>  '****.****.int',
    'user'                      =>  'ldapuser',
    'pass'                      =>  'ldappass',

    'base'                      =>  'DC=mcafee,DC=int',
    'filter'                    => 

‘(&(ObjectCategory=User)(ObjectClass=Person))’,
‘d_filter’ =>
’(userAccountControl:1.2.840.113556.1.4.803:=2)’,

    #'group'                     =>  'GROUP_NAME',
    #'group_attr'                =>  'GROUP_ATTR',

    'tls'                       =>  0,
    'ssl_version'               =>  3,

    'net_ldap_args'             => [    version =>  3   ],

    'attr_match_list' => [
        'Name',
        'EmailAddress',
        'RealName',
        'WorkPhone',
        'Address2'
    ],
    'attr_map' => {
        'Name' => 'sAMAccountName',
        'EmailAddress' => 'mail',
        'Organization' => 'physicalDeliveryOfficeName',
        'RealName' => 'cn',
        'Gecos' => 'sAMAccountName',
        'WorkPhone' => 'telephoneNumber',
        'Address1' => 'streetAddress',
        'City' => 'l',
        'State' => 'st',
        'Zip' => 'postalCode',
        'Country' => 'co'
    },
},

} );/

Please let me know what I have to change to get email added into RT
automatically when a new user is created by RT.

Thanks,
Azhar

View this message in context: http://requesttracker.8502.n7.nabble.com/LDAPExternalAuth-not-importing-email-into-RT-tp54668.html