mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
idmap_autorid: fix failure in reverse lookup if ID is from domain range index #0
Domain range index #0 is not included in the database record. So in this special case we only have the SID, not SID#IDX... Signed-off-by: Abhidnya Joshi <achirmul@in.ibm.com> Reviewed-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
1524dc6006
commit
ebc9ff616f
@ -223,7 +223,7 @@ static NTSTATUS idmap_autorid_id_to_sid(struct autorid_global_config *cfg,
|
||||
map->status = ID_UNKNOWN;
|
||||
return NT_STATUS_OK;
|
||||
}
|
||||
if (q != NULL)
|
||||
if ((q != NULL) && (*q != '\0'))
|
||||
if (sscanf(q+1, "%"SCNu32, &domain_range_index) != 1) {
|
||||
DEBUG(10, ("Domain range index not found, "
|
||||
"ignoring mapping request\n"));
|
||||
|
Loading…
Reference in New Issue
Block a user