s3-rpc_server: Check explicit for external and daemon server type.
authorAndreas Schneider <asn@samba.org>
Wed, 3 Aug 2011 10:14:16 +0000 (12:14 +0200)
committerSimo Sorce <idra@samba.org>
Sun, 21 Aug 2011 13:05:02 +0000 (09:05 -0400)
Signed-off-by: Andreas Schneider <asn@samba.org>
Signed-off-by: Simo Sorce <idra@samba.org>
source3/rpc_server/srv_pipe_hnd.c

index 3990ae9bcdb6bdadaa0d0de5def5e4c5522d06c0..5c906561c097053a2bbdd178084bf0ff1eaafc54 100644 (file)
@@ -432,7 +432,8 @@ NTSTATUS np_open(TALLOC_CTX *mem_ctx, const char *name,
        rpcsrv_type = lp_parm_const_string(GLOBAL_SECTION_SNUM,
                                           "rpc_server", name,
                                           "embedded");
        rpcsrv_type = lp_parm_const_string(GLOBAL_SECTION_SNUM,
                                           "rpc_server", name,
                                           "embedded");
-       if (strcasecmp_m(rpcsrv_type, "embedded") != 0) {
+       if (strcasecmp_m(rpcsrv_type, "external") == 0 ||
+           strcasecmp_m(rpcsrv_type, "daemon") == 0) {
                external = true;
        }
 
                external = true;
        }