mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
idmap_autorid: allow iterate functions to operate on all domain ranges
by allowing handed in domsid to be NULL Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
parent
7c2b83d15e
commit
b2ed2d814b
@ -955,7 +955,7 @@ static int idmap_autorid_visit_domain_range(struct db_record *rec,
|
||||
goto done;
|
||||
}
|
||||
|
||||
if (strcmp(domsid, vi->domsid) != 0) {
|
||||
if ((vi->domsid != NULL) && (strcmp(domsid, vi->domsid) != 0)) {
|
||||
DEBUG(10, ("key sid '%s' does not match requested sid '%s'.\n",
|
||||
domsid, vi->domsid));
|
||||
goto done;
|
||||
@ -998,9 +998,7 @@ static NTSTATUS idmap_autorid_iterate_domain_ranges_int(struct db_context *db,
|
||||
TALLOC_CTX *frame = talloc_stackframe();
|
||||
|
||||
if (domsid == NULL) {
|
||||
DEBUG(1, ("Error: no domain sid provided\n"));
|
||||
status = NT_STATUS_INVALID_PARAMETER;
|
||||
goto done;
|
||||
DEBUG(10, ("No sid provided, operating on all ranges\n"));
|
||||
}
|
||||
|
||||
if (fn == NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user