"prepare_commit error in module tdb" importing schema

Adam Tauno Williams awilliam at whitemice.org
Wed Dec 1 09:52:03 MST 2010


On Wed, 2010-12-01 at 09:43 -0500, Adam Tauno Williams wrote: 
> On Tue, 2010-11-30 at 16:44 -0500, Adam Tauno Williams wrote: 
> > Samba 4.0.0-alpha14
> > I've been having very good luck porting the schema we use to Samba4.
> > But now I'm stuck. Trying to import this attribute results in a
> > "prepare_commit error in module tdb: Protocol error (2)".
> > samba:/srv/cifs/test # /opt/ad/samba4/bin/ldbmodify -vv -H
> > ldap://10.66.77.1/ --user=administrator%fred123.7a test.ldif
> > ERR: (Protocol error) "LDAP error 2 LDAP_PROTOCOL_ERROR -  <del_trans
> > error on CN=Schema,CN=Configuration,DC=ad,DC=mormail,DC=com:
> > prepare_commit error on
> > CN=Schema,CN=Configuration,DC=ad,DC=mormail,DC=com: prepare_commit error
> > in module tdb: Protocol error (2)> <>" on DN
> > cn=Evolution-CompanyPhone,cn=Schema,cn=Configuration,DC=AD,DC=MORMAIL,DC=COM
> > Modified 0 records with 1 failures
> > samba:/srv/cifs/test # 
> > I've verified that an attribute of this name does not already exist.
> Using the AD schema snap-in I think I've figured this one out.  It
> allowed me to [by my accident] create an attribute with an
> ldapDisplayName of "categories" when one already existed.  And *then*
> subsequent schema modifications fail because a duplicated attribute name
> exists.

Or maybe not.  I deleted the old /private and reprovisioned the domain.
And I see the error again when importing RADIUS related schema.  It
fails loading the first attribute definition -

samba:/opt/ad/samba4 # /opt/ad/samba4/bin/ldbmodify -vv -H
ldap://10.66.77.1/ --user=administrator%
fred123.7a /srv/cifs/test/radius.ldif 
ERR: (Protocol error) "LDAP error 2 LDAP_PROTOCOL_ERROR -  <del_trans
error on CN=Schema,CN=Configuration,DC=ad,DC=mormail,DC=com:
prepare_commit error on
CN=Schema,CN=Configuration,DC=ad,DC=mormail,DC=com: prepare_commit error
in module tdb: Protocol error (2)> <>" on DN
CN=RADIUS-Arap-Features,CN=Schema,CN=Configuration,DC=AD,DC=MORMAIL,DC=COM
Modified
CN=Radius-Arap-Security,CN=Schema,CN=Configuration,DC=AD,DC=MORMAIL,DC=COM
Modified
CN=Radius-Arap-Zone-Access,CN=Schema,CN=Configuration,DC=AD,DC=MORMAIL,D
...

Which is certainly not related to duplication.  Then I just try again
and it loads.

samba:/opt/ad/samba4 # /opt/ad/samba4/bin/ldbmodify -vv -H
ldap://10.66.77.1/ --user=administrator%
fred123.7a /srv/cifs/test/test.ldif 
Modified
CN=RADIUS-Arap-Features,CN=Schema,CN=Configuration,DC=AD,DC=MORMAIL,DC=COM
Modified 1 records with 0 failures




More information about the samba-technical mailing list