[rt-users] User_Local path being followed sometimes, not every

Mark Taylor mtaylor at real.com
Tue Jan 11 14:27:03 EST 2005

if you attempt to log in as a normal user, the authentication fails.  rt 
log echoes:
[error]:  "FAILED LOGIN for x from x.x.x 

HOWEVER, logging in as 'root' User_Local.pm is clearly being read, as 
the the log echoes:
[info]: Using External Authentication 

the authentication results in an error output to the web browser 
(firefox) as below:

error:       Can't locate object method "new" via package "Net::LDAP" 
(perhaps you forgot to load "Net::LDAP"?) at 
/usr/share/request-tracker3/lib/RT/User_Local.pm line 65.
61:      $RT::Logger->info("Using External Authentication\n");
62:      use Net::LDAP;
64:      my $mesg;
65:      my $ldap = Net::LDAP->new($RT::LdapServer, version=>3) or 
$RT::Logger->critical("GetExternalUserWithLDAP: " . "Cannot connect to 
LDAP'\n"), return 0;
67:      # Iseem to have problems is I try and bind with a NULL username 
by hand
68:      # So this now checks to see if we are really going to bind with a
69:      # username.
code stack:      /usr/share/request-tracker3/lib/RT/User_Local.pm:65
raw error
my RT_SiteConfig.pm:

# RT_SiteConfig.pm
# These are the bits you absolutely *must* edit.
# To find out how, please read
#   /usr/share/doc/request-tracker3/INSTALL.Debian


Set($rtname, 'host.x.x.com');
Set($Organization, 'x.x.com');

Set($CorrespondAddress , 'rt at x.x.com');
Set($CommentAddress , 'rt-comment at x.x.com');

Set($Timezone , 'US/Pacific'); # obviously choose what suits you

Set($LogToFile      , 1);
Set($UseFriendlyToLine , 1);

Set($MailCommand , 'sendmail');


Set($DatabaseType, 'mysql'); # e.g. Pg or mysql

# These are the settings we used above when creating the RT database,
# you MUST set these to what you chose in the section above.

Set($DatabaseUser , 'rtuser');
Set($DatabasePassword , 'x');
Set($DatabaseName , 'rtdb');


Set($WebPath , "/rt");
Set($WebBaseURL , "http://host.x.x.com");


Set($LDAPExternalAuth, 1);
Set($LdapServer, "ldap.x.x.com");
Set($LdapUser, "");
Set($LdapPass, "");
Set($LdapBase, "ou=x,ou=x,dc=x,dc=com");
Set($LdapUidAttr, "uid");
Set($LdapFilter, "(objectclass=*)");

why would it be following one code path some of the time (at least in 
one instance) and another, apparently, every other time? 

Is there something glaringly obvious I've missed (or not-so-glaringly 
what should I look for?

thanks for any time you might give this


More information about the rt-users mailing list