1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-07 17:18:11 +03:00
Commit Graph

146 Commits

Author SHA1 Message Date
Jeremy Allison
657aa857a5 Added HIDDEN/NORMAL attribute test.
Jeremy.
0001-01-01 00:00:00 +00:00
Jim McDonough
163ac34401 Fix the build.
Build farm! Build farm!  Please check the build farm!

...or at least run make torture.
0001-01-01 00:00:00 +00:00
Jim McDonough
51e0f5c2dd Fix build. Extra parm was added to cli_full_connection, but not in locktest2.c. 0001-01-01 00:00:00 +00:00
Simo Sorce
738b9237ed forgot some bits from previous rpc_secdesc.h rework patch 0001-01-01 00:00:00 +00:00
Andrew Bartlett
ace7738e12 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.
0001-01-01 00:00:00 +00:00
Andrew Bartlett
b9036900d0 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
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
b01c55ed5b Fix 'plugin' command 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
9d529256c5 Patch from metze to fix enum_accounts 0001-01-01 00:00:00 +00:00
Andrew Bartlett
24fb0cde2f 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
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
ee3b497962 notify user when no {domains,accounts} were found 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
81156d6556 Add samtest command 'enum_accounts' + few typo fixes in sam/interface.c 0001-01-01 00:00:00 +00:00
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