Jelmer Vernooij
e969b18972
add samtest commands:
...
- show_domain
- context
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
70d9b71cea
remove extern for AllowDebugChange since we don't use it
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
779aea5745
Fix debuglevel command-line argument
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
237883d1e6
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
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
0c01219850
Fix bug in get_methods_by_name
...
Fix bug in enum_domains
Add samtest commands:
- lookup_sid
- lookup_name
- enum_domains
- lookup_domain
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
50d2527eed
- 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
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
f1021cbc55
Add framework for samtest commands
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
60ab55fedf
Merge in first command for 'samtest'
...
Fix small bug in sam/interface.c
Make sam backend to default to a define
0001-01-01 00:00:00 +00:00
Jeremy Allison
3c9d24d7c3
Added final Steve French patch for "required" attributes with old
...
dir listings. Added regression test in smbtorture (in HEAD) also.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
a4351a3923
initial mem_ctx to NULL
...
patch from metze
0001-01-01 00:00:00 +00:00
Jeremy Allison
e9392c4a2e
Correct error message.
...
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
4e836c4ce2
Better error reporting on OPEN test.
...
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
4eeef6ef53
Added attribute specific OPEN tests (for SYSTEM and HIDDEN).
...
Jeremy.
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
0428eb422b
Correct popt argument info in vfstest
...
Don't use global_ctx in samtest.c
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
355d28d9ea
Use popt for printing --help message
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
b1e1d54803
Don't use global memory context
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
7904770d34
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/
0001-01-01 00:00:00 +00:00
Simo Sorce
5246d3693c
if muhammad does not go to the mountain ...
0001-01-01 00:00:00 +00:00
Simo Sorce
233b14f447
implemented lock and mknod
...
addedd to vfstest the possibility to read a file to imput a stream of commands
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
e0c61b3105
some fixes
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
20f1765c32
Remove unused variables
0001-01-01 00:00:00 +00:00
Simo Sorce
bac73fa972
make IRIX happy
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
9b4deb1e0f
Add 'conf' command to load different smb.conf files
0001-01-01 00:00:00 +00:00
Simo Sorce
4280300d80
O_NOFOLLOW does not exist on solaris 8 ??
0001-01-01 00:00:00 +00:00
Andrew Tridgell
2307869798
nicer locking timeout test
0001-01-01 00:00:00 +00:00
Simo Sorce
751d057713
improvements and bugfix
...
open calls now understands flags and mode
bug on read
0001-01-01 00:00:00 +00:00
Simo Sorce
42ae5eb826
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.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
28d325227c
make the LOCK1 test randomise the time for the blocking lock test
0001-01-01 00:00:00 +00:00
Andrew Bartlett
21b0e8f560
More cleanups, and add a comment/hint not to clean somthing up in future :-)
...
Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Bartlett
897cc4a610
Another smattering of static and const
0001-01-01 00:00:00 +00:00
Jeremy Allison
95d22f18d7
Test how many pipes we can open.
...
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Bartlett
92eead1a0a
more dl* -> sys_dl* for sco
0001-01-01 00:00:00 +00:00
Simo Sorce
c4d6a49779
add collision/total indication to every collision report
0001-01-01 00:00:00 +00:00
Richard Sharpe
6d52aa1fc8
Back out the wrong changes I made yesterday ...
0001-01-01 00:00:00 +00:00
Richard Sharpe
ba4d6c76aa
Fix smbtorture so it can handle collisions etc ...
0001-01-01 00:00:00 +00:00
Andrew Tridgell
61c61f6b4f
nicer measurement of failures and collisions
0001-01-01 00:00:00 +00:00
Andrew Tridgell
65609c5296
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
0001-01-01 00:00:00 +00:00
Andrew Tridgell
858fa7efc3
- added a mangling test suite that measures the collision rate on
...
randomised filenames
- fixed several mangling bugs that the test suite pointed out
0001-01-01 00:00:00 +00:00
Tim Potter
fd8b3009eb
Fixed some compile warnings.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
30febde783
a dodgy fix for a dodgy race condition in smbtorture child startup
0001-01-01 00:00:00 +00:00
Jeremy Allison
6d6842abfa
Tests for insane open semantics.
...
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
15cb6267e2
Added 5 *NASTY* non-io open tests....
...
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
ba6c3d65a5
Forgot torture hacks...
...
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
3b1b8ac435
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.
0001-01-01 00:00:00 +00:00
Herb Lewis
bdac7cb9c5
add a -n maxloops option so this can be run in a script and end after a
...
certain number of iterations.
0001-01-01 00:00:00 +00:00
Herb Lewis
8b38cca631
merge fix for core dump when called with no args from 2.2
0001-01-01 00:00:00 +00:00
Herb Lewis
32d5dc824a
update usage message with other options. Add a -d debuglevel option
0001-01-01 00:00:00 +00:00
Jeremy Allison
5b04b5f1df
Correctly increment offset in cli_smbwrite.
...
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
76fe90343c
the beginning of a test to determine and display a servers properties
...
just shows capabilities at the moment
0001-01-01 00:00:00 +00:00
Tim Potter
1f007d3ed4
Renamed get_nt_error_msg() to nt_errstr().
0001-01-01 00:00:00 +00:00
Andrew Tridgell
965e23537c
only try an ordinary file in lock6
0001-01-01 00:00:00 +00:00
Andrew Tridgell
3e69ea6846
expanded the lock6 test a bit to try lsarpc as well
...
this allows us to check that we refuse locking on pipes
0001-01-01 00:00:00 +00:00
Andrew Tridgell
568e1d7b43
added a LOCK6 test for weird lockingX lock type bits
...
warning! this test reboots w2k or wxp
0001-01-01 00:00:00 +00:00
Andrew Tridgell
0ae4ba18e5
added -E and -Z options, and allow for the 2 servers to have different
...
usernames/passwords
0001-01-01 00:00:00 +00:00
Andrew Tridgell
9c44ad4e42
remove an unused variable
0001-01-01 00:00:00 +00:00
Jeremy Allison
bda1c31da6
Added another 2 delete on close tests. Now 10. Had to fix smbd to match...
...
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
5ba4ba3633
Change xcopy test to use defined constants rather than magic hex
...
values so we can see what's going on.
Jeremy.
0001-01-01 00:00:00 +00:00
Herb Lewis
d3c593b120
fixed NBENCH test on IRIX (tridge)
0001-01-01 00:00:00 +00:00
Herb Lewis
c644ca6a66
make error codes match W2k advanced server sp2
0001-01-01 00:00:00 +00:00
Andrew Tridgell
c2c8c4e713
show a progress bar during the deny tests
0001-01-01 00:00:00 +00:00
Andrew Tridgell
6acd98cbb9
added -M option for minimum lock size
0001-01-01 00:00:00 +00:00
Andrew Tridgell
b71a729e14
fixed NBENCH code for NT4 server ntcreatex semantics
0001-01-01 00:00:00 +00:00
Jeremy Allison
509ac24525
Found the mp3 problem - it's a generic class bug w.r.t. renaming.
...
Added a rename torture test to illustrate the problem.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
97993630ad
allow setting of lock range and base in locktest
0001-01-01 00:00:00 +00:00
Andrew Tridgell
46b89bc997
added -k options for kerberos to smbtorture and locktest
0001-01-01 00:00:00 +00:00
Andrew Tridgell
64c0a5c4a0
handle clock skew in getatr test
0001-01-01 00:00:00 +00:00
Andrew Tridgell
f9e3b91f58
fixed -c option to NBENCH test
0001-01-01 00:00:00 +00:00
Andrew Tridgell
8095375623
added a "XCOPY" test that simulates the open calls made by xcopy /O
...
we currently fail this test
0001-01-01 00:00:00 +00:00
Andrew Tridgell
81fb8845e5
added a cli_qfilename() test to the trans2 tests
0001-01-01 00:00:00 +00:00
Andrew Tridgell
22be40b6b8
got rid of a silly '*' in printout
0001-01-01 00:00:00 +00:00
Andrew Tridgell
10ee1d22e6
- only show 1 cleanup msg per client
...
- show client count in progress
0001-01-01 00:00:00 +00:00
Andrew Tridgell
2c67b266cc
fixed the directory removal for when the dir doesn't exit
0001-01-01 00:00:00 +00:00
Andrew Tridgell
36f816a5e1
rewrote smbtorture to use the new dbench 2 format and methods
0001-01-01 00:00:00 +00:00
Tim Potter
6a58c9bd06
Removed version number from file header.
...
Changed "SMB/Netbios" to "SMB/CIFS" in file header.
0001-01-01 00:00:00 +00:00
Tim Potter
1906903f06
Quieten some pointer cast warnings.
0001-01-01 00:00:00 +00:00
Andrew Bartlett
a855dfb2e0
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
0001-01-01 00:00:00 +00:00
Andrew Bartlett
8f343beae7
Make a couple more of the warnings also be C comments
0001-01-01 00:00:00 +00:00
Andrew Bartlett
d879d2ffff
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).
0001-01-01 00:00:00 +00:00
Andrew Bartlett
d47e61eb46
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.
0001-01-01 00:00:00 +00:00
Andrew Bartlett
da9444d98f
Re-add bail on failure.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
27143900e7
fixed ERRMAPEXTRACT torture to work with win2k
0001-01-01 00:00:00 +00:00
Andrew Bartlett
95abb2473b
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
0001-01-01 00:00:00 +00:00
Jeremy Allison
0bea6cf79a
Removed global debugf. Replaced with lp_set_logfile(name).
...
Fixed winbindd to finally stop leaving log. file droppings :-).
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
7348a969bc
better nsstest error checking
0001-01-01 00:00:00 +00:00
Andrew Tridgell
4a7e1f6bb1
set return value to total errors
0001-01-01 00:00:00 +00:00
Andrew Tridgell
3c17c64e31
better error checking in nsstest
0001-01-01 00:00:00 +00:00
Andrew Tridgell
84a3390eac
- check for correct error codes
...
- handle no initgroups fn
0001-01-01 00:00:00 +00:00
Andrew Tridgell
c531f4773e
allow nsstest to test any nss module
0001-01-01 00:00:00 +00:00
Andrew Tridgell
789833b44e
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
0001-01-01 00:00:00 +00:00
Andrew Tridgell
adc9268216
fixed default location of libnss_winbind.so
0001-01-01 00:00:00 +00:00
Andrew Tridgell
aee19090d3
fixed the nsswitch initgroups code
...
added a nsstest test program that directly tests all the nss
interfaces using dlopen()
0001-01-01 00:00:00 +00:00
Andrew Tridgell
e2ba2383c9
fix a bunch of places where we can double-free a cli structure
0001-01-01 00:00:00 +00:00
Tim Potter
778f5f77a6
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);
0001-01-01 00:00:00 +00:00
Andrew Bartlett
adc7a6048c
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
0001-01-01 00:00:00 +00:00
Tim Potter
8fc772c9e5
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.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
e4fb073af0
fix maxfd test to start deleting at right file
0001-01-01 00:00:00 +00:00
Andrew Tridgell
f6a4b00aab
fix locktest default parameters
0001-01-01 00:00:00 +00:00
Martin Pool
79ec88f0da
Store some path names in global variables initialized to configure
...
default, rather than in preprocessor macros.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
5296b20ad8
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
0001-01-01 00:00:00 +00:00
Andrew Tridgell
ab7f67677a
first step in converting the head branch to use lang_tdb.c instead
...
of gettext for internationalisation support. There is more to do
0001-01-01 00:00:00 +00:00