1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-25 17:57:42 +03:00

testparm: Allow idmap ranges overlap for idmap_nss

Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>

Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Tue Sep 26 19:28:08 UTC 2023 on atb-devel-224
This commit is contained in:
Samuel Cabrero 2023-09-26 13:01:03 +02:00 committed by Volker Lendecke
parent fab08854af
commit d7394a90f5

View File

@ -229,16 +229,21 @@ static bool do_idmap_check(void)
if ((c->low >= x->low && c->low <= x->high) ||
(c->high >= x->low && c->high <= x->high)) {
/* Allow overlapping ranges for idmap_ad */
/*
* Allow overlapping ranges for idmap_ad
* and idmap_nss
*/
ok = strequal(c->backend, x->backend);
if (ok) {
ok = strequal(c->backend, "ad");
ok = strequal(c->backend, "ad") ||
strequal(c->backend, "nss");
if (ok) {
fprintf(stderr,
"NOTE: The idmap_ad "
"NOTE: The idmap_%s "
"range for the domain "
"%s overlaps with the "
"range of %s.\n\n",
c->backend,
c->domain_name,
x->domain_name);
continue;