mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
s3:passdb: Also allow to handle UPNs in lookup_name_smbconf()
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>
(cherry picked from commit 28fc44f285
)
Autobuild-User(v4-16-test): Jule Anger <janger@samba.org>
Autobuild-Date(v4-16-test): Thu Apr 28 09:03:34 UTC 2022 on sn-devel-184
This commit is contained in:
parent
944ee14c51
commit
6cbaa31fe0
@ -466,8 +466,9 @@ bool lookup_name_smbconf(TALLOC_CTX *mem_ctx,
|
|||||||
{
|
{
|
||||||
char *qualified_name = NULL;
|
char *qualified_name = NULL;
|
||||||
const char *p = strchr_m(full_name, *lp_winbind_separator());
|
const char *p = strchr_m(full_name, *lp_winbind_separator());
|
||||||
bool is_qualified = p != NULL;
|
bool is_qualified = p != NULL || strchr_m(full_name, '@') != NULL;
|
||||||
|
|
||||||
|
/* For DOMAIN\user or user@REALM directly call lookup_name(). */
|
||||||
if (is_qualified) {
|
if (is_qualified) {
|
||||||
|
|
||||||
/* The name is already qualified with a domain. */
|
/* The name is already qualified with a domain. */
|
||||||
|
Loading…
Reference in New Issue
Block a user