[Samba] Is there any instrospection GPO Python API available on Samba 4?

Andrew Bartlett abartlet at samba.org
Sun Jul 22 16:42:24 MDT 2012


On Wed, 2012-07-18 at 21:31 -0300, Gabriel SERPRO wrote:
> Hello Everybody,
> 
> Is there any API available on Samba 4 that allows GPO's introspection?? (If
> a Python API doesn't exist I'll try to generate binds with Swig!?)
> 
> Truly, I need something that allow me to query GPO by Guid(for example),
> list some attributes (Display Name, OU that is linked, security attr) and
> see or catch the value of the items defined (Computer Configuration, User
> Configuration, etc.), something like that.
> 
> I tried with the MS Native API (Just work on windows and with RSAT
> installed), but it just dump a XML or HTML Files with the values, which
> becomes a overwhelming work for filtering and treatment.
> 
> Thanks in advance,
> 
> Gabriel Abdalla Cavalcante

We have some C code in libgpo and python code in 
source4/scripting/python/samba/netcmd/gpo.py

We also have registry parsing code that might help you deal with the
resulting objects. 

However, much more remains to be done. 

Andrew Bartlett
-- 
> 
> Andrew Bartlett                                http://samba.org/~abartlet/
> Authentication Developer, Samba Team           http://samba.org



More information about the samba mailing list