[Samba] Error Upgrading Schema
rpenny at samba.org
Fri Nov 20 16:40:50 UTC 2020
On 20/11/2020 15:46, Matthew Delfino Samba List wrote:
> I had the same thought. When I do that and try again, I get this message:
> # samba-tool domain schemaupgrade
> Temporarily overriding 'dsdb:schema update allowed' setting
> Patched Sch49.ldf using /usr/share/samba/setup/adprep/WindowsServerDocs/Sch49.ldf.diff
> Exception in patch: b'patching file Sch50.ldf\nHunk #2 succeeded at 209 (offset -35 lines).\n'
> b'patch: **** unexpected end of file in patch\n'
> ERROR: Failed to upgrade schema
> I feel like it's got to be some small syntax oversight on my part...
possibly, but I think it might still be a patching problem 🙁
The script produces an ldif, which then gets patched to suit Samba, but
if you have altered either (or both), then the patch will not match what
it is trying to patch (wrong line numbers). If this is the case, then it
might just be easier to manually create the ldifs from Schema-updates,
then manually patch the required ldifs using the *.diff files, remove
the attributes & objectclasses already in AD, then add the ldifs one by
one with ldbmodify.
More information about the samba