|
From: Joe C. <jo...@sw...> - 2006-01-26 05:58:21
|
Yes. There are several that come with Squid. On a Red Hat system
they'll be in /usr/lib/squid. There are quite a few others on the web
in varying states of quality. Writing ones own is not difficult, as
you've seen.
BTW-the standard way to solve your problem is to put Perl into
unbuffered mode at the start of the code (but a flush works fine too).
You can do that with:
$|=1;
Somewhere early in the file. When things get complicated, it's nice to
not have to think about flushing after every result.
The Squid FAQ has a lot of good information about authenticators.
Dave Isaacs wrote:
> Solved my own problem. I just needed to add a flush command after the
> print.
>
> Follow-up question: Are there any standard external authentication in
> existence, to support (for example) LDAP or kerberos authentication?
>
> Thanks
>
> Dave I
>
> -----Original Message-----
> *From:* web...@li...
> [mailto:web...@li...] *On Behalf Of
> *Dave Isaacs
> *Sent:* Wednesday, January 25, 2006 8:53 AM
> *To:* 'web...@li...'
> *Subject:* [webmin-l] External squid-style authentication program ?
>
> I am experimenting with the Webmin Authenticate feature "External
> squid-style authentication program" that allows you to use an
> external application to authenticate username/password login.
> Unfortunately, I am failing at the most simple test.
>
> Just to try it out, I created an auth.pl script that does nothing
> except read from STDIN and unconditionally prints out "OK\n" for
> each line of input.
>
> #!/usr/bin/perl
> while (<STDIN>) {
> print "OK\n";
> }
> I then specified this script in the "External squid-style
> authentication program" setting on the Authentication page. This
> should, if I am understanding this correctly, successfully
> authenticate any Webmin use who has "External authentication
> program" specified in their user access rights.
>
> But it is not working. When trying to log in with an externally
> authenticated user, I don't get success or failure. What happens is
> that the browser just spins and there is never a response.
>
> Any ideas as to what the problem is?
>
> The Webmin version is 1.240 running on Red hat EL3 Workstation)
>
> Thanks
>
> Dave Isaacs
>
>
|