summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/rpc_server/srv_lsa_nt.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_lsa_nt.c b/source3/rpc_server/srv_lsa_nt.c
index 46c4789928..0a20aec8f4 100644
--- a/source3/rpc_server/srv_lsa_nt.c
+++ b/source3/rpc_server/srv_lsa_nt.c
@@ -362,7 +362,6 @@ uint32 _lsa_query_info(pipes_struct *p, LSA_Q_QUERY_INFO *q_u, LSA_R_QUERY_INFO
name = global_myworkgroup;
sid = &global_sam_sid;
break;
- case ROLE_STANDALONE:
case ROLE_DOMAIN_MEMBER:
if (secrets_fetch_domain_sid(global_myworkgroup,
&domain_sid))
@@ -374,6 +373,10 @@ uint32 _lsa_query_info(pipes_struct *p, LSA_Q_QUERY_INFO *q_u, LSA_R_QUERY_INFO
else
return NT_STATUS_CANT_ACCESS_DOMAIN_INFO;
break;
+ case ROLE_STANDALONE:
+ name = global_myname;
+ sid = &global_sam_sid;
+ break;
default:
return NT_STATUS_CANT_ACCESS_DOMAIN_INFO;
}
@@ -385,7 +388,6 @@ uint32 _lsa_query_info(pipes_struct *p, LSA_Q_QUERY_INFO *q_u, LSA_R_QUERY_INFO
{
case ROLE_DOMAIN_PDC:
case ROLE_DOMAIN_BDC:
- case ROLE_STANDALONE:
name = global_myworkgroup;
sid = &global_sam_sid;
break;
@@ -399,6 +401,10 @@ uint32 _lsa_query_info(pipes_struct *p, LSA_Q_QUERY_INFO *q_u, LSA_R_QUERY_INFO
else
return NT_STATUS_CANT_ACCESS_DOMAIN_INFO;
break;
+ case ROLE_STANDALONE:
+ name = global_myname;
+ sid = &global_sam_sid;
+ break;
default:
return NT_STATUS_CANT_ACCESS_DOMAIN_INFO;
}