User_Local path being followed sometimes, not every

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
(/usr/share/request-tracker3/html/autohandler:175)

HOWEVER, logging in as ‘root’ User_Local.pm is clearly being read, as
the the log echoes:
[info]: Using External Authentication
(/usr/share/request-tracker3/lib/RT/User_Local.pm:21)

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.
context:

61: $RT::Logger->info(“Using External Authentication\n”);
62: use Net::LDAP;
63:
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;
66:
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
/usr/share/request-tracker3/lib/RT/CurrentUser.pm:273
/usr/share/request-tracker3/html/autohandler:172
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

THE BASICS:

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

Set($CorrespondAddress , ‘rt@x.x.com’);
Set($CommentAddress , ‘rt-comment@x.x.com’);

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

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

Set($MailCommand , ‘sendmail’);

THE DATABASE:

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’);

THE WEBSERVER:

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

LDAP:

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=*)”);
1;

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
obvious)?
what should I look for?

thanks for any time you might give this

MarkT

At Tuesday 1/11/2005 02:27 PM, Mark Taylor wrote:

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
obvious)?
what should I look for?

Did you fully stop and then start the web server after putting your local
file in place?

Steve

Stephen Turner
Senior Programmer/Analyst - Client Support Services
Information Services and Technology (IS&T)

sturner@mit.edu