summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util_sid.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/lib/util_sid.c b/source3/lib/util_sid.c
index 50bbb4c72c..e317f8f84e 100644
--- a/source3/lib/util_sid.c
+++ b/source3/lib/util_sid.c
@@ -201,6 +201,13 @@ void split_domain_name(const char *fullname, char *domain, char *name)
fstrcpy(domain, full_name);
fstrcpy(name, p+1);
} else {
+ if(!lp_domain_logons()) {
+ fstrcpy(domain, global_myname());
+ fstrcpy(name, full_name);
+ } else {
+ fstrcpy(domain, lp_workgroup());
+ fstrcpy(name, full_name);
+ }
fstrcpy(domain, global_myname());
fstrcpy(name, full_name);
}