summaryrefslogtreecommitdiff
path: root/source4/scripting/swig/samr.py
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2005-04-28 07:05:48 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:16:20 -0500
commit416434fbc43e37a1d21eef611d0a9ba2cc9faea7 (patch)
tree84245e4fff9ce9ae8a1e93f632473e26b9a11475 /source4/scripting/swig/samr.py
parentdf13db69cc659848aba455cbb95ceb86d9d0e5b8 (diff)
downloadsamba-416434fbc43e37a1d21eef611d0a9ba2cc9faea7.tar.gz
samba-416434fbc43e37a1d21eef611d0a9ba2cc9faea7.tar.bz2
samba-416434fbc43e37a1d21eef611d0a9ba2cc9faea7.zip
r6507: Fix syntax error in GetAliasMembership().
Implement SetDomainInfo() which got lost somehow. (This used to be commit 3055addde60687acdcf4e92dcb08e7f8dfdfb8f1)
Diffstat (limited to 'source4/scripting/swig/samr.py')
-rw-r--r--source4/scripting/swig/samr.py12
1 files changed, 11 insertions, 1 deletions
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):