summaryrefslogtreecommitdiffstats
path: root/source4/scripting/python/samba/tests
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-05-02 16:44:27 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-05-03 01:57:41 +0200
commit86b1dd845a595bd6f3a70176a155ee0187584a5e (patch)
treeb1240ca31176a7f63f732eb98d09a3ee148716cf /source4/scripting/python/samba/tests
parenta0a83802fbcb5e4d415315e4ea3a35db827785a3 (diff)
downloadsamba-86b1dd845a595bd6f3a70176a155ee0187584a5e.tar.gz
samba-86b1dd845a595bd6f3a70176a155ee0187584a5e.tar.xz
samba-86b1dd845a595bd6f3a70176a155ee0187584a5e.zip
s4-samba-tool: make new samba-tool group listmembers use samAccountName
This is the unique username value. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Thu May 3 01:57:41 CEST 2012 on sn-devel-104
Diffstat (limited to 'source4/scripting/python/samba/tests')
-rw-r--r--source4/scripting/python/samba/tests/samba_tool/group.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/scripting/python/samba/tests/samba_tool/group.py b/source4/scripting/python/samba/tests/samba_tool/group.py
index b7f751747d..2c0c46e5dc 100644
--- a/source4/scripting/python/samba/tests/samba_tool/group.py
+++ b/source4/scripting/python/samba/tests/samba_tool/group.py
@@ -130,12 +130,12 @@ class GroupCmdTestCase(SambaToolCmdTest):
grouplist = self.samdb.search(base=self.samdb.domain_dn(),
scope=ldb.SCOPE_SUBTREE,
expression=search_filter,
- attrs=["cn"])
+ attrs=["samAccountName"])
self.assertTrue(len(grouplist) > 0, "no groups found in samdb")
for groupobj in grouplist:
- name = groupobj.get("cn", idx=0)
+ name = groupobj.get("samAccountName", idx=0)
found = self.assertMatch(out, name, "group '%s' not found" % name)
def _randomGroup(self, base={}):