Am Mittwoch, den 26.01.2011, 16:28 +0100 schrieb Mark Martinec:
> > Will incorporate that fix.
> 
> Something like this:
> 
> --- amavisd~  2011-01-25 19:18:05.000000000 +0100
> +++ amavisd   2011-01-26 16:26:14.000000000 +0100
> @@ -16674,8 +16674,9 @@
>    require Exporter;
>    use vars qw(@ISA @EXPORT @EXPORT_OK %EXPORT_TAGS $VERSION
> -              $have_sasl $ldap_sys_default);
> +              $have_sasl $have_sasl_xs $ldap_sys_default);
>    $VERSION = '2.220';
>    @ISA = qw(Exporter);
>    $have_sasl = eval { require Authen::SASL };
> +  $have_sasl_xs = $have_sasl && eval { require Authen::SASL::XS };
>    import Amavis::Conf qw(:platform :confvars c cr ca);
>    import Amavis::Util qw(ll do_log);
> @@ -16771,10 +16772,10 @@
>        }
>      }
> -    if ($self->{bind_dn}) {  # bind required
> +    if ($self->{bind_dn} || $self->{sasl}) {  # bind required
>        my($sasl);
>        my($passw) = $self->{bind_password};
>        if ($self->{sasl}) {  # using SASL to authenticate?
> -        $have_sasl or
> -          die "connect_to_ldap: SASL requested but Authen::SASL not 
> available";
> +        $have_sasl    or die "ldap: SASL requested but no Authen::SASL";
> +        $have_sasl_xs or die "ldap: SASL requested but no Authen::SASL::XS";
>          $sasl = Authen::SASL->new(mechanism => $self->{sasl_mech},
>                                    callback => { user => 
> $self->{sasl_auth_id},
> 
> 

I guess it is not that simple, yet. I not only installed Net::SASL::XS
from cpan; this also forced me to update Net::LDAP. At the end I can not
say, if it now works because of XS or LDAP. So maybe I would not force
the reuirement for ::XS, but give a hint in the RELEASE_NOTES, wht do
you think?

Christian
-- 
Roessner-Network-Solutions
Bachelor of Science Informatik
Nahrungsberg 81, 35390 Gießen
F: +49 641 5879091, M: +49 176 93118939
USt-IdNr.: DE225643613
http://www.roessner-network-solutions.com


------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/amavis-user 
 Please visit http://www.ijs.si/software/amavisd/ regularly
 For administrativa requests please send email to rainer at openantivirus dot 
org

Reply via email to