Günther Deschner
3edb95a487
s4-libndr: fix ndr_pull_string_array() for non utf16 arrays in s4 as well.
...
Guenther
2010-05-14 14:51:44 +02:00
Stefan Metzmacher
e8139ac14a
s4:librpc: remove explicit ../librpc/gen_ndr/ndr_drsblobs.o from python_drsblobs
...
It already comes via RPC_NDR_DRSBLOBS.
metze
2010-05-12 19:30:55 +02:00
Matthieu Patou
df6d0db21d
s4: Fix python binding for drsblobs
...
This binding needs symbols in drsblobs_c.c otherwise we have unresolved symbols
2010-05-02 15:59:49 +02:00
Günther Deschner
f85a4ab778
s4-rap: add rap print helpers.
...
Guenther
2010-04-29 12:05:41 +02:00
Günther Deschner
2c5b3fc40b
s4-smbtorture: link in ../../librpc/gen_ndr/ndr_rap.o.
...
Guenther
2010-04-28 23:23:38 +02:00
Andrew Tridgell
211bf1ea17
s4-waf: removed the unused installdir= option to SAMBA_BINARY()
...
This was left over from the automatic conversion of the config.mk
files
2010-04-18 21:47:00 +10:00
Andrew Tridgell
ef05007257
s4-rpc: fixed the build with the old build system
...
../librpc/gen_ndr/ndr_drsblobs.o was being linked in twice into
drsblobs.so
2010-04-16 15:33:07 +10:00
Matthieu Patou
9c2aed862d
s4: Add python binding to waf so that the drsblobs.so is also built in waf
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-04-15 18:45:40 +02:00
Matthieu Patou
6d9ce1fee3
s4: Fix python binding for drsblobs
...
This binding needs symbols in drsblobs_c.c otherwise we have unresolved symbols
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-04-15 18:45:40 +02:00
Stefan Metzmacher
61e53c0782
s4:librpc/rpc/pyrpc.c: map NT_STATUS_NET_WRITE_FAULT to the matching NT_STATUS_RPC_* code
...
metze
2010-04-15 09:34:04 +02:00
Stefan Metzmacher
fed16f4015
librpc/rpc: add dcerpc_fault_to_nt_status()
...
For now this only handles fault codes with we've seen yet
and for which we have explicit torture checks.
metze
2010-04-15 09:34:03 +02:00
Stefan Metzmacher
a68eb378a5
s4:librpc/rpc: the python bindings should use !NT_STATUS_IS_OK instead of NT_STATUS_IS_ERR
...
Everything but NT_STATUS_OK is an error here.
metze
2010-04-13 16:01:40 +02:00
Stefan Metzmacher
59b1078ec5
s4:librpc/rpc: make PyErr_SetDCERPCStatus() static
...
metze
2010-04-13 16:01:40 +02:00
Stefan Metzmacher
e95e2e8262
s4:librpc/rpc: correctly initialize last_fault_code for bind and alter_context requests
...
metze
2010-04-09 16:28:30 +02:00
Kamen Mazdrashki
80d8f37b26
s4/was: Add 'drsblobs' Python module
2010-04-09 12:21:29 +03:00
Kamen Mazdrashki
3629fb9927
s4: Add 'drsblobs' Python module
...
This module is be very useful when it comes to making
torture tests.
2010-04-09 12:21:28 +03:00
Jelmer Vernooij
814e20e7da
pynet: Create a net class.
2010-04-08 23:22:55 +02:00
Andrew Tridgell
553324bc10
s4-waf: move to a universal method of recursing into subdirs
...
This works with both standalone lib builds and bundled builds
2010-04-06 20:27:25 +10:00
Andrew Tridgell
b0fb567f04
s4-waf: more dependencies on talloc
...
these are needed so we can support a system talloc without using the
bundled talloc.h
2010-04-06 20:27:13 +10:00
Andrew Tridgell
b9aa63887c
s4-waf: cleanup use of LIBPOPT vs popt dependency
2010-04-06 20:27:13 +10:00
Andrew Tridgell
f9eae32f4b
s4-waf: mark the wscript files as python so vim/emacs knows how to highlight them
2010-04-06 20:27:11 +10:00
Andrew Tridgell
dadc24fb0f
s4-waf: install dcerpc_atsvc.pc
2010-04-06 20:27:11 +10:00
Andrew Tridgell
bd44f14d8f
s4-waf: enable the pc_files in the build rules
2010-04-06 20:27:10 +10:00
Andrew Tridgell
bd7bf0e1a9
s4-waf: install the rest of our python files
2010-04-06 20:27:10 +10:00
Andrew Tridgell
aa5e08eb83
s4-waf: install the rest of the headers
2010-04-06 20:27:09 +10:00
Andrew Tridgell
03998d0970
s4-waf: started adding auto-install of include files
2010-04-06 20:27:09 +10:00
Andrew Tridgell
2974f8d947
build: fixed libcli/ndr_netlogon.c dependency rules
2010-04-06 20:26:59 +10:00
Andrew Tridgell
fe7d1a18b9
build: don't need the S4 in the PIDL prefix
2010-04-06 20:26:52 +10:00
Andrew Tridgell
9f47c0e7b7
build: updates for current master build
2010-04-06 20:26:49 +10:00
Andrew Tridgell
844acb2260
build: waf quicktest nearly works
...
Rewrote wafsamba using a new dependency handling system, and started
adding the waf test code
2010-04-06 20:26:48 +10:00
Andrew Tridgell
8f1b809d2c
build: nearly there on samba4 build
2010-04-06 20:26:47 +10:00
Andrew Tridgell
e916aff9e1
build: much nicer pidl rules
2010-04-06 20:26:47 +10:00
Andrew Tridgell
36e6d11dce
build: add README to explain gen_ndr, and ensure directory exists
2010-04-06 20:26:40 +10:00
Andrew Tridgell
9129c3b3b6
build: fixes from ita
2010-04-06 20:26:40 +10:00
Andrew Tridgell
d29cbc3c55
build: added librpc build script
2010-04-06 20:26:39 +10:00
Andrew Tridgell
7d692f970a
s4-rpc: fixed a talloc loop in continue_ntlmssp_connection()
...
We were creating a memory loop which caused havoc when the connection
was torn down.
2010-04-02 19:44:02 +11:00
Andrew Tridgell
a8d213c151
pyrpc: do the pipe connect on a real memory context
2010-04-02 18:52:29 +11:00
Andrew Tridgell
fae84f98e3
libutil: moved the networking defines to util_net.h
...
These were causing thousands of warnings on solaris8
2010-03-26 17:36:02 +11:00
Stefan Metzmacher
ec30022233
s4:librpc/rpc/pyrpc.h: librpc/rpc/dcerpc.h isn't needed anymore
...
metze
2010-03-23 18:44:34 +01:00
Stefan Metzmacher
f4700296b3
s4:librpc/rpc: add NCACN_INTERNAL from s3
...
metze
2010-03-19 17:38:32 +01:00
Stefan Metzmacher
5e9ce495ee
s4:librpc/rpc: let pyrpc make use of dcerpc_binding_handle stubs
...
metze
2010-03-18 13:34:04 +01:00
Stefan Metzmacher
04221518da
s4:librpc/rpc: initialize p->binding_handle in dcerpc_secondary_context()
...
metze
2010-03-17 18:26:15 +01:00
Stefan Metzmacher
7b76c118ad
s4:librpc/rpc/dcerpc_util.c: make use of use tevent_req based dcerpc_binding_handle stubs
...
metze
2010-03-12 15:25:48 +01:00
Stefan Metzmacher
398f477941
s4:librpc/rpc/dcerpc_schannel.c: make use of use tevent_req based dcerpc_binding_handle stubs
...
metze
2010-03-12 15:25:48 +01:00
Stefan Metzmacher
d95ca90030
s4:librpc/rpc: prepare dcerpc dependecies before pidl changes
...
metze
2010-03-12 15:25:41 +01:00
Stefan Metzmacher
6677a5431c
s4:librpc/rpc: add very basic dcerpc_binding_handle infrastructure
...
metze
2010-03-12 15:25:41 +01:00
Andrew Tridgell
f01f124969
s4-rpc: don't use s->credentials after it is freed
2010-03-05 16:12:05 +11:00
Stefan Metzmacher
8ba2128e1e
s4:librpc/rpc: make use of explicit dcerpc_*_recv functions
...
metze
2010-03-01 16:11:55 +01:00
Jeremy Allison
9abce9f7c9
Revert "Got back to 16-byte padding on auth RPC. S3 clients and servers now cope with this. Jeremy"
...
This reverts commit 38c50c7027
.
As tridge requested, we need this to work with older S3
servers, not just for smbtorture4.
Jeremy.
2010-02-17 19:42:49 -08:00
Jeremy Allison
38c50c7027
Got back to 16-byte padding on auth RPC. S3 clients and servers now cope with this. Jeremy
2010-02-17 16:43:11 -08:00
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