6 Copyright (C) Julien Kerihuel 2008
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program. If not, see <http://www.gnu.org/licenses/>.
26 #include <sys/types.h>
38 #include "gen_ndr/exchange.h"
40 #include <dcerpc_server.h>
44 #include "gen_ndr/ndr_exchange.h"
45 #include "mapiproxy/dcesrv_mapiproxy.h"
46 #include "mapiproxy/dcesrv_mapiproxy_proto.h"
48 #include <sys/types.h>
50 #ifdef HAVE_SYS_CDEFS_H
51 #include <sys/cdefs.h>
55 endpoint server for the exchange_store_admin3 pipe
61 void dcesrv_ec_store_admin3_dummy(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
62 struct ec_store_admin3_dummy *r)
64 DCESRV_FAULT_VOID(DCERPC_FAULT_OP_RNG_ERROR);
69 endpoint server for the exchange_store_admin2 pipe
75 void dcesrv_ec_store_admin2_dummy(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
76 struct ec_store_admin2_dummy *r)
78 DCESRV_FAULT_VOID(DCERPC_FAULT_OP_RNG_ERROR);
83 endpoint server for the exchange_store_admin1 pipe
89 void dcesrv_ec_store_admin1_dummy(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
90 struct ec_store_admin1_dummy *r)
92 DCESRV_FAULT_VOID(DCERPC_FAULT_OP_RNG_ERROR);
97 endpoint server for the exchange_ds_rfr pipe
103 enum MAPISTATUS dcesrv_RfrGetNewDSA(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
104 struct RfrGetNewDSA *r)
106 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
111 RfrGetFQDNFromLegacyDN
113 enum MAPISTATUS dcesrv_RfrGetFQDNFromLegacyDN(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
114 struct RfrGetFQDNFromLegacyDN *r)
116 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
120 endpoint server for the exchange_sysatt_cluster pipe
126 void dcesrv_sysatt_cluster_dummy(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
127 struct sysatt_cluster_dummy *r)
129 DCESRV_FAULT_VOID(DCERPC_FAULT_OP_RNG_ERROR);
133 endpoint server for the exchange_system_attendant pipe
139 void dcesrv_sysatt_dummy(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
140 struct sysatt_dummy *r)
142 DCESRV_FAULT_VOID(DCERPC_FAULT_OP_RNG_ERROR);
146 endpoint server for the exchange_mta pipe
152 void dcesrv_MtaBind(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
155 DCESRV_FAULT_VOID(DCERPC_FAULT_OP_RNG_ERROR);
162 void dcesrv_MtaBindAck(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
163 struct MtaBindAck *r)
165 DCESRV_FAULT_VOID(DCERPC_FAULT_OP_RNG_ERROR);
169 endpoint server for the exchange_drs pipe
175 void dcesrv_ds_abandon(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
176 struct ds_abandon *r)
178 DCESRV_FAULT_VOID(DCERPC_FAULT_OP_RNG_ERROR);
185 void dcesrv_ds_add_entry(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
186 struct ds_add_entry *r)
188 DCESRV_FAULT_VOID(DCERPC_FAULT_OP_RNG_ERROR);
195 void dcesrv_ds_bind(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
198 DCESRV_FAULT_VOID(DCERPC_FAULT_OP_RNG_ERROR);
205 void dcesrv_ds_compare(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
206 struct ds_compare *r)
208 DCESRV_FAULT_VOID(DCERPC_FAULT_OP_RNG_ERROR);
215 void dcesrv_ds_list(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
218 DCESRV_FAULT_VOID(DCERPC_FAULT_OP_RNG_ERROR);
225 void dcesrv_ds_modify_entry(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
226 struct ds_modify_entry *r)
228 DCESRV_FAULT_VOID(DCERPC_FAULT_OP_RNG_ERROR);
235 void dcesrv_ds_modify_rdn(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
236 struct ds_modify_rdn *r)
238 DCESRV_FAULT_VOID(DCERPC_FAULT_OP_RNG_ERROR);
245 void dcesrv_ds_read(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
248 DCESRV_FAULT_VOID(DCERPC_FAULT_OP_RNG_ERROR);
255 void dcesrv_ds_receive_result(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
256 struct ds_receive_result *r)
258 DCESRV_FAULT_VOID(DCERPC_FAULT_OP_RNG_ERROR);
265 void dcesrv_ds_remove_entry(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
266 struct ds_remove_entry *r)
268 DCESRV_FAULT_VOID(DCERPC_FAULT_OP_RNG_ERROR);
275 void dcesrv_ds_search(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
278 DCESRV_FAULT_VOID(DCERPC_FAULT_OP_RNG_ERROR);
285 void dcesrv_ds_unbind(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
288 DCESRV_FAULT_VOID(DCERPC_FAULT_OP_RNG_ERROR);
295 void dcesrv_ds_wait(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
298 DCESRV_FAULT_VOID(DCERPC_FAULT_OP_RNG_ERROR);
305 void dcesrv_dra_replica_add(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
306 struct dra_replica_add *r)
308 DCESRV_FAULT_VOID(DCERPC_FAULT_OP_RNG_ERROR);
315 void dcesrv_dra_replica_delete(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
316 struct dra_replica_delete *r)
318 DCESRV_FAULT_VOID(DCERPC_FAULT_OP_RNG_ERROR);
323 dra_replica_synchronize
325 void dcesrv_dra_replica_synchronize(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
326 struct dra_replica_synchronize *r)
328 DCESRV_FAULT_VOID(DCERPC_FAULT_OP_RNG_ERROR);
335 void dcesrv_dra_reference_update(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
336 struct dra_reference_update *r)
338 DCESRV_FAULT_VOID(DCERPC_FAULT_OP_RNG_ERROR);
343 dra_authorize_replica
345 void dcesrv_dra_authorize_replica(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
346 struct dra_authorize_replica *r)
348 DCESRV_FAULT_VOID(DCERPC_FAULT_OP_RNG_ERROR);
353 dra_unauthorize_replica
355 void dcesrv_dra_unauthorize_replica(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
356 struct dra_unauthorize_replica *r)
358 DCESRV_FAULT_VOID(DCERPC_FAULT_OP_RNG_ERROR);
365 void dcesrv_dra_adopt(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
368 DCESRV_FAULT_VOID(DCERPC_FAULT_OP_RNG_ERROR);
375 void dcesrv_dra_set_status(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
376 struct dra_set_status *r)
378 DCESRV_FAULT_VOID(DCERPC_FAULT_OP_RNG_ERROR);
385 void dcesrv_dra_modify_entry(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
386 struct dra_modify_entry *r)
388 DCESRV_FAULT_VOID(DCERPC_FAULT_OP_RNG_ERROR);
395 void dcesrv_dra_delete_subref(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
396 struct dra_delete_subref *r)
398 DCESRV_FAULT_VOID(DCERPC_FAULT_OP_RNG_ERROR);
402 endpoint server for the exchange_xds pipe
408 void dcesrv_xds_dummy(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
411 DCESRV_FAULT_VOID(DCERPC_FAULT_OP_RNG_ERROR);
415 endpoint server for the exchange_mta_qadmin pipe
421 void dcesrv_exchange_mta_qadmin(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
422 struct exchange_mta_qadmin *r)
424 DCESRV_FAULT_VOID(DCERPC_FAULT_OP_RNG_ERROR);
428 endpoint server for the exchange_store_information pipe
432 exchange_store_information_dummy
434 void dcesrv_exchange_store_information_dummy(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
435 struct exchange_store_information_dummy *r)
437 DCESRV_FAULT_VOID(DCERPC_FAULT_OP_RNG_ERROR);
441 endpoint server for the exchange_nsp pipe
448 enum MAPISTATUS dcesrv_NspiBind(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
451 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
458 enum MAPISTATUS dcesrv_NspiUnbind(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
459 struct NspiUnbind *r)
461 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
468 enum MAPISTATUS dcesrv_NspiUpdateStat(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
469 struct NspiUpdateStat *r)
471 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
478 enum MAPISTATUS dcesrv_NspiQueryRows(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
479 struct NspiQueryRows *r)
481 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
488 enum MAPISTATUS dcesrv_NspiSeekEntries(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
489 struct NspiSeekEntries *r)
491 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
498 enum MAPISTATUS dcesrv_NspiGetMatches(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
499 struct NspiGetMatches *r)
501 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
506 NspiResortRestriction
508 enum MAPISTATUS dcesrv_NspiResortRestriction(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
509 struct NspiResortRestriction *r)
511 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
518 enum MAPISTATUS dcesrv_NspiDNToMId(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
519 struct NspiDNToMId *r)
521 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
528 enum MAPISTATUS dcesrv_NspiGetPropList(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
529 struct NspiGetPropList *r)
531 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
538 enum MAPISTATUS dcesrv_NspiGetProps(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
539 struct NspiGetProps *r)
541 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
548 enum MAPISTATUS dcesrv_NspiCompareMIds(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
549 struct NspiCompareMIds *r)
551 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
558 enum MAPISTATUS dcesrv_NspiModProps(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
559 struct NspiModProps *r)
561 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
568 enum MAPISTATUS dcesrv_NspiGetSpecialTable(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
569 struct NspiGetSpecialTable *r)
571 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
578 enum MAPISTATUS dcesrv_NspiGetTemplateInfo(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
579 struct NspiGetTemplateInfo *r)
581 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
588 enum MAPISTATUS dcesrv_NspiModLinkAtt(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
589 struct NspiModLinkAtt *r)
591 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
598 enum MAPISTATUS dcesrv_NspiDeleteEntries(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
599 struct NspiDeleteEntries *r)
601 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
608 enum MAPISTATUS dcesrv_NspiQueryColumns(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
609 struct NspiQueryColumns *r)
611 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
618 enum MAPISTATUS dcesrv_NspiGetNamesFromIDs(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
619 struct NspiGetNamesFromIDs *r)
621 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
628 enum MAPISTATUS dcesrv_NspiGetIDsFromNames(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
629 struct NspiGetIDsFromNames *r)
631 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
638 enum MAPISTATUS dcesrv_NspiResolveNames(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
639 struct NspiResolveNames *r)
641 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
648 enum MAPISTATUS dcesrv_NspiResolveNamesW(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
649 struct NspiResolveNamesW *r)
651 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
655 endpoint server for the exchange_emsmdb pipe
661 enum MAPISTATUS dcesrv_EcDoConnect(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
662 struct EcDoConnect *r)
664 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
671 enum MAPISTATUS dcesrv_EcDoDisconnect(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
672 struct EcDoDisconnect *r)
674 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
681 enum MAPISTATUS dcesrv_EcDoRpc(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
684 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
691 void dcesrv_EcGetMoreRpc(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
692 struct EcGetMoreRpc *r)
694 DCESRV_FAULT_VOID(DCERPC_FAULT_OP_RNG_ERROR);
699 EcRRegisterPushNotification
701 enum MAPISTATUS dcesrv_EcRRegisterPushNotification(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
702 struct EcRRegisterPushNotification *r)
704 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
709 EcRUnregisterPushNotification
711 enum MAPISTATUS dcesrv_EcRUnregisterPushNotification(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
712 struct EcRUnregisterPushNotification *r)
714 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
721 void dcesrv_EcDummyRpc(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
722 struct EcDummyRpc *r)
724 DCESRV_FAULT_VOID(DCERPC_FAULT_OP_RNG_ERROR);
731 void dcesrv_EcRGetDCName(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
732 struct EcRGetDCName *r)
734 DCESRV_FAULT_VOID(DCERPC_FAULT_OP_RNG_ERROR);
741 void dcesrv_EcRNetGetDCName(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
742 struct EcRNetGetDCName *r)
744 DCESRV_FAULT_VOID(DCERPC_FAULT_OP_RNG_ERROR);
751 void dcesrv_EcDoRpcExt(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
752 struct EcDoRpcExt *r)
754 DCESRV_FAULT_VOID(DCERPC_FAULT_OP_RNG_ERROR);
760 enum MAPISTATUS dcesrv_EcDoConnectEx(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
761 struct EcDoConnectEx *r)
763 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
769 enum MAPISTATUS dcesrv_EcDoRpcExt2(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
770 struct EcDoRpcExt2 *r)
772 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
778 void dcesrv_EcUnknown0xC(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
779 struct EcUnknown0xC *r)
781 DCESRV_FAULT_VOID(DCERPC_FAULT_OP_RNG_ERROR);
787 void dcesrv_EcUnknown0xD(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
788 struct EcUnknown0xD *r)
790 DCESRV_FAULT_VOID(DCERPC_FAULT_OP_RNG_ERROR);
796 enum MAPISTATUS dcesrv_EcDoAsyncConnectEx(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
797 struct EcDoAsyncConnectEx *r)
799 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
803 endpoint server for the exchange_async_emsmdb pipe
805 enum MAPISTATUS dcesrv_EcDoAsyncWaitEx(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
806 struct EcDoAsyncWaitEx *r)
808 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
812 endpoint server for the exchange_unknown pipe
818 void dcesrv_unknown_dummy(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
819 struct unknown_dummy *r)
821 DCESRV_FAULT_VOID(DCERPC_FAULT_OP_RNG_ERROR);