On Fri, Feb 03, 2006 at 11:20:05AM +0100, Paolo Cravero as2594 wrote:

> Michael Hall wrote:
> 
> >>>>>Per RFC 2252:
> >>>
> >>>6.4. Boolean
> >>>  ( 1.3.6.1.4.1.1466.115.121.1.7 DESC 'Boolean' )
> >>>  Values in this syntax are encoded according to the following BNF:
> >>>     boolean = "TRUE" / "FALSE"
> >>>  Boolean values have an encoding of "TRUE" if they are logically true,
> >>>  and have an encoding of "FALSE" otherwise.
> 
> >>originals), amavisd takes that value for good. In amavisd.conf-sample it 
> >>is written:
> >>
> >>#  - for values which are interpreted as booleans, it is recommended
> >>#    to use 1 for true, and 0 or undef or '' for false.
> >>#    THIS IS DIFFERENT FROM OLD AMAVIS VERSIONS where "no" also meant 
> >>false,
> >>#    now it means true, like any nonempty string does!
> >>
> 
> >The value of 'amavisVirusLover' or 'amavisBypassVirusChecks' must be
> >either 'TRUE' or 'FALSE' (not 0, 1, y, n, true, false) per the RFC,
> >actually this applies to any of amavis* LDAP boolean variables.
> 
> Oh, man! Using all uppercase boolean values TRUE/FALSE it works. This is 
> in contrast with amavisd.conf-sample (see # commented lines above), at 
> least when dealing with Sun's Directory Server.

Yes, per the RFC the values must be 'TRUE/FALSE' for a boolean attribute
and thats what amavisd LDAP lookups expect, basically:

if value = TRUE then result = 1 else result = 0

The comments in amavisd.conf-sample aren't applicable to LDAP (SQL?)
and I believe are oriented towards tables, lookups, defined in
amavisd.conf. Its just known/assumed that LDAP uses TRUE/FALSE for
values.

--
Chicken: The egg's way of making more eggs.

Mike Hall,
System Admin - Rock Island Communications           <[EMAIL PROTECTED]>
System Admin - riverside.org, ssdd.org              <[EMAIL PROTECTED]>


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to