diff options
author | bubulle <bubulle@alioth.debian.org> | 2010-09-06 20:54:34 +0000 |
---|---|---|
committer | bubulle <bubulle@alioth.debian.org> | 2010-09-06 20:54:34 +0000 |
commit | 53601faba8f69c3454ad07acaceeef9165cb3743 (patch) | |
tree | b31a4174a7f4d2650717c1902a6bc3f922e13117 /source4/scripting/python/examples/samr.py | |
parent | 1b77db997b6a2ce389356509415a6e5e540bcfe0 (diff) | |
download | samba-53601faba8f69c3454ad07acaceeef9165cb3743.tar.gz |
Merge 3.5.4 in upstream branch
git-svn-id: svn://svn.debian.org/svn/pkg-samba/branches/samba/upstream@3574 fc4039ab-9d04-0410-8cac-899223bdd6b0
Diffstat (limited to 'source4/scripting/python/examples/samr.py')
-rwxr-xr-x | source4/scripting/python/examples/samr.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/scripting/python/examples/samr.py b/source4/scripting/python/examples/samr.py index b3ea117b40..c0e3167a97 100755 --- a/source4/scripting/python/examples/samr.py +++ b/source4/scripting/python/examples/samr.py @@ -24,7 +24,7 @@ import sys sys.path.insert(0, "bin/python") -from samba.dcerpc import samr, security, lsa +from samba.dcerpc import samr, security def display_lsa_string(str): return str.string @@ -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""" |