What is the origin of dsdb_syntax dsdb_syntaxes[] in source4/dsdb/schema/schema_syntax.c?

Matthieu Patou mat at samba.org
Tue Apr 10 11:12:43 MDT 2012

On 04/10/2012 03:52 AM, Gémes Géza wrote:
> 2012-04-10 09:43 keltezéssel, Matthieu Patou írta:
>> On 04/09/2012 11:55 PM, Gémes Géza wrote:
>>> Hi,
>>> In an attempt to create AD compatible schema ldif file (to be loaded in
>>> Samba4) for the ISC DHCPD (LDAP support is included in the ISC DHCPD
>>> from 4.2, but extended to include support for IPv6 by:
>>> http://www.mentby.com/jiri-popelka/isc-dhcp-42-with-ldap-and-ipv6.html)
>>> tried  to convert the attached schema file to AD schema ldif.
>>> oLschema2ldif failed after converting a few attributes. Looking at its
>>> source code I've found, that it is using a mapping between ldap_oid,
>>> attributeSyntax_oid and oMSyntax in dsdb_syntax dsdb_syntaxes[] from
>>> source4/dsdb/schema/schema_syntax.c. In order to be able to convert an
>>> arbitrary (in my case dhcpd) schema file I would need a generic mapping
>>> rule set between ldap_oids and attributes needed by AD
>>> (attributeSyntax_oid and oMSyntax)
>> What is dsdb_syntaxes is supposed to be the rule for MS AD.
>>  From your file I found the following syntax
>> Which one is missing in the table ?
>> Matthieu.
> oLschema2ldif fails at converting attribute dhcpOptionsDN which is the
> first with syntax
432:#define LDB_SYNTAX_DN                   ""

I guess oLschema2ldif needs to be fixed !


Matthieu Patou
Samba Team

More information about the samba-technical mailing list