LDB: schema syntax comparison

Stefan (metze) Metzmacher metze at samba.org
Thu Sep 12 09:48:35 CEST 2013


Hi,

>>> exception is raised during provisioning:
>>>> ERROR(ldb): uncaught exception - attribute 'dn': value #0 on 
>>>> '@ATTRIBUTES' provided more than once
>>> And I think this is index-entry related?
>>
>> Not necessarily, in any case it is a bug that needs to be addressed
>> properly.

I think I have some patches which are ready for master.

First I fixed some const compiler warnings.

The const changes don't really change the ABI, right?

For the @ATTRIBUTES object we use ldb_schema_attribute_by_name("@")
to get the default syntax for all attributes as
they're already verified in ltdb_check_special_dn().

I've changed ldb_msg_find_val_schema() to return
LDB_ERR_COMPARE_TRUE or LDB_ERR_COMPARE_FALSE for the non-error
case.

metze
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tmp.diff
Type: text/x-diff
Size: 59897 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20130912/caec66d1/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20130912/caec66d1/attachment.pgp>


More information about the samba-technical mailing list