[rt-users] I am unable to use LDAP

Eric Chatham echatham at broadvox.com
Tue Jul 14 17:41:37 EDT 2009


Hello,

I have had some problem getting LDAP to work on my version of RT.  I am running RT version 3.8.2 and the version of RT::Authen::ExternalAuth I installed via CPAN is 0.08.  RT is installed on a CentOS 5.1 OS.  I tried using some examples from a Google search to try and modify RT_SiteConfig.pm, but when I try to log into the RT Webpage (with an LDAP user), it fails.  Beforehand, I did create the user as a "user" in RT, but left the password blank.  Should I set a user up in RT first before trying to log the user into RT?  Here is an example of my RT_SiteConfig.pm settings.  Everytime I try to log in with an LDAP user, I get "Your username or password is incorrect."  Can I setup a log file to track this as well?  Please help and thank you for any assistance.


# 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, 'example.com');
# Set(@Plugins,(qw(Extension::QuickDelete)));
# Set($WebPath, "/rt3");
Set($rtname, "broadvox.local");
Set($Organization, 'broadvox.local');
# Set($CorrespondAddress, 'echatham at broadvox.net');
# Set($CommentAddress, 'echatham at infotelecom.us');
Set($Timezone, 'US/Eastern');
# Set($WebBaseURL, 'http://rt.broadvox.local/');
Set(@Plugins,(qw(RT::Authen::ExternalAuth)));

# Debugging
Set($LogToSyslog, 'info');
Set($LogStackTraces, 'debug');

# Database
# Set($DatabaseType, 'mysql');
# Set($DatabaseUser, 'rt_user');
# Set($DatabasePassword, 'rt_pass');
# Set($DatabaseRTHost, 'localhost');

# External Authentication
Set($ExternalAuthPriority, ['My_LDAP']);

# LDAP
Set($ExternalSettings,      {'My_LDAP' => {'type' => 'ldap',
                                          'auth' => 1,
                                          'info' => 1,
                                          'server' => 'clehbdc01.broadvox.local',
                                          'user' => 'secmanager',
                                          'pass' => '<password>',
                                          'port' => '389',
                                          'base' => 'ou=USA,dc=broadvox,dc=local',
                                          'filter' => '(objectclass=user)',
                                          'attr_match_list' => [ 'Name',
                                                                 'EmailAddress',
                                                                 'RealName',
                                                                 'WorkPhone',
                                                                 'Address2'
                                                                ],
                                          'attr_map' => {'Name' => 'sAMAccountName',
                                                         'EmailAddress' => 'mail',
                                                         'Orginazation' => 'physicalDeliveryOfficeName',
                                                         'RealName' => 'cn',
                                                         'ExternalAuthID' => 'sAMAccountName',
                                                         'WorkPhone' => 'telephoneNumber',
                                                         'Address1' => 'streetAddress',
                                                         'City' => 'l',
                                                         'State' => 'st',
                                                         'Zip' => 'postalCode',
                                                         'Country' => 'co'}
                                        }
                        });
1;



Eric Chatham
MIS Department
Phone: (216) 373-4683
Fax: (216) 373-4669
echatham at broadvox.com
[cid:image001.gif at 01CA04A9.1E0D6960]


________________________________
CONFIDENTIAL. This e-mail and any attached files are confidential and should be destroyed and/or returned if you are not the intended and proper recipient.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20090714/4f760fa8/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 2381 bytes
Desc: image001.gif
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20090714/4f760fa8/attachment.gif>


More information about the rt-users mailing list