Hi,
[...]
> > 1. Is there any way to find out in a Perl script, what SASL
> mechanisms
> > are supported in my installation?
>
> What do you mean exactly by "my installation" ?
my scripts have to run on about 150.000 computers. Normally they should
have the same software and same versions installed - but who knows 8-<
So I'd like to check within the script, what backends are installed and
if they provide the mechanisms my scripts depend on.
[...]
> Of course having client support for a mech is only one necessary part.
> When you connect to a server the server needs to support SASL
> as well and the
> mechanisms given in Authen::SASL->new() needs to have a non-emtpy
> intersection with the server mechanisms for the
> authentication to be able to succeed.
Yes, ok. That already works for me.
>
> > 2. If not - how can I avoid, that Authen::SASL->new dies, if it is
> > called
> > without any valid mechansims? I'd prefer the resulting
> object to be
> > undefined or something like that.
>
> Hmm, Authen::SASL->new() really died ?
> Would you mind to send the code and the error it generated.
The code looks like this:
$oSASL = Authen::SASL->new(
mechanism => "GSSAPI",
callback => {
user => ' ',
},
);
Error message is:
No SASL mechanism found
at /usr/lib/perl5/site_perl/5.8.1/Authen/SASL.pm line 73
This is on a Linux machine with Perl 5.8.1 and Authen::SASL 2.09 and
no Authen::SASL::Cyrus installed.
As soon as I installed Authen::Cyrus::SASL everything worked as
expected.
But this is exactly the problem, that can happen on any of my clients.
[...]
> The mach gets selected when the connection is made to the server
> and then the server chooses the mech (AFAIK).
>
> hope it helps
> Peter
Thx and bye.
Michael.