s3:passdb: Add support to handle UPNs in lookup_name()
commit2a03fb91c1120718ada9d4b8421044cb7eae7b83
authorAndreas Schneider <asn@cryptomilk.org>
Tue, 26 Apr 2022 05:12:02 +0000 (26 07:12 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 26 Apr 2022 19:22:29 +0000 (26 19:22 +0000)
tree8d4aa3f1ad0a09602764a3922bda0e415b39018f
parent756cd0eed30322ae6dbd5402ec11441387475884
s3:passdb: Add support to handle UPNs in lookup_name()

This address an issue if sssd is running and handling nsswitch. If we look up
a user with getpwnam("DOMAIN\user") it will return user@REALM in the passwd
structure. We need to be able to deal with that.

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

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/passdb/lookup_sid.c