diff options
author | Andreas Schneider <asn@samba.org> | 2011-03-29 10:58:05 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2011-03-29 16:03:53 +0200 |
commit | 8dc58057382806d0ac5702321e5b0d4a5186bf6b (patch) | |
tree | d8641255ec77f4e34a1bb2b68c219e4475267dc7 | |
parent | 991fa3a5fecc05a01b2d3696fe23cba109de10c0 (diff) | |
download | samba-8dc58057382806d0ac5702321e5b0d4a5186bf6b.tar.gz samba-8dc58057382806d0ac5702321e5b0d4a5186bf6b.tar.bz2 samba-8dc58057382806d0ac5702321e5b0d4a5186bf6b.zip |
s3-rpc_server: Only allow embedded, daemon and external server type.
Signed-off-by: Günther Deschner <gd@samba.org>
-rw-r--r-- | source3/rpc_server/rpc_ncacn_np.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source3/rpc_server/rpc_ncacn_np.c b/source3/rpc_server/rpc_ncacn_np.c index 41985e4ee0..e592805957 100644 --- a/source3/rpc_server/rpc_ncacn_np.c +++ b/source3/rpc_server/rpc_ncacn_np.c @@ -875,7 +875,8 @@ NTSTATUS rpc_pipe_open_interface(TALLOC_CTX *mem_ctx, if (!NT_STATUS_IS_OK(status)) { goto done; } - } else { + } else if (StrCaseCmp(server_type, "daemon") == 0 || + StrCaseCmp(server_type, "external") == 0) { /* It would be nice to just use rpc_pipe_open_ncalrpc() but * for now we need to use the special proxy setup to connect * to spoolssd. */ @@ -887,7 +888,12 @@ NTSTATUS rpc_pipe_open_interface(TALLOC_CTX *mem_ctx, if (!NT_STATUS_IS_OK(status)) { goto done; } - } + } else { + status = NT_STATUS_NOT_IMPLEMENTED; + DEBUG(0, ("Wrong servertype specified in config file: %s", + nt_errstr(status))); + goto done; + } status = NT_STATUS_OK; done: |