1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

s3 selftest: Fix the WINBINDD_GETDCNAMEe test.

The WINBINDD_GETDCNAME test expected an NSS_STATUS_SUCCESS return from all
calls. However, this does not apply for BUILTIN and the DC's own domain.
Make the test work again by skipping those two.
This commit is contained in:
Kai Blin 2010-01-13 14:49:26 +01:00
parent 36db924446
commit a6015a858d

View File

@ -473,6 +473,9 @@ static bool torture_winbind_struct_getdcname(struct torture_context *torture)
{
bool ok;
bool strict = torture_setting_bool(torture, "strict mode", false);
const char *domain_name = torture_setting_string(torture,
"winbindd netbios domain",
lp_workgroup(torture->lp_ctx));
struct torture_trust_domain *listd = NULL;
uint32_t i, count = 0;
@ -485,6 +488,13 @@ static bool torture_winbind_struct_getdcname(struct torture_context *torture)
struct winbindd_request req;
struct winbindd_response rep;
/* getdcname is not expected to work on "BUILTIN" or our own
* domain */
if (strequal(listd[i].netbios_name, "BUILTIN") ||
strequal(listd[i].netbios_name, domain_name)) {
continue;
}
ZERO_STRUCT(req);
ZERO_STRUCT(rep);