CVE-2020-25727: idmap_nss: verify that the name of the sid belongs to the configured...
commita6eddc3bd7a032e1fd3921cd7ea213b5c48f2eab
authorStefan Metzmacher <metze@samba.org>
Fri, 12 Nov 2021 14:27:58 +0000 (12 15:27 +0100)
committerJule Anger <janger@samba.org>
Wed, 17 Nov 2021 14:35:14 +0000 (17 14:35 +0000)
tree461c379503eee196f22cb3b729964b08c2a772ae
parentfadf49634500a08392f0625db4062d993ccb0b0a
CVE-2020-25727: idmap_nss: verify that the name of the sid belongs to the configured domain

We already check the sid belongs to the domain, but checking the name
too feels better and make it easier to understand.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14901

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
(cherry picked from commit bfd093648b4af51d104096c0cb3535e8706671e5)
source3/winbindd/idmap_nss.c