Samba4 how to extend the schema

Matthias Dieter Wallnöfer mdw at
Thu Mar 29 04:06:47 MDT 2012

Please consider this commit before trying to update the schema:
> commit c1fd56fdd408c814158e9d4eaed58da08db8efc7
> Author: Stefan Metzmacher <metze at>
> Date:   Fri Nov 11 16:55:37 2011 +0100
>     s4:dsdb/schema_data: reject schema update unless they're allowed
>     "dsdb:schema update allowed = yes" is now needed in smb.conf
>     to enable schema updates, as schema updates are a currenty a good
>     way to prevent samba from startup again, because of errors in
>     the schema definition.
>     metze
Afterwards you are also allowed to use the MS MMC tool for schema 
changes (which is called something like "schmmgmt.msc").

Matthias Wallnöfer

steve schrieb:
> El 28/03/12 19:28, Bob Miller escribió:
>>> Is there a way to add my ldif e.g. using ldbmodify on an existing 
>>> database?
>>> Cheers,
>>> steve
>> I played with this a bit last summer.  The short answer is yes, you can
>> add your ldif to the active directory.  ldbmodify/ldbadd/ldbsearch etc,
>> all work pretty much as ldapmodify/ldapadd/ldapsearch etc.  There is
>> also a script called ol2schema or some such that will convert an
>> openldap schema file to one more appropriate for ldb.
> Hi
> The ldif is the Solaris extension to AD which enables automounter maps 
> to be placed in AD, so I wouldn't even need to convert it.
> Which database do I ldbmodify?
> Thanks,
> Steve

More information about the samba-technical mailing list