Andrew Bartlett
cf406f7e7d
s3-param use common struct parmlist_entry to hold parametric options
...
This will allow struct loadparm_service to be shared in future.
Andrew Bartlett
2011-07-08 11:23:23 +02:00
Andrew Bartlett
2fcbfcd004
param: Move per-share parameters into a seperate file, to share with s3
...
This will allow the struct loadparm_service to be in common between
the two loadparm implementations in the tree.
Andrew Bartlett
2011-07-08 11:23:23 +02:00
Andrew Bartlett
f50f9374b5
s4-param Remove offset != -1 checks
...
No offset values are set to -1 in the parameter table
Andrew Bartlett
2011-07-08 11:23:23 +02:00
Andrew Bartlett
61b937d236
s4-param change to struct bitmap to match s3-param
2011-07-08 11:23:23 +02:00
Andrew Bartlett
27e169e17e
s4-param Also check the p_class matches when comparing offset
2011-07-08 11:23:23 +02:00
Andrew Bartlett
3ab3159f75
s3-param check for aliases with both p_class and offset
...
This bug was found when comparing with the source4 loadparm code.
Andrew Bartlett
2011-07-08 11:23:23 +02:00
Andrew Bartlett
6e6aaacedb
lib/util Move bitmap.c to lib/util
2011-07-08 11:23:23 +02:00
Andrew Bartlett
6b2749f8a9
param: Add hooks to s3 parm_struct and the parameters void * pointer
...
This is to that the pyparam hooks can use the hooks to connect with
the s3 loadparm system. This now also includes per-service
parameters.
Andrew Bartlett
2011-07-08 11:23:23 +02:00
Andrew Bartlett
198ad4df31
s3-lib use True and False in bitmap.c
2011-07-08 11:23:23 +02:00
Andrew Bartlett
60f353a144
s3-param: calculate default_server_announce at runtime
2011-07-08 11:23:23 +02:00
Andrew Bartlett
fad3c763f7
s3-param Remove lp_set_passdb_backend()
2011-07-08 11:23:23 +02:00
Volker Lendecke
76c73dbb22
s3-zfsacl: Fix a debug message
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Jul 8 11:22:55 CEST 2011 on sn-devel-104
2011-07-08 11:22:55 +02:00
Stefan Metzmacher
ef64048038
s3:wscript_build: remove unused variable
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Jul 8 02:43:22 CEST 2011 on sn-devel-104
2011-07-08 02:43:21 +02:00
Stefan Metzmacher
960310b68d
s3:selftest: run SMB2-BASIC
...
metze
2011-07-08 01:22:22 +02:00
Stefan Metzmacher
67ac266ae8
s3:torture: add SMB2-BASIC
...
Based on the initial patch from Volker Lendecke <vl@samba.org>.
metze
2011-07-08 01:22:22 +02:00
Stefan Metzmacher
fdd6c4e673
s3:libsmb: add smb2cli_query_directory*()
...
Based on the initial patch from Volker Lendecke <vl@samba.org>.
metze
2011-07-08 01:22:21 +02:00
Stefan Metzmacher
548f7d3f36
s3:libsmb: add smb2cli_write*()
...
Based on the initial patch from Volker Lendecke <vl@samba.org>.
metze
2011-07-08 01:22:21 +02:00
Stefan Metzmacher
22859b0e89
s3:libsmb: add smb2cli_read*()
...
Based on the initial patch from Volker Lendecke <vl@samba.org>.
metze
2011-07-08 01:22:21 +02:00
Stefan Metzmacher
d82be9588a
s3:libsmb: add smb2cli_flush*()
...
Based on the initial patch from Volker Lendecke <vl@samba.org>.
metze
2011-07-08 01:22:20 +02:00
Stefan Metzmacher
40ecdeb3fb
s3:libsmb: add smb2cli_close*()
...
Based on the initial patch from Volker Lendecke <vl@samba.org>.
metze
2011-07-08 01:22:20 +02:00
Stefan Metzmacher
2abc34cb4a
s3:libsmb: add smb2cli_create*()
...
Based on the initial patch from Volker Lendecke <vl@samba.org>.
metze
2011-07-08 01:22:20 +02:00
Stefan Metzmacher
f21720773f
s3:libsmb: add smb2cli_tcon*() and smb2cli_tdis*()
...
Based on the initial patch from Volker Lendecke <vl@samba.org>.
metze
2011-07-08 01:22:19 +02:00
Stefan Metzmacher
4efc85c6f1
s3:libsmb: add smb2cli_sesssetup*() and smb2cli_logoff*()
...
Based on the initial patch from Volker Lendecke <vl@samba.org>.
metze
2011-07-08 01:22:18 +02:00
Stefan Metzmacher
ab913d1768
s3:libsmb: add smb2cli_negprot*()
...
Based on the initial patch from Volker Lendecke <vl@samba.org>.
metze
2011-07-08 01:22:17 +02:00
Stefan Metzmacher
a0cf7bae60
s3:libsmb: add basic smb2 client infrastructure
...
Based on the initial patch from Volker Lendecke <vl@samba.org>.
metze
2011-07-08 01:22:17 +02:00
Jeremy Allison
8dc7029561
Fix bug #8293 - SMB2 doesn't rotate the log files often enough.
...
Move the num_requests field out of the smb1 struct into the generic
struct smbd_server_connection struct. Use it to count SMB2 requests
as well as SMB1 and ensure that check_log_size() is called every 50
SMB2 requests.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Jul 8 01:14:53 CEST 2011 on sn-devel-104
2011-07-08 01:14:53 +02:00
Stefan Metzmacher
eea210eba7
s3:smb2_server: call change_to_root_user() or smbd_smb2_request_check_tcon()
...
For all requests which don't operate on a tcon, we should call
change_to_root_user(), to match the SMB1 behavior.
For SMB1 we do the following operations without AS_USER:
/* 0x70 */ { "SMBtcon",reply_tcon,0},
/* 0x71 */ { "SMBtdis",reply_tdis,DO_CHDIR},
/* 0x72 */ { "SMBnegprot",reply_negprot,0},
/* 0x73 */ { "SMBsesssetupX",reply_sesssetup_and_X,0},
/* 0x74 */ { "SMBulogoffX",reply_ulogoffX, 0}, /* ulogoff doesn't give a valid TID */
/* 0x75 */ { "SMBtconX",reply_tcon_and_X,0},
...
/* 0x2b */ { "SMBecho",reply_echo,0},
...
/* 0xa4 */ { "SMBntcancel",reply_ntcancel, 0 },
For SMB2tdis we still call smbd_smb2_request_check_tcon()
as close_cnum() calls change_to_root_user() when needed.
metze
Signed-off-by: Jeremy Allison <jra@samba.org>
2011-07-07 14:17:17 -07:00
Björn Baumbach
6db705d6fc
libcli: remove duplicate of #define NT_STATUS_NO_SUCH_JOB
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Jul 7 20:29:13 CEST 2011 on sn-devel-104
2011-07-07 20:29:13 +02:00
Björn Baumbach
80c65416c1
s3-client: Remove use of cli_errstr()
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-07-07 19:16:28 +02:00
Björn Baumbach
11426758d7
s3-libsmb: Remove use of cli_errstr()
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-07-07 19:16:28 +02:00
Björn Baumbach
98e0f9d1ed
s3-torture: run_shortname_test: Remove uses of cli_errstr()
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-07-07 19:16:28 +02:00
Björn Baumbach
684095b0a2
s3-torture: run_simple_posix_open_test: Remove uses of cli_errstr()
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-07-07 19:16:28 +02:00
Stefan Metzmacher
840a1c7445
s3-torture: use nt_errstr() for cli_unlink() error handling
...
Use nt_errstr() instead of cli_errstr() for error handling on
cli_unlink() calls.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-07-07 19:16:28 +02:00
Björn Baumbach
60873a9e48
s3-torture: introduce check_both_error()
...
Check if the server produced the expected dos or nt error code like
check_error(), but without a cli_state struct.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-07-07 19:16:28 +02:00
Stefan Metzmacher
3cdf962d1e
s3:libsmb: finally remove unused cli_state->outbuf
...
metze
2011-07-07 19:16:28 +02:00
Stefan Metzmacher
0f006751ec
s3:libsmb: remove unused clistr_push_fn()
...
metze
2011-07-07 19:16:28 +02:00
Stefan Metzmacher
30574a73d8
s3:libsmb: remove unused clistr_pull_fn()
...
metze
2011-07-07 19:16:28 +02:00
Stefan Metzmacher
fc992e7029
s3:torture/scanner: use trans2_bytes_push_str() in scan_nttrans()
...
metze
2011-07-07 19:16:28 +02:00
Stefan Metzmacher
02171ee0f0
s3:torture/scanner: use trans2_bytes_push_str() in scan_trans2()
...
metze
2011-07-07 19:16:28 +02:00
Stefan Metzmacher
072a27fd9f
s3:libsmb: use trans2_bytes_push_str() in cli_tcon_andx_create() for the plaintext password
...
This makes sure we push the string always in DOS charset.
metze
2011-07-07 19:16:28 +02:00
Stefan Metzmacher
5b1ac1bcc3
s3:libsmb: use trans2_bytes_push_str() in cli_set_ea_path()
...
metze
2011-07-07 19:16:28 +02:00
Stefan Metzmacher
cea9245909
s3:libsmb: use trans2_bytes_push_str() in cli_dfs_get_referral()
...
metze
2011-07-07 19:16:28 +02:00
Stefan Metzmacher
2453164317
s3:libsmb: use a talloc_stackframe in cli_dfs_get_referral()
...
metze
2011-07-07 19:16:27 +02:00
Stefan Metzmacher
b77becdb55
s3:libsmb: use trans2_bytes_push_str/bytes() in cli_list_trans_*()
...
metze
2011-07-07 19:16:27 +02:00
Stefan Metzmacher
d921200e75
s3:libsmb: use clistr_pull_talloc() for short_name in interpret_long_filename()
...
metze
2011-07-07 19:16:27 +02:00
Stefan Metzmacher
af66c64e95
s3:libsmb: interpret_long_filename() short_name is always UNICODE
...
metze
2011-07-07 19:16:27 +02:00
Stefan Metzmacher
eaeeb5ce0e
s3:libsmb: add trans2_bytes_push_bytes()
...
metze
2011-07-07 19:16:27 +02:00
Stefan Metzmacher
ed99caded2
s3:libsmb: make trans2_bytes_push_str() non-static
...
We should use this and get rid of clistr_push().
metze
2011-07-07 19:16:27 +02:00
Stefan Metzmacher
9a350ca3b6
s3:utils: avoid cli_nt_error()/cli_errstr() if we already have the status
...
metze
2011-07-07 19:16:27 +02:00
David Disseldorp
e5955903fd
s3-printing: remove tdb migration invalid printer name checks
...
WERR_INVALID_PRINTER_NAME only needed to be handled when printing tdb
migration used spoolss, with winreg such errors are no longer possible.
Signed-off-by: Günther Deschner <gd@samba.org>
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Jul 7 19:15:34 CEST 2011 on sn-devel-104
2011-07-07 19:15:34 +02:00