From a4f21d5dc886b708d401a32d2208c316b537b07f Mon Sep 17 00:00:00 2001 From: Kai Blin Date: Wed, 13 Jan 2010 15:21:14 +0100 Subject: [PATCH] s3 selftest: Allow the enumeration of users and groups This fixes the WINBINDD_GETPWENT test. --- selftest/target/Samba3.pm | 2 ++ source4/torture/winbind/struct_based.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/selftest/target/Samba3.pm b/selftest/target/Samba3.pm index e1e52106961..0e1602231a4 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 d1ae1e5667b..a80f1fa1874 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++) { } -- 2.34.1