Joseph Sutton
0071a60fb6
dcerpc.idl: Use simple boolean value instead of flag
...
One advantage of this is that the type of the switch value is no longer
tied to the type of the NDR flags.
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2023-11-01 20:10:45 +00:00
Gary Lockyer
d65b7641c8
s4 librpc rpc pyrpc: Ensure tevent_context deleted last
...
Ensure that the tevent_context is deleted after the connection, to
prevent a use after free.
Note: Py_DECREF calls dcerpc_interface_dealloc so the
TALLOC_FREE(ret->mem_ctx) calls in the error paths of
py_dcerpc_interface_init_helper needed removal.
Bug: https://bugzilla.samba.org/show_bug.cgi?id=13932
Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2019-05-10 08:19:16 +00:00
Douglas Bagnall
eb873af9b5
pyrpc: remove crutch for python <= 2.5
...
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
2019-05-09 22:39:27 +00:00
Douglas Bagnall
0606860308
pyrpc: ndr PY_CHECK_TYPE checks for NULL as well as type
...
Addresses CID 1361477 and others.
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
2019-05-09 22:39:27 +00:00
Stefan Metzmacher
29e75e9876
s4:pyrpc: remove unused py_{import,export}_netr_* prototypes
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2016-10-26 11:20:19 +02:00
Stefan Metzmacher
ee5e25b5b3
librpc/idl: add winbind_LogonControl()
...
This will be used by the netr_LogonControl()
in order to contact remote domains via winbindd.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2015-07-08 18:38:22 +02:00
Stefan Metzmacher
4f0d5981f1
s4:librpc: compile python bindings for dcerpc.idl
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2014-03-28 08:34:25 +01:00
Andrew Tridgell
8efd1074c2
s4-pyrpc: fixed build on python 2.4
...
Pair-Programmed-With: Jelmer Vernooij <jelmer@samba.org>
2010-09-20 15:27:45 -07:00
Kamen Mazdrashki
c79861a14e
s4-pyrpc: Print location and type name we got when checking for types
2010-09-17 13:53:03 +03:00
Andrew Tridgell
fb81cc080d
s4-pyrpc: allow python to access irpc interfaces
...
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-17 19:02:19 +10:00
Jelmer Vernooij
0bc53f7d9f
pidl: Keep only a single copy of samba.dcerpc.base.ClientConnection.
2010-09-03 02:39:38 +02:00
Andrew Tridgell
24159a59a3
pidl: give the varible name for bad type in python calls
...
This makes it much clearer which argument to a function had the wrong
type
2010-08-22 14:57:34 +10:00
Jelmer Vernooij
5060367bf9
pyrpc: Fix reference counting when using secondary connections.
2010-06-19 22:46:44 +02:00
Stefan Metzmacher
59b1078ec5
s4:librpc/rpc: make PyErr_SetDCERPCStatus() static
...
metze
2010-04-13 16:01:40 +02: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
5e9ce495ee
s4:librpc/rpc: let pyrpc make use of dcerpc_binding_handle stubs
...
metze
2010-03-18 13:34:04 +01:00
Matthias Dieter Wallnöfer
44df2488e3
s4: fix various warnings (not "const" related ones)
2009-10-02 15:33:48 +02: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
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
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
d5434f0b4b
Allow using IRPC functions on the messaging bus from Python.
...
(This used to be commit 6ecf81ae13dffa05356c1177c617206c120fb7d7)
2008-05-26 04:14:28 +02:00
Jelmer Vernooij
d60d8e57d8
Implement IRPC calls over the internal messaging bus.
...
(This used to be commit 777dc3a2c7b5bf855344ba3ae8c8b564c48fc0c6)
2008-05-26 03:07:18 +02:00
Jelmer Vernooij
22778de582
Remove some unused cruft.
...
(This used to be commit 8f47157f09cbf4200f0f7c5efe8750fd5d316a3b)
2008-05-26 00:38:12 +02:00
Jelmer Vernooij
eae3658674
Fix compilation errors.
...
(This used to be commit daae053365cf6c5be7b31aa51a239c2660cfc120)
2008-05-25 23:22:05 +02:00
Jelmer Vernooij
77acb789e2
Trim the size of the Python bindings a bit.
...
(This used to be commit 717ce0b640a5c3aa62804b9869ef4dcc0f71b7ba)
2008-05-25 23:14:48 +02:00
Jelmer Vernooij
63c2a19e6e
Add helper function to return DCE/RPC fault codes.
...
(This used to be commit 4716cdfb5d5abad85cba18be89d72fe8ee18f359)
2008-05-24 23:39:38 +02:00
Jelmer Vernooij
21b6e9ec9e
Add convenience function for creating objects with NDR error codes.
...
(This used to be commit 991541a78c2428db89509081cc28072c9b542ffa)
2008-05-24 23:22:49 +02:00
Jelmer Vernooij
75e7962d2e
Add convenience functions for setting Python objects from errors.
...
(This used to be commit f1de723b89251cbc8140b838941f304a34871bf3)
2008-05-24 22:13:32 +02:00
Jelmer Vernooij
654be49c01
Use manually written Python bindings for DCE/RPC rather than SWIG based.
...
Use base class for pidl-generated DCE/RPC interface Python bindings.
(This used to be commit 25e7fc8a2c7a5914c4db4bfe428fd0a8efbf0784)
2008-05-24 21:02:56 +02:00
Jelmer Vernooij
515b6ed586
Share struct used for interfaces in Python code.
...
(This used to be commit 8501a3fc31e688dba696667a187821480e8cb714)
2008-05-24 20:00:37 +02:00