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

531 Commits

Author SHA1 Message Date
Volker Lendecke
caf8c6a76b r21064: The core of this patch is
void message_register(int msg_type,
                      void (*fn)(int msg_type, struct process_id pid,
-                                void *buf, size_t len))
+                                void *buf, size_t len,
+                                void *private_data),
+                     void *private_data)
 {
        struct dispatch_fns *dfn;

So this adds a (so far unused) private pointer that is passed from
message_register to the message handler. A prerequisite to implement a tiny
samba4-API compatible wrapper around our messaging system. That itself is
necessary for the Samba4 notify system.

Yes, I know, I could import the whole Samba4 messaging system, but I want to
do it step by step and I think getting notify in is more important in this
step.

Volker
(This used to be commit c8ae60ed65)
2007-10-10 12:17:32 -05:00
Volker Lendecke
bf219447a3 r20846: Before this gets out of control...
This add a struct event_context and infrastructure for fd events to smbd. This
is step zero to import lib/events.

Jeremy, I rely on you to watch the change in receive_message_or_smb()
closely. For the normal code path this should be the only relevant change. The
rest is either not yet used or is cosmetic.

Volker
(This used to be commit cd07f93a8a)
2007-10-10 12:17:13 -05:00
Günther Deschner
7f88a7c948 r20630: Fix some trivial memleaks.
Guenther
(This used to be commit 3bb94a0818)
2007-10-10 12:17:00 -05:00
Herb Lewis
55ed1d5945 r20261: merge 20260 from samba_3_0_24
clean up a bunch of no previous prototype warnings
(This used to be commit c60687db11)
2007-10-10 12:16:37 -05:00
Herb Lewis
ef4c2088c5 r20245: merge 20244 from samba_3_0_24
get rid of more nested extern declarations warnings
(This used to be commit e9df051f52)
2007-10-10 12:16:36 -05:00
Jeremy Allison
3645d6f1b2 r18796: Fix the build. Sorry.
Jeremy.
(This used to be commit 8b9e5f28c2)
2007-10-10 12:00:58 -05:00
Volker Lendecke
96c72e2f81 r18310: Add a little test for some gencache routines
Remove unused gencache_set_only
Use CONST_DISCARD instead of SMB_STRDUP

Volker
(This used to be commit 651e7e44e2)
2007-10-10 11:51:19 -05:00
Jelmer Vernooij
995205fc60 r18188: merge 3.0-libndr branch
(This used to be commit 1115745cae)
2007-10-10 11:43:56 -05:00
Stefan Metzmacher
eb536690e2 r18070: be more verbose when errors happen
metze
(This used to be commit 9d71a037b1)
2007-10-10 11:43:25 -05:00
Volker Lendecke
5d4a189d4e r17853: Fix an uninitialized variable (m_time2). Jeremy, please check.
Thanks,

Volker
(This used to be commit 389910b2d3)
2007-10-10 11:38:54 -05:00
Jeremy Allison
a64925ddff r17800: Start using struct timespec internally for file times
on the wire. This allows us to go to nsec resolution
for systems that support it. It should also now be
easy to add a correct "create time" (birth time)
for systems that support it (*BSD). I'll be watching
the build farm closely after this one for breakage :-).
Jeremy.
(This used to be commit 425280a1d2)
2007-10-10 11:38:48 -05:00
Jeremy Allison
aee6b5942a r17761: Handle times consistently across all client utils.
Fixes bugs reported in libsmbclient.
Jeremy.
(This used to be commit 42a417fb75)
2007-10-10 11:38:47 -05:00
Volker Lendecke
b29915d611 r17571: Change the return code of cli_session_setup from BOOL to NTSTATUS
Volker
(This used to be commit 94817a8ef5)
2007-10-10 11:38:39 -05:00
Volker Lendecke
ec56f62bd8 r17555: Cleanup
(This used to be commit 4199b5d226)
2007-10-10 11:38:39 -05:00
Volker Lendecke
03e3cd1d5a r17554: Cleanup
(This used to be commit 761cbd52f0)
2007-10-10 11:38:38 -05:00
Volker Lendecke
108009f268 r17470: This is the group mapping rewrite announced a few days ago. I'm afraid it's
more than 1000 lines of patch, but doing it in smaller pieces is hardly
possible.

Anybody interested please look over this. The patch is not really interesting,
just look at the new groupdb/mapping.c file.

Jerry, one entry for the 3.0.24 release notes: smbd will refuse to start if we
have overlapping mappings in group_mapping.tdb. With the old db a unix gid can
be mapped to two different SIDs. This will be refused with the new code.

Volker
(This used to be commit f0f0e893ca)
2007-10-10 11:38:36 -05:00
Volker Lendecke
76362d0d33 r17468: To minimize the diff later on, pre-commit some changes independently: Change
internal mapping.c functions to return NTSTATUS instead of BOOL.

Volker
(This used to be commit 4ebfc30a28)
2007-10-10 11:38:36 -05:00
Volker Lendecke
e1e62d8999 r17463: A bit of cleanup work:
Remove some unused code: pdb_find_alias is not used anymore, and nobody I
think has ever used the pdb_nop operations for group mapping. smbpasswd and
tdb use the default ones and ldap has its own.

Make the functions pdb_getgr* return NTSTATUS instead of BOOL. Nobody right
now really makes use of it, but it feels wrong to throw away information so
early.

Volker
(This used to be commit f9856f6490)
2007-10-10 11:38:36 -05:00
Volker Lendecke
21da07ba1f r17457: Add a test to do some operations on group mapping.
Volker
(This used to be commit 68db058fdf)
2007-10-10 11:38:35 -05:00
Volker Lendecke
ac9628de48 r17425: Add the multi-key wrapper. If it's necessary to add general blobs as keys,
this can trivially be added later.

Volker
(This used to be commit 6915adb978)
2007-10-10 11:38:33 -05:00
Volker Lendecke
467ec2a32b r17363: Some C++ warnings
(This used to be commit fd82f185a2)
2007-10-10 11:38:28 -05:00
Volker Lendecke
e7952e9c14 r17347: Some C++ warnings -- 271 left
(This used to be commit 641dac4f85)
2007-10-10 11:38:27 -05:00
Alexander Bokovoy
5fbe298b5a r17338: Add support for multiple shares test inspired by Samba 4 torture's --unclist option. Triggered by -b sharelist_file option.
Based on Peter Samogyi's work. I'm not sure what concept for fstring replacement is currently in place though (talloc-ed strings? or it was for pstring only?)
(This used to be commit c9f8fafad6)
2007-10-10 11:38:26 -05:00
Volker Lendecke
3785912b7d r17190: Remove a warning from "opi", a 64-bit machine
(This used to be commit 844c98eab4)
2007-10-10 11:38:18 -05:00
Volker Lendecke
6dfccad564 r16960: Some warnings from host "opi"
(This used to be commit 083ef11cc9)
2007-10-10 11:19:15 -05:00
Jeremy Allison
fbdcf2663b r16945: Sync trunk -> 3.0 for 3.0.24 code. Still need
to do the upper layer directories but this is what
everyone is waiting for....

Jeremy.
(This used to be commit 9dafb7f48c)
2007-10-10 11:19:14 -05:00
Jeremy Allison
799f8c75b9 r15729: Second part of Aleksey Fedoseev <fedoseev@ru.ibm.com> patch.
Jeremy.
(This used to be commit 5137006233)
2007-10-10 11:17:09 -05:00
Jeremy Allison
4aead7efa3 r15727: Fix msgtest - noticed by Aleksey Fedoseev <fedoseev@ru.ibm.com>.
Jeremy.
(This used to be commit 9f5c95c418)
2007-10-10 11:17:09 -05:00
Volker Lendecke
211d415d19 r15034: Attempt to make the build farm happy
(This used to be commit 8b3e87184a)
2007-10-10 11:15:58 -05:00
James Peach
4fa5559800 r14898: This change is an attempt to improve the quality of the information that
is produced when a process exits abnormally.

First, we coalesce the core dumping code so that we greatly improve our
odds of being able to produce a core file, even in the case of a memory
fault. I've removed duplicates of dump_core() and split it in two to
reduce the amount of work needed to actually do the dump.

Second, we refactor the exit_server code path to always log an explanation
and a stack trace. My goal is to always produce enough log information
for us to be able to explain any server exit, though there is a risk
that this could produce too much log information on a flaky network.

Finally, smbcontrol has gained a smbd fault injection operation to test
the changes above. This is only enabled for developer builds.
(This used to be commit 56bc02d644)
2007-10-10 11:15:53 -05:00
Jeremy Allison
894358a8f3 r13915: Fixed a very interesting class of realloc() bugs found by Coverity.
realloc can return NULL in one of two cases - (1) the realloc failed,
(2) realloc succeeded but the new size requested was zero, in which
case this is identical to a free() call.

The error paths dealing with these two cases should be different,
but mostly weren't. Secondly the standard idiom for dealing with
realloc when you know the new size is non-zero is the following :

 tmp = realloc(p, size);
 if (!tmp) {
    SAFE_FREE(p);
    return error;
 } else {
    p = tmp;
 }

However, there were *many* *many* places in Samba where we were
using the old (broken) idiom of :

 p = realloc(p, size)
 if (!p) {
    return error;
 }

which will leak the memory pointed to by p on realloc fail.

This commit (hopefully) fixes all these cases by moving to
a standard idiom of :

 p = SMB_REALLOC(p, size)
 if (!p) {
    return error;
 }

Where if the realloc returns null due to the realloc failing
or size == 0 we *guarentee* that the storage pointed to by p
has been freed. This allows me to remove a lot of code that
was dealing with the standard (more verbose) method that required
a tmp pointer. This is almost always what you want. When a
realloc fails you never usually want the old memory, you
want to free it and get into your error processing asap.

For the 11 remaining cases where we really do need to keep the
old pointer I have invented the new macro SMB_REALLOC_KEEP_OLD_ON_ERROR,
which can be used as follows :

 tmp = SMB_REALLOC_KEEP_OLD_ON_ERROR(p, size);
 if (!tmp) {
    SAFE_FREE(p);
    return error;
 } else {
    p = tmp;
 }

SMB_REALLOC_KEEP_OLD_ON_ERROR guarentees never to free the
pointer p, even on size == 0 or realloc fail. All this is
done by a hidden extra argument to Realloc(), BOOL free_old_on_error
which is set appropriately by the SMB_REALLOC and SMB_REALLOC_KEEP_OLD_ON_ERROR
macros (and their array counterparts).

It remains to be seen what this will do to our Coverity bug count :-).

Jeremy.
(This used to be commit 1d710d06a2)
2007-10-10 11:10:59 -05:00
Jeremy Allison
c44de10a2b r13799: Make locktest debug a little easier to read.
Jeremy.
(This used to be commit 13de4d000e)
2007-10-10 11:10:54 -05:00
Jeremy Allison
38e020e510 r13796: Another load_case_tables...
Jeremy.
(This used to be commit 36df6ba3ad)
2007-10-10 11:10:54 -05:00
Derrell Lipman
9c15bd311d r13212: r12414@cabra: derrell | 2006-01-28 17:52:17 -0500
lp_load() could not be called multiple times to modify parameter settings based
 on reading from multiple configuration settings.  Each time, it initialized all
 of the settings back to their defaults before reading the specified
 configuration file.

 This patch adds a parameter to lp_load() specifying whether the settings should
 be initialized.  It does, however, still force the settings to be initialized
 the first time, even if the request was to not initialize them.  (Not doing so
 could wreak havoc due to uninitialized values.)
(This used to be commit f2a24de769)
2007-10-10 11:06:18 -05:00
Deryck Hodge
2f7bc0e53d r13072: Fix segfault in vfstest and smbtorture.
deryck
(This used to be commit 0fdb062f35)
2007-10-10 11:06:12 -05:00
Volker Lendecke
9df784b6f2 r11556: Fix "make everything"
(This used to be commit bff03f0cd4)
2007-10-10 11:05:20 -05:00
Jeremy Allison
6baec64a73 r11420: Fix issue pointed out by Dina Fine <dina@exanet.com>. We can
only tell at parse time from the wire if an incoming name
has wildcards or not. If it's a mangled name and we demangle
the demangled name may contain wildcard characters. Ensure
these are ignored.
Jeremy.
(This used to be commit 4cd8e2a96b)
2007-10-10 11:05:15 -05:00
Gerald Carter
54abd2aa66 r10656: BIG merge from trunk. Features not copied over
* \PIPE\unixinfo
* winbindd's {group,alias}membership new functions
* winbindd's lookupsids() functionality
* swat (trunk changes to be reverted as per discussion with Deryck)
(This used to be commit 939c3cb5d7)
2007-10-10 11:04:48 -05:00
Simo Sorce
728dbab082 r8682: fix vfstest, thanks to Rainer Link for spotting this one
(This used to be commit a3b89cb5c1)
2007-10-10 11:00:14 -05:00
Lars Müller
b0f1c8df16 r8653: Fix bug #2659.
(This used to be commit 2720c82a95)
2007-10-10 11:00:13 -05:00
Tim Potter
ab398643a4 r8572: Remove crufty #define NO_SYSLOG as it's not used at all anymore.
(This used to be commit 985dbb47d9)
2007-10-10 11:00:11 -05:00
Jeremy Allison
af8a691db1 r8219: Merge the new open code from HEAD to 3.0. Haven't yet run the torture
tests on this as it's very late NY time (just wanted to get this work
into the tree). I'll test this over the weekend....
Jerry - in looking at the difference between the two trees there
seem to be some printing/ntprinting.c and registry changes we might
want to examine to try keep in sync.
Jeremy.
(This used to be commit c7fe18761e)
2007-10-10 10:58:18 -05:00
Volker Lendecke
ad54e2f0c2 r7902: Fix the build
(This used to be commit 6d431eb676)
2007-10-10 10:58:02 -05:00
Jeremy Allison
19ca97a70f r7882: Looks like a large patch - but what it actually does is make Samba
safe for using our headers and linking with C++ modules. Stops us
from using C++ reserved keywords in our code.
Jeremy
(This used to be commit 9506b8e145)
2007-10-10 10:58:00 -05:00
Gerald Carter
fed660877c r7415: * big change -- volker's new async winbindd from trunk
(This used to be commit a0ac9a8ffd)
2007-10-10 10:57:08 -05:00
Volker Lendecke
eeca550731 r7390: Revision 7371 did not help :-(
(This used to be commit a405e7f479)
2007-10-10 10:57:07 -05:00
Volker Lendecke
5c286aab36 r7371: On one build farm box dirtest1 does not return, I think this might be due to
it being too slow. The build farm re-runs that with debuglevel 10, and this
ends up with a 400MB logfile which is not synced. Lets see if with this change
the machine pops up on build.samba.org....

Volker
(This used to be commit b4a6ace00d)
2007-10-10 10:57:06 -05:00
Volker Lendecke
55739e9f86 r6640: Attempt to fix 'make everything' with the paranoid malloc checker.
Volker
(This used to be commit 3db2799822)
2007-10-10 10:56:49 -05:00
Jeremy Allison
7b9d6ac23e r6595: This is Volkers new-talloc patch. Just got the go-ahead from
Volker to commit. Woo Hoo !
Jeremy.
(This used to be commit 316df944a4)
2007-10-10 10:56:46 -05:00
Herb Lewis
1c4bbe0654 r6586: get rid of a few more compiler warnings
(This used to be commit 173375f8d8)
2007-10-10 10:56:46 -05:00
Simo Sorce
4bbef96aba r6575: use samba4 torture please message on samba 3 torture
(This used to be commit 36eb9aa48a)
2007-10-10 10:56:45 -05:00
Tim Potter
bdae18b799 r6176: Fix a possibly uninitialised variable warning.
(This used to be commit 3cf5ad4e80)
2007-10-10 10:56:28 -05:00
Tim Potter
219ad7da07 r6175: Fix crash bug and compiler warnings in strchr_m() test. Bugzilla #2565.
(This used to be commit 17d13b5713)
2007-10-10 10:56:28 -05:00
Gerald Carter
b3e57cb3ff r5968: derrell's large file fix for libsmbclient (BUG 2505)
(This used to be commit 85be4c5df3)
2007-10-10 10:56:13 -05:00
Gerald Carter
cf1ebf6b62 r5749: fix some build issues
(This used to be commit 3f12dbb1cf)
2007-10-10 10:55:59 -05:00
Jeremy Allison
b6211e0262 r5641: Fix from James Peach @ SGI for oplock2 test.
Jeremy.
(This used to be commit 69e99d97d1)
2007-10-10 10:55:53 -05:00
Jeremy Allison
2f158e1565 r5589: Ensure the torture code that uses cli_list and cli_list_old
matches the new MS-DFS function prototypes. Should fix the
build farm tests.
Jeremy.
(This used to be commit 3d4d8bb654)
2007-10-10 10:55:48 -05:00
Jeremy Allison
9150205f98 r5525: Add extra case to torture to test this (we currently fail with the wrong
error message but we correctly deny the open).
Jeremy.
(This used to be commit 99b89867c3)
2007-10-10 10:55:45 -05:00
Gerald Carter
aedb05350a r4645: patch from Rob to fix the build breakage in vfstest after the reload_printers() cleanup
(This used to be commit 054b64fb86)
2007-10-10 10:53:49 -05:00
Volker Lendecke
c85d9e735c r4570: Replace cli->nt_pipe_fnum with an array of NT file numbers, one for each
supported pipe. Netlogon is still special, as we open that twice, one to do
the auth2, the other one with schannel.

The client interface is completely unchanged for those who only use a single
pie. cli->pipe_idx is used as the index for everything except the "real"
client rpc calls, which have been explicitly converted in my last commit. Next
step is to get winbind to just use a single smb connection for multiple pipes.

Volker
(This used to be commit dc294c52e0)
2007-10-10 10:53:47 -05:00
Tim Potter
92e9793480 r4268: Merge fix for bugzilla #2150.
(This used to be commit f00ae4ab0c)
2007-10-10 10:53:41 -05:00
Jeremy Allison
54fdd5c7dc r4236: More *alloc fixes.
Jeremy.
(This used to be commit 6b25a6e088)
2007-10-10 10:53:39 -05:00
Herb Lewis
c7385a29d8 r4103: lock timeout is in milliseconds (as in reply.c)
(This used to be commit 1feda3649f)
2007-10-10 10:53:34 -05:00
Jeremy Allison
d330d8610d r3072: Fix for bug #1947 - incorrect use of getpwnam() etc. interface.
Jeremy.
(This used to be commit aaab112084)
2007-10-10 10:53:00 -05:00
Andrew Tridgell
d9b8eaabc5 r2824: restored the is_case_sensitive option to ms_fnmatch() in Samba3. It is
very rarely used, but we sohuldn't be removing a feature in a minor
release of this kind.
(This used to be commit 4ce0505bc3)
2007-10-10 10:52:54 -05:00
Rafal Szczesniak
c56e526e19 r2814: Exactly the same as "main" build fix.
rafal
(This used to be commit 7fa94c3895)
2007-10-10 10:52:53 -05:00
Andrew Bartlett
9d0783bf21 r1492: Rework our random number generation system.
On systems with /dev/urandom, this avoids a change to secrets.tdb for every fork().

For other systems, we now only re-seed after a fork, and on startup.
No need to do it per-operation.  This removes the 'need_reseed'
parameter from generate_random_buffer().

Andrew Bartlett
(This used to be commit 36741d3cf5)
2007-10-10 10:52:13 -05:00
Volker Lendecke
4499082b83 r1444: Another attempt to fulfil the 100% promise. There might be two dots at the
end...

Volker
(This used to be commit 65518960e5)
2007-10-10 10:52:11 -05:00
Volker Lendecke
8c518daa86 r1396: Give the build farm a chance to be clean before 3.0.5. We don't accept
filenames ending in a dot.

Volker
(This used to be commit f17cb54a6f)
2007-10-10 10:52:10 -05:00
Volker Lendecke
75925d8098 r1328: Fix the build
(This used to be commit 49f3f0412f)
2007-10-10 10:52:06 -05:00
Jeremy Allison
c531f726c4 r1325: Always use GetTimeOfDay() (wrapper). Ensure ldap replication
sleep time is not more than 5 seconds. Should fix issue
reported by Chris Garrigues <cwg@deepeddy.com>.
Jeremy.
(This used to be commit fbc06831d3)
2007-10-10 10:52:06 -05:00
Jeremy Allison
2acd084866 r1154: Change default setting for case sensitivity to "auto". If set to auto
then is the client supports it (current clients supported are Samba and
CIFSVFS - detected by the negprot strings "Samba", "POSIX 2" and a bare
"NT LM 0.12" string) then the setting of the per packet flag smb_flag
FLAG_CASELESS_PATHNAMES is taken into account per packet. This allows
the linux CIFS client to use Samba in a case sensitive manner.
Additional command in smbclient "case_sensitive", toggles the
flag in subsequent packets.
Docs to follow.
Jeremy.
(This used to be commit cf84c0fe1a)
2007-10-10 10:51:57 -05:00
Jeremy Allison
bd04072585 r81: Make EA's case independent - fix smbtorture to test for this.
Jeremy.
(This used to be commit 0661357484)
2007-10-10 10:51:07 -05:00
Jeremy Allison
a1994d1c96 Ensure we cope correctly with ea length of zero. Detect torture fail correctly.
Jeremy.
(This used to be commit 43db249fb8)
2004-03-30 18:38:21 +00:00
Jeremy Allison
578d715755 Setting EA's to zero length deletes them.
Jeremy.
(This used to be commit 01fb871762)
2004-03-29 23:39:13 +00:00
Jeremy Allison
099974aa15 Fix get/set of EA's in client library. Added torture test for it.
Jeremy.
(This used to be commit 0d239a9c07)
2004-03-29 22:21:47 +00:00
Jeremy Allison
651d5b4683 Working (tested) client code for setting EA's by filename and fnum.
Now for parsing out the retrieved EA's.
Jeremy.
(This used to be commit 5eeeee302c)
2004-03-27 02:13:58 +00:00
Alexander Bokovoy
82053806f5 Fix build after Jeremy -- yet another place where convert_string() wasn't updated
(This used to be commit 9acd46ab46)
2004-03-12 12:57:39 +00:00
Andrew Bartlett
32665c36c8 Given how core this code is, I figure it should have it's own testsuite.
Big thanks to tpot and mbp for showing how easy it can be to write a simple
unit test, and for providing the STF.

This also changes the strstr_m() code to use strstr_w() (avoiding
duplication) and fixes it so that it passes the STF.

(We now always restart before doing the unicode run, until sombody can
show me why the testsuite is wrong).

Andrew Bartlett
(This used to be commit a893a324f3)
2004-03-09 11:15:44 +00:00
Jeremy Allison
863c784ef4 Merging Richard's rename test.
Jeremy.
(This used to be commit 5646b6c989)
2004-02-26 01:33:35 +00:00
Jim McDonough
24df38dbc6 Janitor for tpot...bugzilla #1098, msleep already exists on aix
(This used to be commit 4319df7fdc)
2004-02-23 02:54:03 +00:00
Jeremy Allison
ef8f827449 Make SMB_FILE_ACCESS_INFORMATION call work correctly.
Jeremy.
(This used to be commit 0ea0ada6c6)
2004-02-20 23:19:39 +00:00
Jeremy Allison
7d7849b18a Make us bug-for-bug compatible with W2K3 - to get delete on close semantics
on an initial open the desired_access field *must* contain DELETE_ACCESS,
simply having it map from a GENERIC_ALL won't do. Fixes delete on close test.
Jeremy.
(This used to be commit 5c6f8b1053)
2004-02-20 22:45:53 +00:00
Volker Lendecke
a0f8007da5 Fix Bug # 924
Volker
(This used to be commit 3663ed2b96)
2003-12-30 15:18:25 +00:00
Richard Sharpe
a07d253fda A small fix to torture.c to cleanup the error handling and prevent crashes.
I really should clean up the comment as well.
(This used to be commit 34351e457a)
2003-12-19 01:43:44 +00:00
Volker Lendecke
0064a113f2 Two trivial warnings
Volker
(This used to be commit a13e088493)
2003-12-02 11:36:02 +00:00
Tim Potter
9f154119e8 Final round of printf warnings fixes for the moment.
(This used to be commit 0519a7022b)
2003-11-06 22:11:08 +00:00
Jeremy Allison
bb0598faf5 Put strcasecmp/strncasecmp on the banned list (except for needed calls
in iconv.c and nsswitch/). Using them means you're not thinking about multibyte at
all and I really want to discourage that.
Jeremy.
(This used to be commit d7e35dfb92)
2003-10-22 23:38:20 +00:00
Tim Potter
ec890d5c0f Enclose usage of st_blksize and st_blocks struct stat members in
#ifdef HAVE_STAT_ST_BLKSIZE and #ifdef HAVE_STAT_ST_BLOCKS,
respectively.

Fixes bug 550 reported by Joachim Schmitz <schmitz@hp.com>.
(This used to be commit 18adfdbe0c)
2003-10-14 03:56:42 +00:00
Alexander Bokovoy
da0397bd2f Add CAP VFS module from Monyo. Primary purpose of this module is to provide CAP-compatible encoded file names for CJKV
(This used to be commit e8a5a962ed)
2003-08-27 20:04:23 +00:00
Alexander Bokovoy
7e27147422 Fix for #150.
We now fallback to Samba-provided CP850 charset module if CP850 or IBM850 does not exist on target system at runtime.
1. Introduce CP850 charset module based on charmaps table from GNU libc 2.2.5
2. Make CP850 charset module shared and build it by default

Should fix Solaris run-time
(This used to be commit e855dc8c91)
2003-08-26 19:48:16 +00:00
Gerald Carter
8bfe26b62d metze's autogenerate patch for version.h
(This used to be commit ae452e51b0)
2003-08-20 17:13:38 +00:00
Jeremy Allison
aed1610ec2 Fix for bugid #205 - work by Andrew Bartlet (modified to use
fixed buffer by me).
Jeremy.
(This used to be commit 6f68b8de47)
2003-08-12 04:25:26 +00:00
Jeremy Allison
29ca70cd34 Add a command line option (-S on|off|required) to enable signing on client
connections. Overrides smb.conf parameter if set.
Jeremy.
(This used to be commit 879309671d)
2003-07-30 23:49:29 +00:00
Gerald Carter
3a5dc7c2ec convert snprintf() calls using pstrings & fstrings
to pstr_sprintf() and fstr_sprintf() to try to standardize.
lots of snprintf() calls were using len-1; some were using
len.  At least this helps to be consistent.
(This used to be commit 9f835b85dd)
2003-07-23 12:33:59 +00:00
Tim Potter
80c1f1d865 Fixup a bunch of printf-style functions and debugs to use unsigned long when
displaying pid_t, uid_t and gid_t values.  This removes a whole lot of warnings
on some of the 64-bit build farm machines as well as help us out when 64-bit
uid/gid/pid values come along.
(This used to be commit f93528ba00)
2003-07-22 04:31:20 +00:00
Gerald Carter
c674e411c7 i guess i'm the only one this ever annyoed...
fix the confusion when we tdb_lock_bystring() but
we retrieve an entry using tdb_fetch_by_string.
It's now always tdb.*bystring()
(This used to be commit 66359531b8)
2003-07-10 20:37:01 +00:00
Jeremy Allison
ce0709666c More conversions I missed. Thanks metze.
Jeremy.
(This used to be commit 4f78d747e6)
2003-07-04 18:52:31 +00:00
Jeremy Allison
9bcbaeee32 Fixed strlower changes I missed. Pointed out by metze.
Jeremy
(This used to be commit da5ee2b765)
2003-07-04 18:50:21 +00:00
Jelmer Vernooij
29674c7fa6 Move up intialisation of logging, so we catch errors in handling 'preload modules'
(This used to be commit 13b81d0d92)
2003-06-26 17:29:09 +00:00
Tim Potter
5e37c04c03 Back out some of the changes to nsstest. I've kept the NULL pointer
dereference bugfixes but left out the gethostbyname (wins) tests pending
a nicer way to integrate it.
(This used to be commit a7e67aaffe)
2003-06-20 02:31:15 +00:00
Tim Potter
7c16f64e38 Update nsstest to cope with wins NSS module as well as winbind NSS
module.  Use "wins" as the nss name to invoke this behaviour.

Also, fixed nsstest so it doesn't segfault when a nss function can't
be dlopened().  Log an error and abort the test gracefully instead.
(This used to be commit 66bafbe371)
2003-06-16 03:30:53 +00:00
Andrew Tridgell
7c6aee526a fixed smbtorture LOCK1 test to know about the correct multiplier for
timed blocking locks
(This used to be commit 24feb1afa6)
2003-06-10 14:01:57 +00:00
Alexander Bokovoy
c39b90f047 Fix compiler warnings for vfstest. Patch from Stefan Metzmacher <mezte@metzemix.de>
(This used to be commit db255608f1)
2003-06-04 12:51:21 +00:00
Alexander Bokovoy
bc2a3748e9 Prefix VFS API macros with SMB_ for consistency and to avoid problems with VFS_ macros at system side. We currently have one clash with AIX and its VFS_LOCK. Compiled and tested -- no new functionality or code, just plain rename of macros for yet-unreleased VFS API version. Needs to be done before a24 is out
(This used to be commit c2689ed118)
2003-05-14 10:59:01 +00:00
Alexander Bokovoy
e7c8c15888 Fix VFS layer:
1. Finally work with cascaded modules with private data storage per module
2. Convert VFS API to macro calls to simplify cascading
3. Add quota support to VFS layer (prepare to NT quota support)

Patch by Stefan (metze) Metzemacher, with review of Jelmer and me
Tested in past few weeks. Documentation to new VFS API for third-party developers to follow
(This used to be commit 91984ef5ca)
2003-05-11 23:34:18 +00:00
Jelmer Vernooij
0914e541f5 Reverse previous patch from Stefan and me after comments by Andrew Bartlett
(This used to be commit d817eaf0ec)
2003-05-10 11:49:51 +00:00
Jelmer Vernooij
c507ebe567 Patch from metze and me that adds dummy smb_register_*() functions so
that is now possible to, for example, load a module which contains
an auth method into a binary without the auth/ subsystem built in.
(This used to be commit 74d9ecfe2d)
2003-05-10 10:53:48 +00:00
Andrew Bartlett
4918bf199c Fix use of uninitialised value in TCONDEV test - found by sun1 on the build farm
(This used to be commit 0dfeaf4535)
2003-05-03 04:30:21 +00:00
Jelmer Vernooij
d2cea7d289 Add 'smbiconv' program - a clone of the 'iconv' utility
that uses samba's internal iconv() functions. Useful for
testing purposes.
(This used to be commit ccabb7961a)
2003-04-27 20:47:15 +00:00
Andrew Bartlett
2e9c2084a6 Add a check to ensure that the server returns the correct device type, not
just the correct error.

This should help us avoid breaking NT4 IPC$ connections, for example.

This has required that we don't overwrite the device type for IPC$ in our
tcon&X code, but only smbwrapper even uses it, and a server that doesn't send
a correct dev type breaks other things pretty badly.

In any case, I'll 'fix' smbwrapper :-).

Andrew Bartlett
(This used to be commit a93057efcb)
2003-04-23 09:26:07 +00:00
Andrew Bartlett
2206df6b30 Merge torture tests from HEAD - it looks like we had rather an incomplete
merge last time.  I hope this might fix a few failures on the build farm too.

Andrew Bartlett
(This used to be commit 0c83712692)
2003-04-23 08:12:34 +00:00
Gerald Carter
fb3ff5fc44 fixing torture build by merging code from HEAD
(This used to be commit 7798c7ee1a)
2003-04-18 03:35:39 +00:00
Gerald Carter
d15cd357c7 merge in metze' smbcquotas patch from HEAD
(This used to be commit b6a7704888)
2003-04-15 19:51:17 +00:00
Jelmer Vernooij
69980dacef Fix popt usage (backport from HEAD)
(This used to be commit 89a25ef20d)
2003-04-14 21:16:16 +00:00
cvs2svn Import User
a47d06a2c2 This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to be commit 381649916e) 2003-04-13 13:50:46 +00:00
Gerald Carter
5b51fc4f06 smbcquota patch from metze
(This used to be commit 74fab8f0d2)
2003-04-11 23:32:00 +00:00
Jeremy Allison
dfdb51ca45 Added using different cnum test. WinXP and Samba now pass - Win2k fails.
Jeremy.
(This used to be commit bc094789b9)
2003-04-10 01:11:21 +00:00
Jeremy Allison
80b4dc4713 Ensure we have WinXP-like semantics for checking TIDs and FIDs.
Add torture test to ensure this is so.
Jeremy.
(This used to be commit e07dd4d93d)
2003-04-09 22:32:04 +00:00
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