[Samba] GPO-Error

Rowland penny rpenny at samba.org
Thu May 16 09:02:01 UTC 2019


On 16/05/2019 09:00, Stefan Kania via samba wrote:
> Hello,
>
> I have the following error when checking for GPOs for a single user,
> listing all GPOs is working:
> ------------------
>
> root at tn2-debian1:~# samba-tool gpo listall
> GPO          : {31B2F340-016D-11D2-945F-00C04FB984F9}
> display name : Default Domain Policy
> path         :
> \\example2.net\sysvol\example2.net\Policies\{31B2F340-016D-11D2-945F-00C04FB984F9}
> dn           :
> CN={31B2F340-016D-11D2-945F-00C04FB984F9},CN=Policies,CN=System,DC=example2,DC=net
> version      : 0
> flags        : NONE
>
> GPO          : {6AC1786C-016F-11D2-945F-00C04FB984F9}
> display name : Default Domain Controllers Policy
> path         :
> \\example2.net\sysvol\example2.net\Policies\{6AC1786C-016F-11D2-945F-00C04FB984F9}
> dn           :
> CN={6AC1786C-016F-11D2-945F-00C04FB984F9},CN=Policies,CN=System,DC=example2,DC=net
> version      : 0
> flags        : NONE
>
> root at tn2-debian1:~# samba-tool gpo list u11
> ERROR(runtime): uncaught exception - Badly formed gPLink ' '
>    File "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", line
> 185, in _run
>      return self.run(*args, **kwargs)
>    File "/usr/lib/python3/dist-packages/samba/netcmd/gpo.py", line 519,
> in run
>      glist = parse_gplink(str(msg['gPLink'][0]))
>    File "/usr/lib/python3/dist-packages/samba/netcmd/gpo.py", line 102,
> in parse_gplink
>      raise RuntimeError("Badly formed gPLink '%s'" % g)
>
> ------------------
> I've never seen this massage before :-( Any hint?
>
> Stefan
>
I haven't seen it before, perhaps it is another artefact of moving to 
python3 ?

 From my understanding 'gplink' is only used when you have more than one 
site in the domain, try reading this:

https://blogs.msdn.microsoft.com/canberrapfe/2012/11/15/where-are-site-linked-group-policy-objects-stored-and-why-should-you-care/

It might help.

Rowland





More information about the samba mailing list