[Samba] Error encountered, aborting schema upgrade

Rowland Penny rpenny at samba.org
Thu Sep 5 07:42:03 UTC 2024


On Wed, 4 Sep 2024 14:49:53 +0200
Michael Thiemann via samba <samba at lists.samba.org> wrote:

> Dear all, 
> I'm using SAMBA 4.20.4 running on actual Debian bookworm.
> At the moment the directory Schema Version 69 is in use.

Is this an existing domain or a new domain ?
> 
> Trying to make a schemaupgrade brings the following error.
> root at TUX:/# samba-tool domain schemaupgrade 
> Temporarily overriding 'dsdb:schema update allowed' setting
> Applying Sch70.ldf updates...
> Unable to find attribute msDS-DeviceMDMStatus in the schema
> 5 changes applied
> Applying Sch71.ldf updates...
> 7 changes applied
> Applying Sch72.ldf updates...
> Exception: (68, 'Entry
> CN=ms-DS-External-Directory-Object-Id,CN=Schema,CN=Configuration,DC=briesebaer,DC=intern already exists')
> Encountered while trying to apply the following LDIF
> ----------------------------------------------------
> dn: CN=ms-DS-External-Directory-Object-Id,CN=Schema,CN=Configuration,DC=briesebaer,DC=intern
> changetype: add
> objectClass: attributeSchema
> adminDisplayName: ms-DS-External-Directory-Object-Id
> adminDescription: ms-DS-External-Directory-Object-Id
> ldapDisplayName: msDS-ExternalDirectoryObjectId
> attributeSecurityGuid:: hri1d0qU0RGuvQAA+ANnwQ==
> attributeId: 1.2.840.113556.1.4.2310
> attributeSyntax: 2.5.5.12
> omSyntax: 64
> isMemberOfPartialAttributeSet: TRUE
> isSingleValued: TRUE
> instanceType: 4
> rangeUpper: 256
> schemaIdGuid:: kL8pva1m4UCIexDfBwQZpg==
> searchFlags: 9
> showInAdvancedViewOnly: FALSE
> systemOnly: FALSE
> systemFlags: 16
> 
> Exception: (68, 'Entry
> CN=ms-DS-External-Directory-Object-Id,CN=Schema,CN=Configuration,DC=brieseba
> er,DC=intern already exists')
> Error encountered, aborting schema upgrade
> 
> ERROR: Failed to upgrade schema
> Any idea to solve this problem?
> Regards Michael

Did you check if the schema needs upgrading ?
If this is a new domain, it is probably at '88' already.
But even if it does require upgrading, when has something existing been
an error ?

Rowland





More information about the samba mailing list