Adding schema and entries to samba4

Matthieu Patou mat at matws.net
Mon Aug 27 01:19:43 MDT 2012


On 08/26/2012 06:49 PM, William Brown wrote:
> Hi,
>
> I have been experimenting with the possibility of adding the ISC-DHCP
> ldap schema to samba4. I have created such a schema, and it appears to
> import correctly (Albeit, in two steps - It seems with ldbadd you can't
> add attributes and classes in a single operation if the classes rely on
> the attributes existing.) Find the schema attached.
>
> This was added to a fresh provision of samba4 (cbecd15 HEAD@{0}: clone:
> from git://git.samba.org/samba.git)
>
> /usr/samba4/sbin/provision --realm=dev.firstyear.id.au --domain=DEV
> --adminpass= --server-role=dc --dns-backend=SAMBA_INTERNAL
> /usr/samba4/bin/ldbmodify -H /usr/samba4/private/sam.ldb
> /root/ad-schema.ldif.txt --option="dsdb:schema update allowed"=true
> /usr/samba4/bin/ldbmodify -H /usr/samba4/private/sam.ldb
> /root/ad-schema.classes.ldif --option="dsdb:schema update allowed"=true
>
> Once these attributes and classes are added, I attempt to add some
> objects using these new entries. However, I receive the following error
> on entries that include the new schema objects. Find the ldif I attempt
> to load attached.
>
> adding new entry
> "cn=samba4dhcp.dev.firstyear.id.au,cn=v4,cn=servers,cn=isc,cn=dhcp,dc=dev,dc=firstyear,dc=id,dc=au"
> ldap_add: Naming violation (64)
> 	additional info: 00002037: structural objectClass dhcpServer is not a
> valid child class for
> CN=v4,CN=servers,CN=isc,CN=dhcp,DC=dev,DC=firstyear,DC=id,DC=au
>
> Have I made a mistake in my schema, or my ldif for loading. The same
> ldif appears to work on 389ds, with the same schema. Or is this a known
> issue with the addition of schemas in samba4?
>
Can you share you schema ? it looks like dhcpServer is not correctly 
defined as a potential child for container objectclass.

Matthieu.


More information about the samba-technical mailing list