s3-rpc_server: Check explicit for external and daemon server type.
[idra/samba.git] / 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");
-       if (strcasecmp_m(rpcsrv_type, "embedded") != 0) {
+       if (strcasecmp_m(rpcsrv_type, "external") == 0 ||
+           strcasecmp_m(rpcsrv_type, "daemon") == 0) {
                external = true;
        }