summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2005-04-28 07:51:41 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:16:21 -0500
commit5fef58af7403bfd254a13e01804f9d4a081cb6c9 (patch)
tree2c42eba7f28630753bb68b9a5f5b7ce288b8a66d /source4
parent93e41274c56e564f6d4f2ca657aca29c1eb340c7 (diff)
downloadsamba-5fef58af7403bfd254a13e01804f9d4a081cb6c9.tar.gz
samba-5fef58af7403bfd254a13e01804f9d4a081cb6c9.tar.bz2
samba-5fef58af7403bfd254a13e01804f9d4a081cb6c9.zip
r6511: Implement GetUserPwInfo(), QueryUserInfo(), QueryUserInfo2().
(This used to be commit f9742de617b6f1f24b75ae5af18a476f03c0b732)
Diffstat (limited to 'source4')
-rw-r--r--source4/scripting/swig/samr.py34
1 files changed, 29 insertions, 5 deletions
diff --git a/source4/scripting/swig/samr.py b/source4/scripting/swig/samr.py
index 4346bf88f4..c254acd11b 100644
--- a/source4/scripting/swig/samr.py
+++ b/source4/scripting/swig/samr.py
@@ -497,7 +497,35 @@ class UserHandle(SamrHandle):
call_fn(dcerpc.dcerpc_samr_DeleteUser, self.pipe, r)
self.handle = None
-
+
+ def GetUserPwInfo(self):
+
+ r = dcerpc.samr_GetUserPwInfo()
+ r.data_in.user_handle = self.handle
+
+ call_fn(dcerpc.dcerpc_samr_GetUserPwInfo, self.pipe, r)
+
+ return r.data_out.info
+
+ def QueryUserInfo(self, level):
+
+ r = dcerpc.samr_QueryUserInfo()
+ r.data_in.user_handle = self.handle
+ r.data_in.level = level
+
+ call_fn(dcerpc.dcerpc_samr_QueryUserInfo, self.pipe, r)
+
+ return r.data_out.info
+
+ def QueryUserInfo2(self, level):
+
+ r = dcerpc.samr_QueryUserInfo2()
+ r.data_in.user_handle = self.handle
+ r.data_in.level = level
+
+ call_fn(dcerpc.dcerpc_samr_QueryUserInfo2, self.pipe, r)
+
+ return r.data_out.info
class GroupHandle(SamrHandle):
pass
@@ -603,7 +631,6 @@ def Connect4(pipe, system_name = '', access_mask = 0x02000000):
return ConnectHandle(pipe, r.data_out.connect_handle)
-
def Connect5(pipe, system_name = '', access_mask = 0x02000000):
r = dcerpc.samr_Connect5()
@@ -628,16 +655,13 @@ def Connect5(pipe, system_name = '', access_mask = 0x02000000):
# AddAliasMember
# DeleteAliasMember
# GetMembersinAlias
-# QueryUserInfo
# SetUserInfo
# ChangePasswordUser
# GetGroupsForUser
# GetDisplayEnumerationIndex
# TestPrivateFunctionsDomain
# TestPrivateFunctionsUser
-# GetUserPwInfo
# RemoveMemberFromForeignDomain
-# QueryUserInfo2
# GetDisplayEnumerationIndex2
# RemoveMultipleMembersFromAlias
# OemChangePasswordUser2