summaryrefslogtreecommitdiff
path: root/librpc
Commit message (Collapse)AuthorAgeFilesLines
...
* librpc/rpc: no longer set FLAG_OBJECT_PRESENT and FLAG_BIGENDIAN for ↵Stefan Metzmacher2016-10-261-16/+0
| | | | | | | | | ndr_{pull,push}_ncacn_packet() This is no longer required, it's done inside. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* dcerpc.idl: set LIBNDR_FLAG_* flags based on DCERPC_PFC_FLAG_OBJECT_UUID and ↵Stefan Metzmacher2016-10-262-4/+86
| | | | | | | DCERPC_DREP_LE Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* librpc: support "packet" for packet level authentication in binding stringsGünther Deschner2016-10-262-0/+5
| | | | | | | | Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* librpc: add dcerpc_ncacn_push_pkt_auth() helper functionStefan Metzmacher2016-10-262-0/+210
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* librpc: add dcerpc_ncacn_pull_pkt_auth() helper functionStefan Metzmacher2016-10-263-1/+153
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* librpc/rpc: make use of dcerpc_pull_ncacn_packet() in ↵Stefan Metzmacher2016-10-261-27/+5
| | | | | | | | dcerpc_read_ncacn_packet_done() Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Günther Deschner <gd@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* librpc/rpc: move dcerpc_pull_ncacn_packet() from source3/librpc/rpc/ to the ↵Stefan Metzmacher2016-10-262-0/+48
| | | | | | | | toplevel Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Günther Deschner <gd@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* dcerpc.idl: add DCERPC_FAULT_SERVER_UNAVAILABLEStefan Metzmacher2016-10-262-0/+2
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* dcerpc.idl: remove unused dcerpc_request._padStefan Metzmacher2016-10-261-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | typedef struct { uint32 alloc_hint; uint16 context_id; uint16 opnum; /* * NDR_DCERPC_REQUEST_OBJECT_PRESENT * is defined differently for ndr_dcerpc.c and py_dcerpc.c */ [switch_is(NDR_DCERPC_REQUEST_OBJECT_PRESENT)] dcerpc_object object; [flag(NDR_REMAINING)] DATA_BLOB stub_and_verifier; } dcerpc_request; - the generic dcerpc header has a size of 16 bytes. - alloc_hint, context_id and opnum are 8 bytes together. - dcerpc_object is 0 or 16 bytes. That means stub_and_verifier is always aligned to 8 bytes (either at offset 24 or 40). Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* dcerpc.idl: replace dcerpc_response._pad with a uint8 reservedStefan Metzmacher2016-10-261-1/+1
| | | | | | | | | | | | | | | | | | | typedef struct { uint32 alloc_hint; uint16 context_id; uint8 cancel_count; [value(0)] uint8 reserved; [flag(NDR_REMAINING)] DATA_BLOB stub_and_verifier; } dcerpc_response; - the generic dcerpc header has a size of 16 bytes - alloc_hint, context_id, cancel_count and reserved are 8 bytes together So stub_and_verifier is 8 byte aligned at offset 24. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* dcerpc.idl: add dcerpc_fault_flags bitmapStefan Metzmacher2016-10-261-1/+5
| | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Günther Deschner <gd@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* dcerpc.idl: split the padding from a possible fault buffer in dcerpc_faultStefan Metzmacher2016-10-261-1/+5
| | | | | | | | The 4 bytes of padding are always present and part of the header. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Günther Deschner <gd@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* dcerpc.idl: remove unused DCERPC_AUTH_LEVEL_DEFAULTStefan Metzmacher2016-10-261-2/+0
| | | | | | | | Also the default should not be DCERPC_AUTH_LEVEL_CONNECT Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Günther Deschner <gd@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* ntlmssp.idl: don't generate python bindings for ntlmssp_NTLM_RESPONSE and ↵Stefan Metzmacher2016-10-131-2/+2
| | | | | | | | | | | | | | | ntlmssp_LM_RESPONSE ntlmssp_NTLM_RESPONSE and NTLM_RESPONSE will both result in "ntlmssp.NTLM_RESPONSE". The same applies to ntlmssp_LM_RESPONSE and LM_RESPONSE. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Günther Deschner <gd@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Thu Oct 13 21:56:27 CEST 2016 on sn-devel-144
* spoolss.idl: use access mask defines from security.idlStefan Metzmacher2016-10-131-3/+3
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Günther Deschner <gd@samba.org>
* nfs4acl.idl: rename interface to nfs4acl.idl to avoid naming clash in the ↵Stefan Metzmacher2016-10-131-1/+1
| | | | | | | python bindings Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Günther Deschner <gd@samba.org>
* lib: Annotate well known SID namesSteve French2016-09-291-0/+4
| | | | | | | | Add Samba specific well known SIDs for Unix UID and GID owner. Signed-off-by: Steve French <smfrench@gmail.com> Reviewed-by: Guenther Deschner <gd@samba.org>
* werror: replace WERR_INVALID_PARAM with WERR_INVALID_PARAMETER in librpc/idl/Günther Deschner2016-09-282-4/+4
| | | | | | | Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* librpc: fix some variable names in winspool protocol IDLGünther Deschner2016-09-261-4/+4
| | | | | | | | | never undestimate the power of sed... Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Uri Simchoni <uri@samba.org>
* idl/ioctl: fix DUPLICATE_EXTENTS_TO_FILE fid fieldDavid Disseldorp2016-09-221-2/+1
| | | | | | | | | | | This idl was based on an earlier draft documentation version. The current documentation now shows: "SourceFileID (16 bytes): An SMB2_FILEID structure, as specified in [MS-SMB2] section 2.2.14.1, that is an identifier of the open to the source file.". Signed-off-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s4-torture: add IRemoteWinspool ndr testsuite.Günther Deschner2016-09-221-1/+1
| | | | | | | Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* idl: compile iremotewinspool.idl.Günther Deschner2016-09-223-2/+12
| | | | | | | Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* librpc: add IRemoteWinspool idlGünther Deschner2016-09-222-1/+879
| | | | | | | Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* spoolss: rename RPC_PrintNamedProperty to spoolss_PrintNamedPropertyGünther Deschner2016-09-221-11/+11
| | | | | | | | | We should try to avoid the RPC_ prefix in structs, enums for spoolss. Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* spoolss: rename spoolss_RpcSendRecvBidiData to spoolss_SendRecvBidiDataGünther Deschner2016-09-221-1/+1
| | | | | | | Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* spoolss: rename spoolss_RpcEnumJobNamedProperties to ↵Günther Deschner2016-09-221-1/+1
| | | | | | | | | spoolss_EnumJobNamedProperties Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* spoolss: rename spoolss_RpcDeleteJobNamedProperty to ↵Günther Deschner2016-09-221-1/+1
| | | | | | | | | spoolss_DeleteJobNamedProperty Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* spoolss: rename spoolss_RpcSetJobNamedProperty to spoolss_SetJobNamedPropertyGünther Deschner2016-09-221-1/+1
| | | | | | | Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* spoolss: rename spoolss_RpcGetJobNamedPropertyValue to ↵Günther Deschner2016-09-221-1/+1
| | | | | | | | | spoolss_GetJobNamedPropertyValue Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* spoolss: rename spoolss_EnumPrintProcDataTypes to ↵Günther Deschner2016-09-223-13/+13
| | | | | | | | | | | spoolss_EnumPrintProcessorDataTypes This change makes automatic mapping for PAR->RPRN opcodes easier. Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* spoolss: add IDL for spoolss_LogJobInfoForBranchOffice.Günther Deschner2016-09-111-0/+97
| | | | | | | Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* librpc: add clusapi_ResourceControlCode to IDL.Günther Deschner2016-09-071-1/+63
| | | | | | | Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* librpc: add ClusterResTypeEnumType to IDL.Günther Deschner2016-09-071-1/+6
| | | | | | | Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* librpc: add CLUS_RESOURCE_CLASS_INFO to IDLGünther Deschner2016-09-071-0/+11
| | | | | | | Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* librpc: add ClusterGroupEnumType enum to IDL.Günther Deschner2016-09-071-1/+6
| | | | | | | Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* librpc: add clusapi_ResourceTypeControlCode enum.Günther Deschner2016-09-071-1/+43
| | | | | | | Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* librpc/tools: support ndr64 in the validate path of ndrdumpGünther Deschner2016-08-251-1/+5
| | | | | | | Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
* librpc: fix IDL for spoolss_GetPrinterDriverPackagePath()Günther Deschner2016-08-231-1/+1
| | | | | Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* librpc: fix spoolss_GetCorePrinterDrivers IDL.Günther Deschner2016-08-231-2/+2
| | | | | Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* spoolss: add various well known core printer driver file GUIDs to IDL.Günther Deschner2016-08-231-0/+7
| | | | | Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* librpc: Add ndr_push_struct_into_fixed_blob() and use it in GUID_to_ndr_blob()Andrew Bartlett2016-07-285-4/+310
| | | | | | | | This allows us to allocate only the correct size, not a default of 1024 bytes per push. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
* drsblobs.idl: add package_PrimarySambaGPGBlobStefan Metzmacher2016-07-221-0/+8
| | | | | | | | This will be used to store the cleartext utf16 password GPG encrypted in the supplementalCredentials attribute. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
* krb5pac/netlogon: add a comment regarding PAC_LOGON_INFO unique pointers on pushStefan Metzmacher2016-07-202-0/+14
| | | | | | | | This difference is the reason why we can't fully (ndr)validate some PAC blobs. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Günther Deschner <gd@samba.org>
* krb5pac.idl: implement PAC_UPN_DNS_INFO correctStefan Metzmacher2016-07-202-13/+18
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Günther Deschner <gd@samba.org>
* krb5pac: fix push/pull of subcontexts in PAC_BUFFERStefan Metzmacher2016-07-202-11/+19
| | | | | | | | | We need to have two subcontexts to get the padding right, the outer subcontext uses NDR_ROUND(_ndr_size, 8), while the inner subcontext only uses _ndr_size. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Günther Deschner <gd@samba.org>
* krb5pac: no need for a noprint PAC_BUFFER.Günther Deschner2016-07-204-22/+32
| | | | | | | | | | | | | | | | | | | | | | | | Guenther @@ -1,6 +1,7 @@ _PUBLIC_ void ndr_print_PAC_BUFFER(struct ndr_print *ndr, const char *name, const struct PAC_BUFFER *r) { ndr_print_struct(ndr, name, "PAC_BUFFER"); + if (r == NULL) { ndr_print_null(ndr); return; } ndr->depth++; ndr_print_PAC_TYPE(ndr, "type", r->type); ndr_print_uint32(ndr, "_ndr_size", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?_ndr_size_PAC_INFO(r->info,r->type,0):r->_ndr_size); @@ -11,7 +12,7 @@ ndr_print_PAC_INFO(ndr, "info", r->info); } ndr->depth--; - ndr_print_uint32(ndr, "_pad", r->_pad); + ndr_print_uint32(ndr, "_pad", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0:r->_pad); ndr->depth--; } Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* drsblobs.idl: supplementalCredentialsSubBlob make it possible to parse ↵Stefan Metzmacher2016-07-201-4/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | strange blobs Windows omits the uint16 num_packages field when the packages array is empty. This happens if the UF_SMARTCARD_REQUIRED flag is set for an account. A user was created with a password and then userAccountControl was changed to UF_NORMAL_ACCOUNT|UF_SMARTCARD_REQUIRED. In that case I'm getting (as the whole supplementalCredentialsBlob): [0000] 00 00 00 00 62 00 00 00 00 00 00 00 20 00 20 00 ....b... .... . . [0010] 20 00 20 00 20 00 20 00 20 00 20 00 20 00 20 00 . . . . . . . . [0020] 20 00 20 00 20 00 20 00 20 00 20 00 20 00 20 00 . . . . . . . . [0030] 20 00 20 00 20 00 20 00 20 00 20 00 20 00 20 00 . . . . . . . . [0040] 20 00 20 00 20 00 20 00 20 00 20 00 20 00 20 00 . . . . . . . . [0050] 20 00 20 00 20 00 20 00 20 00 20 00 20 00 20 00 . . . . . . . . [0060] 20 00 20 00 20 00 20 00 20 00 20 00 50 00 30 . . . . . .P.0 I've also got cases (where I created an account with UF_NORMAL_ACCOUNT|UF_ACCOUNTDISABLE|UF_SMARTCARD_REQUIRED in the LDAP add) with the following strange blobs: One time: [0000] 00 00 00 00 00 00 00 00 00 00 00 00 00 and once: [0000] 00 00 00 00 00 00 00 00 00 00 00 00 53 BUG: https://bugzilla.samba.org/show_bug.cgi?id=11441 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Günther Deschner <gd@samba.org>
* drsblobs.idl: mark supplementalCredentialsSubBlob as nopull,nopushStefan Metzmacher2016-07-202-3/+50
| | | | | | | | | | This commit moves the autogenerated ndr_{pull,push}_supplementalCredentialsSubBlob() function to the handwritten librpc/ndr/ndr_drsblobs.c BUG: https://bugzilla.samba.org/show_bug.cgi?id=11441 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Günther Deschner <gd@samba.org>
* smbd: Re-register notify requestsVolker Lendecke2016-07-201-0/+1
| | | | | | | | When notifyd is restarted, the parent will broadcast that fact to all workers. They will then re-register their notify requests. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* drsuapi.idl: add DRSUAPI_ATTID_operatorCount and DRSUAPI_ATTID_adminCountStefan Metzmacher2016-07-091-0/+2
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>