LdapAutocreateAuthCallback breaks "rt" command?

RT 3.6.1

When I put the code from

http://wiki.bestpractical.com/index.cgi?LdapAutocreateAuthCallback

in

/usr/local/rt/local/html/Callbacks/LDAP/autohandler/Auth

(I’m using the LDAP overlay stuff too, naturally, not just this
callback). The RT command returns:

/usr/local/rt/bin/rt show ticket/100
Use of uninitialized value in pattern match (m//) at
/usr/local/rt/bin/rt line 8
75.
rt: Malformed RT response from http://nops-infradev01.shopzilla.com.
(Rerun with RTDEBUG=3 for details.)

DEBUG output suggests to me that there are two newlines being returned
before the HTTP response from the server, which is confusing the RT
command?

If I remove

/usr/local/rt/local/html/Callbacks/LDAP/autohandler/Auth

it works fine again. Any ideas?

PK
Philip Kime
NOPS Systems Architect
310 401 0407

add line:
return;
just before </%init> line.

Jim, it’s not a good practice to output things from main autohandler
and its callbacks, code hasn’t reached content of the tag, yet.On 8/12/06, Philip Kime pkime@shopzilla.com wrote:

RT 3.6.1

When I put the code from

Request Tracker Wiki

in

/usr/local/rt/local/html/Callbacks/LDAP/autohandler/Auth

(I’m using the LDAP overlay stuff too, naturally, not just this callback).
The RT command returns:

/usr/local/rt/bin/rt show ticket/100
Use of uninitialized value in pattern match (m//) at /usr/local/rt/bin/rt
line 8
75.
rt: Malformed RT response from
http://nops-infradev01.shopzilla.com.
(Rerun with RTDEBUG=3 for details.)

DEBUG output suggests to me that there are two newlines being returned
before the HTTP response from the server, which is confusing the RT command?

If I remove

/usr/local/rt/local/html/Callbacks/LDAP/autohandler/Auth

it works fine again. Any ideas?

PK

Philip Kime
NOPS Systems Architect
310 401 0407


The rt-users Archives

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Best regards, Ruslan.

Hello!

Sorry, this got lost in a deluge of email.

add line:
return;
just before </%init> line.

Jim, it’s not a good practice to output things from main autohandler
and its callbacks, code hasn’t reached content of the tag, yet.

Good to know. Removed the offending HTML comment from the callback and
added a note to both
Request Tracker Wiki as well as
Request Tracker Wiki (in the News section).

Thanks!

–j> On 8/12/06, Philip Kime pkime@shopzilla.com wrote:

RT 3.6.1

When I put the code from

Request Tracker Wiki

in

/usr/local/rt/local/html/Callbacks/LDAP/autohandler/Auth

(I’m using the LDAP overlay stuff too, naturally, not just this callback).
The RT command returns:

/usr/local/rt/bin/rt show ticket/100
Use of uninitialized value in pattern match (m//) at /usr/local/rt/bin/rt
line 8
75.
rt: Malformed RT response from
http://nops-infradev01.shopzilla.com.
(Rerun with RTDEBUG=3 for details.)

DEBUG output suggests to me that there are two newlines being returned
before the HTTP response from the server, which is confusing the RT command?

If I remove

/usr/local/rt/local/html/Callbacks/LDAP/autohandler/Auth

it works fine again. Any ideas?

PK

Philip Kime
NOPS Systems Architect
310 401 0407


The rt-users Archives

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com


Best regards, Ruslan.

Jim Meyer, Geek at Large purp@acm.org