[rt-users] User could not be loaded

Steve Berg stevodevo at gmail.com
Sun Aug 22 22:27:58 EDT 2010


Hi all,

I have RT set up and am using RT::Authen::ExternalAuth to authenticate
users against LDAP which is working great.  We now have an external
company we are working with and they don't have  LDAP accounts and
when they send an email in to the RT system they receive a bounce that
says:

"User xxx at xxx.com could not be loaded in the mail gateway"

My RT_SiteConfig.pm looks like:

# Any configuration directives you include  here will override
# RT's default configuration file, RT_Config.pm
#
# To include a directive here, just copy the equivalent statement
# from RT_Config.pm and change the value. We've included a single
# sample value below.
#
# This file is actually a perl module, so you can include valid
# perl code, as well.
#
# The converse is also true, if this file isn't valid perl, you're
# going to run into trouble. To check your SiteConfig file, use
# this comamnd:
#
#   perl -c /path/to/your/etc/RT_SiteConfig.pm

Set( $rtname, 'x');
Set(@Plugins, qw(RT::Authen::ExternalAuth) );
Set($LogToFile , 'debug');

Set($ExternalAuthPriority,  ['My_LDAP']);
Set($ExternalInfoPriority,  ['My_LDAP']);
Set($ExternalServiceUsesSSLorTLS,    1);
Set($AutoCreateNonExternalUsers,    1);

Set($ExternalSettings,      {
      'My_LDAP'       =>  {   ## GENERIC SECTION
            'type'                      =>  'ldap',
            'server'                    =>  'x',
            'user'                      =>  'x',
            'pass'                      =>  'x',
            'base'                      =>  'x',
            'filter'                    => '(objectclass=user)',
            'd_filter'                  =>
'(userAccountControl:1.2.840.113556.1.4.803:=2)',
            'tls'                       =>  0,
            'ssl_version'               =>  3,
            'net_ldap_args'             => [    version =>  3   ],
            #'group'                     =>  'GROUP_NAME',
            #'group_attr'                =>  'GROUP_ATTR',
            'attr_match_list'           => [    'Name',
                                                'EmailAddress',
                                                'RealName',
                                                'WorkPhone',
                                                'Address2'
                                                                 ],
            'attr_map'                  =>  {   'Name' => 'sAMAccountName',
                                                'EmailAddress' => 'mail',
                                                'Organization' =>
'physicalDeliveryOfficeName',
                                                'RealName' => 'cn',
                                                'ExternalAuthId' =>
'sAMAccountName',
                                                'Gecos' => 'sAMAccountName',
                                                'WorkPhone' =>
'telephoneNumber',
                                                'Address1' => 'streetAddress',
                                                'City' => 'l',
                                                'State' => 'st',
                                                'Zip' => 'postalCode',
                                                'Country' => 'co'
                                                                       }
                                                    },

                                }
);

1;



More information about the rt-users mailing list