1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
Commit Graph

2658 Commits

Author SHA1 Message Date
Andrew Tridgell
eb8800e611 s4-rpc: paranoid check for auth_length
This is not strictly needed as the ndr_pull_advance() checks it a few
lines further down, but I want to save Jeremy getting more grey hairs :-)
2010-02-17 10:54:05 +11:00
Andrew Tridgell
e3a272c3f2 s4-rpc: don't use auth padding in rpc bind requests as it breaks s3
The s3 RPC server returns a bind_nak if it gets a rpc bind with auth
padding. This change forces a padding length of zero to maximimise
compatibility with s3 servers. 

I've left the padding code in as a #if 0 to make it easier for us to
test/fix the s3 server code, which should be changed to correctly
handle arbitrary auth padding in all rpc requests with auth trailers.
2010-02-16 22:42:59 +11:00
Andrew Tridgell
1e13d3fb07 s4-dcerpc: fixed auth padding to be relative to the stub, not packet
The recent dcerpc padding changes made our padding relative to the
packet header, instead of the start of the stub. Surprisingly, this
broke w2k8r2 doing a dcpromo join to a s4 server. It seems that w2k8r2
is very fussy about the padding it gets in some circumstances.
2010-02-16 21:10:52 +11:00
Andrew Tridgell
259129e8f4 a4-dcerpc: another attempt at dcerpc auth padding
The last change broke net vampire against w2k8r2
2010-02-14 18:44:21 +11:00
Andrew Tridgell
da86f08605 s4-rpc: be more careful about DCERPC auth padding
Cope with a wider range of auth padding in dcerpc bind_ack and
alter_context packets. We now use a helper function that calculates
the right auth padding.
2010-02-13 23:12:29 +11:00
Kai Blin
ea055e8c79 s4: Switch to S3-style id mapping data types. 2010-02-11 23:56:35 +01:00
Matthias Dieter Wallnöfer
e34637b2a6 s4:Remove "Py_RETURN_NONE" compatibility code
This was needed only by Python 2.3 which we no longer support.
2010-02-09 17:53:09 +01:00
Matt Kraai
d8071e7ed7 Change uint_t to unsigned int in source4
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-02-02 07:18:18 +01:00
Stefan Metzmacher
137fd79f44 s4:winsrepl.idl: add random interface uuid
This is needed to include the wrepl interface into
ndrdump.

metze
2010-01-26 15:23:24 +01:00
Jelmer Vernooij
253a232d30 pyxattr: Fix memory leaks. 2010-01-21 16:44:12 +13:00
Jelmer Vernooij
7092e220b5 pyxattr: Fix return value, raise exception, fix memory leak. 2010-01-21 16:29:15 +13:00
Matthieu Patou
1a143b8a59 s4: allow python code to dump NTACL object as well 2010-01-21 07:11:18 +13:00
Matthieu Patou
c80ecd9964 s4: add python bindings for wrap_(s|g)etxattr 2010-01-21 07:11:13 +13:00
Jelmer Vernooij
ea5af6e30c pyldb: Add dom_sid.split in favor of less powerful dom_sid_to_rid().
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-12-31 17:33:30 +11:00
Matthieu Patou
155bdea7b2 torture: add new tests for dfsblobs
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-12-14 10:58:32 +01:00
Matthias Dieter Wallnöfer
e60388cf6d s4:dcerpc - fix DEBUG output warning 2009-11-06 22:04:59 +01:00
Stefan (metze) Metzmacher
25f96a4058 Add in Metze's new code to ndr encode the user.DOSATTRIB
blobs. Next I'll change the create timestamp and dos attribute
code to use this.
2009-10-28 15:42:47 -07:00
Andrew Tridgell
3050f83288 s4-python: we need to include Python.h first
If we don't include Python.h first then we get a pile of warnings due
to broken redefines of XOPEN_SOURCE in the Python includes.
2009-10-23 16:23:01 +11:00
Andrew Tridgell
08a0096ab6 s4-idl: don't call a variable 'stat'
never call a structure member by the name of a standard C lib call. It
breaks the build on some systems.
2009-10-20 12:13:15 +11:00
Karolin Seeger
fa08d0b44b Fix typo.
privilage -> privilege

Karolin
2009-10-19 09:47:33 +02:00
Andrew Tridgell
3c028ff88b s4-smb: declare root_fid as a file handle
In order to implement root_fid in the s4 SMB server we need to declare
it as a handle type, just as for other fnum values in SMB. This
required some extensive (but simple) changes in many bits of code.
2009-10-15 20:03:00 +11:00
Matthias Dieter Wallnöfer
44df2488e3 s4: fix various warnings (not "const" related ones) 2009-10-02 15:33:48 +02:00
Jelmer Vernooij
c526a77896 librpc: Fix path to ndr_standard pc file. 2009-09-27 16:43:01 +02:00
Jelmer Vernooij
c5615211d4 provision: Avoid linking in multiple copies of security python module. 2009-09-23 15:24:10 +02:00
Andrew Bartlett
9d9bd31bf9 s4:py_security Add missing header 2009-09-20 20:32:47 -07:00
Andrew Bartlett
bfddb6816f s4:provision Use code to store domain join in 'net join' as well
This ensures we only have one codepath to store the secret, and
therefore that we have a single choke point for setting the
saltPrincipal, which we were previously skipping.

Andrew Bartlett
2009-09-20 16:29:38 -07:00
Andrew Tridgell
92786aebf1 s4-resolve: fixed a crash bug on timeout
We were creating the name resolution context as a child of lp_ctx,
which meant when we gave up on a connection the timer on name
resolution kept running, and when it timed out the callback crashed as
the socket was already removed.
2009-09-19 08:23:03 -07:00
Andrew Tridgell
e9a589feac s4-server: kill main daemon if a task fails to initialise
When one of our core tasks fails to initialise it can now ask for the
server as a whole to die, rather than limping along in a degraded
state.
2009-09-18 18:05:55 -07:00
Matthieu Patou
aadf5e3910 pyldb: Don't segfault when invalid type is specified to as_sddl and from_sddl.
Fix bug #6723
2009-09-17 19:36:32 +02:00
Andrew Tridgell
f93d716516 s4-rpc: added NDR64 support
This adds support for the nd464 binding string option
2009-09-17 21:52:24 -07:00
Günther Deschner
2b16380a0e ntlmssp: add some void decode calls (useful for ndrdump).
Guenther
2009-09-08 22:27:41 +02:00
Günther Deschner
4fd9a9d6de schannel: add NL_AUTH_MESSAGE and both NL_AUTH_SIGNATURE structs.
These actually belong netlogon but we for now want to keep netlogon as a security
providor separate.

Guenther
2009-09-08 14:55:10 +02:00
Günther Deschner
aabe577396 schannel: move schannel.idl to main directory.
Guenther
2009-08-26 15:43:05 +02:00
Andrew Bartlett
497234c1cb s4:ntp_signd Fix bug 6656 - Set protocol version to 0, as used by ntpd
The change to protocol version 1 was not intentional, and broke the
protocol established with the ntp.org project.

Andrew Bartlett
2009-08-22 11:14:22 +10:00
Stefan Metzmacher
87737f8946 s4:librpc/rpc: fix DEBUG() message
metze
2009-08-18 11:58:18 +02:00
Andrew Tridgell
ed051ce424 try to give some hint as to what is causing NDR string errors 2009-08-12 15:34:03 +10:00
Andrew Tridgell
e2d4ae1510 fixed several places that unnecessarily take a reference to the event context
These references were triggering the ambiguous talloc_free errors from
the recent talloc changes when the server is run using the 'standard'
process model instead of the 'single' process model. I am aiming to
move the build farm to use the 'standard' process model soon, as part
of an effort to make our test environment better match the real
deployment of Samba4.

The references are not needed as the way that the event context is
used is as the 'top parent', so when the event context is freed then
all of the structures that were taking a reference to the event
context were actually freed as well, thus making the references
redundent.
2009-08-07 17:24:48 +10:00
Stefan Metzmacher
258250f1ac winsif.idl: add definition of winsif_WinsDoScanvengingNew()
metze
2009-07-31 14:38:43 +02:00
Stefan Metzmacher
8ad17b4501 winsif.idl: add definition of winsif_WinsStatusWHdl()
metze
2009-07-31 14:38:43 +02:00
Stefan Metzmacher
d3ec23f405 winsif.idl: add definition of winsif_WinsStatusNew()
metze
2009-07-31 14:38:43 +02:00
Stefan Metzmacher
50662d22d8 winsif.idl: add definition of winsif_WinsGetDbRecsByName()
metze
2009-07-31 14:38:42 +02:00
Stefan Metzmacher
e7466831a8 winsif.idl: add definition of winsif_WinsGetBrowserNames()
metze
2009-07-31 14:38:42 +02:00
Stefan Metzmacher
833f253d93 winsif.idl: add definition of winsif_WinsSetFlags()
metze
2009-07-31 14:38:42 +02:00
Stefan Metzmacher
655efd069d winsif.idl: add definition of winsif_WinsDeleteWins()
metze
2009-07-31 14:38:41 +02:00
Stefan Metzmacher
5899bc002a winsif.idl: add definition of winsif_WinsGetBrowserNames_Old()
metze
2009-07-31 14:38:41 +02:00
Stefan Metzmacher
5fd30f8dfb winsif.idl: add definition of winsif_WinsGetNameAndAdd()
metze
2009-07-31 14:38:41 +02:00
Stefan Metzmacher
7bea52ab16 winsif.idl: add definition of winsif_WinsWorkerThreadUpdate()
metze
2009-07-31 14:38:40 +02:00
Stefan Metzmacher
47174d3130 winsif.idl: add definition of winsif_WinsResetCounters()
metze
2009-07-31 14:38:40 +02:00
Stefan Metzmacher
c91be0915e winsif.idl: add definition of winsif_WinsSetPriorityClass()
metze
2009-07-31 14:38:39 +02:00
Stefan Metzmacher
6d0ab082ff winsif.idl: add definition of winsif_WinsPullRange()
metze
2009-07-31 14:38:39 +02:00
Stefan Metzmacher
e29763fd3f winsif.idl: add definition of winsif_WinsDelDbRecs()
metze
2009-07-31 14:38:39 +02:00
Stefan Metzmacher
b540aa4296 winsif.idl: add definition of winsif_WinsBackup()
metze
2009-07-31 14:38:38 +02:00
Stefan Metzmacher
7430582346 winsif.idl: add definition of winsif_WinsTerm()
metze
2009-07-31 14:38:38 +02:00
Stefan Metzmacher
39ec220d49 winsif.idl: add definition of winsif_WinsGetDbRecs()
metze
2009-07-31 14:38:38 +02:00
Stefan Metzmacher
f6084589f9 winsif.idl: add definition of winsif_WinsDoScavenging()
metze
2009-07-31 14:38:37 +02:00
Stefan Metzmacher
15c330af32 winsif.idl: add definition of winsif_WinsDoStaticInit()
metze
2009-07-31 14:38:37 +02:00
Stefan Metzmacher
b62ee9972e winsif.idl: add definition of winsif_WinsTrigger()
metze
2009-07-31 14:38:36 +02:00
Stefan Metzmacher
dbd963fa87 winsif.idl: add definition of winsif_WinsStatus()
metze
2009-07-31 14:38:36 +02:00
Stefan Metzmacher
f6c0ba9869 winsif.idl: add definition of WinsRecordAction()
metze
2009-07-31 14:38:36 +02:00
Stefan Metzmacher
639df54cf5 winsif.idl: add missing function calls
metze
2009-07-31 14:38:35 +02:00
Stefan Metzmacher
d01e8d22fa s4:librpc: rename wins.idl => winsif.idl
metze
2009-07-31 14:38:35 +02:00
Jelmer Vernooij
6768cfe624 DCE/RPC(Python): Rename py_talloc_import to py_talloc_steal.
Use py_talloc_reference in DCE/RPC code, fixes
					access to SAMR pipe.
2009-07-30 20:04:42 +02:00
Stefan Metzmacher
2cc4a43d0e frstrans.idl: add new DFS-R FrsTransport interface with dummy functions
metze
2009-07-22 21:33:10 +02:00
Stefan Metzmacher
424e763695 frsrpc.idl: make the chunk array in frsrpc_CommPktChunkCtr dynamic
We add an extra num_chunks to the frsrpc_CommPktChunkCtr structure
and use hand modified ndr_push/pull functions to let it not appear
on the wire.

metze
2009-07-21 19:11:24 +02:00
Jelmer Vernooij
4447bd96b9 Include ntsvc NDR in libndr-standard. 2009-07-19 17:18:04 +02:00
Jelmer Vernooij
de04e00ec2 Merge more ndr interfaces into libndr-standard. 2009-07-19 15:39:52 +02:00
Jelmer Vernooij
63a6ca084d librpc: Integrate some subsystems now part of libndr-standard and integrate ndr_dfs in libndr-standard. 2009-07-19 13:41:04 +02:00
Jelmer Vernooij
d8ce8f9b61 Create libndr-standard, which includes the NDR marshalling code for
the "standard" set of DCE/RPC interfaces found on Windows.
2009-07-19 12:41:09 +02:00
Andrew Tridgell
386211a81c A rather strange varient of talloc_unlink
A dcerpc request may have a reference from a still completing async
callback, but we now consider the request to be complete. We want to
lose the main parent, leaving just the reference, if any.
2009-07-01 15:15:37 +10:00
Andrew Tridgell
1251032921 py_talloc_import now uses a steal, so this free is incorrect 2009-07-01 15:15:37 +10:00
Andrew Tridgell
9faa0745e9 fixed rpc smb code to not reply on talloc_free being a function pointer
The upcoming talloc_free/talloc_reference changes change talloc_free
to be a macro. These two bits of code relied on it being a function
pointer
2009-07-01 15:15:36 +10:00
Andrew Bartlett
58e8db912d s4:libnet Allow 'net password change' to work on expired passwords
We need to pass down flags to the DCE/RPC layer to allow fallback to
anonymous connections, as we can't log in with an expired password.

The anonymous connection can then change the password with SAMR.

Andrew Bartlett
2009-06-18 13:49:30 +10:00
Andrew Tridgell
bbe758d55b always enable RPC debugging with a debug level >= 100.
This helps with tools where setting the binding string is not
possible, such as net
2009-06-12 12:23:45 +10:00
Jelmer Vernooij
6ace18904d Fix more unresolved symbols. 2009-06-02 18:05:41 +02:00
Jelmer Vernooij
fe2b04b4bb python: Move helper functions for using param into a separate file rather
than linking against the python module.
2009-06-02 18:05:40 +02:00
nadezhda ivanova
90cc5e72ba Fix of a bug in the security.descriptor.as_sddl() method
security.descriptor.as_sddl() method did not work correctly when invoked without
supplying the domain sid. Returned the same value as when the sid was provided.
Test added for this case in  libcli/security/tests/bindings.py

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2009-04-23 18:21:25 +02:00
Stefan Metzmacher
4eb557bf25 Revert "Use an absolute path to ensure that we can always regenerate tables.c"
This reverts commit b57c8ff440.

This actually breaks the merged build...
Doing a merged build and a samba4 build within the same
checkout, without a git clean -x -d -f (this removes everything that's
not checked into git! save files you don't want to delete!) running in the
toplevel directory, is not supported.

metze
2009-04-21 15:37:36 +02:00
Andrew Bartlett
f128bfd449 Add str() for policy_handles.
Pair programmed with Jelmer
2009-04-21 12:06:04 +02:00
Andrew Bartlett
6f60a6e71a python/dcerpc: Custom implementations of policy_handle.__init__ and policy_handle.__repr__
pair-programmed with Jelmer
2009-04-21 11:53:00 +02:00
Andrew Bartlett
1856b999c8 python/rpc: Add custom GUID.__str__, GUID.__repr__, GUID.__init__ and GUID.__cmp__. 2009-04-21 11:14:11 +02:00
Stefan Metzmacher
a98a9c39a2 s4:librpc/rpc: pass async as argument to dcerpc_ndr_request_send()
The caller should decide if async is desired it should be harcoded per call.

metze
2009-04-20 18:15:06 +02:00
Stefan Metzmacher
d0e6803218 s4:librpc/rpc: remove async argument from the sync dcerpc_request() function
metze
2009-04-20 18:15:00 +02:00
Stefan Metzmacher
f3c9d124bb s4:librpc/rpc: only use smb_trans for sync rpc calls
Over named pipes we can only do one smb_trans at a time,
otherwise we're getting NT_STATUS_PIPE_BUSY.
Async rpc calls need to use smb_read/write only.

metze
2009-04-20 18:14:59 +02:00
Stefan Metzmacher
900d569bed s4:librpc/rpc: ask for 0x2000 bytes in the ioctl case to match all othercases
metze
2009-04-20 18:14:58 +02:00
Andrew Bartlett
6c9caed481 Merge commit 'origin/master' into libcli-auth-merge-without-netlogond 2009-04-20 16:53:02 +02:00
Jelmer Vernooij
294359b7bc Make domain sid argument to as_sddl() optional. 2009-04-20 15:10:29 +02:00
Andrew Bartlett
b57c8ff440 Use an absolute path to ensure that we can always regenerate tables.c
I had trouble building Samba3 in a merged build, perhaps because I was
also building Samba4 in that tree.

Andrew Bartlett
2009-04-16 12:06:35 +10:00
Andrew Bartlett
5095d7b1c8 Rework Samba4 to use the new common libcli/auth code
In particular, this is the rename from creds_ to netlogon_creds_, as
well as other links to use the new common crypto.

Andrew Bartlett
2009-04-14 16:23:44 +10:00
Günther Deschner
8d901caf35 move dcerpc.idl to main directory.
Guenther
2009-03-24 11:14:06 +01:00
Jelmer Vernooij
94069bd274 s4: Use same function signature for convert_* as s3. 2009-03-01 19:55:46 +01:00
Jelmer Vernooij
9ffb6d2d9e Add allow_badcharcnv argument to all conversion function, for
consistency with Samba 3.
2009-03-01 06:33:40 +01:00
Stefan Metzmacher
052f3f0d4d s4:librpc/ndr: if uninitialized variable in string_array code
metze
2009-02-19 11:13:35 +01:00
Stefan Metzmacher
ba0042fcdb s4:pyrpc: fix compiler warnings
metze
2009-02-05 17:48:13 +01:00
Stefan Metzmacher
b493bc1aa1 s4:build: remove not commited files under librpc/gen_ndr with make clean
metze
2009-02-05 17:48:10 +01:00
Günther Deschner
b03913cbc6 spoolss: move ndr spoolss helper to main librpc dir.
Guenther
2009-02-05 16:04:36 +01:00
Stefan Metzmacher
8b408f7819 s4:selftest: avoid hardcoded pathes in blackbox tests
metze
2009-02-03 16:31:04 +01:00
Günther Deschner
35f1e02ca4 librpc: add ndr_size_string_array().
Guenther
2009-02-03 15:42:29 +01:00
Stefan Metzmacher
eb012dd212 s4:auth/credentials: the python bindings don't use swig anymore
metze
2009-02-02 15:16:09 +01:00
Stefan Metzmacher
b4af7074b7 s4:py_security: avoid 'this' and use 'py_self' and 'self'
metze
2009-02-02 13:09:18 +01:00
Stefan Metzmacher
0ac7792e02 s4:libcliraw: s/private/private_data
metze
2009-02-02 13:08:51 +01:00
Stefan Metzmacher
74e783bf58 s4:librpc/rpc: s/private/private_data
metze
2009-02-02 13:08:29 +01:00
Jelmer Vernooij
d30b6af953 pyrpc: Raise proper NDR error codes with matching strings rather than mapping
to NTSTATUS first.
2009-01-26 17:31:50 +01:00
Jelmer Vernooij
c9d193eb08 Add prototypes required by samba-gtk. 2009-01-25 05:32:30 +01:00
Jelmer Vernooij
a4afed1e9a Implement as_sddl. 2009-01-22 14:49:51 +01:00
Jelmer Vernooij
fc50f7ecba Support parsing sddl for security descriptors. 2009-01-22 14:37:59 +01:00
Volker Lendecke
f8f878285d Add derpc_transport_string_by_transport(), apply some const 2009-01-09 23:08:16 +01:00
Günther Deschner
f2dd351a1e s4-smbtorture: print hand-decoded service status array in svcctl torture test.
Guenther
2009-01-09 17:08:18 +01:00
Jelmer Vernooij
ba5d6e6d70 Avoid using a utility header for Python replacements included in Samba,
since this will not be shipped with talloc/tdb/tevent/etc.
2009-01-08 12:20:20 +01:00
Tim Prouty
61a23c5eea s3/s4 build: Fix Py_RETURN_NONE to work with python versions < 2.4 2009-01-07 15:03:16 -08:00
Jelmer Vernooij
f4735b7180 Set proper python exception when running out of memory. 2009-01-07 22:40:13 +01:00
Volker Lendecke
1d427dcee0 Add some const to dcerpc_binding_build_tower() 2009-01-06 21:57:01 +01:00
Jelmer Vernooij
63e7c2fef8 Fix prototype. 2009-01-06 21:45:13 +01:00
Jelmer Vernooij
d2c70d24e1 py: Properly increase the reference counter of Py_None. 2009-01-06 04:13:57 +01:00
Jelmer Vernooij
ce47b69d8e Fix syntax errors. 2009-01-01 06:33:25 +01:00
Jelmer Vernooij
08259c1c52 Add iconv_convenience argument to size functions. 2009-01-01 04:45:33 +01:00
Stefan Metzmacher
183c379fe5 s4:lib/tevent: rename structs
list=""
list="$list event_context:tevent_context"
list="$list fd_event:tevent_fd"
list="$list timed_event:tevent_timer"

for s in $list; do
	o=`echo $s | cut -d ':' -f1`
	n=`echo $s | cut -d ':' -f2`
	r=`git grep "struct $o" |cut -d ':' -f1 |sort -u`
	files=`echo "$r" | grep -v source3 | grep -v nsswitch | grep -v packaging4`
	for f in $files; do
		cat $f | sed -e "s/struct $o/struct $n/g" > $f.tmp
		mv $f.tmp $f
	done
done

metze
2008-12-29 20:46:40 +01:00
Jelmer Vernooij
1feab85be6 Rename samba-socket -> samba_socket to fix a couple more compiler
warnings.
2008-12-24 00:15:43 +01:00
Jelmer Vernooij
1807b0870b pidl/python: Factor out connect code rather than duplicating it in each
Python module.
2008-12-22 04:56:41 +01:00
Jelmer Vernooij
d58270c537 Add header for pyparam. 2008-12-22 04:38:57 +01:00
Jelmer Vernooij
4eabc417a0 Remove unnecessary dependencies between Python modules. 2008-12-22 04:13:16 +01:00
Jelmer Vernooij
2396d8d613 Use consistent names for dcerpc python modules; fixes messaging test. 2008-12-22 04:03:55 +01:00
Jelmer Vernooij
2c58c9497c Import types from other Python mechanisms using the Python import mechanism, to ensure they are initialized. 2008-12-22 01:51:38 +01:00
Jelmer Vernooij
2227860a79 Fix more tests, improve repr() functions for various Python types. 2008-12-21 23:05:35 +01:00
Jelmer Vernooij
7e651c7ef3 Simplify customization of pidl-generated Python modules. 2008-12-21 21:10:40 +01:00
Jelmer Vernooij
38a4749d2c Allow providing extra module-level Python functions. 2008-12-21 18:46:59 +01:00
Jelmer Vernooij
f2b4aa82e0 Merge the rest of security.i into samba.dcerpc.security. 2008-12-21 18:25:59 +01:00
Jelmer Vernooij
a925e22d7a Remove duplicate Python bindings for dom_sid, security_descriptor and
security_token.
2008-12-21 18:03:27 +01:00
Jelmer Vernooij
bd41b4579c Avoid linking in all Python modules to the samba binaries - we can just let Python dlopen() them. 2008-12-21 00:53:06 +01:00
Stefan Metzmacher
fc31f2c526 s4:lib/socket: socket_connect_send() and socket_connect_ev() should only wrok with addresses
metze
2008-12-18 13:32:51 +01:00
Stefan Metzmacher
4c2a113dd0 s4:librpc/rpc: remove we should not redo the name resolving for secondary tcp connections
metze
2008-12-18 13:32:51 +01:00
Stefan Metzmacher
fa23a63b4d s4:headermap: dom_sid.h was renamed to server_id.h
metze
2008-12-17 18:55:45 +01:00
Jelmer Vernooij
b3c926376c Fix header installation after move of gen_ndr headers. 2008-12-16 22:20:21 +01:00
Jelmer Vernooij
b5a0c4cefe Share object files for gen_ndr. 2008-12-16 18:56:21 +01:00
Jelmer Vernooij
4c7293feae Simplify idl-deps.pl script a bit. 2008-12-16 16:46:13 +01:00
Jelmer Vernooij
0f04beff33 Rename dom_sid.idl -> server_id.idl (since it no longer actually contains the dom_sid). No longer include it from security.idl. 2008-12-16 15:36:18 +01:00
Jelmer Vernooij
530758dc2a Add python extensions for dom_sid. 2008-12-16 00:16:02 +01:00
Jelmer Vernooij
cd25b6245f Move dom_sid to the Samba 3 IDL file, remove the old definition. 2008-12-12 20:20:01 +01:00
Jelmer Vernooij
c4fc0b49f0 Manually marshall dom_sid, so we can use a fixed size array for
dom_sid.sub_auths rather than a dynamically allocated one.

This makes it possible to use the same DCE/RPC object code for Samba 3
and Samba 4's DCE/RPC parsers and allows copying sids more easily
(since they no longer contain any pointers). The cost of having additional
manual marshalling code is limited (~35 additional lines of C code).
2008-12-12 19:52:06 +01:00
Jelmer Vernooij
d1101dba79 Remove noejs property, which is no longer used. 2008-12-12 11:48:42 +01:00
Stefan Metzmacher
d595844891 s4:librpc: add SUBSYSTEM::RPC_NDR_BROWSER
metze
2008-12-06 14:56:50 +01:00
Sam Liddicott
f5a87e35d2 Make sure dom_sid.h is installed. 2008-11-25 15:41:07 +01:00
Jelmer Vernooij
15c629181a Move wireshark conformance file to top-level. 2008-11-19 00:10:15 +01:00
Stefan Metzmacher
1290b1d3d3 s4:librpc/ndr: integrate NDR_MISC into LIBNDR
metze
2008-11-16 16:24:34 +01:00
Günther Deschner
843135c841 s4-samr: move samr.idl to toplevel idl directory.
Guenther
2008-11-10 21:46:25 +01:00
Stefan Metzmacher
03b9547b47 s4: use toplevel security.idl
metze
2008-11-08 08:02:27 +01:00
Stefan Metzmacher
9579036dc5 s4: fix samba4.samba3sam.python test
metze
2008-11-08 08:02:25 +01:00
Stefan Metzmacher
ff5c58da55 librpc/ndr: move ndr_sec_helper.c to the toplevel
metze
2008-11-07 22:41:12 +01:00
Stefan Metzmacher
da9f41dde2 s4: ndr_sec_helper: remove unused include
metze
2008-11-07 22:33:45 +01:00
Stefan Metzmacher
c6e5788435 s4: security.idl: for now move server_id also to dom_sid.idl
We should move server_id somewhere else...

metze
2008-11-07 18:06:54 +01:00
Stefan Metzmacher
616bc99b14 s4: security.idl: split of dom_sid stuff into dom_sid.idl
This prepares having a shared security.idl file

metze
2008-11-07 16:45:37 +01:00
Stefan Metzmacher
1a60fc02d8 librpc/idl: Add named_pipe_auth.idl to Samba4
metze
2008-11-06 21:39:13 +01:00
Günther Deschner
c353c53692 netlogon: add 8bit varients of netr_SamDatabaseID8Bit and netr_DeltaEnum.
Guenther
2008-11-06 18:50:12 +01:00
Jelmer Vernooij
b45caa44e1 Fix the build. 2008-11-02 23:58:49 +01:00
Jelmer Vernooij
a1cc278142 Remove use of global_loadparm during initialization of gensec. 2008-11-02 17:04:22 +01:00
Jelmer Vernooij
29a20af75f Remove use of global_loadparm for SMB2 client connections. 2008-11-02 16:20:00 +01:00
Jelmer Vernooij
b034c519f5 Add gensec_settings structure. This wraps loadparm_context for now, but
should in the future only contain some settings required for gensec.
2008-11-02 02:05:48 +01:00
Jelmer Vernooij
7a6190e9a7 Remove another use of global_loadparm. 2008-11-02 01:03:26 +01:00
Jelmer Vernooij
dccf1b2c9f Remove another use of global_loadparm. 2008-11-02 00:26:04 +01:00
Jelmer Vernooij
d9cbf2b0d9 Remove another use of global_loadparm. 2008-11-01 23:26:36 +01:00
Jelmer Vernooij
7942333712 Remove another use of global_loadparm. 2008-11-01 23:09:18 +01:00
Jelmer Vernooij
ac428a22e6 dcerpc: Fix include path so header installer translates it correctly during install. 2008-10-31 16:15:08 +01:00
Günther Deschner
7f8bc6a2d9 errors: share dcerpc error function.
Guenther
2008-10-31 12:42:09 +01:00
Günther Deschner
6066e1a44d srvsvc: re-move idl file to main directory.
Guenther
2008-10-31 03:08:04 +01:00
Günther Deschner
f25b645ab1 s4-srvsvc: merge srvsvc_NetShareEnum from s3 idl.
Guenther
2008-10-31 02:44:34 +01:00
Günther Deschner
7204deac82 s4-srvsvc: merge srvsvc_NetShareEnumAll from s3 idl.
Guenther
2008-10-31 02:44:34 +01:00
Günther Deschner
947e14adae s4-srvsvc: merge srvsvc_NetSessEnum from s3 idl.
Guenther
2008-10-31 02:44:33 +01:00
Günther Deschner
546fb4028a s4-srvsvc: merge srvsvc_NetFileEnum from s3 idl.
Guenther
2008-10-31 02:44:33 +01:00
Günther Deschner
8f99170ab9 s4-srvsvc: merge srvsvc_NetConnEnum from s3 idl.
Guenther
2008-10-31 02:44:33 +01:00
Günther Deschner
d1340df8b8 s4-srvsvc: merge srvsvc_NetCharDevQEnum from s3 idl.
Guenther
2008-10-31 02:44:33 +01:00
Günther Deschner
07f1bb3abc s4-srvsvc: merge srvsvc_NetCharDevEnum from s3 idl.
Guenther
2008-10-31 02:44:33 +01:00
Günther Deschner
439f197a68 s4-srvsvc: merge srvsvc_NetDiskEnum from s3 idl.
Guenther
2008-10-31 02:44:33 +01:00
Günther Deschner
7255209177 s4-srvsvc: merge srvsvc_NetFileGetInfo from s3 idl.
Guenther
2008-10-31 02:44:33 +01:00
Günther Deschner
b70d984f8f s4-srvsvc: merge srvsvc_NetCharDevQGetInfo from s3 idl.
Guenther
2008-10-31 02:44:32 +01:00
Günther Deschner
6e9d69e4c8 s4-srvsvc: merge srvsvc_NetCharDevGetInfo from s3 idl.
Guenther
2008-10-31 02:44:32 +01:00
Günther Deschner
c982b36930 s4-srvsvc: merge srvsvc_NetSrvGetInfo from s3 idl.
Guenther
2008-10-31 02:44:32 +01:00
Günther Deschner
5cd089edd2 s4-srvsvc: merge srvsvc_NetSrvSetInfo from s3 idl.
Guenther
2008-10-31 02:44:32 +01:00
Günther Deschner
d2cc4e63c5 s4-srvsvc: merge srvsvc_NetTransportEnum from s3 idl.
Guenther
2008-10-31 02:44:32 +01:00
Günther Deschner
8859e9a904 s4-srvsvc: merge srvsvc_NetTransportDel from s3 idl.
Guenther
2008-10-31 02:44:31 +01:00
Günther Deschner
227c6ed8ea s4-srvsvc: merge srvsvc_NetShareGetInfo from s3 idl.
Guenther
2008-10-31 02:44:31 +01:00
Günther Deschner
523732ed2d s4-srvsvc: merge srvsvc_NetShareSetInfo from s3 idl.
Guenther
2008-10-31 02:44:31 +01:00
Günther Deschner
3206f35527 s4-srvsvc: merge srvsvc_NetShareAdd from s3 idl.
Guenther
2008-10-31 02:44:31 +01:00
Günther Deschner
70c9cb4d9b s4-srvsvc: merge srvsvc_NetServerStatisticsGet from s3 idl.
Guenther
2008-10-31 02:44:31 +01:00
Günther Deschner
31b067a6dd s4-srvsvc: merge srvsvc_NetShareCheck from s3 idl.
Guenther
2008-10-31 02:44:30 +01:00
Günther Deschner
f151246e53 s4-srvsvc: merge srvsvc_NetPathType from s3 idl.
Guenther
2008-10-31 02:44:30 +01:00
Günther Deschner
0688173c27 s4-srvsvc: merge srvsvc_NetPathCanonicalize from s3 idl.
Guenther
2008-10-31 02:44:30 +01:00
Günther Deschner
9fd82703d1 s4-srvsvc: merge srvsvc_NetRemoteTOD from s3 idl.
Guenther
2008-10-31 02:44:30 +01:00
Günther Deschner
f61ce2fe41 s4-srvsvc: merge srvsvc_NetSetFileSecurity from s3 idl.
Guenther
2008-10-31 02:44:30 +01:00
Günther Deschner
95e438d9b3 s4-srvsvc: merge srvsvc_NetSetFileSecurity from s3 idl.
Guenther
2008-10-31 02:44:29 +01:00
Günther Deschner
0b95cb251c s4-srvsvc: merge srvsvc_NetShareInfo502 from s3.
Apparently both s3 and s4 are not entirely correct one this. metze is looking
into hand-marshalling security descriptors so this will fix this finally. For
now, just keep the two in sync.

Guenther
2008-10-31 02:44:29 +01:00
Günther Deschner
4b8606f616 s4-srvsvc-idl: pure cosmetic merge from s3 idl.
Guenther
2008-10-31 02:44:28 +01:00
Günther Deschner
d0b02f9708 s4-srvsvc-idl: use maxuses as uint32 consistently.
Guenther
2008-10-31 02:44:28 +01:00
Günther Deschner
ecd2434d69 s4-srvsvc-idl: adapt some more formating changes from s3 idl.
Guenther
2008-10-29 13:31:02 +01:00
Günther Deschner
8be9cefd98 netlogon: merge netlogon.idl between s3 and s4.
Guenther
2008-10-29 08:57:53 +01:00
Günther Deschner
524156333b s4-netlogon: merge netr_ServerPasswordSet2 from s3 idl.
Guenther
2008-10-29 08:57:52 +01:00
Günther Deschner
556b5bb9ee s4-netlogon: merge netr_ServerPasswordSet from s3 idl.
Guenther
2008-10-29 08:57:52 +01:00
Günther Deschner
1798e9d7ec s4-netlogon: merge netr_ServerReqChallenge from s3 idl.
Guenther
2008-10-29 08:57:52 +01:00
Günther Deschner
8e4c691c0a s4-netlogon: merge netr_ServerAuthenticate{2,3} from s3 idl.
Guenther
2008-10-29 08:57:51 +01:00
Günther Deschner
8f52c33401 s4-netlogon: merge netr_DatabaseRedo from s3 idl.
Guenther
2008-10-29 08:57:51 +01:00
Günther Deschner
ef37351f18 s4-netlogon: merge netr_DatabaseSync2 from s3 idl.
Guenther
2008-10-29 08:57:51 +01:00
Günther Deschner
cbc0b63a77 s4-netlogon: merge netr_DatabaseSync from s3 idl.
Guenther
2008-10-29 08:57:51 +01:00
Günther Deschner
f285af6367 s4-netlogon: merge netr_LogonSamLogon{Ex,WithFlags} from s3 idl.
Guenther
2008-10-29 08:57:31 +01:00
Günther Deschner
0de8811a59 s4-netlogon: merge netr_AccountSync from s3 idl.
Guenther
2008-10-29 08:57:28 +01:00
Günther Deschner
fccd5a4dfd s4-netlogon: merge netr_AccountDeltas from s3 idl.
Guenther
2008-10-29 08:57:28 +01:00
Günther Deschner
6f2179b088 s4-netlogon: merge netr_DatabaseDeltas from s3 idl.
Guenther
2008-10-29 08:57:28 +01:00
Günther Deschner
4f6264b66c s4-netlogon: merge netr_LogonGetDomainInfo from s3 idl.
Guenther
2008-10-29 08:57:27 +01:00
Günther Deschner
359927dd34 s4-netlogon: merge netr_LogonControl2Ex from s3 idl.
Guenther
2008-10-29 08:57:27 +01:00
Günther Deschner
8a79378469 s4-netlogon: merge netr_LogonControl2 from s3 idl.
Guenther
2008-10-29 08:57:27 +01:00
Günther Deschner
388952f82c s4-netlogon: merge netr_LogonControl from s3 idl.
Guenther
2008-10-29 08:57:26 +01:00
Günther Deschner
f0697b0ad5 s4-netlogon: merge netr_DsRGetDCName{Ex,Ex2} from s3 idl.
Guenther
2008-10-29 08:56:52 +01:00
Günther Deschner
f82a117832 s4-netlogon: merge netr_GetDcName from s3 idl.
Guenther
2008-10-28 23:40:53 +01:00
Günther Deschner
a674a3bbf3 s4-netlogon: merge netr_GetAnyDCName from s3 idl (untested).
Guenther
2008-10-28 23:40:53 +01:00
Günther Deschner
2a329c4963 s4-netlogon: merge netr_DsRGetSiteName from s3 idl.
Guenther
2008-10-28 23:40:52 +01:00
Günther Deschner
2a7de4e3f8 s4-netlogon: merge netr_DsrEnumerateDomainTrusts from s3 idl.
Guenther
2008-10-28 23:40:52 +01:00
Günther Deschner
0992a9d987 s4-netlogon: merge netr_DsrGetDcSiteCoverageW from s3 idl.
Guenther
2008-10-28 23:40:51 +01:00
Günther Deschner
bb3836a67f s4-smbtorture: fix test_LogonUasLogon.
Guenther
2008-10-28 23:40:44 +01:00
Günther Deschner
98f8f89164 s4-netlogon: merge misc stuff.
Guenther
2008-10-28 23:37:40 +01:00
Günther Deschner
d04131c8ec idl: share lsa.idl between s3 and s4.
Guenther
2008-10-27 19:33:23 +01:00
Günther Deschner
95231eae39 s4-lsa: merge lsa_QueryInfoPolicy/{2} from s3 lsa idl.
Guenther
2008-10-27 19:33:23 +01:00
Günther Deschner
92f1c0d156 s4-lsa: merge lsa_LookupNames/{2,3,4} from s3 lsa idl.
Guenther
2008-10-27 19:33:23 +01:00
Günther Deschner
992c03a192 s4-lsa: merge lsa_LookupSids/{2,3} from s3 lsa idl.
Guenther
2008-10-27 19:33:23 +01:00
Günther Deschner
8e622f57e7 s4-lsa: merge lsa_QueryDomainInformationPolicy from s3 lsa idl.
Guenther
2008-10-27 19:33:23 +01:00
Günther Deschner
ea88686419 s4-lsa: merge lsa_QueryTrustedDomainInfoByName from s3 lsa idl.
Guenther
2008-10-27 19:33:22 +01:00
Günther Deschner
36725ec0b4 s4-lsa: merge lsa_QueryTrustedDomainInfo from s3 idl.
Guenther
2008-10-27 19:33:22 +01:00
Günther Deschner
7c3d1dd8a9 s4-lsa: merge lsa_QueryTrustedDomainInfoBySid from s3 lsa idl.
Guenther
2008-10-27 19:33:22 +01:00
Günther Deschner
8bcc939a8c s4-lsa: merge lsa_LookupPrivName from s3 lsa idl.
Guenther
2008-10-27 19:33:22 +01:00
Günther Deschner
ea6b4865ea s4-lsa: merge lsa_EnumPrivsAccount from s3 lsa idl.
Guenther
2008-10-27 19:33:22 +01:00
Günther Deschner
95c69caef6 s4-lsa: merge lsa_LookupPrivDisplayName from s3 lsa idl.
Guenther
2008-10-27 19:33:22 +01:00
Günther Deschner
6a2dabe1a7 s4-lsa: merge lsa_GetUserName from s3 lsa idl.
Guenther
2008-10-27 19:33:22 +01:00
Günther Deschner
6131c0d888 s4-lsa: merge lsa_EnumTrustDom from s3 lsa idl.
Guenther
2008-10-27 19:33:22 +01:00
Günther Deschner
7e19dd6a0a s4-lsa: merge lsa_EnumAccounts from s3 lsa idl.
Guenther
2008-10-27 19:33:22 +01:00
Günther Deschner
fb38705e42 s4-lsa: merge lsa_EnumPrivs from s3 lsa idl.
Guenther
2008-10-27 19:33:22 +01:00
Günther Deschner
4ee7b58e0a s4-lsa: merge lsa_QuerySecurity from s3 lsa idl.
Guenther
2008-10-27 19:33:21 +01:00
Jelmer Vernooij
e72e2773c4 Remove another use of global_loadparm. 2008-10-24 18:15:09 +02:00
Jelmer Vernooij
23302413b3 Remove unused include param/param.h. 2008-10-24 16:37:56 +02:00
Jelmer Vernooij
37d885c51a Remove iconv_convenience argument from convert_string{,talloc}() but
make them wrappers around convert_string{,talloc}_convenience().
2008-10-24 14:26:46 +02:00
Jelmer Vernooij
8b06312f7e Eliminate another instance of global_loadparm. 2008-10-24 13:13:27 +02:00
Günther Deschner
bb36f3a342 idl: merge from s4 lsa.idl to s3.
Guenther
2008-10-20 22:09:07 +02:00
Jelmer Vernooij
6d2d09348f Sync syntax of srvsvc.idl with samba3. 2008-10-20 19:50:49 +02:00
Jelmer Vernooij
41b02b7ac0 Move orpc to top-level directory. 2008-10-20 19:20:12 +02:00
Jelmer Vernooij
dc3828f06c Move WMI support code to top-level. 2008-10-20 19:14:47 +02:00
Jelmer Vernooij
87ec1d2532 Make sure prototypes are always included, make some functions static and
remove some unused functions.
2008-10-20 18:59:51 +02:00
Jelmer Vernooij
66b1c8b61a Import comments about opcodes from Samba 3. 2008-10-20 17:16:04 +02:00
Jelmer Vernooij
e0905c3090 Use tables in Samba 3 ndrdump. 2008-10-20 13:19:39 +02:00
Jelmer Vernooij
db90d9ad16 Also move wireshark conformance file. 2008-10-20 12:20:53 +02:00
Jelmer Vernooij
d78f3be238 Merge branch 'master' of ssh://git.samba.org/data/git/samba into crypt 2008-10-20 12:19:57 +02:00
Jelmer Vernooij
5b52964b15 Share winreg.idl. 2008-10-20 11:53:20 +02:00
Günther Deschner
fc8fadf1e9 idl: finally share krb5_pac.idl.
Guenther
2008-10-20 11:11:22 +02:00
Matthias Dieter Wallnöfer
b789ff950f LSA Patch for User Manager
New (major) patch
=================
- Enhances the "lsa.idl" file in the sense that it adds more values to
"PolicyInformation" to improve the "lsa_QueryInfoPolicy*" calls.
- Adds a minimal implementation for "AuditEvents" (also lsa_QueryInfoPolicy*
calls) to enable the "Audit" option in the "User Manager for Domains" (at least
readable).
- Adds to the "lsa.idl" file the system access mode flags needed for the calls
"lsa_*SystemAccessAccount".
- Fill in the "lsa_GetSystemAccessAccount" for enabling the "User Rights"
option in the "User Manager for Domains" (at least readable).
- Merge the two similar torture tests of the "lsa_QueryInfoPolicy*" calls in
one using "if"'s for a few separations.
- Add a torture test for "lsa_GetSystemAccessAccount".
- Some cosmetic-only changes (unifications) in output strings in the "LSA"
torture test.

The work has been done using the Microsoft WSPP docs.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2008-10-20 20:07:09 +11:00
Günther Deschner
f34b6bfe34 idl: share drsblobs idl.
Guenther
2008-10-18 23:54:49 +02:00
Günther Deschner
80af41b5ea drsuapi: build new merged drsuapi idl and helpers.
Guenther
2008-10-18 23:25:58 +02:00