summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-04-22 06:13:14 +0000
committerJeremy Allison <jra@samba.org>2001-04-22 06:13:14 +0000
commit130f31f5713d43ea2f237cfe0fc142a171eeb82f (patch)
treedecfc84bba755e699fb626ef255057c674804a18 /source3
parentd3e438d54ff05a3678f712bacf5c702ebf7b2a06 (diff)
downloadsamba-130f31f5713d43ea2f237cfe0fc142a171eeb82f.tar.gz
samba-130f31f5713d43ea2f237cfe0fc142a171eeb82f.tar.bz2
samba-130f31f5713d43ea2f237cfe0fc142a171eeb82f.zip
Finally got name & SID returns correct.
Jeremy. (This used to be commit 2a5b513c4459782fa95756f1483235c186ba4a08)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_lsa_nt.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_lsa_nt.c b/source3/rpc_server/srv_lsa_nt.c
index f4407f5d36..6f1719b530 100644
--- a/source3/rpc_server/srv_lsa_nt.c
+++ b/source3/rpc_server/srv_lsa_nt.c
@@ -389,10 +389,13 @@ uint32 _lsa_query_info(pipes_struct *p, LSA_Q_QUERY_INFO *q_u, LSA_R_QUERY_INFO
sid = &global_sam_sid;
break;
case ROLE_DOMAIN_MEMBER:
- case ROLE_STANDALONE:
name = global_myname;
sid = &global_sam_sid;
break;
+ case ROLE_STANDALONE:
+ name = global_myname;
+ sid = NULL; /* Tell it we're not in a domain. */
+ break;
default:
return NT_STATUS_CANT_ACCESS_DOMAIN_INFO;
}