1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
Commit Graph

679 Commits

Author SHA1 Message Date
Andrew Bartlett
42e40140ae security.idl: Use gid_t for gid in security_unix_token 2011-07-20 09:17:14 +10:00
Andrew Bartlett
6622821063 s3-auth Remove seperate guest boolean
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>
2011-07-20 09:17:14 +10:00
Andrew Bartlett
af47f7cd22 auth: remove now unused auth3_session_info from auth.idl
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-20 09:17:14 +10:00
Andrew Bartlett
128ae06a61 s3-auth use auth_user_info not netr_SamInfo3 in auth3_session_info
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>
2011-07-20 09:17:13 +10:00
Andrew Bartlett
92f28e7fe9 auth: use char * pointers in auth.idl
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>
2011-07-20 09:17:13 +10:00
Andrew Bartlett
7b273df175 s3-auth import auth3_session_info into IDL
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-20 09:17:12 +10:00
Andrew Bartlett
bf1dba03b2 auth: Put 'guest' and 'system' booleans into auth_user_info_unix
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>
2011-07-20 09:17:11 +10:00
Günther Deschner
ee1f25dc2a lsa: lsa_CreateTrustedDomainEx takes lsa_TrustDomainInfoAuthInfo, not
lsa_TrustDomainInfoAuthInfoInternal.

Guenther
2011-07-15 17:56:39 +02:00
Günther Deschner
3af3e4843f lsa: rename auth info argument in lsa_CreateTrustedDomainEx2
Guenther
2011-07-15 17:55:20 +02:00
Stefan Metzmacher
1909060798 krb5pac.idl: add PAC_CONSTRAINED_DELEGATION (S4U_DELEGATION_INFO)
metze
2011-06-28 19:03:10 +02:00
Stefan Metzmacher
b36e5ae838 server_id.idl: change unique_id to hyper
This makes it consistent to pid.

metze
2011-06-09 14:46:22 +02:00
Andrew Bartlett
16b1c77644 lib/util Bring procid_str() into lib/util as server_id_string()
This is needed for OpenChange, which prints Samba struct server_id
values in debug messages.

Andrew Bartlett
2011-06-09 12:40:09 +02:00
Andrew Bartlett
a772797a38 librpc/idr Use the Samba3 notify.idl in common.
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>
2011-06-09 12:40:08 +02:00
Andrew Bartlett
d057116cc2 server_id.idl: Bring server_id.idl in common
Andrew Bartlett

Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-06-09 12:40:08 +02:00
Sean Finney
08abd1f5e8 librpc/ndr: add new LIBNDR_FLAG_STR_RAW8 for ndr_pull_string
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>
2011-06-01 00:30:40 +02:00
Matthieu Patou
3478e3add3 s4-dfs: fix bugs in idl and adapt code accordingly 2011-05-17 00:31:09 +02:00
Günther Deschner
854467851d s3-printing: Get the location info from cups.
Signed-off-by: Günther Deschner <gd@samba.org>
2011-05-16 12:54:33 +02:00
Günther Deschner
b82caab5c9 s3-rap: add rap_NetRemoteTOD to IDL.
Guenther
2011-05-16 11:43:25 +02:00
Volker Lendecke
091fd0f0f7 s3: Add wbint_LookupSids
This will be called from wb_lookupsids to query remote DCs via lsa

Signed-off-by: Jeremy Allison <jra@samba.org>
2011-04-13 14:13:24 -07:00
Günther Deschner
26d67846d4 lsa: use lsa_TrustedAccessMask in some more places in the lsa IDL.
Guenther
2011-04-07 14:08:44 +02:00
Andrew Bartlett
663dc94e63 auth: Move auth_session_info into IDL
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
2011-04-05 23:46:04 +02:00
Andrew Bartlett
917b0a23a6 librpc/idl Add [nopython] to krb5pac ndrdump functions
These functions are not real RPC functions, but are used to help
ndrdump operate.  They don't need python bindings.

Andrew Bartlett
2011-04-05 23:46:04 +02:00
Volker Lendecke
60280babeb idmap.idl: Fix whitespace
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Mar 21 13:36:48 CET 2011 on sn-devel-104
2011-03-21 13:36:48 +01:00
Günther Deschner
f87a072b95 rap: add rap_NetSessionGetInfo to IDL.
Guenther
2011-03-18 01:24:07 +01:00
Günther Deschner
9b1f2df3b1 rap: add rap_NetUserDelete IDL.
Guenther
2011-03-18 01:24:07 +01:00
Günther Deschner
dd5460c2e5 rap: add rap_NetUserAdd IDL.
Guenther
2011-03-18 01:24:06 +01:00
David Disseldorp
9ea6027419 idl: define printcap IPC message format
Signed-off-by: Andreas Schneider <asn@samba.org>
2011-03-16 15:52:21 +01:00
Stefan Metzmacher
969c7bd77b frstrans.idl: add idl for RawGetFileDataAsync() and RdcGetFileDataAsync()
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Mar 10 15:18:22 CET 2011 on sn-devel-104
2011-03-10 15:18:22 +01:00
Andreas Schneider
d343409d6b s3-rpc_client: Added DCERPC_AUTH_TYPE_NCALRPC bind.
Signed-off-by: Günther Deschner <gd@samba.org>
2011-03-08 11:41:29 +01:00
Stefan Metzmacher
7101f5a8f2 librpc/idl: remove unused string defines from idl_types.h
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Mar  2 14:09:44 CET 2011 on sn-devel-104
2011-03-02 14:09:44 +01:00
Günther Deschner
8df12d4052 rap: add rap_NetSessionEnum to IDL.
Guenther
2011-03-02 12:12:31 +01:00
Andrew Bartlett
2a5ac56742 librpc/idl Add helper structures for use by samba3 in auth_session_info
The unix info and in particular unix token needs to be preserved into
the struct auth_session_info.

Andrew Bartlett
2011-03-01 06:29:03 +01:00
Stefan Metzmacher
db11e6505e spoolss.idl: align spoolss_DriverFileInfo relative pointer to 4 byte
metze

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Mar  1 02:12:37 CET 2011 on sn-devel-104
2011-03-01 02:12:37 +01:00
Stefan Metzmacher
341330600a spoolss.idl: align spoolss_PrinterEnumValues 'data' based on the type
metze
2011-02-28 15:54:13 -08:00
Stefan Metzmacher
712ef2590d TODO test/review librpc: align nstring and nstring_array to 2 byte
metze
2011-02-28 15:54:13 -08:00
Andrew Tridgell
5debcb1027 idl: naming a structure 'VERSION' is not a good idea!
this renames it to ntlmssp_VERSION

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-17 00:55:23 +01:00
Matthieu Patou
f8a156dbe6 librpc: add bindings for dnsp in python 2011-02-13 01:23:05 +03:00
Günther Deschner
ad0a3185ce librpc: move preg.idl to main directory.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Feb 10 13:56:49 CET 2011 on sn-devel-104
2011-02-10 13:56:49 +01:00
Andrew Bartlett
d66150c14d libcli/named_pipe_auth Change from 'info3' to auth_session_info_transport
This changes the structure being used to convey the current user state
from the netlogon-derived 'netr_SamInfo3' structure to a purpose-built
structure that matches the internals of the Samba auth subsystem and
contains the final group list, as well as the final privilege set and
session key.

These previously had to be re-created on the server side of the pipe
each time.

Andrew Bartlett

Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-02-10 06:51:06 +01:00
Andrew Bartlett
248c821780 auth.idl fix size_is() reference in IDL
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-02-10 06:51:06 +01:00
Andrew Bartlett
543ef3b5bf libcli/named_pipe_auth Remove support for unused levels 0-2.
The only client and server for this code uses level 3 exclusively.

Andrew Bartlett

Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-02-10 06:51:06 +01:00
Andrew Bartlett
f1c0e9532d s4-auth Add auth.idl to encode auth subsystem structures in IDL
This is not only a useful way to encode stuff, it also allows python
to handle the structures, and natrually allows them to be NDR encoded.

Andrew Bartlett
2011-02-09 01:11:06 +01:00
Günther Deschner
885887ac1b s3-waf: no need to call pidl with --samba3-ndr-client anymore.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Feb  2 21:38:23 CET 2011 on sn-devel-104
2011-02-02 21:38:23 +01:00
Stefan Metzmacher
d63e7506f0 netlogon.idl: remove pointless union arms of netr_DELTA_UNION
These were just padding, which was needed as we didn't have
'ms_union' support.

metze
2011-02-02 11:58:26 +01:00
Stefan Metzmacher
46348c34b7 netlogon.idl: use 'ms_union' as specified in [MS-NRPC]
metze
2011-02-02 11:58:26 +01:00
Stefan Metzmacher
64ea7bd2c4 netlogon.idl: add missing [default]; union arms
metze
2011-02-02 11:58:26 +01:00
Günther Deschner
1537f5dab1 s4-smbtorture: add samr_changepassworduser3 ndr torture tests.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Jan 31 16:07:14 CET 2011 on sn-devel-104
2011-01-31 16:07:14 +01:00
Stefan Metzmacher
8d07deaeaa dcerpc.idl: add DCERPC_FAULT_SEC_PKG_ERROR
metze
2011-01-30 17:36:24 +01:00
Günther Deschner
6957109e8d s4-smbtorture: add NDR tests for netr_LogonSamLogon.
Guenther
2011-01-28 15:37:10 +01:00
Andreas Schneider
eacc9d659a idl: Added missing endpoint mapper defines.
[MS-RPCE] 2.2.1.2.4 ept_lookup Method
2011-01-27 14:41:40 +01:00