diff options
author | Andreas Schneider <asn@samba.org> | 2011-03-28 14:18:23 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2011-03-29 16:03:53 +0200 |
commit | 28b204601556105ad57d7ac69210eb75f248f764 (patch) | |
tree | 6bf2951bda2974745ab4029102020709c5459155 /source3 | |
parent | 8c635b669c557cfe6fb5de2bd90302ada54b0fb9 (diff) | |
download | samba-28b204601556105ad57d7ac69210eb75f248f764.tar.gz samba-28b204601556105ad57d7ac69210eb75f248f764.tar.bz2 samba-28b204601556105ad57d7ac69210eb75f248f764.zip |
s3-spoolssd: Register spoolssd endpoints.
Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/printing/spoolssd.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/printing/spoolssd.c b/source3/printing/spoolssd.c index 9ddc3b5f82..94694fc284 100644 --- a/source3/printing/spoolssd.c +++ b/source3/printing/spoolssd.c @@ -25,6 +25,7 @@ #include "librpc/gen_ndr/srv_winreg.h" #include "librpc/gen_ndr/srv_spoolss.h" #include "rpc_server/rpc_server.h" +#include "rpc_server/rpc_ep_setup.h" #define SPOOLSS_PIPE_NAME "spoolss" #define DAEMON_NAME "spoolssd" @@ -222,6 +223,13 @@ void start_spoolssd(struct tevent_context *ev_ctx, exit(1); } + status = rpc_ep_setup_register(ev_ctx, msg_ctx, &ndr_table_spoolss, NULL, 0); + if (!NT_STATUS_IS_OK(status)) { + DEBUG(0, ("Failed to register spoolss endpoint! (%s)\n", + nt_errstr(status))); + exit(1); + } + DEBUG(1, ("SPOOLSS Daemon Started (%d)\n", getpid())); /* loop forever */ |