Bug in LDB's handling of escaped characters in DNs
simo
idra at samba.org
Fri Jan 6 21:40:50 GMT 2006
On ven, 2006-01-06 at 10:23 -0500, simo wrote:
> 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.
Should be fixed now.
It was a bug in the function that split up a DN into it's RDNs.
Thanks for pointing it out!.
Simo.
More information about the samba-technical
mailing list