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/__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)
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 > >
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 existThe 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
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
On 08/01/2020 15:18, Sandy via samba wrote:> Good morning list, I am using samba4.11.4,It works for me on 4.10.8 and it works for Louis on 4.11.4> > > From the cosola I put > ./samba-tool gpo create WSUS -UadministratorWhy the './' ?> 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 _runHmm, it looks like you have compiled Samba yourself, What OS and what was your './configure' line ? Have you set PATH correctly ?> 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 deleteI said it works for myself, but only to create the GPO in AD, it does not create anything in sysvol.> > ./samba-tool gpo del {989FED42-2719-4CC6-A4EF-4F84987EF3ED} -Uadministrator > Password for [ECCMG\administrator]: > ERROR: GPO '{989FED42-2719-4CC6-A4EF-4F84987EF3ED}' does not existRowland
Why the './' ?>>I use debian 10 as the base operating system, it's the same as saying /usr/local/samba/bin/samba-tool gpo create WSUS -UadministratorHmm, it looks like you have compiled Samba yourself, What OS and what was your './configure' line ?>> I use debian10 as operating system
What do you think my mistake is and how can I fix it? January 8, 2020 9:15 AM, "Sandy via samba" <samba at lists.samba.org> wrote:> Why the './' ? > >>> I use debian 10 as the base operating system, it's the same as saying >>> /usr/local/samba/bin/samba-tool gpo create WSUS -Uadministrator > > Hmm, it looks like you have compiled Samba yourself, What OS and what was your './configure' line ? > >>> I use debian10 as operating system > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba