summaryrefslogtreecommitdiffstats
path: root/librpc
Commit message (Collapse)AuthorAgeFilesLines
* librpc: put NDR_NTPRINTING into ndr-samba grouping libraryAndrew Bartlett2011-09-081-1/+1
| | | | | | This assists with avoiding duplicate symobls now that ntprinting_migrate is a library. Andrew Bartlett
* libndr: add checking to all pull/push functions of base typesAndrew Tridgell2011-09-081-0/+34
| | | | | | this checks that the passed in ndr_flags are valid Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* libndr: moved the NDR_* flags to have less overlapAndrew Tridgell2011-09-081-8/+36
| | | | | | | | | | | | | | | | | | | | We have 3 different types of flags values in our NDR layer. We've recently found bugs where these types of flags have been mixed up, especially by people adding hand written ndr code for tricky structures. We previously got away with this because (for example) NDR_SCALARS and NDR_IN had the same value, so mixing up the two concepts sometimes worked. Unfortunately it also led to bugs where we didn't do what was expected, such as in our smbtorture ndr test suite, where passing a ndr_flags value of zero led to only checking that two empty structures were equal. This changes the values of the NDR_IN|NDR_OUT and NDR_SCALARS|NDR_BUFFERS values to be in different bit ranges, and adds macros for checking the validity of passed in flags. A followup patch modifies the ndr calls to use these macros, and pidl to generate them. This should catch misuse of the APIs. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* ndr: range check on push of dom_sid blobAndrew Tridgell2011-09-051-1/+4
| | | | | | | this ensures we get an error if we try to push a dom_sid with too many sub_auths Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* drsblobs: fixed alignment of drs blobs authentication informationAndrew Tridgell2011-09-051-5/+5
| | | | | | | the two types of ndr flags were being mixed up, so NDR_BUFFERS was being interpreted as LIBNDR_FLAG_NOALIGN Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* security.idl add new well-known SIDsChristian Ambach2011-08-311-0/+8
| | | | | http://support.microsoft.com/kb/243330/en-us lists some new well-known SIDS in the BUILTIN domain
* dcerpc-binding: Install header file.Jelmer Vernooij2011-08-211-0/+1
|
* wafsamba: Require public libraries to have a pc file specified, or ↵Jelmer Vernooij2011-08-211-3/+4
| | | | explicitly specified that they don't need one.
* ndr_drsuapi: fix compiler warningStefan Metzmacher2011-08-091-2/+3
| | | | metze
* build: rename rpcommon to dcerpc-binding an make a public libraryAndrew Bartlett2011-08-081-39/+39
| | | | | | OpenChange needs this library. Andrew Bartlett
* build: provide tevent-util as a public libraryAndrew Bartlett2011-08-081-1/+1
| | | | | | | This is needed so that OpenChange can get at _tevent_req_nterr(), which is referenced by generated PIDL output. Andrew Bartlett
* idl: We don't need a context for FRSRPC_COMM_PKT_CHUNK_CO_EXTENTION_2 and ↵Matthieu Patou2011-08-061-2/+2
| | | | | | | avoid colision on bop attribute Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Sat Aug 6 00:50:47 CEST 2011 on sn-devel-104
* eventlog6.idl: fix definition of eventlog6_StringArrayStefan Metzmacher2011-08-011-1/+1
| | | | | | This is an array of string, not an array of characters. metze
* nbt: Add comment explaining that these responses are manually encodedAndrew Bartlett2011-07-291-1/+5
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* nbt: fix WinXP S3 domain join: alignment of nbt_netlogon_response_from_pdcAndrew Bartlett2011-07-281-1/+1
| | | | | | | | | | | | This fixes WinXP joining a Samba3 domain, which was broken on hosts with an even number of characters in the host name. The alignment requested in the structure was ignored because of the overall NDR_NOALIGN set on the packet. Andrew Bartlett Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Jul 28 00:30:26 CEST 2011 on sn-devel-104
* security.idl: Use gid_t for gid in security_unix_tokenAndrew Bartlett2011-07-201-1/+1
|
* s3-auth Remove seperate guest booleanAndrew Bartlett2011-07-201-1/+0
| | | | | | | | | | Instead, we base our guest calculations on the presence or absense of the authenticated users group in the token, ensuring that we have only one canonical source of this important piece of authorization data Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* auth: remove now unused auth3_session_info from auth.idlAndrew Bartlett2011-07-201-11/+1
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-auth use auth_user_info not netr_SamInfo3 in auth3_session_infoAndrew Bartlett2011-07-201-2/+2
| | | | | | | | | | | | This makes auth3_session_info identical to auth_session_info The logic to convert the info3 to a struct auth_user_info is essentially moved up the stack from the named pipe proxy in source3/rpc_server to create_local_token(). Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* auth: use char * pointers in auth.idlAndrew Bartlett2011-07-201-10/+10
| | | | | | | | | We need to use this, and not utf8string because we need to transport NULL pointers correctly. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-auth import auth3_session_info into IDLAndrew Bartlett2011-07-201-1/+23
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* auth: Put 'guest' and 'system' booleans into auth_user_info_unixAndrew Bartlett2011-07-201-0/+6
| | | | | | | | | This will allow a transformation of auth3_session_info into auth_session_info by substitution. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* lsa: lsa_CreateTrustedDomainEx takes lsa_TrustDomainInfoAuthInfo, notGünther Deschner2011-07-151-1/+1
| | | | | | lsa_TrustDomainInfoAuthInfoInternal. Guenther
* lsa: rename auth info argument in lsa_CreateTrustedDomainEx2Günther Deschner2011-07-151-1/+1
| | | | Guenther
* librpc/ndr remove _SAMBA_BUILD_ conditionalsAndrew Bartlett2011-07-063-8/+0
|
* build: Add missing dep on UTIL_TEVENTAndrew Bartlett2011-07-051-1/+1
|
* krb5pac.idl: add PAC_CONSTRAINED_DELEGATION (S4U_DELEGATION_INFO)Stefan Metzmacher2011-06-281-1/+13
| | | | metze
* lib/util/charset: Remove 'display charset'Andrew Bartlett2011-06-231-1/+0
| | | | | | | | | | | | | | | | | As discussed in 'CH_DISPLAY and gettext' on the samba-technical list: http://lists.samba.org/archive/samba-technical/2011-June/078190.html Setting this to a value other than 'unix charset' does not make sense, as any system where the filesytem charset does not equal the terminal charset will already have problems with programs as simple as 'ls'. It also means that our output could not be pasted as our input in interactive programs or onto our command line, as we never did translate in the DISPLAY -> UNIX direction. The d_printf() calls are retained in case we need to revisit this, and to support display_set_stderr(). Andrew Bartlett
* libcli/util Rename common map_nt_error_from_unix to avoid duplicate symbolAndrew Bartlett2011-06-202-3/+3
| | | | | | | | | | | | The two error tables need to be combined, but for now seperate the names. (As the common parts of the tree now use the _common function, errmap_unix.c must be included in the s3 autoconf build). Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Mon Jun 20 08:12:03 CEST 2011 on sn-devel-104
* librpc: fix buildwarning in NDR_WMI.Günther Deschner2011-06-152-0/+25
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Jun 15 17:23:49 CEST 2011 on sn-devel-104
* librpc/ndr/ndr_table.h: fix licence/copyrightGünther Deschner2011-06-101-0/+22
| | | | Guenther
* librpc/ndr/ndr_spoolss_buf.h: fix licence/copyrightGünther Deschner2011-06-101-0/+23
| | | | Guenther
* librpc/ndr/ndr_dns.h: fix licence/copyrightGünther Deschner2011-06-101-0/+25
| | | | Guenther
* librpc/ndr/ndr_compression.h: fix licence/copyrightGünther Deschner2011-06-101-0/+22
| | | | Guenther
* librpc/ndr/ndr_backupkey.h: fix licence/copyrightGünther Deschner2011-06-101-0/+21
| | | | Guenther
* server_id.idl: change unique_id to hyperStefan Metzmacher2011-06-091-1/+1
| | | | | | This makes it consistent to pid. metze
* 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>