[Samba] Error GPO

sandy.napoles at eccmg.cupet.cu sandy.napoles at eccmg.cupet.cu
Wed Jan 8 15:18:48 UTC 2020


Good morning list, I am using samba4.11.4,


From the cosola I put   
./samba-tool gpo create WSUS -Uadministrator
and I get the following error
Password for [ECCMG\administrator]:*********
Using temporary directory /tmp/tmp2mk294gd (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/__init__.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)

But when I go to a /usr/local/samba/var/locks/sysvol/eccmg.cupet.cu/Policies  I can see it. then if I tried to delete

./samba-tool gpo del {989FED42-2719-4CC6-A4EF-4F84987EF3ED} -Uadministrator
Password for [ECCMG\administrator]:
ERROR: GPO '{989FED42-2719-4CC6-A4EF-4F84987EF3ED}' does not exist




January 8, 2020 2:46 AM, "L.P.H. van Belle via samba" <samba at lists.samba.org> 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? 
> 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
> 
> --
> 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