[Samba] schemaupgrade
Rowland penny
rpenny at samba.org
Wed Sep 2 17:59:45 UTC 2020
On 02/09/2020 18:24, Eduardo Miranda Hidalgo via samba wrote:
> Hello:
>
> I need to update the samba schema when I run the command: samba-tool domain schemaupgrade
> I have this error:
> Temporarily overriding 'dsdb:schema update allowed' setting
> Patched Sch49.ldf using /usr/local/samba/share/setup/adprep/WindowsServerDocs/Sch49.ldf.diff
> Patched Sch50.ldf using /usr/local/samba/share/setup/adprep/WindowsServerDocs/Sch50.ldf.diff
> Patched Sch51.ldf using /usr/local/samba/share/setup/adprep/WindowsServerDocs/Sch51.ldf.diff
> Patched Sch57.ldf using /usr/local/samba/share/setup/adprep/WindowsServerDocs/Sch57.ldf.diff
> Patched Sch59.ldf using /usr/local/samba/share/setup/adprep/WindowsServerDocs/Sch59.ldf.diff
> Applying Sch31.ldf updates...
> Exception: [Errno 2] No such file or directory: '/tmp/tmpVvaYKZ/Sch31.ldf'
> Error encountered, aborting schema upgrade
> ERROR: Failed to upgrade schema
It looks like your schema version it too low, what does this command run
on the DC output:
ldbsearch -H /usr/local/samba/private/sam.ldb -b
"CN=Schema,CN=Configuration,$(echo "DC=$(hostname -d)" | sed
's/\./,DC=/g')" -s base objectVersion | grep 'objectVersion' | awk
'{print $NF}'
Rowland
More information about the samba
mailing list