Andrew Bartlett
16b2118b43
gensec: split GENSEC into mechanism-dependent and runtime functions
...
The startup and runtime functions that have no dependencies are moved
into the top level.
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-08-03 18:48:01 +10:00
Stefan Metzmacher
de71a67a1c
s3:libsmb/clifile: make use of cli_set_timeout()
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Aug 3 10:16:18 CEST 2011 on sn-devel-104
2011-08-03 10:16:18 +02:00
Stefan Metzmacher
71c695d8d1
s3:cli_np_tstream: make use of cli_set_timeout()
...
metze
2011-08-03 09:01:40 +02:00
Stefan Metzmacher
2abe723e60
s3:torture: make use of cli_set_timeout()
...
metze
2011-08-03 09:01:40 +02:00
Stefan Metzmacher
71cec7b37a
s3:winbindd_cm: make use of cli_set_timeout()
...
metze
2011-08-03 09:01:39 +02:00
Stefan Metzmacher
b7d5cd90d5
s3:libsmb/clidfs: make use of cli_state_encryption_on()
...
metze
2011-08-03 09:01:39 +02:00
Amitay Isaacs
f854209996
s4-libcli: Fix the fd leak. Close open file descriptor before return.
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Aug 3 07:49:12 CEST 2011 on sn-devel-104
2011-08-03 07:49:12 +02:00
Amitay Isaacs
cff7adb7ec
samba-tool: Rename samba-tool command gpo2 --> gpo
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-08-03 14:26:15 +10:00
Amitay Isaacs
e2af384151
samba-tool: Remove C version of samba-tool
...
Python version of samba-tool has now implemented all the commands
from C version and more.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-08-03 14:26:11 +10:00
Amitay Isaacs
7d137f8bda
samba-tool: Add implementation of gpo create command
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-08-03 14:26:09 +10:00
Amitay Isaacs
fb798d35df
samba-tool: Add functions to create directories and copy files over SMB share
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-08-03 14:26:07 +10:00
Amitay Isaacs
65dcf82e64
s4-libcli: get_acl and set_acl require raw_open to set security descriptor
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-08-03 14:26:04 +10:00
Amitay Isaacs
52d602335b
s4-libcli: Check if short_name is not null, before converting to python string
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-08-03 14:26:02 +10:00
Amitay Isaacs
38b8d38b30
s4-libcli: Replace smb_composite_connect() with smb_full_connection()
...
Python smb connection now uses smb_full_connection method.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-08-03 14:26:00 +10:00
Amitay Isaacs
6cce5fd43e
s4-policy: Use the correct local directory for stat.
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-08-03 14:25:57 +10:00
Amitay Isaacs
c670465c23
samba-tool: Rename copy_directory_recurse to copy_directory_remote_to_local
...
gpo fetch is remote->local and gpo create is local->remote
local is local filesystem and remote is smb share.
Need two functions to copy local->remote and remote->local.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-08-03 14:25:55 +10:00
Amitay Isaacs
1e3667934b
samba-tool: Addd functions to print GPO flags and GPlink options
...
Use methods from python wrapper to convert gpo flags and gplink
options to string.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-08-03 14:25:53 +10:00
Amitay Isaacs
463ab48868
s4-policy: Add python wrapper for ads_to_dir_access_mask() function
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-08-03 14:25:50 +10:00
Amitay Isaacs
0c8d742992
s4-policy: Expose gp_ads_to_dir_access_mask() function
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-08-03 14:25:48 +10:00
Amitay Isaacs
2d90cafa10
s4-libcli: Added python SMB methods for mkdir(), rmdir(), chkpath()
...
Updated docstrings for all methods.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-08-03 14:25:46 +10:00
Andrew Tridgell
a7f3545b82
pyldb: return a copy of key constant DNs via python interface
...
this prevents an easy coding error where the caller modifies one of
the key DNs for the database, by using an add_child function or
similar
Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-08-03 14:25:38 +10:00
Jeremy Allison
785c65e875
We don't need check_name() here. All possible paths to dptr_create()
...
have already called check_name.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Aug 3 03:00:55 CEST 2011 on sn-devel-104
2011-08-03 03:00:55 +02:00
Volker Lendecke
5068a0d14d
s3: Fix smb2 handling error returns from aio
...
Found when reading with aio_fork beyond the end of file.
Metze, Jeremy, please check!
Without this we get
[2011/08/02 21:02:54.082661, 0] lib/util.c:778(smb_panic_s3)
PANIC (pid 2302): smbd/smb2_read.c:593: Type mismatch: name[NULL] expected[struct smbd_smb2_read_state]
[2011/08/02 21:02:54.094316, 0] lib/util.c:882(log_stack_trace)
BACKTRACE: 23 stack frames:
#0 bin/smbd(log_stack_trace+0x2d) [0xb72873d8]
#1 bin/smbd(smb_panic_s3+0x7c) [0xb7287529]
#2 bin/smbd(smb_panic+0x2f) [0xb7277e1f]
#3 /root/git/s3-work/source3/bin/libtalloc.so.2 [0xb6c6bc48]
#4 /root/git/s3-work/source3/bin/libtalloc.so.2 [0xb6c6ec79]
#5 /root/git/s3-work/source3/bin/libtalloc.so.2(_talloc_get_type_abort+0x34) [0xb6c6ecb3]
#6 bin/smbd [0xb6fbc405]
#7 bin/smbd(_tevent_req_notify_callback+0x4a) [0xb729a85a]
#8 bin/smbd [0xb729a888]
#9 bin/smbd(_tevent_req_done+0x19) [0xb729aa73]
#10 bin/smbd [0xb6fae517]
#11 bin/smbd [0xb6fad258]
#12 bin/smbd(smbd_aio_complete_aio_ex+0xf5) [0xb6fad6e8]
#13 /root/git/inst/modules/vfs/aio_fork.so [0xb66d4992]
#14 bin/smbd(run_events_poll+0x400) [0xb7297df2]
#15 bin/smbd(smbd_process+0xd75) [0xb6f9d3a7]
#16 bin/smbd [0xb756f07b]
#17 bin/smbd(run_events_poll+0x400) [0xb7297df2]
#18 bin/smbd [0xb7298254]
#19 bin/smbd(_tevent_loop_once+0x9e) [0xb72986ac]
#20 bin/smbd(main+0x185c) [0xb7570e59]
#21 /lib/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb6b08455]
#22 bin/smbd [0xb6f14e01]
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue Aug 2 22:33:15 CEST 2011 on sn-devel-104
2011-08-02 22:33:15 +02:00
Volker Lendecke
e114a21cc2
s3: Remove unused ERROR_FORCE_NT macro
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue Aug 2 20:32:08 CEST 2011 on sn-devel-104
2011-08-02 20:32:08 +02:00
Volker Lendecke
9b1e4cfb8f
s3: Remove unused ERROR_DOS macro
2011-08-02 19:18:09 +02:00
Volker Lendecke
d20e968cff
s3: Move deferred_open_queue to smbd_server_connection
2011-08-02 19:18:09 +02:00
Volker Lendecke
cb69d105f5
s3: Pass sconn explicitly to get_deferred_open_message_smb
2011-08-02 19:18:08 +02:00
Volker Lendecke
f9d183f931
s3: Pass sconn explicitly to open_was_deferred
2011-08-02 19:18:08 +02:00
Volker Lendecke
502fdae7f1
s3: Pass sconn explicitly to schedule_deferred_open_message_smb
2011-08-02 19:18:08 +02:00
Volker Lendecke
04253dfd9f
s3: Explicitly pass sconn to remove_deferred_open_message_smb
2011-08-02 19:18:08 +02:00
Volker Lendecke
77f5246f09
s3: Fix some nonempty blank lines
2011-08-02 19:18:08 +02:00
Simo Sorce
a68f16cb56
s3:server Consolidate printing related initialization
...
Signed-off-by: Günther Deschner <gd@samba.org>
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Aug 2 17:37:44 CEST 2011 on sn-devel-104
2011-08-02 17:37:44 +02:00
Simo Sorce
2e8a85ec72
s3:smbd - Move printing queue stuff
...
This way we can properly deal with pcap updates in the background queue process
if it is enabled (on by default) and not perform these actions in the main
smbd process.
Signed-off-by: Günther Deschner <gd@samba.org>
2011-08-02 15:28:03 +02:00
Stefan Metzmacher
ac8096e69d
s4:kdc: fix compiler warning
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Aug 2 06:06:15 CEST 2011 on sn-devel-104
2011-08-02 06:06:15 +02:00
Stefan Metzmacher
6d1ef3faee
s3:libsmb/libsmb_server: make use of cli_set_timeout()
...
metze
2011-08-02 04:54:29 +02:00
Stefan Metzmacher
91b0aab3fc
s3:libsmb/cli*: make use of cli_state_protocol()
...
metze
2011-08-02 04:54:29 +02:00
Stefan Metzmacher
5e59a36beb
s3:client: make use of cli_state_protocol()
...
metze
2011-08-02 04:54:29 +02:00
Stefan Metzmacher
ec9b6134b7
s3:auth_server: make use of cli_state_protocol()
...
metze
2011-08-02 04:54:29 +02:00
Stefan Metzmacher
da53434391
s3:spoolss: make use of cli_state_protocol()
...
metze
2011-08-02 04:54:29 +02:00
Stefan Metzmacher
32a47730da
s3:masktest: make use of cli_state_protocol()
...
metze
2011-08-02 04:54:29 +02:00
Stefan Metzmacher
ed6b8deea7
s3:net_rpc: make use of cli_state_protocol()
...
metze
2011-08-02 04:54:29 +02:00
Stefan Metzmacher
a60b1695b1
s3:winbindd_cm: make use of cli_state_protocol()
...
metze
2011-08-02 04:54:28 +02:00
Stefan Metzmacher
233336d0c2
s3:libsmb: add cli_state_protocol()
...
metze
2011-08-02 04:54:28 +02:00
Stefan Metzmacher
c399ad4cdd
s3:include: change cli->protocol to enum protocol_types
...
metze
2011-08-02 04:54:28 +02:00
Stefan Metzmacher
6e8a6e033f
s3:libsmb/cli*: make use of cli_state_capabilities()
...
metze
2011-08-02 04:54:28 +02:00
Stefan Metzmacher
ffd99c5de5
s3:libsmb/libsmb_*: make use of cli_state_capabilities()
...
metze
2011-08-02 04:54:28 +02:00
Stefan Metzmacher
a4d79a3799
s3:torture: make use of cli_state_capabilities()
...
metze
2011-08-02 04:54:28 +02:00
Stefan Metzmacher
3ce648aee4
s3:winbindd_cm: make use of cli_state_capabilities()
...
metze
2011-08-02 04:54:28 +02:00
Stefan Metzmacher
f934aa1aea
s3:include: make use of cli_state_capabilities() in SERVER_HAS_UNIX_CIFS()
...
metze
2011-08-02 04:54:28 +02:00
Stefan Metzmacher
24c5427810
s3:libsmb: add cli_state_capabilities()
...
metze
2011-08-02 04:54:28 +02:00