Jeremy Allison
017e0c8d95
Fix simple uses of safe_strcpy -> strlcpy. Easy ones where we just remove -1.
2011-05-04 12:12:13 -07:00
Volker Lendecke
deba880986
s3-torture: Add a test for notify upon read&x
...
This makes sure that when a file is brought online by a read call
we notify the client for FILE_NOTIFY_CHANGE_ATTRIBUTES.
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed May 4 21:09:22 CEST 2011 on sn-devel-104
2011-05-04 21:09:22 +02:00
Jeremy Allison
de87f549b7
Add POSIX O_RDONLY test of a directory for bug #8112 - POSIX extension opens of a directory are denied with EISDIR.
...
Don't strip access bits from wire flags when opening a directory.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Apr 30 02:21:24 CEST 2011 on sn-devel-104
2011-04-30 02:21:24 +02:00
Jeremy Allison
440d71f6c7
torture test for bug #8111 - CIFS VFS: unexpected error on SMB posix open.
...
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Apr 30 00:33:40 CEST 2011 on sn-devel-104
2011-04-30 00:33:39 +02:00
Günther Deschner
50883cfeb4
s3-tevent: only include ../lib/util/tevent wrappers where needed.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Apr 29 14:00:30 CEST 2011 on sn-devel-104
2011-04-29 14:00:30 +02:00
Andrew Bartlett
0520da2bbe
s3-smb Use FILE_ATTRIBUTE_ARCHIVE intead of aARCH
...
This means we use just one constant for this file attribute.
Andrew Bartlett
2011-04-29 16:38:13 +10:00
Andrew Bartlett
0eca33bbf6
s3-smb Use FILE_ATTRIBUTE_DIRECTORY intead of aDIR
...
This means we use just one constant for this file attribute.
Andrew Bartlett
2011-04-29 16:38:13 +10:00
Andrew Bartlett
0a3c84b554
s3-smb Use FILE_ATTRIBUTE_SYSTEM intead of aSYSTEM
...
This means we use just one constant for this file attribute.
Andrew Bartlett
2011-04-29 16:38:13 +10:00
Andrew Bartlett
317e19aeb3
s3-smb Use FILE_ATTRIBUTE_HIDDEN intead of aHIDDEN
...
This means we use just one constant for this file attribute.
Andrew Bartlett
2011-04-29 16:38:12 +10:00
Andrew Bartlett
7f66ebde2e
s3-smb Use FILE_ATTRIBUTE_READONLY intead of aRONLY
...
This means we use just one constant for this file attribute.
Andrew Bartlett
2011-04-29 16:38:12 +10:00
Volker Lendecke
0226428eb9
s3: Use cli_writeall instead of cli_write
...
Signed-off-by: Jeremy Allison <jra@samba.org>
2011-04-26 12:22:55 -07:00
Volker Lendecke
23a6af46c8
s3: Add a 10-second timeout for the 445 or netbios connection to a DC
2011-04-25 09:50:32 +02:00
Volker Lendecke
32296a2c36
s3: Add a quick test for bug 8042
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Apr 3 16:13:21 CEST 2011 on sn-devel-104
2011-04-03 16:13:21 +02:00
Andrew Tridgell
e395b5bd3c
s3-torture: a very simple test for convert_string_error()
...
this is a very simple test based on the example volker gave in
1e50f9a5
. A more sophisticated test will also be worthwhile, but this
at least gives us a basic test while changes are being made
2011-03-31 12:51:24 +02:00
Jeremy Allison
c109a70531
Fix convert_string() to take a *converted_size arg. and return a bool.
...
Makes these interfaces much harder to misuse and easier to ensure error
checking.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Mar 30 23:59:37 CEST 2011 on sn-devel-104
2011-03-30 23:59:37 +02:00
Günther Deschner
ab36d597e7
s3-messages: make ndr_messaging.h part of messages.h.
...
Guenther
2011-03-30 01:13:09 +02:00
Günther Deschner
b2af281e50
s3-messages: only include messages.h where needed.
...
Guenther
2011-03-30 01:13:09 +02:00
Günther Deschner
2473c2fb1b
s3-libsmb: put namequery headers to nmblib.h
...
We might find a better name for it and merge other namequery related things as
well here...
Guenther
2011-03-30 01:13:09 +02:00
Günther Deschner
2377039738
s3-locking: move locking prototypes out of proto.h.
...
Will later become part of locking.h
Guenther
2011-03-30 01:13:09 +02:00
Günther Deschner
45364f5e69
s3-vfs: include smbd/smbd.h in vfs modules.
...
Guenther
2011-03-30 01:13:08 +02:00
Günther Deschner
2f36ef7225
s3-passdb: add passdb.h where needed.
...
Guenther
2011-03-30 01:13:07 +02:00
Günther Deschner
0e771263ee
s3-includes: only include system/filesys.h when needed.
...
Guenther
2011-03-30 01:13:07 +02:00
Günther Deschner
49fcf653b1
s3-includes: only include system/passwd.h when needed.
...
Guenther
2011-03-30 01:13:07 +02:00
Günther Deschner
7369ef1f1c
s3-includes: only include system/shmem.h when needed.
...
Guenther
2011-03-30 01:13:06 +02:00
Günther Deschner
99f4a64543
s3-trans2: only include trans2.h where needed.
...
Guenther
2011-03-30 01:13:06 +02:00
Günther Deschner
64421129b6
lib/util/util_pw: share sys_get{pw,gr} group of calls.
...
Guenther
2011-03-30 01:13:06 +02:00
Volker Lendecke
592c669d9d
s3: Convert cli_raw_tcon to cli_smb
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Mar 27 19:50:21 CEST 2011 on sn-devel-104
2011-03-27 19:50:21 +02:00
Volker Lendecke
13c1c8ef3d
s3: Fix a memleak
2011-03-27 19:04:11 +02:00
Volker Lendecke
c83ce65ad0
s3: Replace a use of cli_errstr
2011-03-27 19:04:11 +02:00
Volker Lendecke
ffef3aa809
s3: Replace cli_negprot_sendsync() by cli_negprot_send()
2011-03-27 19:04:11 +02:00
Volker Lendecke
a60ba54618
s3: Remove a pointless static
2011-03-27 19:04:10 +02:00
Volker Lendecke
5d9075c049
s3: Remove a use of cli_send_smb
2011-03-27 19:04:10 +02:00
Andrew Tridgell
15e84a9a09
charcnv: removed the allow_badcharcnv and allow_bad_conv options to convert_string*()
...
we shouldn't accept bad multi-byte strings, it just hides problems
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Thu Mar 24 01:47:26 CET 2011 on sn-devel-104
2011-03-24 01:47:26 +01:00
Günther Deschner
2639f0b3ab
s3-prototypes: remove protos of some dead functions.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Mar 24 00:52:01 CET 2011 on sn-devel-104
2011-03-24 00:52:01 +01:00
Günther Deschner
7a91282c9f
s3-libsmb: only include rap client when needed.
...
Guenther
2011-03-15 21:16:35 +01:00
Günther Deschner
26321c6010
s3-torture: fix the build of rpc_open_tcp.
...
Guenther
2011-02-28 20:18:33 +01:00
Andreas Schneider
bf18403c81
s3-rpc_client: Move client pipe functions to own header.
2011-02-28 18:15:04 +01:00
Jeremy Allison
2296871f0c
Torture test added to run_opentest() to ensure we don't regress on
...
the previous change.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Feb 23 03:00:53 CET 2011 on sn-devel-104
2011-02-23 03:00:53 +01:00
Andrew Bartlett
b73cfabdf5
smbtorture Remove random file name before we start RW2
2011-02-22 16:20:10 +11:00
Günther Deschner
bc83400d81
nsswitch: make wb_reqtrans a common subsystem.
...
Guenther
2011-02-17 00:52:42 +01:00
Volker Lendecke
f71c032f16
s3: test addrchange
2011-02-01 15:11:06 +01:00
Björn Baumbach
5d8ada549e
s3-masktest: Fix cli_errstr() usage (part of bug #7864 )
...
Convert cli_errstr() to nt_errstr()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-01-25 10:45:22 +01:00
Björn Baumbach
99f8f5e594
s3-torture: Fix cli_errstr() usage (part of bug #7864 )
...
Convert cli_errstr() to nt_errstr()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-01-25 10:45:21 +01:00
Günther Deschner
6ee39a2f42
s3-torture: fix uninitialized status code.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Jan 21 16:52:34 CET 2011 on sn-devel-104
2011-01-21 16:52:34 +01:00
Jeremy Allison
1b43996022
Add DELETE-LN test to show bug #7863 - Unlink may unlink wrong file when hardlinks are involved
...
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Jan 19 03:06:32 CET 2011 on sn-devel-104
2011-01-19 03:06:32 +01:00
Stefan Metzmacher
494e57d913
s3:torture: use dcerpc_echo_X() functions
...
metze
2011-01-17 08:48:25 +01:00
Volker Lendecke
cba5a26734
s3: Convert try_trans2 to cli_trans
2011-01-17 08:03:42 +01:00
Volker Lendecke
d5decfbb26
s3: Convert try_nttrans to cli_trans
2011-01-17 08:03:41 +01:00
Volker Lendecke
bc5554bdcc
s3: Fix some nonempty blank lines
2011-01-17 08:03:40 +01:00
Jeremy Allison
dbaeb52ebe
Add OPLOCK4 test which explores how Windows copes with oplock and share mode breaks on hard links.
...
Jeremy.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Jan 15 00:59:46 CET 2011 on sn-devel-104
2011-01-15 00:59:46 +01:00
Volker Lendecke
86ff8cf227
s3: Allow more control over smbsock_[any_]connect
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Dec 29 23:30:44 CET 2010 on sn-devel-104
2010-12-29 23:30:44 +01:00
Volker Lendecke
3ae7ef73b0
s3: Test smbsock_any_connect
2010-12-22 16:39:15 +01:00
Volker Lendecke
bfc4fe4012
s3: Remove unused "retry" from cli_start_connection
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Dec 20 17:58:33 CET 2010 on sn-devel-104
2010-12-20 17:58:33 +01:00
Volker Lendecke
d096de56b1
s3: Remove unused "retry" from cli_full_connection
2010-12-20 17:10:58 +01:00
Volker Lendecke
09cccee273
s3: Remove some unused variables
2010-12-20 17:10:57 +01:00
Volker Lendecke
a881d6ab86
wb_reqtrans is not used in libwbclient
2010-12-19 23:25:06 +01:00
Volker Lendecke
c0a7c9f991
Move wbc_async.[ch] to its only user: smbtorture3
2010-12-19 23:25:06 +01:00
Andrew Tridgell
283686af75
s3-vfstest: fixed paths in vfstest
...
vfstest tries to create /messages.tdb as loadparm has not been
initialised
2010-12-10 08:46:16 +01:00
Jeremy Allison
2b788aa6ce
Move the uglyness of #ifdef REALPATH_TAKES_NULL into the vfs_default
...
module, change the signature of VFS_REALPATH to always return a
malloc'ed string.
Needed to make some privileges work I plan on doing shortly
easier to code.
Jeremy.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Nov 20 02:15:50 CET 2010 on sn-devel-104
2010-11-20 02:15:50 +01:00
Volker Lendecke
63029eb24b
s3: Fix a missing return value
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Nov 17 20:40:18 UTC 2010 on sn-devel-104
2010-11-17 20:40:18 +00:00
Volker Lendecke
e7970c02f3
s3: Make cli_set_ea_fnum return NTSTATUS
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Thu Nov 11 16:59:27 UTC 2010 on sn-devel-104
2010-11-11 16:59:27 +00:00
Volker Lendecke
ddd33f0351
s3: Make cli_set_ea_path return NTSTATUS
2010-11-11 16:16:24 +00:00
Jeremy Allison
ac0ffba004
Add test that detects problems in the SMB signing code when run through cli_write() (which doesn't use the new async methods).
...
Unfortunately, and I think due to the socket wrapper code, this doesn't
detect the failure on the build farm, but running the RW-SIGNING test
separately against a Samba or Windows server using signing does.
Jeremy.
2010-11-10 18:07:51 -08:00
Andrew Bartlett
d9f67eebf6
s3-debug Remove last direct assignements to DEBUGLEVEL
...
All future assignments of the debug level should go via
lp_set_cmdline("log level", "x") because this will ensure the value is
not overwritten in an smb.conf load.
Andrew Bartlett
2010-11-02 04:36:04 +00:00
Andrew Bartlett
cf4de8ec2c
s3-debug Remove 'AllowDebugChange' and use lp_set_cmdline() instead
...
By removing this global variable, the API between the two different
debug systems is made more similar. Both s3 and s4 now have
lp_set_cmdline() which ensures that the smb.conf cannot overwrite
these the user-specified log level.
Andrew Bartlett
2010-11-02 04:36:04 +00:00
Andrew Bartlett
9da4ace1d9
s3-debug Impove setup_logging() to specify logging to stderr
...
This change improves the setup_logging() API so that callers which
wish to set up logging to stderr can simply ask for it, rather than
directly modify the dbf global variable.
Andrew Bartlett
2010-11-02 04:36:04 +00:00
Jeremy Allison
14ff2e8de9
Fix bug #7700 - Improvement of return code of smbclient
...
Based on an initial patch from H Hasegawa <hasegawa.hiroyuki@fujixerox.co.jp>.
Convert cli_list and associated functions to take calls that return NTSTATUS.
Jeremy.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Oct 29 19:40:16 UTC 2010 on sn-devel-104
2010-10-29 19:40:16 +00:00
Volker Lendecke
5a17d26e47
s3: Replace cli_qfileinfo_test with a call to cli_qfileinfo
2010-10-24 11:39:30 +02:00
Volker Lendecke
c095809c04
s3: Convert cli_qfileinfo_basic to cli_qfileinfo
2010-10-24 11:39:30 +02:00
Volker Lendecke
d864b1bace
s3: Convert cli_qfilename to cli_qfileinfo
2010-10-24 11:39:30 +02:00
Volker Lendecke
03333fc68c
s3: Rename cli_fileinfo() to cli_fileinfo_basic()
2010-10-24 11:39:29 +02:00
Jeremy Allison
e1cfca1e2e
Make getpwnam_alloc() static to lib/username.c, and ensure all username lookups go
...
through Get_Pwnam_alloc(), which is the correct wrapper function. We were using
it *some* of the time anyway, so this just makes us properly consistent.
Jeremy.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Oct 20 16:02:12 UTC 2010 on sn-devel-104
2010-10-20 16:02:12 +00:00
Günther Deschner
ab01d6139f
nsstest: no need for two copies of the same tool.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Oct 20 15:05:34 UTC 2010 on sn-devel-104
2010-10-20 15:05:33 +00:00
Andrew Bartlett
f768b32e37
libcli/security Provide a common, top level libcli/security/security.h
...
This will reduce the noise from merges of the rest of the
libcli/security code, without this commit changing what code
is actually used.
This includes (along with other security headers) dom_sid.h and
security_token.h
Andrew Bartlett
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Oct 12 05:54:10 UTC 2010 on sn-devel-104
2010-10-12 05:54:10 +00:00
Volker Lendecke
220aa311d1
s3: Add a little test for the echo responder
2010-10-08 21:11:45 +02:00
Günther Deschner
0ff7e0c998
samba: share readline wrappers among all buildsystems.
...
Guenther
2010-10-01 22:30:22 +02:00
Jeremy Allison
d7c09f312e
Add torture test BAD-NBT-SESSION as regression fix for bug 7698 - Assert causes smbd to panic on invalid NetBIOS session request.
...
Jeremy.
2010-09-27 18:24:53 -07:00
Günther Deschner
4dbd743e46
s3-util_sid: use shared dom_sid_compare_auth and dom_sid_equal_X functions.
...
Guenther
2010-09-20 14:04:37 -07:00
Günther Deschner
c7fe04abc7
s3-build: only include async headers where needed.
...
Guenther
2010-09-20 13:54:42 -07:00
Andrew Bartlett
15abd86d54
s3-torture Add tests to show that the dom_sid parsing was faulty.
...
Andrew Bartlett
2010-09-14 14:48:49 -07:00
Stefan Metzmacher
c91bdd2b0e
s3:torture: fix printf output, lines can't start with lower case "test"
...
metze
2010-09-10 17:21:33 +02:00
Stefan Metzmacher
a489fb3ee2
s3:torture: fix run_uid_regression_test
...
metze
2010-09-10 17:21:33 +02:00
Volker Lendecke
e466bb4af4
s3: Remove smbd_server_fd()
...
This breaks the perfcol_onefs() build.
Tim, Steve, this use of smbd_server_fd is replacable by calls into
substitute.c. I don't have a onefs environment around to build a fix, so I've
decided to insert an #error, making it not compile. The fix should be pretty
obvious, you can get the socket data via "%I" and "%i" substitutions.
2010-08-29 21:55:25 +02:00
Günther Deschner
8b4f5319ef
s3-build: use talloc_dict.h only where needed.
...
Guenther
2010-08-26 00:25:58 +02:00
Günther Deschner
7a05ca2c9c
s3-build: use dbwrap.h only where needed.
...
Guenther
2010-08-26 00:25:55 +02:00
Günther Deschner
7ff7eb0b52
s3-build: only include nsswitch header where needed.
...
Guenther
2010-08-26 00:20:28 +02:00
Günther Deschner
aba1bf4b5e
s3-build: only include memcache.h where needed.
...
Guenther
2010-08-26 00:20:28 +02:00
Andrew Bartlett
abcfc11497
s3:pdbtest Fix command name of pdbtest
...
Signed-off-by: Michael Adam <obnox@samba.org>
2010-08-22 23:20:40 +02:00
Volker Lendecke
d7c8fb21bb
s3: async cli_list
2010-08-18 15:14:02 +02:00
Volker Lendecke
ac7b63384d
s3: Lift smbd_server_fd from reload_services()
2010-08-18 11:18:21 +02:00
Günther Deschner
731604d8ae
s3-smbtorture: fix printf statement in ioctl test.
...
Guenther
2010-08-16 13:30:50 +02:00
Volker Lendecke
96ae457023
s3: Remove get_client_fd()
2010-08-16 13:13:10 +02:00
Volker Lendecke
39da717fe1
s3: Lift the smbd_messaging_context from reload_services
2010-08-08 18:09:33 +02:00
Günther Deschner
af38b5f800
s3-smbtorture: include svcctl.h
...
Guenther
2010-08-06 15:43:37 +02:00
Volker Lendecke
bf9a1dd460
s3: Remove some explicit calls to procid_self()
2010-08-06 15:15:57 +02:00
Volker Lendecke
a13b96f04a
s3: Fix a crash in masktest
2010-08-05 12:46:40 +02:00
Andreas Schneider
ce2a086119
s3-popt: Only include popt-common.h when needed.
2010-08-05 12:08:31 +02:00
Volker Lendecke
867626abca
s3: Convert cli_list() to return NTSTATUS
...
If needed, the callback functions can count themselves
2010-08-04 20:32:50 +02:00
Volker Lendecke
0213cfa6af
s3: Fix some nonempty blank lines
2010-08-01 18:11:06 +02:00
Volker Lendecke
dace013898
s3: Remove a typedef (struct file_info)
2010-07-27 21:05:35 +02:00
Volker Lendecke
75db0f0a63
s3: Early start of an async nbench
...
The current nbench implementations have the problem that they fork a child
per simulated client. With hundreds or thousands of clients this can put
quite some load on the client. This test (when finished) will read the
standard dbench client.txt and run completely async from within one
process.
Volker
2010-07-26 23:10:39 +02:00
Volker Lendecke
f62bde93ce
s3: Convert cli_qpathinfo2 to cli_qpathinfo_send
2010-07-26 23:01:37 +02:00
Volker Lendecke
0ba4404f21
s3: Convert cli_qpathinfo1 to cli_qpathinfo
2010-07-26 09:51:37 +02:00
Volker Lendecke
334d5bfe30
s3: Convert cli_get_ea_list_path to cli_qpathinfo_send
2010-07-25 22:29:44 +02:00
Volker Lendecke
ce3dfd777f
s3: cli_qpathinfo->cli_qpathinfo1
2010-07-25 22:29:42 +02:00
Volker Lendecke
1819beb088
s3: Add a dummy test to prove the maxfd calculation
...
To be run in a debugger, there's no way to inspect the internal tevent_select.c
maxfd calculation
2010-06-10 11:24:00 +02:00
Andrew Bartlett
59422efca9
s3:smbd move messaging_context and memcache into globals.c
...
This helps vfstest, which previously had duplicate copies of these functions.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-05-28 18:08:27 +02:00
Andrew Bartlett
6f279de0e6
s3:smbd split reload services/printers functions from server.c
...
This helps vfstest, as it previously had duplicate copies of these
functions.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-05-28 18:08:26 +02:00
Jeremy Allison
b481b8e1f5
Fix the build of bin/smbtorture in source3. Guenther please check !
...
Jeremy.
2010-05-17 17:17:44 -07:00
Günther Deschner
c6ebab846d
s3: only include gen_ndr headers where needed.
...
This shrinks include/includes.h.gch by the size of 7 MB and reduces build time
as follows:
ccache build w/o patch
real 4m21.529s
ccache build with patch
real 3m6.402s
pch build w/o patch
real 4m26.318s
pch build with patch
real 3m6.932s
Guenther
2010-05-06 00:22:59 +02:00
Volker Lendecke
53dec15427
s3: Fix a comment
2010-04-02 10:17:14 +02:00
Jeremy Allison
b6aabcd628
Add torture test for bug 7310 - DOS attribute inconsistency with MS Office
...
Ensure we don't regress.
Jeremy.
2010-04-01 15:01:43 -07:00
Simo Sorce
9f53820de7
s3:tldap add own filter parsing
...
Also add torture test to check filter parsing.
2010-03-09 15:23:48 -05:00
Volker Lendecke
c31cf0a1b5
s3: Consolidate some pid_to_procid() calls to procid_self()
2010-02-23 17:20:28 +01:00
Volker Lendecke
752bffc53f
s3: Consolidate server_id_self into the equivalent procid_self()
2010-02-23 15:30:00 +01:00
Jeremy Allison
3aee8e73b0
Ensure STREAMERROR deletes any files in the \\testdir
...
before rmdir and mkdir.
Jeremy.
2010-02-22 15:04:10 -08:00
Volker Lendecke
15edc96f49
s3: Use the status from cli_raw_ioctl in torture_ioctl_test
2010-02-21 11:42:41 +01:00
Volker Lendecke
e38908ea65
s3: Rename LOCAL-dom_sid_parse to LOCAL-string_to_sid, add some tests
2010-02-20 21:35:03 +01:00
Volker Lendecke
1e8a84aac7
s3: Add printf why LOCAL-dom_sid_parse failed
2010-02-20 21:35:03 +01:00
Volker Lendecke
a035062f11
s3:torture: add a test LOCAL-DBTRANS to torture dbwrap with transactions.
2010-02-12 23:12:09 +01:00
Volker Lendecke
b13dd17840
s3: setup debug for smbtorture
2010-02-12 23:12:09 +01:00
Jeremy Allison
a35be8c0c2
Torture test for bug 7084 - Create time on directories not stored properly in an EA in new create time code.
...
Ensure new files in a directory don't reset the create time.
Jeremy.
2010-02-01 18:49:50 -08:00
Volker Lendecke
397a6faed9
s3: Add a little torture test for dom_sid_parse
2010-01-23 16:28:11 +01:00
Volker Lendecke
ac5b090a41
s3: Fix a shadowed variable warning
2010-01-03 21:14:58 +01:00
Volker Lendecke
675d5fe981
s3: Fix an uninitialized variable warning
2010-01-03 21:14:58 +01:00
Volker Lendecke
37ac16a88f
s3: Convert cli_ulogoff to the async API
2010-01-03 21:14:57 +01:00
Volker Lendecke
99f292479f
s3: Convert cli_tdis to the async API
2010-01-03 21:14:57 +01:00
Michael Adam
350352cf38
s3:torture: make t_stringoverflow.c compile at least (pstring is long gone)
...
I don't know whether these t_* programs are used at all any more, but this
one was using pstrcpy...
Michael
2009-12-01 00:55:34 +01:00
Volker Lendecke
7bbee8dc17
s3: Add a regression test for bug 6898
2009-11-29 16:12:51 +01:00
Volker Lendecke
603a3ba19e
s3: Factor out torture_setup_unix_extensions
2009-11-29 16:12:51 +01:00
Günther Deschner
d6c60f8447
s3-nsstest: drastically shrink size and dependencies of nsstest binary.
...
The size went down from 6.4M to 104K on my box.
Guenther
2009-11-27 10:47:11 +01:00
Stefan Metzmacher
be90385a0b
s3:torture: use timeval_current/timeval_elapsed instead of start_timer/end_timer
...
metze
2009-11-24 11:49:03 +01:00
Stefan Metzmacher
0610f547aa
s3:torture/nbio: use timeval_current/timeval_elapsed instead of start_timer/end_timer
...
metze
2009-11-24 11:49:01 +01:00
Michael Adam
a46b63fd98
s3:fix the merged build of bin/smbtorture4
...
Michael
2009-11-24 11:47:30 +01:00
Michael Adam
63a801e5c9
s3:torture: move the torture-specific headers to new torture/torture.h
...
Michael
2009-11-23 23:51:07 +01:00
Volker Lendecke
37e4e387db
s3: Convert cli_get_fs_attr_info to the async API
2009-11-21 14:01:56 +01:00
Volker Lendecke
f668e4104f
s3: Convert cli_set_unix_extensions_capabilities_send to async
2009-11-14 11:03:28 +01:00
Volker Lendecke
f9ad5cd133
s3: Convert cli_unix_extensions_version to async
2009-11-13 09:30:30 +01:00
Günther Deschner
f35a1b95aa
s3-gencache: restore gencache_get behavior with NULL args (with torture test).
...
Without this, we panic in wins_srv_is_dead() and fail to start nmbd with
wins support.
Volker, please check.
Guenther
2009-11-02 13:04:26 +01:00
Jeremy Allison
49b23fe248
Fix comments on new test.
...
Jeremy
2009-10-20 17:41:27 -07:00
Jeremy Allison
e58f880381
Add local (or NFS) lock test to smbtorture. Checks that local locks
...
conflict with CIFS locks (see bug 6868).
Jeremy.
2009-10-20 17:37:43 -07:00
Volker Lendecke
94d5417d10
s3:torture: Add a notify-bench test
...
This is a test that creates and deletes files in a directory as fast as the
network allows it. At the same time, it opens a filechangenotify. This test is
done to just torture handling a single directory together with the notify
infrastructure.
2009-10-13 20:34:25 +02:00
Volker Lendecke
76d95b9a2d
s3:gencache: Add a "was_expired" argument to gencache_get_data_blob
...
This is set to true if the routine returns failure due to an existing but
expired entry.
2009-09-23 18:50:33 +02:00
Matt Kraai
f6a29f7dd3
Port the Samba 3 shm_setup to QNX.
2009-09-13 12:55:26 +02:00
Volker Lendecke
a95955f285
s3:nsstest: Fix a very confusing behaviour in nsstest
...
Testing getgrent I thought I get the offset calculations wrong whereas
it was only nsstest printing stuff with spaces...
2009-08-29 19:43:33 +02:00
Volker Lendecke
1a22baa817
s3: Add talloc_dict.[ch]
2009-08-16 12:38:19 +02:00
Jeremy Allison
5d05d22999
Added prefer_ipv4 bool parameter to resolve_name().
...
W2K3 DC's can have IPv6 addresses but won't serve
krb5/ldap or cldap on those addresses. Make sure when
we're asking for DC's we prefer IPv4.
If you have an IPv6-only network this prioritizing code
will be a no-op. And if you have a mixed network then you
need to prioritize IPv4 due to W2K3 DC's.
Jeremy.
2009-07-28 11:51:58 -07:00
Volker Lendecke
be5cf23696
Fix the chain2 test
2009-07-24 17:17:08 +02:00
Tim Prouty
c9b8a01714
s3: Finish plumbing the fsp->fsp_name smb_fname conversion through the modules.
2009-07-20 17:26:57 -07:00
Jeremy Allison
1f5aec877f
Make cli_unlock and cli_unlock64 async. Fix POSIX lock test.
...
Jeremy.
2009-07-15 11:49:33 -07:00
Volker Lendecke
3edcd55bf1
Remove gencache_init/shutdown
...
gencache_get/set/del/iterate call gencache_init() internally anyway. And we've
been very lazy calling gencache_shutdown, so this seems not really required.
2009-07-15 10:55:20 +02:00
Günther Deschner
9f15ef11bd
s3-account_policy: add pdb_policy_type enum.
...
Guenther
2009-07-14 12:12:18 +02:00
Jeremy Allison
e67de63ba6
Make cli_posix_lock/unlock asynchronous.
...
Jeremy.
2009-07-13 18:43:10 -07:00
Volker Lendecke
3969f65aaa
Fix&Run local-gencache
2009-07-10 18:16:46 +02:00
Volker Lendecke
0a0bff353e
Fix our base64 implementation for blobs of length 4....
...
The additional length check bit us exactly at 4, removing it. The
torture test survives valgrind up to 2000 bytes :-)
2009-07-10 18:16:46 +02:00
Tim Prouty
161e182b65
s3: Remove is_ntfs_stream_name() and split_ntfs_stream_name()
...
Actually I moved split_ntfs_stream_name into torture.c which is the one
consumer of it. This could probably be changed at some point.
2009-07-08 21:36:04 -07:00
Tim Prouty
3cb0e521e1
s3: Plumb smb_filename through SMB_VFS_NTIMES
2009-07-06 15:38:42 -07:00
Tim Prouty
258952aa85
s3: Plumb smb_filename through SMB_VFS_UNLINK
2009-07-06 15:38:36 -07:00
Tim Prouty
5a09ba460c
s3: Plumb smb_filename through SMB_VFS_RENAME
2009-07-06 15:38:29 -07:00
Volker Lendecke
520b6c0d50
Fix two pointless statics
2009-07-03 23:20:57 +02:00
Volker Lendecke
56ae65ad5c
Test error codes on popular streams
2009-07-03 23:20:56 +02:00
Tim Prouty
e129384d7c
s3: Plumb smb_filename through SMB_VFS_STAT and SMB_VFS_LSTAT
...
This patch introduces two new temporary helper functions
vfs_stat_smb_fname and vfs_lstat_smb_fname. They basically allowed me
to call the new smb_filename version of stat, while avoiding plumbing
it through callers that are still too inconvenient. As the conversion
moves along, I will be able to remove callers of this, with the goal
being to remove all callers.
There was also a bug in create_synthetic_smb_fname_split (also a
temporary utility function) that caused it to incorrectly handle
filenames with ':'s in them when in posix mode. This is now fixed.
2009-06-24 21:15:25 -07:00
Volker Lendecke
4aade2768b
Add tldap paged searches, together with two helper routines
2009-06-20 18:54:07 +02:00
Volker Lendecke
756f83796f
Add tiny tldap test
2009-06-19 14:28:22 +02:00
Tim Prouty
4e3656b8d1
s3: Change SMB_VFS_OPEN to take an smb_filename struct
...
This was a little messy because of all of the vfs modules I had to
touch. Most of them were pretty straight forward, but the streams
modules required a little attention to handle smb_filename. Since the
use of smb_filename enables the vfs modules to access the raw,
over-the-wire stream, a little bit of the handling that was being done
by split_ntfs_stream_name has now been shifted into the individual
stream modules. It may be a little more code, but overall it gives
more flexibility to the streams modules, while also allowing correct
stream handling.
2009-06-17 20:11:53 -07:00
Jeremy Allison
dc5c7b7f98
Make ctemp async. Fix the test to pass against W2K3.
...
Jeremy.
2009-06-10 11:58:00 -07:00
Jeremy Allison
64a1f17aff
Make cli_ftruncate async. Also add a simple test.
...
Jeremy.
2009-06-05 16:06:05 -07:00
Slava Semushin
ecd1fe2456
source3/torture/vfstest.c(process_file): fixed file descriptor leak.
...
Found by cppcheck:
[./source3/torture/vfstest.c:400]: (error) Resource leak: file
2009-06-05 10:17:09 +02:00
Stefan Metzmacher
c862018008
s3:smbd: move tcon specific globals to struct smbd_server_connection
...
metze
2009-06-03 17:54:38 +02:00
Kai Blin
bb9103d9c4
libwbclient: Store the winbind socket dir to use in the wb_context
2009-05-30 09:17:37 +02:00
Kai Blin
57ea909b32
libwbclient: Add async call framework.
2009-05-30 09:17:37 +02:00
Jeremy Allison
684d3dddd6
Make cli_nt_delete_on_close() async.
...
Jeremy.
2009-05-29 14:58:34 -07:00
Jeremy Allison
bccc7ee2c6
Add cli_posix_readlink() and a torture test for it.
...
Jeremy.
2009-05-27 21:51:15 -07:00
Jeremy Allison
f55c7614bd
Add aync POSIX hardlink and symlink and torture test for them.
...
Missing call cli_readlink() is next.
Jeremy.
2009-05-27 17:28:23 -07:00
Volker Lendecke
49ca690b4b
Introduce "struct stat_ex" as a replacement for SMB_STRUCT_STAT
...
This patch introduces
struct stat_ex {
dev_t st_ex_dev;
ino_t st_ex_ino;
mode_t st_ex_mode;
nlink_t st_ex_nlink;
uid_t st_ex_uid;
gid_t st_ex_gid;
dev_t st_ex_rdev;
off_t st_ex_size;
struct timespec st_ex_atime;
struct timespec st_ex_mtime;
struct timespec st_ex_ctime;
struct timespec st_ex_btime; /* birthtime */
blksize_t st_ex_blksize;
blkcnt_t st_ex_blocks;
};
typedef struct stat_ex SMB_STRUCT_STAT;
It is really large because due to the friendly libc headers playing macro
tricks with fields like st_ino, so I renamed them to st_ex_xxx.
Why this change? To support birthtime, we already have quite a few #ifdef's at
places where it does not really belong. With a stat struct that we control, we
can consolidate the nanosecond timestamps and the birthtime deep in the VFS
stat calls.
At this moment it is triggered by a request to support the birthtime field for
GPFS. GPFS does not extend the system level struct stat, but instead has a
separate call that gets us the additional information beyond posix. Without
being able to do that within the VFS stat calls, that support would have to be
scattered around the main smbd code.
It will very likely break all the onefs modules, but I think the changes will
be reasonably easy to do.
2009-05-26 17:48:23 +02:00
Slava Semushin
5d2cd81645
source{3,4}/torture/smbiconv.c(main): fixed file descriptor leak.
...
File descriptor leaks only when we use file instead of stdout.
Found by cppcheck:
[./source3/torture/smbiconv.c:219]: (error) Resource leak: out
[./source4/torture/smbiconv.c:211]: (error) Resource leak: out
2009-05-25 16:18:48 +02:00
Volker Lendecke
e744b0af68
use epoll for local-wbclient test
2009-05-24 13:51:32 +02:00
Jeremy Allison
e3851a9110
Test that POSIX open of a directory returns NT_STATUS_FILE_IS_A_DIRECTORY (ERRDOS, EISDIR).
...
Jeremy.
2009-05-22 15:21:55 -07:00
Tim Prouty
96ede10cfb
s3 torture: Fix warning
2009-05-21 12:17:53 -07:00
Jeremy Allison
000da55dd9
Make cli_posix_open() and cli_posix_mkdir() async.
...
Jeremy.
2009-05-20 18:31:36 -07:00
Volker Lendecke
3fbc871f70
Demonstrate a bug we have when dealing with real os-level share modes
...
Another one of those where you stare at logfiles for hours, and when you found
it, it's absolutely obvious what is happening...
2009-05-20 14:58:37 +02:00
Volker Lendecke
ae386415b6
Make local-wbclient flexible in # of connections and ops
2009-05-19 23:09:26 +02:00
Jeremy Allison
f61959e87a
Make error message clearer on fail.
...
Jeremy.
2009-05-14 16:30:11 -07:00
Jeremy Allison
41aa7d790a
Add a test showing what ascii values cause an NTFS volume to
...
create a mangled name. We don't pass this yet, but it's not
run by default.
Jeremy.
2009-05-14 16:03:31 -07:00
Stefan Metzmacher
ca6ec5ecd7
s3:libsmb: let cli_smb_chain_send() also return NTSTATUS
...
metze
2009-05-13 18:27:50 +02:00
Jeremy Allison
b4c9cfb2af
Fix a bunch of compiler warnings about wrong format types.
...
Should make Solaris 10 builds look cleaner.
Jeremy.
2009-05-11 21:56:57 -07:00
Volker Lendecke
efbc4315d2
Fix the mangle1 test
2009-05-09 14:09:42 +02:00
Volker Lendecke
5c43bc616a
Fix a typo
2009-05-07 16:37:55 +02:00
Volker Lendecke
1b75345a9a
Add simple test chaining up sesssetup and tcon
2009-05-07 16:37:54 +02:00
Jeremy Allison
606edf0f35
Make cli_setatr async.
...
Jeremy.
2009-05-06 16:13:42 -07:00
Jeremy Allison
4cbd0c77e4
Make cli_getatr() async.
...
Jeremy.
2009-05-05 20:59:22 -07:00
Jeremy Allison
d34651f9d2
Fix the async calls for the posix_unlink and posix_rmdir.
...
Jeremy.
2009-05-04 15:50:35 -07:00
Tim Prouty
1b223eeb59
s3 torture: Only close if open was successful
2009-05-04 13:26:27 -07:00
Jeremy Allison
5dae04e055
Torture test for bug #6315 - smbd crashes doing vfs_full_audit on IPC$ close event.
...
Shows that doing a tdis with invalid uid succeeds.
Jeremy.
2009-05-04 10:40:57 -07:00
Tim Prouty
1b2c65ff8d
s3 torture: Fix comparison is always true warning
2009-05-04 08:52:26 -07:00
Volker Lendecke
2fe79f7584
Fix an invalid type warning
2009-05-03 22:48:31 +02:00
Volker Lendecke
4949a2cfaa
Fix some warnings due to uint16_t!=-1 always being true
2009-05-03 22:48:31 +02:00
Volker Lendecke
e2052f128f
Attempt to fix the build on SerNet-sles8
...
That compiler does not like #if embedded into the macro NT_STATUS_IS_OK.
2009-05-02 19:11:52 +02:00
Volker Lendecke
5b7b47f015
Add getaddrinfo_send/recv
2009-05-01 12:30:59 +02:00
Jeremy Allison
f3af298e5b
Cause cli_close to return an NTSTATUS.
...
Jeremy.
2009-04-30 16:57:42 -07:00