View Issue Details

IDProjectCategoryView StatusLast Update
0000465SOGoBackend Address Bookpublic2010-06-22 20:20
Reporteraschild Assigned Toludovic  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version1.2.1 
Target Version1.3.0Fixed in Version1.3.0 
Summary0000465: TRUE in Ldap filters are replaced with YES, leading to invalid ldap search expression
Description

In the ldap address book (for canAuthenticate=YES) the following filter
works:

filter = "(objectClass=JammMailAccount)";

This filter does not work

filter = "(objectClass=JammMailAccount AND accountActive=TRUE)";

the reason is, that the query sent to the LDAP server
has the form

(&(objectClass=JammMailAccount)(accountActive=YES))

This then does not match the TRUE/FALSE values in the LDAP directory.

Additional Information

It is Sogo 1.2.1 on Debian Lenny, and the ldap server is Openldap 2.4.11

TagsNo tags attached.

Activities

aschild

aschild

2010-05-12 06:01

reporter   ~0001003

Wrapping the values in '' works.

filter = "(objectClass='JammMailAccount' AND accountActive='TRUE' AND deleted='FALSE')";

So this one could be closed, but perhaps documented somewhere.

ludovic

ludovic

2010-06-22 20:20

administrator   ~0001120

http://mtn.inverse.ca/revision/diff/60c0036b3723ee42d8b8cbed474b6c6eac6c5e9a/with/009abd7de53e78e489e448345fde9f38d62f532a

Issue History

Date Modified Username Field Change
2010-03-03 14:05 aschild New Issue
2010-05-12 06:01 aschild Note Added: 0001003
2010-05-28 18:41 ludovic Status new => assigned
2010-05-28 18:41 ludovic Assigned To => ludovic
2010-06-11 01:04 ludovic Target Version => 1.2.3
2010-06-22 20:20 ludovic Note Added: 0001120
2010-06-22 20:20 ludovic Status assigned => resolved
2010-06-22 20:20 ludovic Fixed in Version => 1.3.0
2010-06-22 20:20 ludovic Resolution open => fixed