[PATCHES] GPO support for the AD DC itself

Andrew Bartlett abartlet at samba.org
Tue Oct 31 19:32:45 UTC 2017


On Tue, 2017-10-31 at 13:27 -0600, David Mulder wrote:
> So, the gpo pointer is in self, but pytalloc_get_type() is unable to
> retrieve it.
> If I grab the pointer manually like so:
> struct GROUP_POLICY_OBJECT *gpo_ptr = _pytalloc_get_ptr(self);
> Then gpo_ptr is valid and I'm able to get attributes from the GPO object.
> 
> I assume this is the same you were seeing Andrew?

Yes.  That might actually be all OK - if the pointer really is fine.  I
might have been getting caught in knots. 

Could this be a pointer into an array?  If so then we are doing the
right thing already, using the new pytalloc stuff that holds a distinct
memory context, and just need to use pytalloc_get_ptr() and trust that
it is the right type.

Thanks,

Andrew Bartlett

-- 
Andrew Bartlett
https://samba.org/~abartlet/
Authentication Developer, Samba Team         https://samba.org
Samba Development and Support, Catalyst IT   
https://catalyst.net.nz/services/samba







More information about the samba-technical mailing list