[Samba] Error GPO

L.P.H. van Belle belle at bazuin.nl
Wed Jan 8 07:46:15 UTC 2020


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? 
Because i would expect to be able to delete with the same name as when it was created.

samba-tool gpo del testing -UAdministrator
Password for [NTDOM\Administrator]:
ERROR: GPO 'testing' does not exist

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 ;-) 


Greetz, 

Louis


> -----Oorspronkelijk bericht-----
> Van: samba [mailto:samba-bounces at lists.samba.org] Namens 
> Sandy via samba
> Verzonden: dinsdag 7 januari 2020 19:32
> Aan: samba at lists.samba.org
> Onderwerp: [Samba] Error GPO
> 
> hello list, congratulations on this new year; and wish the 
> best to all, I am trying to create GPO in samba 4 and this is 
> the error it gives me.
> 
> ./samba-tool gpo create WSUS -UAdministrator
> Password for [Administrator]:
> Using temporary directory /tmp/tmp8t9j8u26 (use --tmpdir to change)
> ERROR(runtime): uncaught exception - (3221225524, 'The object 
> name is not found.')
>  File 
> "/usr/local/samba/lib/python3.5/site-packages/samba/netcmd/__i
> nit__.py", line 186, in _run
>  return self.run(*args, **kwargs)
>  File 
> "/usr/local/samba/lib/python3.5/site-packages/samba/netcmd/gpo
> .py", line 1277, in run
>  copy_directory_local_to_remote(conn, gpodir, sharepath)
>  File 
> "/usr/local/samba/lib/python3.5/site-packages/samba/netcmd/gpo
> .py", line 374, in copy_directory_local_to_remote
>  conn.savefile(r_name, data)
> -- 
> 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