[Samba] Error GPO

Rowland penny rpenny at samba.org
Wed Jan 8 10:20:27 UTC 2020


On 08/01/2020 07:46, L.P.H. van Belle via samba wrote:
> Good morning everybody,
>
> Sandy, you running samba version is ?
> OS might help, and compiled or packaged install?
>
> Here, Samba 4.11.4 works fine.
>
> samba-tool gpo create testing -UAdministrator
> Password for [NTDOM\Administrator]:
> Using temporary directory /tmp/tmp8d5tpz7p (use --tmpdir to change)
> GPO 'testing' created as {264563E3-A89D-4F50-80D6-18F531A83F2B}
>
> Now, removing it again.. Thats a different thing i see, you can use the name.
> @Rowland, i dont know, but is this normal beheavior?

The python code is a bit cryptic ;-)

There are no examples and no comments, so it is difficult to understand, 
but it would seem that whilst you use a 'name' to create a GPO, you must 
use the GUID to delete it. How does Windows do this ?

> Because i would expect to be able to delete with the same name as when it was created.
I would too, but I didn't write the code ;-)
>
> samba-tool gpo del testing -UAdministrator
> Password for [NTDOM\Administrator]:
> ERROR: GPO 'testing' does not exist
The code could probably be altered to use the name, but at the moment it 
only works with the GUID.
>
> But
> samba-tool gpo del {264563E3-A89D-4F50-80D6-18F531A83F2B} -Uadministrator
> Password for [NTDOM\Administrator]:
> GPO {264563E3-A89D-4F50-80D6-18F531A83F2B} deleted.
>
> Works fine.
>
> Ps., i say upgrade you samba and its most probely fixed ;-)

I would agree, try upgrading and if it is still giving problems, it will 
need fixing.

Rowland





More information about the samba mailing list