From 1be70994ffc25a534a6af11e88edd5efd3bf5479 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 18 Aug 2017 10:35:55 +0200 Subject: [PATCH] s3:utils: Do not report an invalid range for AD DC role BUG: https://bugzilla.samba.org/show_bug.cgi?id=12629 Signed-off-by: Andreas Schneider Reviewed-by: Jeremy Allison (cherry picked from commit 95e30b081f273f2d156792577179c5220c0a10cc) --- source3/utils/testparm.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/source3/utils/testparm.c b/source3/utils/testparm.c index 9589201d790..a53eea5b8cc 100644 --- a/source3/utils/testparm.c +++ b/source3/utils/testparm.c @@ -109,13 +109,15 @@ static bool lp_scan_idmap_found_domain(const char *string, return false; } - ok = lp_idmap_range(domname, &c->low, &c->high); - if (!ok) { - fprintf(stderr, - "ERROR: Invalid idmap range for domain " - "%s!\n\n", - c->domain_name); - return false; + if (lp_server_role() != ROLE_ACTIVE_DIRECTORY_DC) { + ok = lp_idmap_range(domname, &c->low, &c->high); + if (!ok) { + fprintf(stderr, + "ERROR: Invalid idmap range for domain " + "%s!\n\n", + c->domain_name); + return false; + } } d->count++; -- 2.14.1