1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
Commit Graph

412 Commits

Author SHA1 Message Date
Martin Pool
5b70d85047 Set character set to default (UTF-8) before running tests.
(This used to be commit b20d8b4970)
2003-04-09 05:31:39 +00:00
Martin Pool
80cd7c552f t_push_ucs2, t_strcmp: Run tests only once by default, rather than
10000 times.  (In theory they should be pure functions....)  You can
specify a parameter to repeat them if you want to e.g. measure
performance.
(This used to be commit 92acecd28c)
2003-04-09 05:22:17 +00:00
Martin Pool
bce94d35f1 Integrate abartlet's t_push_ucs2 test into test framework:
- Build t_push_ucs2 as part of check-programs, the prerequisite for
   "make check".

 - t_push_ucs2.c: Load configuration from /dev/null so that we get a
   unix_charset of UTF-8 and can do meaningful UCS2 tests.  Better
   comment.

 - Add a test to strings.py which tries conversion UTF8->UCS2->UTF8
   and checks the results.  Do this for English, Latin-1, and Katakana
   strings.

 - Add Python module with symbolic names for a handful of UNICODE
   characters.
(This used to be commit 275e095c92)
2003-04-08 08:05:01 +00:00
Andrew Bartlett
854c5d60bd If the string does not convert back, print the buggy result.
(This used to be commit 98f7632554)
2003-04-06 12:01:44 +00:00
Andrew Bartlett
fbd5367245 Fix bigballofmud.so, and add a test to show a bug I'm having with push_ucs2.
Andrew Bartlett
(This used to be commit a60fd29b43)
2003-04-06 11:19:26 +00:00
cvs2svn Import User
80146c3d1d This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to be commit cbc42567be) 2003-04-04 03:16:28 +00:00
Martin Pool
31c8c7156f Test harness that exercises check_dos_char()
(This used to be commit 346c763fd1)
2003-04-04 03:07:07 +00:00
John Terpstra
9660f5887e Merge from HEAD to define variable port_to_use. Needed to compile.
(This used to be commit b522892215)
2003-04-01 16:48:18 +00:00
Andrew Tridgell
65d7f6afba reversed the sense of the TCON test, now that we know that win2003
fixes this. This means that TCON fails on win2000, but passes on Samba
and win2003
(This used to be commit 591a500ed7)
2003-04-01 10:56:23 +00:00
Volker Lendecke
5fd03bffd3 This changes our handling of invalid service types that the
client requested on tconx. We now return the same error
code like NT4SP6 and W2kSP3 return.

TCONDEV is a little test for this.

Volker
(This used to be commit 6f94ab8ed5)
2003-03-30 16:37:10 +00:00
Volker Lendecke
17d188d999 This changes our handling of invalid service types that the
client requested on tconx. We now return the same error
code like NT4SP6 and W2kSP3 return.

TCONDEV is a little test for this.

Volker
(This used to be commit 6ab88f31d6)
2003-03-30 16:36:21 +00:00
Andrew Tridgell
cb830f05ae added simple tests for SMBchkpath and SMBioctl
(This used to be commit ca982a9f1d)
2003-03-30 09:45:44 +00:00
Andrew Tridgell
19a384a54c updated the TCON test so that win2000 passes. Samba now fails this
test.

It is an interesting test because it shows that win2000 completely
ignores the TID and VUID fields in a SMBwriteX. In Samba it is hard to
do this as we check the VUID and TID fields before we call the SMB
specific reply functions.

The test also shows that the list of open files must be global to the
socket, not specific to a tcon.
(This used to be commit be98069c4e)
2003-03-29 23:30:53 +00:00
Andrew Tridgell
dfcf1634bc added a simple test for the old SMBtcon interface
(This used to be commit c95ae394c5)
2003-03-29 12:44:42 +00:00
Jelmer Vernooij
11e9de855c Patch from metze to generalise POPT_COMMON_SAMBA, with some minor changes
(This used to be commit 2ddfed298d)
2003-03-24 11:25:34 +00:00
Martin Pool
54925dcc60 Run test 10000 times to make measurement easier.
(This used to be commit e051789ac6)
2003-03-19 02:59:18 +00:00
cvs2svn Import User
74d3be0218 This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to be commit f0d009c3e9) 2003-03-18 07:09:24 +00:00
Martin Pool
2f07f71d78 The new string macros catch a bug at compile that previously only
trapped at runtime, which is great.  So we have to try a little harder
to provoke an overflow -- which is still caught nicely in developer
mode.
(This used to be commit cea126f62a)
2003-03-18 05:31:52 +00:00
Andrew Tridgell
d2a85e5185 show which files we fail to create in the casetable test
(This used to be commit d40e3747cf)
2003-03-13 04:36:32 +00:00
Martin Pool
9a63d8bc2a Update usage message.
(This used to be commit 17f01f6959)
2003-03-12 02:58:45 +00:00
Martin Pool
a16b155fc9 Add example of string overflow which is now caught in developer mode.
(This used to be commit dcf1705782)
2003-03-12 02:57:48 +00:00
Andrew Tridgell
538c832ba1 having sticky create times is not a bug
(This used to be commit f283f71104)
2003-03-11 06:53:44 +00:00
Andrew Tridgell
191b44b91c fixed the MANGLE smbtorture test with the new paranoid string code
(This used to be commit 7be44dbe00)
2003-03-11 06:53:10 +00:00
Andrew Tridgell
c13990277f make sure we have an empty directory when we start the utable test
(This used to be commit af415842b8)
2003-03-11 06:31:23 +00:00
Andrew Tridgell
8dd9e99f37 fixed use_oplocks and the timeout in smbtorture startup
(This used to be commit cec1ef09e5)
2003-03-10 02:51:30 +00:00
Andrew Tridgell
44bd743c28 added -i option for ignoring dot errors in masktest
(This used to be commit 0f4d1172a6)
2003-03-10 02:49:52 +00:00
Andrew Bartlett
ca0d82b11c Make smbtorture use the same cli_full_connection() framework as the rest of
Samba.  This fixes things like not doing *SMBSERVER etc.

Andrew Bartlett
(This used to be commit 8863ff863c)
2003-03-06 10:37:51 +00:00
Martin Pool
7a3cc345e0 FIXME about crash on failure case.
(This used to be commit a387c42097)
2003-03-06 07:36:08 +00:00
Richard Sharpe
6149dfd3e7 Add *SMBSERVER fallback code to smbtorture ...
(This used to be commit 460339db22)
2003-03-05 23:55:11 +00:00
Richard Sharpe
48e3bf2e95 Add code to allow us to specify the port to connect on when performing
a test ...
(This used to be commit 1128a2fb4c)
2003-03-05 23:29:36 +00:00
Martin Pool
37e39f5be4 Add simple test harness that exposes StrCaseCmp for testing.
(This used to be commit ab77beca04)
2003-02-28 03:34:18 +00:00
Tim Potter
1aeede25e8 Merge: const fixes.
Merge: add popt_common_version to command line options table.
(This used to be commit 5f8a008a52)
2003-02-25 23:52:38 +00:00
Tim Potter
991f6cc3c1 More const fixes and flow on fixes from yesterday's const-fest.
(This used to be commit 018733eedd)
2003-02-25 23:34:57 +00:00
Andrew Bartlett
630944d179 Cleint-side-auth/kerberos fixes from HEAD, and don't connect to a share
twice, let the libsmb code determine what form the share name should take.

Andrew Bartlett
(This used to be commit a25f612664)
2003-02-24 03:28:37 +00:00
Andrew Bartlett
52db4c6698 Missed a couple of files from the client-side kerberos merge
(This used to be commit 56934f303c)
2003-02-24 03:06:45 +00:00
Andrew Bartlett
ae2f064dc6 Add static
(This used to be commit d0365f20c2)
2003-02-22 12:16:17 +00:00
Jeremy Allison
ca2e995576 New locktest7 code based on patch from "Srikanta Shivanna" <sshivanna@pillardata.com>
Jeremy.
(This used to be commit caf298c380)
2003-02-22 01:08:19 +00:00
Simo Sorce
f21edd472c correct init, tx Stefan
(This used to be commit a2e1969ce5)
2003-02-19 22:26:54 +00:00
Simo Sorce
29b94266df correct init for vfs.conn, thanks Stefan
(This used to be commit 162683d2b5)
2003-02-19 22:26:19 +00:00
Jelmer Vernooij
5eb7b6113b Add -V option (to print out version) to utilities where possible
(pdbedit already has a -V option..)
(This used to be commit 5de622968d)
2003-02-18 18:43:59 +00:00
Andrew Bartlett
e4202a9fe7 Antti Andreimann <Antti.Andreimann@mail.ee> has done some changes to enable
users w/o full administrative access on computer accounts to join a
computer into AD domain.

The patch and detailed changelog is available at:
http://www.itcollege.ee/~aandreim/samba

This is a list of changes in general:

1. When creating machine account do not fail if SD cannot be changed.
   setting SD is not mandatory and join will work perfectly without it.
2. Implement KPASSWD CHANGEPW protocol for changing trust password so
   machine account does not need to have reset password right for itself.
3. Command line utilities no longer interfere with user's existing
   kerberos ticket cache.
4. Command line utilities can do kerberos authentication even if
   username is specified (-U). Initial TGT will be requested in this case.

I've modified the patch to share the kinit code, rather than copying it,
and updated it to current CVS.  The other change included in the original patch
(local realms) has been left out for now.

Andrew Bartlett
(This used to be commit ce52f1c2ed)
2003-02-15 00:29:21 +00:00
Jeremy Allison
4689a33497 Fixup delete on close torture.
Jeremy.
(This used to be commit b031e81f4f)
2003-02-11 02:29:04 +00:00
Jeremy Allison
5bc835c188 Samba janitors: applying mbp's redundant umask fix.
Jeremy.
(This used to be commit 45d4e58ca5)
2003-02-07 22:52:35 +00:00
Jeremy Allison
9e8fc1ee4e Samba janitors: applying mbp's redundant umask fix.
Jeremy.
(This used to be commit b54f6bf06c)
2003-02-07 22:52:19 +00:00
Jeremy Allison
9c1c11dada Got complete (I hope) coverage of the OPEN TRUNCATE ATTRIBUTES test.
Now to make Samba pass it :-).
Jeremy.
(This used to be commit 510cd30a6e)
2003-02-03 23:17:24 +00:00
Jeremy Allison
d7f253609d Added first part of attribute matrix tests. Not run and compiled in right now...
Jeremy.
(This used to be commit fdc14aa6f6)
2003-01-31 20:01:32 +00:00
Andrew Bartlett
27b7e51a3c Merge from HEAD:
- fstring/pstring mixups
 - the detection code that found them (disabled)
 - a bit of whitespace
 - a static

Andrew Bartlett
(This used to be commit 9b70fa868e)
2003-01-14 08:53:59 +00:00
Andrew Bartlett
73b0a2bdf8 Fix a number of client-side fstring/pstring mixups.
Andrew Bartlett
(This used to be commit fe1cc779d5)
2003-01-11 12:04:14 +00:00
Andrew Bartlett
634c54310c Merge from HEAD - make Samba compile with -Wwrite-strings without additional
warnings.  (Adds a lot of const).

Andrew Bartlett
(This used to be commit 3a7458f947)
2003-01-03 08:28:12 +00:00
Andrew Bartlett
6d66fb308a BIG patch...
This patch makes Samba compile cleanly with -Wwrite-strings.
 - That is, all string literals are marked as 'const'.  These strings are
always read only, this just marks them as such for passing to other functions.

What is most supprising is that I didn't need to change more than a few lines of code (all
in 'net', which got a small cleanup of net.h and extern variables).  The rest
is just adding a lot of 'const'.

As far as I can tell, I have not added any new warnings - apart from making all
of tdbutil.c's function const (so they warn for adding that const string to
struct).

Andrew Bartlett
(This used to be commit 92a777d0ea)
2003-01-02 09:07:17 +00:00
Jeremy Allison
0fdf60f051 Finish adding strings to all talloc_init() calls.
Jeremy.
(This used to be commit 784d15761c)
2002-12-23 23:53:56 +00:00
Jeremy Allison
7f23546730 Forward port the change to talloc_init() to make all talloc contexts
named. Ensure we can query them.
Jeremy.
(This used to be commit 842e08e52a)
2002-12-20 20:23:06 +00:00
Jeremy Allison
ef8bd7c4f7 Forward port the change to talloc_init() to make all talloc contexts
named. Ensure we can query them.
Jeremy.
(This used to be commit 09a218a9f6)
2002-12-20 20:21:31 +00:00
Jeremy Allison
f230981e2c Please compile with :
-g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual
if you're using gcc. It really does help !
Jeremy.
(This used to be commit 7daa880503)
2002-11-23 02:58:31 +00:00
Jeremy Allison
905639d9fa Please compile with :
-g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual
if you're using gcc. It really does help !
Jeremy.
(This used to be commit 41b56d975b)
2002-11-23 02:58:29 +00:00
Jeremy Allison
6aa11bf089 Added OPEN test with HIDDEN/NORMAL attributes.
Jeremy.
(This used to be commit fc5774b075)
2002-11-18 23:13:25 +00:00
Jeremy Allison
b49e3ed0b5 Added HIDDEN/NORMAL attribute test.
Jeremy.
(This used to be commit 657aa857a5)
2002-11-18 23:12:45 +00:00
Jim McDonough
f3054fd405 Fix the build.
Build farm!  Build farm!  Please check the build farm!

...or at least run make torture.
(This used to be commit 36545ee9a7)
2002-11-07 15:32:48 +00:00
Jim McDonough
f35fa86993 Fix the build.
Build farm! Build farm!  Please check the build farm!

...or at least run make torture.
(This used to be commit 163ac34401)
2002-11-07 15:29:09 +00:00
Jelmer Vernooij
4de8710e4b Remove last SAM files
(This used to be commit c089c33468)
2002-10-30 06:44:54 +00:00
Jim McDonough
d7d60ddc21 Fix build. An extra parm was added to cli_full_connection but not locktest2.c.
(This used to be commit 1e8ca2801e)
2002-10-18 15:13:15 +00:00
Jim McDonough
6ed415f4f5 Fix build. Extra parm was added to cli_full_connection, but not in locktest2.c.
(This used to be commit 51e0f5c2dd)
2002-10-18 15:09:17 +00:00
Simo Sorce
7740814865 forgot some bits from previous rpc_secdesc.h rework patch
(This used to be commit 738b9237ed)
2002-10-07 15:51:21 +00:00
Andrew Bartlett
6b1367a7bc Fix the compile issue in bin/samtest, and make the 'system' token just have the
System sid.  This avoids comparing with ACEs that we don't yet support in the
ADS Domain security descriptor.
(This used to be commit ace7738e12)
2002-09-30 02:28:28 +00:00
Andrew Bartlett
df316e3cd9 Remove sam/api.c.
In order to reduce complexity, this patch removes the upper layer of the SAM
API.  Also, we remove the function pointers on the sam context - there really
is no point making these replaceable - that's for the modules.

Move a number of functions in include/interface.c around to allow for use of
'static' and to keep the external API in one chunk, at the bottem.  All these
functions were renamed to remove the context_sam -> sam

Consequential changes in the samtest module, and back out metze's change for
ACB filtering, becouse I think it belongs in the SAM backeds.  (But I will take
debate on this one).

Changes to the lib/util_sid.c code to create a 'system' token, and make it a
SAM_ASSERT() enforced requirement to have a token on those calls that specify
it.  samtest now uses this.

We should have a samtest call to set your own token.

We also need to extend our se_access code to cover the things that Win2k is
returning in it's access tokens.  Currently our system token doesn't pass, due
to unexpected flags.  (When running sam_ads against Win2k)

Andrew Bartlett
(This used to be commit b9036900d0)
2002-09-29 06:07:58 +00:00
Jelmer Vernooij
acb5cc031e Fix 'plugin' command
(This used to be commit b01c55ed5b)
2002-09-28 22:58:44 +00:00
Jelmer Vernooij
4310fa264f Patch from metze to fix enum_accounts
(This used to be commit 9d529256c5)
2002-09-28 21:17:33 +00:00
Andrew Bartlett
8b197158c9 Add the beginings of sam_ads to the tree.
This module, primarilly the work of "Stefan (metze) Metzmacher"
<metze@metzemix.de>, uses the Active Directory schema to store the
user/group/other information.  I've been testing it against a real AD server,
and it is intended to work with OpenLDAP as well.

I've moved a few functions around in our other libads code, which has made it
easier to tap into that existing code.

Also, I've made some changes to the SAM interface, I hope there are not too
many objections...   To ensure we don't get silly bugs in the skel module, it
is now in the default compile.  This way you should not forget to update it :-)

Andrew Bartlett
(This used to be commit 24fb0cde2f)
2002-09-28 12:27:04 +00:00
Gerald Carter
d9729d81a9 syncing up with HEAD again....
(This used to be commit e026b84815)
2002-09-26 18:37:55 +00:00
Jelmer Vernooij
2c33710351 notify user when no {domains,accounts} were found
(This used to be commit ee3b497962)
2002-09-25 19:33:04 +00:00
Jelmer Vernooij
07d7643a6e Add samtest command 'enum_accounts' + few typo fixes in sam/interface.c
(This used to be commit 81156d6556)
2002-09-25 17:10:58 +00:00
Jelmer Vernooij
956767fdc4 add samtest commands:
- show_domain
 - context
(This used to be commit e969b18972)
2002-09-25 15:54:40 +00:00
Gerald Carter
a834a73e34 sync'ing up for 3.0alpha20 release
(This used to be commit 65e7b5273b)
2002-09-25 15:19:00 +00:00
cvs2svn Import User
3054ef8a6e This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to be commit 9a5541595f) 2002-09-25 12:59:48 +00:00
Jelmer Vernooij
284dd066a8 remove extern for AllowDebugChange since we don't use it
(This used to be commit 70d9b71cea)
2002-09-25 12:59:47 +00:00
Jelmer Vernooij
8df2ac63f0 Fix debuglevel command-line argument
(This used to be commit 779aea5745)
2002-09-25 11:19:48 +00:00
Jelmer Vernooij
efcf29fde6 samtest should load smb.conf by default
add command-line option to samtest to specify alternate config file - use /dev/null
to don't load any config file..
add 'conf' command to load specified config file
(This used to be commit 237883d1e6)
2002-09-25 10:17:08 +00:00
Jelmer Vernooij
529848e988 Fix bug in get_methods_by_name
Fix bug in enum_domains
Add samtest commands:
 - lookup_sid
 - lookup_name
 - enum_domains
 - lookup_domain
(This used to be commit 0c01219850)
2002-09-24 21:18:22 +00:00
Jelmer Vernooij
2cd64003e3 - Don't put pointer to sam_domain_handle in sam_methods but single domainsid and domainname
- Allocate sam_methods, set domain_sid, domain_name and backend_name in make_sam_methods_backend_entry instead of in the backend
- Remove sam_context and domain_sid pointers from the sam_init_function - we don't need those arguments anymore since they're
  available in sam_methods as well
(This used to be commit 50d2527eed)
2002-09-24 20:18:39 +00:00
Jelmer Vernooij
696fedc7ad Add framework for samtest commands
(This used to be commit f1021cbc55)
2002-09-20 16:59:48 +00:00
Jelmer Vernooij
1244410cc4 Merge in first command for 'samtest'
Fix small bug in sam/interface.c
Make sam backend to default to a define
(This used to be commit 60ab55fedf)
2002-09-19 15:39:00 +00:00
Jeremy Allison
df920a60b5 Added final Steve French patch for "required" attributes with old
dir listings. Added regression test in smbtorture (in HEAD) also.
Jeremy.
(This used to be commit 3c9d24d7c3)
2002-09-10 01:58:51 +00:00
Andrew Tridgell
58b5b6f403 initial mem_ctx to NULL
patch from metze
(This used to be commit a4351a3923)
2002-09-05 03:06:26 +00:00
Jeremy Allison
8e33a5d6cc Correct error message.
Jeremy.
(This used to be commit e9392c4a2e)
2002-08-30 19:06:07 +00:00
Jeremy Allison
0b9bf47fda Better error reporting on OPEN test.
Jeremy.
(This used to be commit 4e836c4ce2)
2002-08-30 18:56:00 +00:00
Jeremy Allison
bf544f12f5 Added attribute specific OPEN tests (for SYSTEM and HIDDEN).
Jeremy.
(This used to be commit 4eeef6ef53)
2002-08-30 17:22:33 +00:00
Jelmer Vernooij
52ea319236 Correct popt argument info in vfstest
Don't use global_ctx in samtest.c
(This used to be commit 0428eb422b)
2002-08-29 16:37:39 +00:00
Jelmer Vernooij
4d64593834 Use popt for printing --help message
(This used to be commit 355d28d9ea)
2002-08-29 12:05:30 +00:00
Jelmer Vernooij
88f8ccd2b2 Don't use global memory context
(This used to be commit b1e1d54803)
2002-08-29 11:17:14 +00:00
Jelmer Vernooij
a97a6ed43a Adding samtest utility used to test sam backends. Compiles but doesn't do
anything (yet). Requires move from samr_make_sam_obj_sd to lib/
(This used to be commit 7904770d34)
2002-08-29 10:42:29 +00:00
Simo Sorce
bf6cd37716 if muhammad does not go to the mountain ...
(This used to be commit 5246d3693c)
2002-08-24 02:06:17 +00:00
Simo Sorce
8e71f18acf implemented lock and mknod
addedd to vfstest the possibility to read a file to imput a stream of commands
(This used to be commit 233b14f447)
2002-08-21 02:34:49 +00:00
Jelmer Vernooij
dcaceb410d some fixes
(This used to be commit e0c61b3105)
2002-08-20 19:35:13 +00:00
Jelmer Vernooij
89c68c1bc3 Remove unused variables
(This used to be commit 20f1765c32)
2002-08-20 17:58:09 +00:00
Simo Sorce
a90c9b2ccd make IRIX happy
(This used to be commit bac73fa972)
2002-08-19 16:54:06 +00:00
Jelmer Vernooij
cb2478befb Add 'conf' command to load different smb.conf files
(This used to be commit 9b4deb1e0f)
2002-08-19 00:19:44 +00:00
Simo Sorce
c9df8aa9cd O_NOFOLLOW does not exist on solaris 8 ??
(This used to be commit 4280300d80)
2002-08-18 20:28:16 +00:00
Andrew Tridgell
db9a33fd38 nicer locking timeout test
(This used to be commit 2307869798)
2002-08-18 20:06:41 +00:00
Simo Sorce
d433fc4dd3 improvements and bugfix
open calls now understands flags and mode
bug on read
(This used to be commit 751d057713)
2002-08-18 19:22:10 +00:00
Simo Sorce
789e6e6b4e A new utility to test VFS system and modules
Just now it is acommandline tool like smbclient and rpcclient that is able to
perform operations on the file system passing through the vfs layer

It is not complete yet, some functions have simply faked up data, but module
loading works yet and basic operations too.

Thanks to Eric Lorimer for helping out with the initial setup.

Simo.
(This used to be commit 42ae5eb826)
2002-08-18 18:04:00 +00:00
Andrew Tridgell
a897c3ceda make the LOCK1 test randomise the time for the blocking lock test
(This used to be commit 28d325227c)
2002-08-18 15:46:41 +00:00
Jelmer Vernooij
287d49bb5d Sync 3.0 branch with HEAD
(This used to be commit d3599b446e)
2002-08-17 15:04:57 +00:00
Andrew Bartlett
ceb73e9b3e More cleanups, and add a comment/hint not to clean somthing up in future :-)
Andrew Bartlett
(This used to be commit 21b0e8f560)
2002-07-21 04:01:04 +00:00
Andrew Bartlett
afb7d1dc48 Another smattering of static and const
(This used to be commit 897cc4a610)
2002-07-21 03:26:10 +00:00
Andrew Tridgell
e90b652848 updated the 3.0 branch from the head branch - ready for alpha18
(This used to be commit 03ac082dcb)
2002-07-15 10:35:28 +00:00
Jeremy Allison
2d6570904e Test how many pipes we can open.
Jeremy.
(This used to be commit 95d22f18d7)
2002-06-28 19:28:58 +00:00
Andrew Bartlett
df27d48e00 more dl* -> sys_dl* for sco
(This used to be commit 92eead1a0a)
2002-05-17 10:54:26 +00:00
Simo Sorce
ee8dad7b3d add collision/total indication to every collision report
(This used to be commit c4d6a49779)
2002-04-24 11:24:58 +00:00
Richard Sharpe
ba309aaffa Back out the wrong changes I made yesterday ...
(This used to be commit 6d52aa1fc8)
2002-04-18 18:36:17 +00:00
Richard Sharpe
4e5e548170 Fix smbtorture so it can handle collisions etc ...
(This used to be commit ba4d6c76aa)
2002-04-17 22:50:02 +00:00
Andrew Tridgell
4023a61892 merged the mangling test and passdb bugfixes into SAMBA_3_0
(This used to be commit 97eb3a121d)
2002-04-12 10:18:46 +00:00
cvs2svn Import User
ef3197889f This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to be commit 1c221b3e72) 2002-04-12 03:54:14 +00:00
Andrew Tridgell
71c2943d34 nicer measurement of failures and collisions
(This used to be commit 61c61f6b4f)
2002-04-12 03:54:13 +00:00
Andrew Tridgell
a2d5f9a809 better mangling test. We now test that we can create by long name and
delete by short name, and that we can create by short name and delete
by long name

our old mangling code fails this test.

also tweaked the random filename generation to produce more likely
collisions
(This used to be commit 65609c5296)
2002-04-12 03:42:44 +00:00
Andrew Tridgell
3067ec21fb - added a mangling test suite that measures the collision rate on
randomised filenames

- fixed several mangling bugs that the test suite pointed out
(This used to be commit 858fa7efc3)
2002-04-12 03:26:19 +00:00
Tim Potter
f18b466bf6 Fixed some compile warnings.
(This used to be commit fd8b3009eb)
2002-04-04 22:56:39 +00:00
Andrew Tridgell
b9d587cf83 a dodgy fix for a dodgy race condition in smbtorture child startup
(This used to be commit 30febde783)
2002-03-28 02:42:25 +00:00
Jeremy Allison
414056e9f2 Tests for insane open semantics.
Jeremy.
(This used to be commit 6d6842abfa)
2002-03-26 00:40:18 +00:00
Jeremy Allison
bca0b0fc36 Added 5 *NASTY* non-io open tests....
Jeremy.
(This used to be commit 15cb6267e2)
2002-03-26 00:07:48 +00:00
Jeremy Allison
1bb3c9cd85 Forgot torture hacks...
Jeremy.
(This used to be commit ba6c3d65a5)
2002-03-23 02:59:20 +00:00
Jeremy Allison
c90cd26e94 Fix the mp3 rename bug - also tidy up our open code and remove the special
cases for rename and unlink. Had to add desired_access into the share mode record.
Jeremy.
(This used to be commit 3b1b8ac435)
2002-03-23 02:57:44 +00:00
Herb Lewis
2e39a46942 add a -n maxloops option so this can be run in a script and end after a
certain number of iterations.
(This used to be commit bdac7cb9c5)
2002-03-22 00:09:09 +00:00
Herb Lewis
a3468c25a4 merge fix for core dump when called with no args from 2.2
(This used to be commit 8b38cca631)
2002-03-21 22:36:04 +00:00
Herb Lewis
aadc8a52fd update usage message with other options. Add a -d debuglevel option
(This used to be commit 32d5dc824a)
2002-03-21 14:03:41 +00:00
Jeremy Allison
a1249aca90 Correctly increment offset in cli_smbwrite.
Jeremy.
(This used to be commit 5b04b5f1df)
2002-03-20 01:47:31 +00:00
Andrew Tridgell
45c8a07d5c the beginning of a test to determine and display a servers properties
just shows capabilities at the moment
(This used to be commit 76fe90343c)
2002-03-19 23:19:00 +00:00
Tim Potter
ab13654dc9 Renamed get_nt_error_msg() to nt_errstr().
(This used to be commit 1f007d3ed4)
2002-03-17 04:36:35 +00:00
Andrew Tridgell
59100a45a0 only try an ordinary file in lock6
(This used to be commit 965e23537c)
2002-03-11 15:56:59 +00:00
Andrew Tridgell
9bdb6e2b22 expanded the lock6 test a bit to try lsarpc as well
this allows us to check that we refuse locking on pipes
(This used to be commit 3e69ea6846)
2002-03-11 01:57:39 +00:00
Andrew Tridgell
2fb07df753 added a LOCK6 test for weird lockingX lock type bits
warning! this test reboots w2k or wxp
(This used to be commit 568e1d7b43)
2002-03-11 01:37:08 +00:00
Andrew Tridgell
e450ba6639 added -E and -Z options, and allow for the 2 servers to have different
usernames/passwords
(This used to be commit 0ae4ba18e5)
2002-03-10 23:17:47 +00:00
Andrew Tridgell
b84c24092e remove an unused variable
(This used to be commit 9c44ad4e42)
2002-03-10 01:47:12 +00:00
Jeremy Allison
c960578ba0 Added another 2 delete on close tests. Now 10. Had to fix smbd to match...
Jeremy.
(This used to be commit bda1c31da6)
2002-03-07 04:15:40 +00:00
Jeremy Allison
0876fb4113 Change xcopy test to use defined constants rather than magic hex
values so we can see what's going on.
Jeremy.
(This used to be commit 5ba4ba3633)
2002-03-07 02:16:25 +00:00
Herb Lewis
86a9be69d3 fixed NBENCH test on IRIX (tridge)
(This used to be commit d3c593b120)
2002-03-06 21:05:26 +00:00
Herb Lewis
b9998ace1f make error codes match W2k advanced server sp2
(This used to be commit c644ca6a66)
2002-03-06 18:55:01 +00:00
Andrew Tridgell
457112e9e4 show a progress bar during the deny tests
(This used to be commit c2c8c4e713)
2002-03-05 19:52:14 +00:00
Andrew Tridgell
7f35a045fc added -M option for minimum lock size
(This used to be commit 6acd98cbb9)
2002-03-05 19:51:37 +00:00
Andrew Tridgell
ced46b906b fixed NBENCH code for NT4 server ntcreatex semantics
(This used to be commit b71a729e14)
2002-03-05 19:51:05 +00:00
Jeremy Allison
a4ff0924d6 Found the mp3 problem - it's a generic class bug w.r.t. renaming.
Added a rename torture test to illustrate the problem.
Jeremy.
(This used to be commit 509ac24525)
2002-03-05 19:45:16 +00:00
Andrew Tridgell
1315c8c4cf allow setting of lock range and base in locktest
(This used to be commit 97993630ad)
2002-03-04 00:35:28 +00:00
Andrew Tridgell
c40d0d5783 added -k options for kerberos to smbtorture and locktest
(This used to be commit 46b89bc997)
2002-03-04 00:24:24 +00:00
Andrew Tridgell
7e9553c168 handle clock skew in getatr test
(This used to be commit 64c0a5c4a0)
2002-03-03 20:47:44 +00:00
Andrew Tridgell
a59893fc4b fixed -c option to NBENCH test
(This used to be commit f9e3b91f58)
2002-03-03 20:31:35 +00:00
Andrew Tridgell
80592054fb added a "XCOPY" test that simulates the open calls made by xcopy /O
we currently fail this test
(This used to be commit 8095375623)
2002-02-24 08:38:11 +00:00
Andrew Tridgell
1f6d48f56d added a cli_qfilename() test to the trans2 tests
(This used to be commit 81fb8845e5)
2002-02-21 04:27:16 +00:00
Andrew Tridgell
209467ece1 got rid of a silly '*' in printout
(This used to be commit 22be40b6b8)
2002-02-05 06:42:35 +00:00
Andrew Tridgell
007a9a5cdc - only show 1 cleanup msg per client
- show client count in progress
(This used to be commit 10ee1d22e6)
2002-02-05 03:55:20 +00:00
Andrew Tridgell
3608da565f fixed the directory removal for when the dir doesn't exit
(This used to be commit 2c67b266cc)
2002-02-05 03:02:14 +00:00
Andrew Tridgell
38fa35571e rewrote smbtorture to use the new dbench 2 format and methods
(This used to be commit 36f816a5e1)
2002-02-05 01:31:47 +00:00
Tim Potter
cd68afe312 Removed version number from file header.
Changed "SMB/Netbios" to "SMB/CIFS" in file header.
(This used to be commit 6a58c9bd06)
2002-01-30 06:08:46 +00:00
Tim Potter
978f1ba98d Quieten some pointer cast warnings.
(This used to be commit 1906903f06)
2002-01-16 02:31:53 +00:00
Andrew Bartlett
80437a4cc0 Update the NT_STATUS -> DOS error table.
This new table is rather different to the old one (see diff posted to the
list for a sorted list of differences) and needs a *lot* of testing.

It does however seem to line up much better with what NT is using, as
exampled by the change to the OBJECT_NAME_COLLISION DOS error, it now matches
win2k where it didn't before.

I can't see any critical errors we now get wrong, and I know that the auth
errors are correct as per my on-the-wire observations.

This table was produced (and I hope to comment this better later) by
using the ERRMAPEXTRACT smbtorture tool, a Win2k domain member and the
'name_to_ntstatus' auth module on the HEAD PDC.  This module returned
the username as the error, and the NT box was forced to give me a dos
error becouse thats all I negotiated on that connection.  Hence the map.

Andrew Bartlett
(This used to be commit a855dfb2e0)
2002-01-03 08:36:47 +00:00
Andrew Bartlett
8f88157dce Make a couple more of the warnings also be C comments
(This used to be commit 8f343beae7)
2002-01-03 07:42:15 +00:00
Andrew Bartlett
a8f356a71f A few changes to always output the erorr mapping even when the error was
'squashed' or the session setup succeeded.  (How the latter occurs I don't know).
(This used to be commit d879d2ffff)
2002-01-03 07:36:26 +00:00
Andrew Bartlett
2998af3746 Workaround some 'smarts' in Win2k.
Win2k kills off connections that have issued a negprot but havn't yet issued
a session setup when a second connection appears from the same host.
(This used to be commit d47e61eb46)
2002-01-03 07:00:18 +00:00
Andrew Bartlett
f9866e88a6 Re-add bail on failure.
(This used to be commit da9444d98f)
2002-01-03 06:10:25 +00:00
Andrew Tridgell
34b9c7cee2 fixed ERRMAPEXTRACT torture to work with win2k
(This used to be commit 27143900e7)
2002-01-03 05:48:49 +00:00
Andrew Bartlett
1f9c32e738 Minor update to make the output 'real C'. (The output is intended to be a C
format table for inclusion back into Samba).

Andrew Bartlett
(This used to be commit 95abb2473b)
2002-01-02 03:54:40 +00:00
Jeremy Allison
9ed10f83d7 Removed global debugf. Replaced with lp_set_logfile(name).
Fixed winbindd to finally stop leaving log. file droppings :-).
Jeremy.
(This used to be commit 0bea6cf79a)
2001-12-20 22:27:05 +00:00
Andrew Tridgell
e7da05b760 better nsstest error checking
(This used to be commit 7348a969bc)
2001-12-19 08:40:50 +00:00
Andrew Tridgell
adbd4300fd set return value to total errors
(This used to be commit 4a7e1f6bb1)
2001-12-09 07:18:59 +00:00
Andrew Tridgell
1445184502 better error checking in nsstest
(This used to be commit 3c17c64e31)
2001-12-09 06:51:27 +00:00
Andrew Tridgell
82516cad1b - check for correct error codes
- handle no initgroups fn
(This used to be commit 84a3390eac)
2001-12-09 06:10:40 +00:00
Andrew Tridgell
92dc801733 allow nsstest to test any nss module
(This used to be commit c531f4773e)
2001-12-06 22:42:27 +00:00
Andrew Tridgell
6f907af4e7 put sid_to_name behind the winbindd backend interface
I spent quite a while trying to work out how to make this call
via ldap and failed. I then found that MS servers seem use rpc
for sid_to_name, and it works even when in native mode, I ended
up just implementing it via rpc
(This used to be commit 789833b44e)
2001-12-03 11:11:14 +00:00
Andrew Tridgell
fc85c8a3eb fixed default location of libnss_winbind.so
(This used to be commit adc9268216)
2001-12-03 03:57:34 +00:00
Andrew Tridgell
37749cbb04 fixed the nsswitch initgroups code
added a nsstest test program that directly tests all the nss
interfaces using dlopen()
(This used to be commit aee19090d3)
2001-12-03 03:53:57 +00:00
Andrew Tridgell
eec9e8a052 fix a bunch of places where we can double-free a cli structure
(This used to be commit e2ba2383c9)
2001-11-28 03:56:30 +00:00
Tim Potter
585d0efbc6 Got medieval on another pointless extern. Removed extern struct ipzero
and replaced with two functions:

	void zero_ip(struct in_adder *ip);
	BOOL is_zero_ip(struct in_addr ip);
(This used to be commit 778f5f77a6)
2001-11-26 03:11:44 +00:00
Andrew Bartlett
a71f3f66a1 Add a new torture test to extract a NT->DOS error map from an NT member of a
samba domain.

The PDC must be running a special authenticaion module that spits out NT errors
based on username.

Andrew Bartlett
(This used to be commit adc7a6048c)
2001-11-25 02:35:37 +00:00
Tim Potter
79b34d1b11 Removed TimeInit() call from every client program (except for one place
in smbd/process.c where the timezone is reinitialised.  Was replaced with
check for a static is_initialised boolean.
(This used to be commit 8fc772c9e5)
2001-11-23 00:52:29 +00:00
Andrew Tridgell
fb57218a4a fix maxfd test to start deleting at right file
(This used to be commit e4fb073af0)
2001-11-20 08:49:16 +00:00
Andrew Tridgell
e1eb073fa4 fix locktest default parameters
(This used to be commit f6a4b00aab)
2001-11-20 08:48:46 +00:00
Martin Pool
f741f65673 Store some path names in global variables initialized to configure
default, rather than in preprocessor macros.
(This used to be commit 79ec88f0da)
2001-11-19 02:49:53 +00:00
Andrew Tridgell
a689b24db1 the next step in the intl changeover. This should get us compiling agian,
and also completes the switch to lang_tdb.c. SWAT should now work
with a po file in the lib/ directory

also removed useless SYSLOG defines in many files
(This used to be commit 5296b20ad8)
2001-10-14 12:10:29 +00:00
Andrew Tridgell
8cec5cf35f first step in converting the head branch to use lang_tdb.c instead
of gettext for internationalisation support. There is more to do
(This used to be commit ab7f67677a)
2001-10-11 08:40:42 +00:00
Andrew Tridgell
9bcd133e9e switched over to a new method of handling uppercase/lowercase mappings
for unicode strings. The new method relies on 3 files that are mmap'd
at startup to provide the mapping tables. The upcase.dat and
lowcase.dat tables should be the same on all systems. The valid.dat
table says what characters are valid in 8.3 names, and differs between
systems. I'm committing the japanese valid.dat here, in future we need
some way of automatically installing and choosing a appropriate table.

This commit also adds my mini tdb based gettext replacement in
intl/lang_tdb.c. I have not enabled this yet and have not removed the
old gettext code as the new code is still being looked at by Monyo.

Right now the code assumes that the upcase.dat, lowcase.dat and
valid.dat files are installed in the Samba lib directory. That is not
a good choice, but I'll leave them there until we work out the new
install directory structure for Samba 3.0.

simo - please look at the isvalid_w() function and think about using
it in your new mangling code. That should be the final step to
correctly passing the chargen test code from monyo.
(This used to be commit 1c221994f1)
2001-10-03 12:18:20 +00:00
Andrew Tridgell
e8547256f3 better method of generating the case equivalence table
interestingly, this shows that w2kp-jp and w2kp have the *same* case
equivalence table, but it is not the same as the Samba one.
(This used to be commit b97fbfcd7c)
2001-10-02 13:26:38 +00:00
Andrew Tridgell
58bc10518b the CASETABLE torture target now generates the complete unicode
equivalence table for a server. This was inspired by the chargen win32
code from monyo.

This takes a *long* time to run against a Samba server due to the case
insensitive comparisons in the filesystem. That makes it a N^2
operation, and N is 64k. It is linear on NT.
(This used to be commit 441f9415b3)
2001-10-02 05:52:11 +00:00
Tim Potter
dc1fc3ee8e Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.
(This used to be commit 2d0922b0ea)
2001-10-02 04:29:50 +00:00
Andrew Tridgell
4fe127dbe8 added a little smbtorture test for dumping the unicode table of a
server. This is just a framework right now - I want this to eventually
replace the win32 test code from monyo

The interesting this about this test is that it shows up a really
horrible performance bug in our stat cache code. I'll see if I can fix
it.
(This used to be commit eb668b54af)
2001-09-25 05:20:43 +00:00
Simo Sorce
2d6a3079b8 move to SAFE_FREE()
(This used to be commit fc71962409)
2001-09-17 11:37:57 +00:00
Andrew Tridgell
23af074326 fixed ctemp in server and client. It turns out that ctemp on NT is completely broken, and it's pointless to emulate their brokenness completely in this case, but at least this makes us use approximately the same packet format. The spec is complelet wrong in this case
(This used to be commit 2d507ec669)
2001-09-17 04:23:48 +00:00
Andrew Bartlett
f7f0200210 Fix (I hope) for a number of little compile warnings found by the IRIX
compilers on the build farm.

Andrew Bartlett
(This used to be commit 0ff0a91a6b)
2001-09-16 08:24:44 +00:00
Andrew Tridgell
b12a4dd9b6 declare dbf in one spot
(This used to be commit f41c3bb80f)
2001-09-10 12:14:18 +00:00
Andrew Tridgell
b30e75692d replaced stdio in many parts of samba with a XFILE. XFILE is a cut-down
replacemnt of stdio that doesn't suffer from the 8-bit filedescriptor
limit that we hit with nasty consequences on some systems

I would eventually prefer us to have a configure test to see if we need
to replace stdio, but for now this code needs to be tested widely so
I'm enabling it by default.
(This used to be commit 1af8bf34f1)
2001-09-10 11:08:57 +00:00
Andrew Tridgell
fc07eb5eef - fixed proto.h build on systems using a parallel make
- changed DENY1 and DENY2 tests to only report errors
(This used to be commit 9341e5534d)
2001-09-06 10:37:21 +00:00
Andrew Tridgell
dd9b2f3b2f it turns out that XP agrees with the samba head branch over the right
error codes for locking, so fix the test rather than fixing samba
(This used to be commit a583af3c2f)
2001-09-06 01:21:09 +00:00
Andrew Tridgell
cefa698c72 fixed compilation of torture
(This used to be commit aaf538a830)
2001-09-04 11:52:42 +00:00
Andrew Tridgell
b031af348c converted another bunch of stuff to NTSTATUS
(This used to be commit 1d36250e33)
2001-08-27 19:46:22 +00:00
Andrew Tridgell
05c0ca2355 forgot to commit the scanner code
(This used to be commit 591308f388)
2001-08-27 18:01:05 +00:00
Andrew Tridgell
e8e98c9ea0 converted smbd to use NTSTATUS by default
major changes include:

- added NSTATUS type
- added automatic mapping between dos and nt error codes
- changed all ERROR() calls to ERROR_DOS() and many to ERROR_NT()
  these calls auto-translate to the client error code system
- got rid of the cached error code and the writebmpx code

We eventually will need to also:
- get rid of BOOL, so we don't lose error info
- replace all ERROR_DOS() calls with ERROR_NT() calls

but that is too much for one night
(This used to be commit 83d9896c1e)
2001-08-27 08:19:43 +00:00
Andrew Tridgell
464237cdb8 fixed handling of 139/445 in clients
(This used to be commit 22b372f8a7)
2001-08-24 20:11:09 +00:00
Andrew Tridgell
b34d17e498 tests for 0 length locks
(This used to be commit 8fbd1d0f97)
2001-08-24 19:34:11 +00:00
Andrew Tridgell
98e407a021 allow for 0 range locks in locktest
(This used to be commit c3b2d959a7)
2001-08-24 04:57:13 +00:00
Andrew Tridgell
c50da047a1 more minor torture updates
(This used to be commit 6513b94d19)
2001-08-23 23:16:42 +00:00
Andrew Tridgell
9e21abd314 the beginnings of a TRANS2 scanner
(This used to be commit 9c483987a5)
2001-08-23 16:24:29 +00:00
Andrew Tridgell
d81e123998 minor bug fixes to smbtorture
(This used to be commit 7724243fe7)
2001-08-22 03:15:33 +00:00
Andrew Tridgell
11ce0f4d2d a bunch of fixes from the sflight to seattle
in particular:
 - fixed NT status code for a bunch of ops
 - fixed handling of protocol levels in ms_fnmatch
(This used to be commit 3eba9606f7)
2001-08-20 05:15:26 +00:00
Tim Potter
e7630562c9 Converted to new error API.
Now that we support NT errors from the client, appropriate values will need
to be filled in for the various invocations of check_error() within the
torture code.
(This used to be commit 577f6065f6)
2001-08-13 04:08:42 +00:00
Andrew Bartlett
cd41846aa5 Update smbtorture in line with SAMBA_2_2
Andrew Bartlett
(This used to be commit dc588ee87a)
2001-07-07 06:21:32 +00:00
Andrew Tridgell
6668abac5e fixed compilation of masktest on AIX
(This used to be commit 832a91bbe6)
2001-07-05 05:53:08 +00:00
Andrew Tridgell
527e824293 strchr and strrchr are macros when compiling with optimisation in gcc, so we can't redefine them. damn.
(This used to be commit c41fc06376)
2001-07-04 07:36:09 +00:00
Andrew Tridgell
87fbb7092b The big character set handling changeover!
This commit gets rid of all our old codepage handling and replaces it with
iconv. All internal strings in Samba are now in "unix" charset, which may
be multi-byte. See internals.doc and my posting to samba-technical for
a more complete explanation.
(This used to be commit debb471267)
2001-07-04 07:15:53 +00:00
Andrew Bartlett
983d841e36 See if we can stick to slightly valid C..
(With thanks to tpot)

Andrew Bartlett
(This used to be commit e77cfe1379)
2001-07-03 04:29:50 +00:00
Andrew Bartlett
d2af8d03ab Not all OSs have setbuffer, so we better check for it.
Andrew Bartlett
(This used to be commit aa5708de69)
2001-07-02 04:47:55 +00:00
Andrew Bartlett
be242703e1 Make smbtorture return status values for use in the build_farm tests.
This should not have changed behaviour, and it has been tested.

Andrew Bartlett
(This used to be commit a73aefef09)
2001-07-02 03:21:17 +00:00
Jeremy Allison
064b4904f9 Ensure we return correct error on trying to unlock a region not locked.
Jeremy.
(This used to be commit 015a077acc)
2001-06-30 03:11:44 +00:00
Jeremy Allison
850a0e27e1 Extra debug in open.c, fix for bad debug message in reply.c
Jeremy.
(This used to be commit 2c2fc85136)
2001-06-19 07:31:55 +00:00
Andrew Tridgell
32ce168a3f added a torture target for building all torture progs. Fixed a typo in locktest
(This used to be commit fd0d729ce0)
2001-06-19 02:06:12 +00:00
Andrew Tridgell
ffb63e4f8e moved all our torture code to a separate directory
(This used to be commit dd12c47645)
2001-06-19 02:02:19 +00:00