Zero length strings in LDB

Simo Sorce idra at samba.org
Sun May 22 07:27:29 GMT 2005


On Sun, 2005-05-22 at 09:05 +0200, Simo Sorce wrote:
> On Sun, 2005-05-22 at 13:37 +1000, Andrew Bartlett wrote:
> > Is it valid to have a zero length string in LDB?
> > 
> > I currently have ldb segfault:
> > 
> > ldbsearch "(&(objectClass=user)(samAccountName=))" 
> > 
> > I'm assuming that this should just fail to parse, but I would like to
> > clarify things before I start changing ldb...
> 
> I think this is an invalid filter, but it is strange it segfaults.
> We have a specific test for bad filters, after fiing this case we should
> add this kind of bad filter to the tests.

Testing with ldap it is a valid filter that will find out nothing.
I had the same segfault with ldb while testing, but a rebuild fixed it.

Simo.

-- 
Simo Sorce    -  idra at samba.org
Samba Team    -  http://www.samba.org
Italian Site  -  http://samba.xsec.it


More information about the samba-technical mailing list