summaryrefslogtreecommitdiff
path: root/source4/scripting/python
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2009-07-30 20:28:29 +0200
committerJelmer Vernooij <jelmer@samba.org>2009-07-30 20:28:29 +0200
commit8eff9f9a3167eb0c2a4c00edf5a4cdbbc06c4dfd (patch)
tree9900fed04e613bad700608b9d12b681ad447545b /source4/scripting/python
parent6768cfe624fffef13109989e9cc79ccb4df13d19 (diff)
downloadsamba-8eff9f9a3167eb0c2a4c00edf5a4cdbbc06c4dfd.tar.gz
samba-8eff9f9a3167eb0c2a4c00edf5a4cdbbc06c4dfd.tar.bz2
samba-8eff9f9a3167eb0c2a4c00edf5a4cdbbc06c4dfd.zip
python: Cope with the dom_sid2 alias in pidl's python generating code.
This fixes some problems in the samr Python bindings that pidl was (correctly) warning about.
Diffstat (limited to 'source4/scripting/python')
-rwxr-xr-xsource4/scripting/python/examples/samr.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/scripting/python/examples/samr.py b/source4/scripting/python/examples/samr.py
index 17ac354320..c0e3167a97 100755
--- a/source4/scripting/python/examples/samr.py
+++ b/source4/scripting/python/examples/samr.py
@@ -67,7 +67,7 @@ def test_EnumDomainUsers(samr, dom_handle):
users = toArray(samr.EnumDomainUsers(dom_handle, 0, 0, -1))
print "Found %d users" % len(users)
for idx, user in users:
- print "\t%s\t(%d)" % (user, idx)
+ print "\t%s\t(%d)" % (user.string, idx)
def test_EnumDomainGroups(samr, dom_handle):
"""test the samr_EnumDomainGroups interface"""
@@ -75,7 +75,7 @@ def test_EnumDomainGroups(samr, dom_handle):
groups = toArray(samr.EnumDomainGroups(dom_handle, 0, 0))
print "Found %d groups" % len(groups)
for idx, group in groups:
- print "\t%s\t(%d)" % (group, idx)
+ print "\t%s\t(%d)" % (group.string, idx)
def test_domain_ops(samr, dom_handle):
"""test domain specific ops"""