Bug in LDB's handling of escaped characters in DNs

simo idra at samba.org
Fri Jan 6 15:23:13 GMT 2006


On mer, 2006-01-04 at 00:58 +0100, Jelmer Vernooij wrote:
> Hi,
> 
> While debugging a problem in the upgrade script this evening, I
> couldn't get LDB to correctly parse a DN that contains escaped 
> characters. I also couldn't find any testcases that contained 
> DNs with escaped characters. 
> 
> For example:
> 
> ./bin/ldbadd -H foo.ldb <<EOF
> dn: foo=bar\;,blah=blie
> foo: bar;
> EOF
> Error: Unable to parse dn 'foo=bar\;,blah=blie'
> Added 0 records with 0 failures


Hi Jelmer, it's a bug.
Escaping in LDAP allows only hexadecimal values after '\' exctept for
some special values ( and ; is one of them ).
RFC 2253 has the details.

I'll look into this asap.

Simo.




More information about the samba-technical mailing list