From 4cded2881a9a5e3ea845066d2ad29f636c69b10c Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 24 Jun 2014 10:42:26 +0000 Subject: [PATCH] winbind3: In standalone mode, assume local SAM --- source3/winbindd/winbindd_util.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source3/winbindd/winbindd_util.c b/source3/winbindd/winbindd_util.c index 4e8ab92..01c8ce0 100644 --- a/source3/winbindd/winbindd_util.c +++ b/source3/winbindd/winbindd_util.c @@ -861,6 +861,8 @@ bool parse_domain_user(const char *domuser, fstring domain, fstring user) if ( assume_domain(lp_workgroup())) { fstrcpy(domain, lp_workgroup()); + } else if (lp_server_role() == ROLE_STANDALONE) { + fstrcpy(domain, lp_netbios_name()); } else if ((p = strchr(domuser, '@')) != NULL) { fstrcpy(domain, p + 1); user[PTR_DIFF(p, domuser)] = 0; -- 1.8.1.2