summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2010-01-13 15:21:14 +0100
committerKai Blin <kai@samba.org>2010-01-14 15:18:34 +0100
commita4f21d5dc886b708d401a32d2208c316b537b07f (patch)
treeca47bbcf2bfa00a2366eb7db4421275bd0eeca43
parenta6015a858d9658730c0cc9b963ad86a740dd4bb8 (diff)
downloadsamba-a4f21d5dc886b708d401a32d2208c316b537b07f.tar.gz
samba-a4f21d5dc886b708d401a32d2208c316b537b07f.tar.bz2
samba-a4f21d5dc886b708d401a32d2208c316b537b07f.zip
s3 selftest: Allow the enumeration of users and groups
This fixes the WINBINDD_GETPWENT test.
-rw-r--r--selftest/target/Samba3.pm2
-rw-r--r--source4/torture/winbind/struct_based.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/selftest/target/Samba3.pm b/selftest/target/Samba3.pm
index e1e5210696..0e1602231a 100644
--- a/selftest/target/Samba3.pm
+++ b/selftest/target/Samba3.pm
@@ -479,6 +479,8 @@ sub provision($$$$$$)
winbindd:socket dir = $wbsockdir
idmap uid = 100000-200000
idmap gid = 100000-200000
+ winbind enum users = yes
+ winbind enum groups = yes
# min receivefile size = 4000
diff --git a/source4/torture/winbind/struct_based.c b/source4/torture/winbind/struct_based.c
index d1ae1e5667..a80f1fa187 100644
--- a/source4/torture/winbind/struct_based.c
+++ b/source4/torture/winbind/struct_based.c
@@ -626,7 +626,7 @@ static bool torture_winbind_struct_list_users(struct torture_context *torture)
torture_comment(torture, "Running WINBINDD_LIST_USERS (struct based)\n");
ok = get_user_list(torture, &users);
- torture_assert(torture, ok, "failed to get group list");
+ torture_assert(torture, ok, "failed to get user list");
for (count = 0; users[count]; count++) { }