ExternalAuth logging

I can’t seem to get any response at login from ExternalAuth 0.09 using RT
3.8.7 .

I have the following logging setup, which will only show me Login Success
or Failure with Web.pm.

Set($LogToSyslog,‘warning’);
Set($LogToFile,‘debug’);
Set($LogToFileNamed,‘rt.log’);
Set($LogDir,’/var/log/request-tracker3.8’);

Below is my ExternalAuth Config:

LDAP Configuration

Set ( $ExternalAuthPriority, [ ‘GFU_LDAP’ ] );
Set ( $ExternalInfoPriority, [ ‘GFU_LDAP’ ] );

Set($ExternalServiceUsesSSLorTLS, 0);

Set($AutoCreateNonExternalUsers, 0);

Set($ExternalSettings, {
‘GFU_LDAP’ => {
‘type’ => ‘ldap’,
‘server’ => ‘
ads-nbg.campus.georgefox.edu’,
‘user’ =>
‘CN=user,OU=group,DC=base,DC=base,DC=edu’,
‘pass’ => ‘pass’,
‘base’ => ‘DC=base,DC=base,DC=edu’,
‘filter’ => ‘(objectClass=user)’,
‘d_filter’ => ‘(objectClass=Doesntexist)’,
‘tls’ => 0,
‘ssl_version’ => 3,
‘net_ldap_args’ => [ version => 3 ],
‘group’ => ‘CN=All
Users,OU=group,DC=base,DC=base,DC=edu’,
‘group_attr’ => ‘member’,
‘attr_match_list’ => [ ‘Name’,
‘EmailAddress’,
],
‘attr_map’ => { ‘Name’ =>
‘sAMAccountName’,
‘EmailAddress’ =>
‘mail’,
‘ExternalAuthId’ =>
‘sAMAccountName’,
‘Gecos’ =>
‘sAMAccountName’,
}
}
}
);

The only logging I see is when I create a ticket, then I get the following:

[Mon Jan 23 22:02:06 2012] [debug]:
RT::Authen::ExternalAuth::CanonicalizeUserInfo called by
RT::Authen::ExternalAuth
/usr/local/share/request-tracker3.8/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm
553 with: Disabled: 0, EmailAddress: , Name: jdoe, Privileged: 0
(/usr/local/share/request-tracker3.8/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:450)
[Mon Jan 23 22:02:06 2012] [debug]: Attempting to get user info using this
external service: GFU_LDAP
(/usr/local/share/request-tracker3.8/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:458)
[Mon Jan 23 22:02:06 2012] [debug]: Attempting to use this canonicalization
key: Name
(/usr/local/share/request-tracker3.8/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:472)
[Mon Jan 23 22:02:06 2012] [debug]: LDAP Search === Base:
DC=base,DC=base,DC=edu == Filter:
(&(objectClass=user)(sAMAccountName=jdoe)) == Attrs:
mail,sAMAccountName,sAMAccountName,sAMAccountName
(/usr/local/share/request-tracker3.8/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:195)
[Mon Jan 23 22:02:06 2012] [info]:
RT::Authen::ExternalAuth::CanonicalizeUserInfo returning Disabled: 0,
EmailAddress: jdoe@georgefox.edu, ExternalAuthId: jdoe, Gecos: jdoe, Name:
jdoe, Privileged: 0, RealName:
(/usr/local/share/request-tracker3.8/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:536

It seems ExternalAuth isn’t even being polled at login. Any ideas?

Ryan Backman
Programmer / Analyst
George Fox University
503.554.2576

The only logging I see is when I create a ticket, then I get the following:
[Mon Jan 23 22:02:06 2012] [debug]: RT::Authen::ExternalAuth::CanonicalizeUserInfo called by
RT::Authen::ExternalAuth
/usr/local/share/request-tracker3.8/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm
553 with: Disabled: 0, EmailAddress: , Name: jdoe, Privileged: 0
(/usr/local/share/request-tracker3.8/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:450)
[Mon Jan 23 22:02:06 2012] [debug]: Attempting to get user info using this external service:
GFU_LDAP
(/usr/local/share/request-tracker3.8/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:458)
[Mon Jan 23 22:02:06 2012] [debug]: Attempting to use this canonicalization key: Name
(/usr/local/share/request-tracker3.8/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:472)
[Mon Jan 23 22:02:06 2012] [debug]: LDAP Search === Base: DC=base,DC=base,DC=edu == Filter:
(&(objectClass=user)(sAMAccountName=jdoe)) == Attrs:
mail,sAMAccountName,sAMAccountName,sAMAccountName
(/usr/local/share/request-tracker3.8/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:195)
[Mon Jan 23 22:02:06 2012] [info]: RT::Authen::ExternalAuth::CanonicalizeUserInfo returning
Disabled: 0, EmailAddress: [2]jdoe@georgefox.edu, ExternalAuthId: jdoe, Gecos: jdoe, Name:
jdoe, Privileged: 0, RealName:
(/usr/local/share/request-tracker3.8/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:536
It seems ExternalAuth isn’t even being polled at login. Any ideas?

Ensure that the proper callbacks are installed in
/usr/local/share/request-tracker3.8/plugins/RT-Authen-ExternalAuth/html
and readable by the RT server and that you’ve cleaned the mason cache.

Also ensure that you haven’t enabled any of RT’s internal ExternalAuth
support that might be logging you in before RT-Authen-ExternalAuth has
a chance to work.

-kevin