[rt-users] LdapAutocreateAuthCallback breaks "rt" command?

Jim Meyer purp at acm.org
Thu Aug 24 18:25:27 EDT 2006


Hello!

Sorry, this got lost in a deluge of email.

On 8/11/06, Ruslan Zakirov <ruslan.zakirov at gmail.com> wrote:
> 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 <html> tag, yet.

Good to know. Removed the offending HTML comment from the callback and
added a note to both
http://wiki.bestpractical.com/?LdapAutocreateAuthCallback as well as
http://wiki.bestpractical.com/?LDAP (in the News section).

Thanks!

--j

> On 8/12/06, Philip Kime <pkime at shopzilla.com> wrote:
> >
> >
> > 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
> >
> > _______________________________________________
> > http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
> >
> > Community help: http://wiki.bestpractical.com
> > Commercial support: sales at 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 at acm.org



More information about the rt-users mailing list