diff options
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/srv_lsa.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_lsa.c b/source3/rpc_server/srv_lsa.c index 81e9b737ee..f5dd09d05e 100644 --- a/source3/rpc_server/srv_lsa.c +++ b/source3/rpc_server/srv_lsa.c @@ -512,8 +512,12 @@ static BOOL api_lsa_query_info(prs_struct *data, prs_struct *rdata) switch (q_i.info_class) { case 0x03: - fstrcpy(name, global_myworkgroup); - sid = &global_sam_sid; + if(lp_domain_logons()) { + fstrcpy(name, global_myworkgroup); + sid = &global_sam_sid; + } else { + *name = '\0'; + } break; case 0x05: fstrcpy(name, global_myname); |