[PATCH] testparm should not print and idmap error for an AD DC
Andreas Schneider
asn at samba.org
Fri Aug 18 08:52:59 UTC 2017
Hi,
the attached fix addresses bug #12629
Review and push appreciated!
Thanks,
Andreas
--
Andreas Schneider GPG-ID: CC014E3D
Samba Team asn at samba.org
www.samba.org
-------------- next part --------------
>From 73bc1386a6eca11d9f92052eaf0221d4c29b3ebc Mon Sep 17 00:00:00 2001
From: Andreas Schneider <asn at samba.org>
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 <asn at samba.org>
---
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.0
More information about the samba-technical
mailing list