[Samba] schemaupgrade

Eduardo Miranda Hidalgo eduardo.miranda at desoft.cu
Wed Sep 2 18:44:40 UTC 2020


root at pdc1-samba:/opt/adprep# 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}'
30

The scheme that this domain: 30 because it was a migration from a 2003 server some time ago. I want to upgrade.
Now Try this option I get this error:
root at pdc1-samba:/opt/adprep# samba-tool domain schemaupgrade --ldf-file=sch31.ldf
Temporarily overriding 'dsdb:schema update allowed' setting
Applying sch31.ldf updates...
Unable to find attribute 1.2.840.113556.1.6.13.3.2 in the schema
Exception: unable to parse LDIF string at first chunk
Error encountered, aborting schema upgrade
ERROR: Failed to upgrade schema

M.Sc. Eduardo Miranda Hidalgo
eduardo.miranda at desoft.cu (https://link.getmailspring.com/link/4888EF6A-3A17-4498-B50A-C17A315A6E50@getmailspring.com/0?redirect=mailto%3Aeduardo.miranda%40desoft.cu&recipient=c2FtYmFAbGlzdHMuc2FtYmEub3Jn)24468888 ext 510 (tel:24468888%20ext%20510) 52145739 (tel:52145739) (Móvil)

On sep. 2 2020, at 1:59 pm, Rowland penny via samba <samba at lists.samba.org> wrote:
> 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
>
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/options/samba
>



More information about the samba mailing list