[Samba] Crash on "samba-tool domain level raise --domain-level=2016 --forest-level=2016"

Fabio Fantoni fabio.fantoni at m2r.biz
Thu Aug 24 14:02:33 UTC 2023


Hi, today I updated my DC debian 12 to samba 4.19rc2 from mjt repository 
and I tried to increase feature level of domain but failed.

First 2 commands was ok:

samba-tool domain schemaupgrade --schema=2019
samba-tool domain functionalprep --function-level=2016

the third instead failed:

> samba-tool domain level raise --domain-level=2016 --forest-level=2016
> ERROR(<class 'AttributeError'>): uncaught exception - 'NoneType' 
> object has no attribute 'startswith'
>   File "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", line 
> 279, in _run
>     return self.run(*args, **kwargs)
>            ^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3/dist-packages/samba/netcmd/domain/level.py", 
> line 72, in run
>     if subcommand == "raise" and not H.startswith("ldap"):
>                                      ^^^^^^^^^^^^
I tried with to take more information with gdb but failed:

gdb --args /usr/bin/python3 /usr/bin/samba-tool domain level raise 
--domain-level=2016 --forest-level=2016

> (gdb) run
> Starting program: /usr/bin/python3 /usr/bin/samba-tool domain level 
> raise --domain-level=2016 --forest-level=2016
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
> ERROR(<class 'AttributeError'>): uncaught exception - 'NoneType' 
> object has no attribute 'startswith'
>   File "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", line 
> 279, in _run
>     return self.run(*args, **kwargs)
>            ^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3/dist-packages/samba/netcmd/domain/level.py", 
> line 72, in run
>     if subcommand == "raise" and not H.startswith("ldap"):
>                                      ^^^^^^^^^^^^
> [Inferior 1 (process 14932) exited with code 0377]
> (gdb) bt full
> No stack.
If you need more information and I did it wrong  can you tell me what I 
need to do please?

Thanks for any reply and sorry for my bad english


-- 
Questa email è stata esaminata alla ricerca di virus dal software antivirus Avast.
www.avast.com



More information about the samba mailing list