1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-29 21:47:30 +03:00

147 Commits

Author SHA1 Message Date
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 41b56d975bc37434a4bff9188970346010dc6e1c)
2002-11-23 02:58:29 +00:00
Jeremy Allison
b49e3ed0b5 Added HIDDEN/NORMAL attribute test.
Jeremy.
(This used to be commit 657aa857a5615d953a3f68dd0ded6d4a95e5545e)
2002-11-18 23:12:45 +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 163ac344012d4520000f2ca91da50a379c7f288d)
2002-11-07 15:29:09 +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 51e0f5c2dd469c59a41822dbda293e59794a7dc4)
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 738b9237eda8fdb8adb534ab1a84070923f352f1)
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 ace7738e123b28f69c290f9f1de50011d230e14b)
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 b9036900d0bb227ec16c6a5792c18ef943dcf015)
2002-09-29 06:07:58 +00:00
Jelmer Vernooij
acb5cc031e Fix 'plugin' command
(This used to be commit b01c55ed5bbf4903a87fd17d70ae9acd832d60fe)
2002-09-28 22:58:44 +00:00
Jelmer Vernooij
4310fa264f Patch from metze to fix enum_accounts
(This used to be commit 9d529256c55e5a5099f69471ed1357cff06003fe)
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 24fb0cde2f0b657df1c99474cd694438c94a566e)
2002-09-28 12:27:04 +00:00
Jelmer Vernooij
2c33710351 notify user when no {domains,accounts} were found
(This used to be commit ee3b497962a28c7c58e866b8536b1d2ae6f9b23a)
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 81156d6556dab2ea23dea69da6940a0482d79d9b)
2002-09-25 17:10:58 +00:00
Jelmer Vernooij
956767fdc4 add samtest commands:
- show_domain
 - context
(This used to be commit e969b1897269ebd27650c2192cd19ebda47e042e)
2002-09-25 15:54:40 +00:00
Jelmer Vernooij
284dd066a8 remove extern for AllowDebugChange since we don't use it
(This used to be commit 70d9b71ceaeba95712fa61e601376ff5cc8e7714)
2002-09-25 12:59:47 +00:00
Jelmer Vernooij
8df2ac63f0 Fix debuglevel command-line argument
(This used to be commit 779aea57450db83fa7870e8a35db55d475682519)
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 237883d1e68e99a3ea3df9b6e182c70cb31b2523)
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 0c01219850e5d9b77b3b2c0b4b87aa3c82e3292b)
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 50d2527eed0eb26c16f2f7e28badbf08d771380e)
2002-09-24 20:18:39 +00:00
Jelmer Vernooij
696fedc7ad Add framework for samtest commands
(This used to be commit f1021cbc557bfa0078e932a8268c5c9adcae0ae8)
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 60ab55fedf03a0b505b0b73527e031124a46304e)
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 3c9d24d7c3bad2beb641880a97f0eda5cd3e4ec7)
2002-09-10 01:58:51 +00:00
Andrew Tridgell
58b5b6f403 initial mem_ctx to NULL
patch from metze
(This used to be commit a4351a3923fd87e1c54119d997b673fcac34601b)
2002-09-05 03:06:26 +00:00
Jeremy Allison
8e33a5d6cc Correct error message.
Jeremy.
(This used to be commit e9392c4a2e1e1ce44fcd1a1105477c17a3410f14)
2002-08-30 19:06:07 +00:00
Jeremy Allison
0b9bf47fda Better error reporting on OPEN test.
Jeremy.
(This used to be commit 4e836c4ce2b51e42ab4f29c6c916fe6a73a58654)
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 4eeef6ef530acf1cc4e08e24af902c15af57ece7)
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 0428eb422b50135327daf3040067f5982f1b0b92)
2002-08-29 16:37:39 +00:00
Jelmer Vernooij
4d64593834 Use popt for printing --help message
(This used to be commit 355d28d9eae2fd4b94bb591c5c51cad2fab9d2fd)
2002-08-29 12:05:30 +00:00
Jelmer Vernooij
88f8ccd2b2 Don't use global memory context
(This used to be commit b1e1d548031f270dd51ffa1910c3ae2503e64e8f)
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 7904770d341b194574f9dc8da578a5fe4b31aa9f)
2002-08-29 10:42:29 +00:00
Simo Sorce
bf6cd37716 if muhammad does not go to the mountain ...
(This used to be commit 5246d3693c463e581a7cd40f86878e40456237c3)
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 233b14f447994db8fdb4448d19eff0c38c17254d)
2002-08-21 02:34:49 +00:00
Jelmer Vernooij
dcaceb410d some fixes
(This used to be commit e0c61b31050a3e3fdec2c47c80ef34de3ec73e04)
2002-08-20 19:35:13 +00:00
Jelmer Vernooij
89c68c1bc3 Remove unused variables
(This used to be commit 20f1765c32b2dd048e1572cd1b1e490459f7d5dc)
2002-08-20 17:58:09 +00:00
Simo Sorce
a90c9b2ccd make IRIX happy
(This used to be commit bac73fa972c24503f12968810059745c81fa57a9)
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 9b4deb1e0f36968bf9b83120b12e6692b20df9d4)
2002-08-19 00:19:44 +00:00
Simo Sorce
c9df8aa9cd O_NOFOLLOW does not exist on solaris 8 ??
(This used to be commit 4280300d80d831b78ca50a0a4325b9e239a8bb63)
2002-08-18 20:28:16 +00:00
Andrew Tridgell
db9a33fd38 nicer locking timeout test
(This used to be commit 2307869798c99f75d2624bb3c144e780e358a3c9)
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 751d057713a3fa8a5a141eaed4e8401e7802cfc9)
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 42ae5eb82657d4905bdaf247286f95599380afbb)
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 28d325227c9b7ab48a47df006204319b21f7e7f7)
2002-08-18 15:46:41 +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 21b0e8f560849be77bde463cf006ea0de54211e9)
2002-07-21 04:01:04 +00:00
Andrew Bartlett
afb7d1dc48 Another smattering of static and const
(This used to be commit 897cc4a610932e596f8a9807213166e380ef0203)
2002-07-21 03:26:10 +00:00
Jeremy Allison
2d6570904e Test how many pipes we can open.
Jeremy.
(This used to be commit 95d22f18d7a2bb06804a6a336b243face4b496a1)
2002-06-28 19:28:58 +00:00
Andrew Bartlett
df27d48e00 more dl* -> sys_dl* for sco
(This used to be commit 92eead1a0a93a6191fbd7b413f0736eb1a716b8e)
2002-05-17 10:54:26 +00:00
Simo Sorce
ee8dad7b3d add collision/total indication to every collision report
(This used to be commit c4d6a49779e0e2bff86256b8b353e6c803e31ba9)
2002-04-24 11:24:58 +00:00
Richard Sharpe
ba309aaffa Back out the wrong changes I made yesterday ...
(This used to be commit 6d52aa1fc892b48d72a790800ee00d6d7bdc4844)
2002-04-18 18:36:17 +00:00
Richard Sharpe
4e5e548170 Fix smbtorture so it can handle collisions etc ...
(This used to be commit ba4d6c76aabd3d1fd8dc1e2335baf50c58d636a7)
2002-04-17 22:50:02 +00:00
Andrew Tridgell
71c2943d34 nicer measurement of failures and collisions
(This used to be commit 61c61f6b4f22c1ef6f837145f5e05730706cc8d4)
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 65609c52960c2b5938150a2fdb5290541f4e0225)
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 858fa7efc34f6e7cdf8500900aed3f7943c91348)
2002-04-12 03:26:19 +00:00