From 416434fbc43e37a1d21eef611d0a9ba2cc9faea7 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Thu, 28 Apr 2005 07:05:48 +0000 Subject: r6507: Fix syntax error in GetAliasMembership(). Implement SetDomainInfo() which got lost somehow. (This used to be commit 3055addde60687acdcf4e92dcb08e7f8dfdfb8f1) --- source4/scripting/swig/samr.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/source4/scripting/swig/samr.py b/source4/scripting/swig/samr.py index b6b1577c02..85d5fa0d77 100644 --- a/source4/scripting/swig/samr.py +++ b/source4/scripting/swig/samr.py @@ -228,6 +228,16 @@ class DomainHandle(SamrHandle): return getattr(r.data_out.info, 'info%d' % level) + def SetDomainInfo(self, level, info): + + r = dcerpc.samr_SetDomainInfo() + r.data_in.domain_handle = self.handle + r.data_in.level = level + r.data_in.info = dcerpc.samr_DomainInfo() + setattr(r.data_in.info, 'info%d' % level, info) + + call_fn(dcerpc.dcerpc_samr_SetDomainInfo, self.pipe, r) + def EnumDomainGroups(self): r = dcerpc.samr_EnumDomainGroups() @@ -419,7 +429,7 @@ class DomainHandle(SamrHandle): call_fn(dcerpc.dcerpc_samr_GetAliasMembership, self.pipe, r) - return [r.ids[x] x in range(r.count)] + return [r.ids[x] for x in range(r.count)] class UserHandle(SamrHandle): -- cgit