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 b57c8ff4400e5f2bd0776247496b34dab68bde97.
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