CALLING EXTERNALAUTH TESTERS - v0.07_01 nowavailable

Quick question: if I try the new .07_1, and get this on login (whether as root or as a user in AD):

Undefined subroutine &RT::Authen::ExternalAuth::UserExists called at /opt/rt3/local/plugins/RT-Authen-ExternalAuth/html/Callbacks/ExternalAuth/autohandler/Auth line 39, line 323.

Have I borked something more basic, or would more info / my debug logs be useful to you? FYI, from what I see in the log, it doesn’t even look like any attempt to query AD has been made, so I don’t know what sort of cleverness I perpetrated here.From: rt-users-bounces@lists.bestpractical.com [mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Aaron Zuercher
Sent: Thursday, November 06, 2008 5:24 PM
To: mike.peachey@jennic.com
Cc: RT Users
Subject: Re: [rt-users] CALLING EXTERNALAUTH TESTERS - v0.07_01 nowavailable.

I’m still getting the same error:
Can’t call method “SetDisabled” on an undefined value at /opt/rt3/bin/…/lib/RT/User_Overlay.pm line 1087.

I installed over the top and recieved that error. so then I remove the RT_AUTH dir from the plugins folder and reinstalled again. Same error. Here is what the rt.log shows (looks promising):

[Thu Nov 6 22:16:48 2008] [error]: Working around bug in RT and reloading RT::User (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/html/Callbacks/ExternalAuth/autohandler/Auth:12)
[Thu Nov 6 22:16:57 2008] [error]: Working around bug in RT and reloading RT::User (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/html/Callbacks/ExternalAuth/autohandler/Auth:12)
[Thu Nov 6 22:16:57 2008] [debug]: $pass defined (slinky), Running IsPassword (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/html/Callbacks/ExternalAuth/autohandler/Auth:69)
[Thu Nov 6 22:16:57 2008] [crit]: User #13 has principal of Group type (/opt/rt3/bin/…/lib/RT/User_Overlay.pm:1123)
[Thu Nov 6 22:16:57 2008] [debug]: Trying External Authentication ( mccartyj ) (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/User_Vendor.pm:24)
[Thu Nov 6 22:16:57 2008] [debug]: Attempting to use external auth service: My_LDAP (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:150)
[Thu Nov 6 22:16:57 2008] [debug]: Trying external auth service: My_LDAP (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:13)
[Thu Nov 6 22:16:57 2008] [debug]: LDAP Search === Base: o=dist86 == Filter: (&(cn=mccartyj)(objectclass=Person)) == Attrs: dn (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:40)
[Thu Nov 6 22:16:57 2008] [debug]: Found LDAP DN: cn=McCartyJ,ou=Users,o=Dist86 (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:72)
[Thu Nov 6 22:16:57 2008] [debug]: LDAP Search === Base: o=dist86 == Filter: (member=cn=McCartyJ,ou=Users,o=Dist86) == Attrs: dn (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:97)
[Thu Nov 6 22:16:57 2008] [warning]: Use of uninitialized value in join or string at /usr/lib/perl5/site_perl/5.8.8/Log/Dispatch.pm line 22. (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:136)
[Thu Nov 6 22:16:57 2008] [info]: RT::Authen::ExternalAuth::LDAP::GetAuth External Auth OK ( My_LDAP ): (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:136)
[Thu Nov 6 22:16:57 2008] [debug]: RT::User::IsPassword EXTERNAL AUTH OKAY (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/User_Vendor.pm:26)
[Thu Nov 6 22:16:57 2008] [debug]: UserExists params:
username: mccartyj , service: My_LDAP (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:271)
[Thu Nov 6 22:16:57 2008] [debug]: LDAP Search === Base: o=dist86 == Filter: (&(objectclass=Person)(cn=mccartyj)) == Attrs: l,givenName,st,mail,uid,co,ou,postalCode,telephoneNumber,cn,o,cn (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:301)
[Thu Nov 6 22:16:57 2008] [debug]: UserExists params:
username: mccartyj , service: My_LDAP (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:271)
[Thu Nov 6 22:16:57 2008] [debug]: LDAP Search === Base: o=dist86 == Filter: (&(objectclass=Person)(cn=mccartyj)) == Attrs: l,givenName,st,mail,uid,co,ou,postalCode,telephoneNumber,cn,o,cn (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:301)
[Thu Nov 6 22:16:57 2008] [debug]: LDAP Search === Base: o=dist86 == Filter: (&(objectclass=Person)(employmentStatus=Terminated)(cn=mccartyj)) == Attrs: uid (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:395)
[Thu Nov 6 22:16:57 2008] [crit]: User #13 has principal of Group type (/opt/rt3/bin/…/lib/RT/User_Overlay.pm:1123)
[Thu Nov 6 22:16:58 2008] [crit]: User #13 has principal of Group type (/opt/rt3/bin/…/lib/RT/User_Overlay.pm:1123)
[Thu Nov 6 22:16:58 2008] [error]: Group::HasMember was called with an argument that isn’t an RT::Principal or id. It’s (undefined) (/opt/rt3/bin/…/lib/RT/Group_Overlay.pm:1031)
[Thu Nov 6 22:16:58 2008] [crit]: User #13 has principal of Group type (/opt/rt3/bin/…/lib/RT/User_Overlay.pm:1123)
[Thu Nov 6 22:16:58 2008] [error]: Group::HasMember was called with an argument that isn’t an RT::Principal or id. It’s (undefined) (/opt/rt3/bin/…/lib/RT/Group_Overlay.pm:1031)
[Thu Nov 6 22:16:58 2008] [crit]: User #13 has principal of Group type (/opt/rt3/bin/…/lib/RT/User_Overlay.pm:1123)
[Thu Nov 6 22:17:16 2008] [error]: Working around bug in RT and reloading RT::User (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/html/Callbacks/ExternalAuth/autohandler/Auth:12)
[Thu Nov 6 22:17:16 2008] [crit]: User #13 has principal of Group type (/opt/rt3/bin/…/lib/RT/User_Overlay.pm:1123)
[Thu Nov 6 22:17:16 2008] [error]: Group::HasMember was called with an argument that isn’t an RT::Principal or id. It’s (undefined) (/opt/rt3/bin/…/lib/RT/Group_Overlay.pm:1031)
[Thu Nov 6 22:17:19 2008] [error]: Working around bug in RT and reloading RT::User (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/html/Callbacks/ExternalAuth/autohandler/Auth:12)
[Thu Nov 6 22:17:19 2008] [crit]: User #13 has principal of Group type (/opt/rt3/bin/…/lib/RT/User_Overlay.pm:1123)
[Thu Nov 6 22:17:19 2008] [error]: Group::HasMember was called with an argument that isn’t an RT::Principal or id. It’s (undefined) (/opt/rt3/bin/…/lib/RT/Group_Overlay.pm:1031)
[Thu Nov 6 22:17:20 2008] [crit]: User #13 has principal of Group type (/opt/rt3/bin/…/lib/RT/User_Overlay.pm:1123)
[Thu Nov 6 22:17:20 2008] [error]: Group::HasMember was called with an argument that isn’t an RT::Principal or id. It’s (undefined) (/opt/rt3/bin/…/lib/RT/Group_Overlay.pm:1031)
[Thu Nov 6 22:17:20 2008] [crit]: User #13 has principal of Group type (/opt/rt3/bin/…/lib/RT/User_Overlay.pm:1123)
[Thu Nov 6 22:17:23 2008] [crit]: User #13 has principal of Group type (/opt/rt3/bin/…/lib/RT/User_Overlay.pm:1123)
[Thu Nov 6 22:17:23 2008] [error]: Group::HasMember was called with an argument that isn’t an RT::Principal or id. It’s (undefined) (/opt/rt3/bin/…/lib/RT/Group_Overlay.pm:1031)
[Thu Nov 6 22:17:23 2008] [crit]: User #13 has principal of Group type (/opt/rt3/bin/…/lib/RT/User_Overlay.pm:1123)
[Thu Nov 6 22:17:23 2008] [error]: Group::HasMember was called with an argument that isn’t an RT::Principal or id. It’s (undefined) (/opt/rt3/bin/…/lib/RT/Group_Overlay.pm:1031)
[Thu Nov 6 22:17:23 2008] [crit]: User #13 has principal of Group type (/opt/rt3/bin/…/lib/RT/User_Overlay.pm:1123)
[Thu Nov 6 22:17:40 2008] [error]: Working around bug in RT and reloading RT::User (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/html/Callbacks/ExternalAuth/autohandler/Auth:12)
[Thu Nov 6 22:17:48 2008] [debug]: $pass defined (slinky), Running IsPassword (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/html/Callbacks/ExternalAuth/autohandler/Auth:69)
[Thu Nov 6 22:17:48 2008] [crit]: User #13 has principal of Group type (/opt/rt3/bin/…/lib/RT/User_Overlay.pm:1123)
[Thu Nov 6 22:17:48 2008] [debug]: Trying External Authentication ( mccartyj ) (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/User_Vendor.pm:24)
[Thu Nov 6 22:17:48 2008] [debug]: Attempting to use external auth service: My_LDAP (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:150)
[Thu Nov 6 22:17:48 2008] [debug]: Trying external auth service: My_LDAP (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:13)
[Thu Nov 6 22:17:48 2008] [debug]: LDAP Search === Base: o=dist86 == Filter: (&(cn=mccartyj)(objectclass=Person)) == Attrs: dn (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:40)
[Thu Nov 6 22:17:48 2008] [debug]: Found LDAP DN: cn=McCartyJ,ou=Users,o=Dist86 (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:72)
[Thu Nov 6 22:17:48 2008] [debug]: LDAP Search === Base: o=dist86 == Filter: (member=cn=McCartyJ,ou=Users,o=Dist86) == Attrs: dn (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:97)
[Thu Nov 6 22:17:48 2008] [warning]: Use of uninitialized value in join or string at /usr/lib/perl5/site_perl/5.8.8/Log/Dispatch.pm line 22. (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:136)
[Thu Nov 6 22:17:48 2008] [info]: RT::Authen::ExternalAuth::LDAP::GetAuth External Auth OK ( My_LDAP ): (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:136)
[Thu Nov 6 22:17:48 2008] [debug]: RT::User::IsPassword EXTERNAL AUTH OKAY (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/User_Vendor.pm:26)
[Thu Nov 6 22:17:48 2008] [debug]: UserExists params:
username: mccartyj , service: My_LDAP (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:271)
[Thu Nov 6 22:17:48 2008] [debug]: LDAP Search === Base: o=dist86 == Filter: (&(objectclass=Person)(cn=mccartyj)) == Attrs: l,givenName,st,mail,uid,co,ou,postalCode,telephoneNumber,cn,o,cn (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:301)
[Thu Nov 6 22:17:48 2008] [debug]: UserExists params:
username: mccartyj , service: My_LDAP (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:271)
[Thu Nov 6 22:17:48 2008] [debug]: LDAP Search === Base: o=dist86 == Filter: (&(objectclass=Person)(cn=mccartyj)) == Attrs: l,givenName,st,mail,uid,co,ou,postalCode,telephoneNumber,cn,o,cn (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:301)
[Thu Nov 6 22:17:48 2008] [debug]: LDAP Search === Base: o=dist86 == Filter: (&(objectclass=Person)(employmentStatus=Terminated)(cn=mccartyj)) == Attrs: uid (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:395)
[Thu Nov 6 22:17:48 2008] [crit]: User #13 has principal of Group type (/opt/rt3/bin/…/lib/RT/User_Overlay.pm:1123)

Robert Munsch wrote:

Quick question: if I try the new .07_1, and get this on login (whether as root or as a user in AD):

Undefined subroutine &RT::Authen::ExternalAuth::UserExists called at /opt/rt3/local/plugins/RT-Authen-ExternalAuth/html/Callbacks/ExternalAuth/autohandler/Auth line 39, line 323.

Have I borked something more basic, or would more info / my debug logs be useful to you? FYI, from what I see in the log, it doesn’t even look like any attempt to query AD has been made, so I don’t know what sort of cleverness I perpetrated here.

I’m not sure, that seems to suggest the file
local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm
hasn’t been found.

Try manually removing all ExternalAuth files and installing again.
Kind Regards,

Mike Peachey, IT
Tel: +44 114 281 2655
Fax: +44 114 281 2951
Jennic Ltd, Furnival Street, Sheffield, S1 4QT, UK
Comp Reg No: 3191371 - Registered In England
http://www.jennic.com

Robert Munsch wrote:

Quick question: if I try the new .07_1, and get this on login (whether as root or as a user in AD):

Undefined subroutine &RT::Authen::ExternalAuth::UserExists called at /opt/rt3/local/plugins/RT-Authen-ExternalAuth/html/Callbacks/ExternalAuth/autohandler/Auth line 39, line 323.

Did you previously have 0.05 installed? If so… look for a file called
ExternalAuth.om in local/lib/RT/Authen, If it’s there - delete it. Also,
local/lib/RT/User_Vendor.pm.

Both are remnants of 0.05 which, if present, may override the correct
ones in local/plugins.

Unfortuantely, 0.07_01 will not cleanly install over 0.05, you have to
extract 0.05 manually first.
Kind Regards,

Mike Peachey, IT
Tel: +44 114 281 2655
Fax: +44 114 281 2951
Jennic Ltd, Furnival Street, Sheffield, S1 4QT, UK
Comp Reg No: 3191371 - Registered In England
http://www.jennic.com

Completely new install on a clean box, I’m afraid. No prior versions of
anything. Of course, this means I don’t know if I have a
properly-working setup. Before attempting this, I COULD log in cleanly
with no issues as the local RT root user, and the DB seems correct, so
that much at least I did right.

Just in case, I took out the RT-Authen-ExternalAuth dir in plugins, and
remade / installed 07_1. I am still getting

Undefined subroutine &RT::Authen::ExternalAuth::UserExists called at
/opt/rt3/local/plugins/RT-Authen-ExternalAuth/html/Callbacks/ExternalAut
h/autohandler/Auth line 39.

And nothing illuminating in my logs, despite debug level. In fact, just
now, on login attempt with the above result, I see no additional log
entries at all: most recent is from yesterday’s attempts at this.

I hate to take up time when you’re trying to debug this release since I
suspect a basic misconfig on my part. I’m attaching my SiteConfig, the
only change in it being neutered passwords: feel free to send me a
virtual slap if I’ve done something dumb.

PeacheySent: Friday, November 07, 2008 9:41 AM
To: Robert Munsch
Cc: RT Users
Subject: Re: [rt-users] CALLING EXTERNALAUTH TESTERS - v0.07_01
nowavailable.

Robert Munsch wrote:

Quick question: if I try the new .07_1, and get this on login
(whether as root or as a user in AD):

Undefined subroutine &RT::Authen::ExternalAuth::UserExists called at
/opt/rt3/local/plugins/RT-Authen-ExternalAuth/html/Callbacks/ExternalAut
h/autohandler/Auth line 39, line 323.

Did you previously have 0.05 installed? If so… look for a file called
ExternalAuth.om in local/lib/RT/Authen, If it’s there - delete it. Also,
local/lib/RT/User_Vendor.pm.

Both are remnants of 0.05 which, if present, may override the correct
ones in local/plugins.

Unfortuantely, 0.07_01 will not cleanly install over 0.05, you have to
extract 0.05 manually first.
Kind Regards,

Mike Peachey, IT
Tel: +44 114 281 2655
Fax: +44 114 281 2951
Jennic Ltd, Furnival Street, Sheffield, S1 4QT, UK
Comp Reg No: 3191371 - Registered In England
http://www.jennic.com

RT_SiteConfig.pm (7.66 KB)

Completely new install on a clean box, I’m afraid. No prior
versions of
anything. Of course, this means I don’t know if I have a
properly-working setup. Before attempting this, I COULD log in
cleanly
with no issues as the local RT root user, and the DB seems correct, so
that much at least I did right.

Just in case, I took out the RT-Authen-ExternalAuth dir in plugins,
and
remade / installed 07_1. I am still getting

Undefined subroutine &RT::Authen::ExternalAuth::UserExists called at
/opt/rt3/local/plugins/RT-Authen-ExternalAuth/html/Callbacks/
ExternalAut
h/autohandler/Auth line 39.

And nothing illuminating in my logs, despite debug level. In fact,
just
now, on login attempt with the above result, I see no additional log
entries at all: most recent is from yesterday’s attempts at this.

Can you please post the surrounding log.
The handler is quite chatty and contains information that might
be useful.

Also, you haven’t said if this error occurs when logging in as the
root user, when autocreating a user or when authenticating an
existing user or in all three cases.

You might want to try, as the user your web server runs as,
not root:
perl -I/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib -
MRT::Authen::ExternalAuth -e1

-kevin

Can you please post the surrounding log.
The handler is quite chatty and contains information that might
be useful.

Attached, thanks.

Also, you haven’t said if this error occurs when logging in as the
root user, when autocreating a user or when authenticating an
existing user or in all three cases.

All of the above.

You might want to try, as the user your web server runs as,
not root:
perl -I/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib -
MRT::Authen::ExternalAuth -e1

Did that. No apparent output: just hangs until I ctrl-C.

rt.log (2.48 KB)

Still experiencing this. Not sure what’s going on. Any attempt at
login for any user - root or otherwise - gets this:

Undefined subroutine &RT::Authen::ExternalAuth::UserExists called at
/opt/rt3/local/plugins/RT-Authen-ExternalAuth/html/Callbacks/ExternalAut
h/autohandler/Auth line 39.

The difference being only that if I tried logging in as a user that
doesn’t exist yet and should be looked up in AD, refreshing the page
gives me the login screen again: and if I tried logging in as root, it
says line 89 instead of 39 and refreshing the page gives me RT at a
glance successfully.

Very confused.

[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Robert
MunschSent: Saturday, November 08, 2008 1:17 PM
To: RT Users
Subject: Re: [rt-users] CALLING EXTERNALAUTH TESTERS - v0.07_01
nowavailable.

Can you please post the surrounding log.
The handler is quite chatty and contains information that might
be useful.

Attached, thanks.

Also, you haven’t said if this error occurs when logging in as the
root user, when autocreating a user or when authenticating an
existing user or in all three cases.

All of the above.

You might want to try, as the user your web server runs as,
not root:
perl -I/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib -
MRT::Authen::ExternalAuth -e1

Did that. No apparent output: just hangs until I ctrl-C.

Robert Munsch wrote:

Still experiencing this. Not sure what’s going on. Any attempt at
login for any user - root or otherwise - gets this:

Undefined subroutine &RT::Authen::ExternalAuth::UserExists called at
/opt/rt3/local/plugins/RT-Authen-ExternalAuth/html/Callbacks/ExternalAut
h/autohandler/Auth line 39.

The difference being only that if I tried logging in as a user that
doesn’t exist yet and should be looked up in AD, refreshing the page
gives me the login screen again: and if I tried logging in as root, it
says line 89 instead of 39 and refreshing the page gives me RT at a
glance successfully.

Very confused.

I would really like to help, but I’m having difficulty seeing where the
problem might be. It’s very much a perl/systemconfiguration/rt-core
problem - I’m much better on ExternalAuth issues.

You might want to try, as the user your web server runs as,
not root:
perl -I/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib -
MRT::Authen::ExternalAuth -e1

Did that. No apparent output: just hangs until I ctrl-C.

This could be telling… though I’m not sure what of.

I know this has probably been mentioned before, but just in case it’s
worth at least suggesting:

chown -R apache:apache /opt/rt3

(or whatever is your web user, web group and $RTHOME).
Kind Regards,

Mike Peachey, IT
Tel: +44 114 281 2655
Fax: +44 114 281 2951
Jennic Ltd, Furnival Street, Sheffield, S1 4QT, UK
Comp Reg No: 3191371 - Registered In England
http://www.jennic.com