summaryrefslogtreecommitdiffstats
path: root/librpc
Commit message (Collapse)AuthorAgeFilesLines
...
* lib/util Bring procid_str() into lib/util as server_id_string()Andrew Bartlett2011-06-091-0/+7
| | | | | | | This is needed for OpenChange, which prints Samba struct server_id values in debug messages. Andrew Bartlett
* librpc/idr Use the Samba3 notify.idl in common.Andrew Bartlett2011-06-093-1/+92
| | | | | | | | | The extra fields in the structure that Samba4 does not use should not bother it. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* server_id.idl: Bring server_id.idl in commonAndrew Bartlett2011-06-093-1/+34
| | | | | | Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* Fix type mixing warnings.Jeremy Allison2011-06-011-2/+2
|
* librpc/ndr: Use converted_size to determine if NULL termination was sentAndrew Bartlett2011-06-011-4/+10
| | | | | | | | | | This is better than doing a strlen() on the string, as that huristic only worked for ASCII strings. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Wed Jun 1 01:42:22 CEST 2011 on sn-devel-104
* librpc/ndr: add new LIBNDR_FLAG_STR_RAW8 for ndr_pull_stringSean Finney2011-06-013-8/+45
| | | | | | | | | | | | | | | | | | | | Introduce a new flag, LIBNDR_FLAG_STR_RAW8, which indicates that libndr should not attempt to convert the corresponding byte sequence, and place the responsibility on the caller to do so later. This is needed in cases where the string is known to be 8-bit and either NULL terminated or of known length, but in an unspecified character set. For example, when pulling PT_STRING8 properties from an exchange server via libmapi + libndr, the codepage is neither known nor in the control of the caller, and is determined by subsequent properties requested from the server. Therefore the client would like to fetch all properties in one large batch, and convert the resulting strings locally. This commit also includes some (basic) tests of each of the flags' respective behaviors with the ndr push/pull string functions, in a new source4 torture test suite ndr.ndr_string. Signed-off-by: Sean Finney <seanius@seanius.net>
* librpc/ndr: consolidate string conversion logic in ndr_pull_stringSean Finney2011-06-011-171/+44
| | | | | | | | | | | | | Reduce the amount of duplicate code in ndr_pull_string by moving the almost duplicate conversion calls and their corresponding NDR pulls and checks to a single location. In the place of the removed calls is logic allowing the conversion to be generalized, and and any specific pulls/checks that do not apply to the general case. This is similar to what has already been done in the switch statement for ndr_push_string. Signed-off-by: Sean Finney <seanius@seanius.net>
* librpc/ndr Merge ndr_print_sockaddr_storage() into common codeAndrew Bartlett2011-05-183-1/+35
| | | | | | | There is no longer a reason to leave this source3 specific, and this brings it into a library (avoiding duplicate symbols). Andrew Bartlett
* build: Expand dcerpc-samba grouping libraryAndrew Bartlett2011-05-181-42/+45
| | | | | | | This is possible in common now because the generated RPC code does not rely on a particular dcerpc layer. Andrew Bartlett
* s4-dfs: fix bugs in idl and adapt code accordinglyMatthieu Patou2011-05-171-15/+2
|
* s3-printing: Get the location info from cups.Günther Deschner2011-05-161-0/+1
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-rap: add rap_NetRemoteTOD to IDL.Günther Deschner2011-05-161-0/+22
| | | | Guenther
* build: Move NDR_DSSETUP and NDR_SPOOLSS into ndr-standardAndrew Bartlett2011-05-131-1/+1
| | | | | | | This is to address multiple defintion of symbol issues in msrpc3 linked libraries. Andrew Bartlett
* s3: Add wbint_LookupSidsVolker Lendecke2011-04-131-3/+3
| | | | | | This will be called from wb_lookupsids to query remote DCs via lsa Signed-off-by: Jeremy Allison <jra@samba.org>
* lsa: use lsa_TrustedAccessMask in some more places in the lsa IDL.Günther Deschner2011-04-071-3/+3
| | | | Guenther
* lib: make asn1_util a private libraryAndrew Tridgell2011-04-061-1/+1
| | | | | | | this prevents symbol duplication of the asn1 symbols in the service and ntvfs subsystems Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* auth: Move auth_session_info into IDLAndrew Bartlett2011-04-054-2/+94
| | | | | | | | | | This changes auth_session_info_transport to just be a wrapper, rather than a copy that has to be kept in sync. As auth_session_info was already wrapped in python, this required changes to the existing pyauth wrapper and it's users. Andrew Bartlett
* librpc/idl Add [nopython] to krb5pac ndrdump functionsAndrew Bartlett2011-04-051-5/+5
| | | | | | | These functions are not real RPC functions, but are used to help ndrdump operate. They don't need python bindings. Andrew Bartlett
* Fix convert_string() to take a *converted_size arg. and return a bool.Jeremy Allison2011-03-301-6/+6
| | | | | | | | Makes these interfaces much harder to misuse and easier to ensure error checking. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Mar 30 23:59:37 CEST 2011 on sn-devel-104
* This doesn't look like it has anything to do with character set conversion, ↵Jeremy Allison2011-03-301-7/+10
| | | | | | | | | | | | | | | | | | | but it does :-). Turns out one of the *really* significant differences between convert_string() in source4 and source3, is that the one in source3 will return 0 for byte length converted when called with dest_len = 0 whereas the one in source4 returns (size_t)-1 and sets errno to E2BIG. Allow the ndr_string code to cope with the (arguably correct) way that the source4 implementation works. This code only gets excercised in the print spooler tests, which aren't run in source4, which is why this bug has lasted for so long. You don't want to know how long it took me to find this :-). Jeremy.
* Ensure convert_string_XXX is always called with a valid converted_size pointer.Jeremy Allison2011-03-291-1/+2
| | | | | | | Preparation for cleaning up this API. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue Mar 29 21:01:49 CEST 2011 on sn-devel-104
* librpc: Add some error checking to dcerpc_floor_pack_rhs_if_version_dataVolker Lendecke2011-03-271-1/+5
|
* librpc: Fix Coverity ID 2198: NULL_RETURNSVolker Lendecke2011-03-271-3/+14
|
* librpc: Return an error if we a broken floor.Andreas Schneider2011-03-241-4/+9
| | | | Pair-Programmed-With: Simo Sorce <idra@samba.org>
* cleanup: fix some trailing spacesSimo Sorce2011-03-241-4/+4
|
* librpc: Added a dcerpc_binding_dup() function.Andreas Schneider2011-03-242-0/+82
|
* charcnv: removed the allow_badcharcnv and allow_bad_conv options to ↵Andrew Tridgell2011-03-242-11/+11
| | | | | | | | | convert_string*() we shouldn't accept bad multi-byte strings, it just hides problems Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Mar 24 01:47:26 CET 2011 on sn-devel-104
* librpc: bring more librpc prototypes in common.Günther Deschner2011-03-231-0/+12
| | | | Guenther
* ndrdump - make "in_pipes" and "out_pipes" constMatthias Dieter Wallnöfer2011-03-231-2/+2
| | | | In order to suppress a build warning.
* idmap.idl: Fix whitespaceVolker Lendecke2011-03-211-1/+1
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon Mar 21 13:36:48 CET 2011 on sn-devel-104
* rap: add rap_NetSessionGetInfo to IDL.Günther Deschner2011-03-181-0/+11
| | | | Guenther
* rap: add rap_NetUserDelete IDL.Günther Deschner2011-03-181-0/+7
| | | | Guenther
* rap: add rap_NetUserAdd IDL.Günther Deschner2011-03-181-0/+11
| | | | Guenther
* idl: define printcap IPC message formatDavid Disseldorp2011-03-163-1/+24
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* rpc: make ndr/ndr_svcctl.h publicAndrew Tridgell2011-03-151-2/+2
| | | | this is used by public header gen_ndr/ndr_svcctl.h
* librpc/rpc: move DCERPC_ flags to rpc_common.hStefan Metzmacher2011-03-131-0/+54
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Sun Mar 13 20:45:53 CET 2011 on sn-devel-104
* librpc/rpc: add dcerpc_binding_handle_raw_call()Stefan Metzmacher2011-03-132-0/+70
| | | | metze
* librpc/rpc: move struct dcerpc_binding to rpc_common.hStefan Metzmacher2011-03-131-0/+14
| | | | metze
* librpc/rpc: move enum dcerpc_transport_t to rpc_common.hStefan Metzmacher2011-03-131-0/+6
| | | | metze
* librpc/rpc: move dcerpc_binding_handle stuff to rpc_common.hStefan Metzmacher2011-03-111-2/+101
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Mar 11 12:28:08 CET 2011 on sn-devel-104
* frstrans.idl: add idl for RawGetFileDataAsync() and RdcGetFileDataAsync()Stefan Metzmacher2011-03-101-2/+10
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Mar 10 15:18:22 CET 2011 on sn-devel-104
* librpc/tools/ndrdump: add support for dcerpc 'pipe' elements in functionsStefan Metzmacher2011-03-101-5/+73
| | | | metze
* librpc/ndr: add ndr_push_pipe_chunk_trailer() and ndr_check_pipe_chunk_trailer()Stefan Metzmacher2011-03-102-0/+36
| | | | metze
* librpc/ndr: add ndr_interface_call_pipeStefan Metzmacher2011-03-101-0/+16
| | | | metze
* librpc/ndr use hyper for uid_t/gid_t rather than udlongAndrew Bartlett2011-03-091-4/+4
| | | | | | | | | | This has 8 byte alignment, which is what was specified in pidl for these types. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Wed Mar 9 09:03:09 CET 2011 on sn-devel-104
* s3-rpc_client: Added DCERPC_AUTH_TYPE_NCALRPC bind.Andreas Schneider2011-03-081-1/+2
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* librpc/idl: remove unused string defines from idl_types.hStefan Metzmacher2011-03-021-23/+0
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Mar 2 14:09:44 CET 2011 on sn-devel-104
* librpc/rpc: let ndr_pull_spoolss_EnumPrinterDataEx() use a subcontextStefan Metzmacher2011-03-021-1/+4
| | | | | | | | | This is not strictly needed, but it's good to have the logic in common with the other Enum* calls. This also allows us to play with the NDR_RELATIVE_REVERSE flag. metze
* rap: add rap_NetSessionEnum to IDL.Günther Deschner2011-03-021-0/+30
| | | | Guenther
* librpc/ndr: handle NOALIGN flag for relative pointers and alignment DATA_BLOBsStefan Metzmacher2011-03-012-5/+14
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Mar 1 17:11:03 CET 2011 on sn-devel-104