diff options
author | Günther Deschner <gd@samba.org> | 2009-02-25 23:04:52 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-02-25 23:06:56 +0100 |
commit | 228e75112ffe4124748e80d6571ddde4df22881f (patch) | |
tree | f565b7cf1e065d807792f3fe02bbf7e8ed0e79e7 /source4/rpc_server | |
parent | e17df483fbedb81aededdef5fbb6ae1d034bc2dd (diff) | |
download | samba-228e75112ffe4124748e80d6571ddde4df22881f.tar.gz samba-228e75112ffe4124748e80d6571ddde4df22881f.tar.bz2 samba-228e75112ffe4124748e80d6571ddde4df22881f.zip |
s4-spoolss: implement dcesrv_spoolss_GetPrintProcessorDirectory.
Guenther
Diffstat (limited to 'source4/rpc_server')
-rw-r--r-- | source4/rpc_server/spoolss/dcesrv_spoolss.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/source4/rpc_server/spoolss/dcesrv_spoolss.c b/source4/rpc_server/spoolss/dcesrv_spoolss.c index 33c657cc1b..89b93bbaa4 100644 --- a/source4/rpc_server/spoolss/dcesrv_spoolss.c +++ b/source4/rpc_server/spoolss/dcesrv_spoolss.c @@ -454,7 +454,19 @@ static WERROR dcesrv_spoolss_EnumPrintProcessors(struct dcesrv_call_state *dce_c static WERROR dcesrv_spoolss_GetPrintProcessorDirectory(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, struct spoolss_GetPrintProcessorDirectory *r) { - DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR); + struct ntptr_context *ntptr = talloc_get_type(dce_call->context->private_data, struct ntptr_context); + WERROR status; + struct smb_iconv_convenience *ic = lp_iconv_convenience(ntptr->lp_ctx); + + status = dcesrv_spoolss_check_server_name(dce_call, mem_ctx, r->in.server); + W_ERROR_NOT_OK_RETURN(status); + + status = ntptr_GetPrintProcessorDirectory(ntptr, mem_ctx, r); + W_ERROR_NOT_OK_RETURN(status); + + *r->out.needed = SPOOLSS_BUFFER_UNION(spoolss_PrintProcessorDirectoryInfo, ic, r->out.info, r->in.level); + r->out.info = SPOOLSS_BUFFER_OK(r->out.info, NULL); + return SPOOLSS_BUFFER_OK(WERR_OK, WERR_INSUFFICIENT_BUFFER); } |