big pb with reindexing and ldb_dn_casefold_internal

Matthieu Patou mat at samba.org
Wed Aug 11 01:18:20 MDT 2010


  On 11/08/2010 11:04, Andrew Bartlett wrote:
> On Wed, 2010-08-11 at 02:16 +0400, Matthieu Patou wrote:
>> Hello andrew and andrew !
>>
>> It seems that I found an interesting pb.
>> The dn in Frame 1 is (gdb) print *dn
>> $125 = {ldb = 0x84e0888, special = false, invalid = false, valid_case =
>> false,
>>     linearized = 0x94cea18 "DN=@INDEX:DISPLAYNAME:PATOU, MATTHIEU",
>> ext_linearized = 0x0, casefold = 0x0, comp_num = 0,
>>     components = 0x853f178, ext_comp_num = 0, ext_components = 0x0}
> Any DN that starts with an @ should be considered special, and therefore
> not invalid.  The rest isn't a normal DN, and so should not be checked
> against any more rules.  Either that, or the indexing code should
> recognise that this isn't going to make a valid DN, and base64 it.
> (however, this will break the index, so it's best to make the @ DNs
> simply accept more inputs)
>
In practice what is the solution ? patch ldb_dn_explode so that it 
didn't exit with an error if the value starts with a "@" ?

Matthieu.

-- 
Matthieu Patou
Samba Team        http://samba.org



More information about the samba-technical mailing list