summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srv_lsa_nt.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-03-15 03:19:01 +0000
committerJeremy Allison <jra@samba.org>2001-03-15 03:19:01 +0000
commitae728ea761e82d6d0bd5c96e7c82f1b1115f2e24 (patch)
treeda0b601ce829f81059b856fb967ba711ebeaae03 /source3/rpc_server/srv_lsa_nt.c
parenteb9e2882d2e837f823ccb63d6b54b93f9cdf3333 (diff)
downloadsamba-ae728ea761e82d6d0bd5c96e7c82f1b1115f2e24.tar.gz
samba-ae728ea761e82d6d0bd5c96e7c82f1b1115f2e24.tar.bz2
samba-ae728ea761e82d6d0bd5c96e7c82f1b1115f2e24.zip
Last tweak (I promise :-). Fallback to returning our SID if we're a domain
member but can't get the domain sid. Jeremy. (This used to be commit 45e96777d0eeafbbf40759f02cd3f5e15b12c288)
Diffstat (limited to 'source3/rpc_server/srv_lsa_nt.c')
-rw-r--r--source3/rpc_server/srv_lsa_nt.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/source3/rpc_server/srv_lsa_nt.c b/source3/rpc_server/srv_lsa_nt.c
index 0a20aec8f4..87aebfa674 100644
--- a/source3/rpc_server/srv_lsa_nt.c
+++ b/source3/rpc_server/srv_lsa_nt.c
@@ -363,15 +363,12 @@ 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:
+ name = global_myname;
if (secrets_fetch_domain_sid(global_myworkgroup,
&domain_sid))
- {
- /* I'm sure this should be myname, not myworkgroup. JRA. */
- name = global_myname;
- sid = &domain_sid;
- }
+ sid = &domain_sid;
else
- return NT_STATUS_CANT_ACCESS_DOMAIN_INFO;
+ sid = &global_sam_sid;
break;
case ROLE_STANDALONE:
name = global_myname;
@@ -392,14 +389,12 @@ 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:
+ name = global_myname;
if (secrets_fetch_domain_sid(global_myworkgroup,
&domain_sid))
- {
- name = global_myname;
- sid = &domain_sid;
- }
+ sid = &domain_sid;
else
- return NT_STATUS_CANT_ACCESS_DOMAIN_INFO;
+ sid = &global_sam_sid;
break;
case ROLE_STANDALONE:
name = global_myname;