1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-21 18:04:06 +03:00

141 Commits

Author SHA1 Message Date
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
-
Jelmer Vernooij
b01c55ed5b Fix 'plugin' command -
Jelmer Vernooij
9d529256c5 Patch from metze to fix enum_accounts -
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
-
Jelmer Vernooij
ee3b497962 notify user when no {domains,accounts} were found -
Jelmer Vernooij
81156d6556 Add samtest command 'enum_accounts' + few typo fixes in sam/interface.c -
Jelmer Vernooij
e969b18972 add samtest commands:
- show_domain
 - context
-
Jelmer Vernooij
70d9b71cea remove extern for AllowDebugChange since we don't use it -
Jelmer Vernooij
779aea5745 Fix debuglevel command-line argument -
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
-
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
-
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
-
Jelmer Vernooij
f1021cbc55 Add framework for samtest commands -
Jelmer Vernooij
60ab55fedf Merge in first command for 'samtest'
Fix small bug in sam/interface.c
Make sam backend to default to a define
-
Jeremy Allison
3c9d24d7c3 Added final Steve French patch for "required" attributes with old
dir listings. Added regression test in smbtorture (in HEAD) also.
Jeremy.
-
Andrew Tridgell
a4351a3923 initial mem_ctx to NULL
patch from metze
-
Jeremy Allison
e9392c4a2e Correct error message.
Jeremy.
-
Jeremy Allison
4e836c4ce2 Better error reporting on OPEN test.
Jeremy.
-
Jeremy Allison
4eeef6ef53 Added attribute specific OPEN tests (for SYSTEM and HIDDEN).
Jeremy.
-
Jelmer Vernooij
0428eb422b Correct popt argument info in vfstest
Don't use global_ctx in samtest.c
-
Jelmer Vernooij
355d28d9ea Use popt for printing --help message -
Jelmer Vernooij
b1e1d54803 Don't use global memory context -
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/
-
Simo Sorce
5246d3693c if muhammad does not go to the mountain ... -
Simo Sorce
233b14f447 implemented lock and mknod
addedd to vfstest the possibility to read a file to imput a stream of commands
-
Jelmer Vernooij
e0c61b3105 some fixes -
Jelmer Vernooij
20f1765c32 Remove unused variables -
Simo Sorce
bac73fa972 make IRIX happy -
Jelmer Vernooij
9b4deb1e0f Add 'conf' command to load different smb.conf files -
Simo Sorce
4280300d80 O_NOFOLLOW does not exist on solaris 8 ?? -
Andrew Tridgell
2307869798 nicer locking timeout test -
Simo Sorce
751d057713 improvements and bugfix
open calls now understands flags and mode
bug on read
-
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.
-
Andrew Tridgell
28d325227c make the LOCK1 test randomise the time for the blocking lock test -
Andrew Bartlett
21b0e8f560 More cleanups, and add a comment/hint not to clean somthing up in future :-)
Andrew Bartlett
-
Andrew Bartlett
897cc4a610 Another smattering of static and const -
Jeremy Allison
95d22f18d7 Test how many pipes we can open.
Jeremy.
-
Andrew Bartlett
92eead1a0a more dl* -> sys_dl* for sco -
Simo Sorce
c4d6a49779 add collision/total indication to every collision report -
Richard Sharpe
6d52aa1fc8 Back out the wrong changes I made yesterday ... -
Richard Sharpe
ba4d6c76aa Fix smbtorture so it can handle collisions etc ... -
Andrew Tridgell
61c61f6b4f nicer measurement of failures and collisions -
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
-
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
-
Tim Potter
fd8b3009eb Fixed some compile warnings. -
Andrew Tridgell
30febde783 a dodgy fix for a dodgy race condition in smbtorture child startup -
Jeremy Allison
6d6842abfa Tests for insane open semantics.
Jeremy.
-
Jeremy Allison
15cb6267e2 Added 5 *NASTY* non-io open tests....
Jeremy.
-
Jeremy Allison
ba6c3d65a5 Forgot torture hacks...
Jeremy.
-
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.
-