1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

593 Commits

Author SHA1 Message Date
Andrew Tridgell
91b8a8d1d2 next_token() was supposed to be a reentrant replacement for strtok(),
but the code suffered from bitrot and is not now reentrant. That means
we can get bizarre behaviour
i've fixed this by making next_token() reentrant and creating a
next_token_nr() that is a small non-reentrant wrapper for those lumps
of code (mostly smbclient) that have come to rely on the non-reentrant
behaviour
(This used to be commit 674ee2f1d12b0afc164a9e9072758fd1c5e54df7)
2001-06-21 09:10:42 +00:00
Jeremy Allison
6fb063b4d5 Warning fix from Andrew Bartlett.
Jeremy.
(This used to be commit 87f647715d9fba9f8d25da0bde005a8d8858c2ae)
2001-06-20 17:49:38 +00:00
Simo Sorce
82970b833c initial support for paramter type P_LIST
it will avoid problems with lists being longer than 1024 bytes
just now only ip list parameters have been converted to the new type
(hosts allow, hosts deny, ssl hosts, ssl hosts resign)
(This used to be commit e1572f85d6247b760db10825b2fa688d7ed50bd3)
2001-06-20 16:54:32 +00:00
Andrew Tridgell
fcda2645f0 added a close-share smbcontrol message that forcibly closes a share in smbd (to allow unmount)
(This used to be commit 15b17a80db605a55f667c95fb7e316877a441887)
2001-06-20 03:05:09 +00:00
Andrew Tridgell
ffb63e4f8e moved all our torture code to a separate directory
(This used to be commit dd12c47645e2d0e832bc555492a6a8725a4495ee)
2001-06-19 02:02:19 +00:00
Andrew Tridgell
90b757f6bf torture code is moving to its own directory
(This used to be commit a4ef84e1a031042ca24fc3bea6d7311ab5976ac6)
2001-06-19 01:54:42 +00:00
Jeremy Allison
c1fbf761ce rpc_server/srv_srvsvc_nt.c: Don't test an uint32 for < 0.
utils/smbcacls.c: Set enum correctly.
Jeremy.
(This used to be commit 66f959e0ffb0cd385167a34c7db3f4959eaf1d7f)
2001-06-19 00:44:23 +00:00
Jeremy Allison
0c69d17653 New info level tester.
Jeremy.
(This used to be commit 9297ae69a7dde878bb4c696f90fbaceb46e18720)
2001-06-18 23:31:22 +00:00
Andrew Tridgell
e324e21457 added a oplock break handler hook to the client code, this allows for more complete testing of oplocks from smbtorture and would also be essential if a client app ever really did want to use oplocks properly
(This used to be commit 3d4a3bfacd9ef225aeaab801e5a216d12814b60a)
2001-06-18 08:26:15 +00:00
Tim Potter
df8713fdb9 Renamed -d option (make verbose) on smbstatus to -v.
Added -d <debuglevel> option.
(This used to be commit bdb9714380503d5bbe12a8bfa4ec723e1f5070ca)
2001-06-13 05:36:28 +00:00
Jeremy Allison
5264e9a2a7 Set correct reply word in large writeX (greater than 64k) replies.
Also added smbtorture test for this.
Jeremy.
(This used to be commit 6d65556ae8bea45a203defaded8436cbb56965e1)
2001-06-05 08:17:16 +00:00
Andrew Tridgell
05fc3e578c use LDSHFLAGS not -shared in several places
(This used to be commit 8ec9c87b5d1a7dae17d5b1a30f58effaf5e69e4b)
2001-06-04 05:13:59 +00:00
Tim Potter
6dce5c47c6 If a debug class was explicitly set to zero the debug system would not
recognise it as there was no distinction made between zeroing a debug
class and just not setting it to anything.  I've added a
debuglevel_isset array in parallel with the debuglevel_class array to
fix this.

Added a couple of new debug classes which I might start filling out
to get smb, rpc header and rpc marshall/unmarshalling debugs tidied
up.

Fixed a bunch of cut&paste bugs in include/debug.h

Modified smbcontrol and the messaging system debug handler to like the
debuglevel_isset stuff.
(This used to be commit 391e7caf76cbc22021629ef0ec5e0c32806edfd7)
2001-06-01 12:04:44 +00:00
Jeremy Allison
10211f53f9 Check sizes of data entries in connections.tdb before deciding they're crecs...
We will need this when we use finer grained locking for max connections.
Jeremy.
(This used to be commit c6cd42a6791e26174eb795fd08ddbbd797e5a9cf)
2001-05-15 18:12:02 +00:00
Andrew Tridgell
98da4768df remember to close tdb after use
(This used to be commit 8f8d7202cf6e12cdb2f4445ddcac83a7ac9e33a2)
2001-05-15 01:28:34 +00:00
Jeremy Allison
bc51512aad Fix crash in smbcontrol Gerald pointed out when no parameter given to debug.
Jeremy.
(This used to be commit ef687a2f6ba8143dcc041b2b629542c3ea9e3966)
2001-05-14 22:37:01 +00:00
Jeremy Allison
47cd09ee57 Don't check for passwd program if using pam change password.
Original patch from Andrew Bartlett.
Jeremy.
(This used to be commit aae779d0a3d3c80e6fa010fdb397af3aff360551)
2001-05-10 06:53:19 +00:00
Anton Blanchard
9de17c5c38 need to do codepage_initialise() for smbtorture to work.
(This used to be commit 7a619ab81c07b4b50e865635eee22efd8c5656b4)
2001-05-09 01:58:12 +00:00
Gerald Carter
30c4c04c2f Patch from Simo:
o sed 's/pdb_clear_sam/pdb_free_sam/g'
  o add pdb_reset_sam()
  o password changing should be ok now as well.
(This used to be commit 96d0e7c3301ad990f6c83b9c216720cb32661fb5)
2001-05-07 14:04:46 +00:00
Tim Potter
050b0307f0 Removed unused variable.
(This used to be commit 6bd197714a6f51e43efb8fb72bb51e83c6991c79)
2001-05-07 06:05:30 +00:00
Andrew Tridgell
6056766247 merge some fixes from 2.2
(This used to be commit 7e57adf2a039cb5b6458496f9190c9c642645600)
2001-05-07 03:55:54 +00:00
Jean-François Micouleau
f35157f392 Big cleanup of passdb and backends.
I did some basic tests but I have probably broken something. Notably the
password changing. So don't cry ;-)

	J.F.
(This used to be commit a4a4c02b12f030a3b9e6225b999c90689dfc4719)
2001-05-04 15:44:27 +00:00
Jeremy Allison
548d16869a Fixed SHM_R/SHM_W warnings by moving sys/ipc.h and sys/shm.h into includes.h
and using autoconf tests.
Added "restrict acl with mask" parameter.
Jeremy.
(This used to be commit 7792e32ba7fd734cc68b354f31c382ac11521fe8)
2001-05-03 19:47:30 +00:00
Jeremy Allison
f5eab4421c Fixup smbcacls. Don't return memory already freed, don't free memory allocated
with talloc.
Jeremy.
(This used to be commit 0ae0d024f5898f7e47e4b1d4487b15447096780c)
2001-05-01 23:07:30 +00:00
Andrew Tridgell
7e82811d2d fixed some uninitialised variables
(This used to be commit 5d899e51a4fc4e872da550b88ef603dbd2d8391f)
2001-05-01 04:05:53 +00:00
Gerald Carter
e40449fa72 rpcclient merge from 2.2 (including Jeremy's non-void return fix)
(This used to be commit 0a6ceed279cc8111008b21f75c6791efbd993f4b)
2001-04-28 00:32:56 +00:00
Jeremy Allison
b238f4a2ff rpcclient/rpcclient.c: Non-void return in void function.
smbd/sec_ctx.c: Fixed potential memory leak spotted by
Kenichi Okuyama@Tokyo Research Lab, IBM-Japan, Co.
utils/nmblookup.c: gcc warning on Solaris fix.
Jeremy.
(This used to be commit 1be60597cd62af2b30a1496d06ea5704e87d3b7d)
2001-04-28 00:05:11 +00:00
Jeremy Allison
8f11c24b74 More gcc compile on solaris tidyups.
Jeremy.
(This used to be commit 956201c4fb6e604407911b9709574f0c24dcb84f)
2001-04-27 22:42:10 +00:00
Herb Lewis
55d0bdbf4a fix typo
(This used to be commit ed2dfae0e503367671c54ad8f1f49ac3af0b1c6a)
2001-04-24 18:53:15 +00:00
Herb Lewis
57007050da don't allow both add and delete user to be set at the same time
(This used to be commit 9db84de46a3823878c2a9356ac4ae4fd179d5847)
2001-04-24 16:44:28 +00:00
Jeremy Allison
2df39394fe This little piece of insanity is inspired by the
fact that an NT client can open a file for O_RDONLY,
but set the create disposition to FILE_EXISTS_TRUNCATE.
If the client *can* write to the file, then it expects to
truncate the file, even though it is opening for readonly.
Quicken uses this stupid trick in backup file creation...
Thanks *greatly* to "David W. Chapman Jr." <dwcjr@inethouston.net>
for helping track this one down. It didn't bite us in 2.0.x
as we always opened files read-write in that release.
Jeremy.
(This used to be commit 5baef56831f9bc4fa10a851abd5f9305b974fb3b)
2001-04-14 20:47:30 +00:00
Jeremy Allison
819482c071 Fixed potential file descriptor leak with MS-Access fix.
Jeremy.
(This used to be commit 192887fe72157a141b8df1977085f479e5204782)
2001-04-13 20:49:11 +00:00
Jeremy Allison
2ef68c7e92 Merge of Andrew's changes in 2.2.
Jeremy.
(This used to be commit fc76681812b1469208ad6c8847afdfc68bc6db49)
2001-04-13 19:12:06 +00:00
Jeremy Allison
3a38f122d9 Added SMB_ prefix to enums that clash with Solaris ACL definitions.
Jeremy.
(This used to be commit 493d2c316a9e80de0239ef3a6f0b3f4ec9ac6e13)
2001-04-11 01:34:37 +00:00
Jeremy Allison
fd6e9d6db9 utils/torture.c: Added one more delete on close test.
smbd/notify_kernel.c: This code was wrong I believe. It was structured to only
return a changenotify event on being called from timeout processing (t != 0).
The kernel changenotify events should fire on *asynchronous* processing (EINTR
return from select caused by the realtime signal delivery) with t == 0.
Reported by Juergen Hasch (Hasch@t-online.de).
ANDREW PLEASE CHECK THIS !
Currently the hash style changenotify is done on async processing as well
as timeout processing. As this is expensive we may want to revisit doing this
and maybe set it to fire only on timeout processing.
Jeremy.
(This used to be commit f952380c5d0cfbbec1e7de98b712952f302cddfd)
2001-03-30 21:53:33 +00:00
Jeremy Allison
9874ebc3d3 Added one more test - just to make sure flag can be unset.
Jeremy.
(This used to be commit 54960b9c8d6be6646a0c0e8ef9ee6c61a4b69cf8)
2001-03-30 06:31:22 +00:00
Jeremy Allison
0be5f29179 Expanded delete on close test to 6 cases. I now understand the semantics of
this and the FILE_SHARE_DELETE flag exactly. The bad news is it means our
share mode handling is broken (again :-).
Jeremy.
(This used to be commit a55ed1a91d91beafb2f199d1da530169715dbe0e)
2001-03-30 06:22:14 +00:00
Jeremy Allison
e51ffc8111 Changed to using GENERIC_XX constants instead of hex values to make
delete test explicit.
Jeremy.
(This used to be commit cb5963af0ecabab928aafacd27714e337b9bb37e)
2001-03-30 02:48:06 +00:00
Jeremy Allison
74c81cd628 Added delete on close test that has allowed me to determine how w2k
behaves in this situation.
Jeremy.
(This used to be commit b0266fe0a8c707cb7e818269dc7fe52da709fdab)
2001-03-30 00:35:47 +00:00
Jeremy Allison
de368e09cb Fix for ENOSPC from DCB.
Jeremy.
(This used to be commit 55fcd71eecf4477c56fc4a01bda6d452d3b0caa4)
2001-03-27 00:28:01 +00:00
Jeremy Allison
1452c2d8c4 Fix from Ryo Kawahara <rkawa@lbe.co.jp> to make SWAT correctly write and smb.conf
file in utf8.
Jeremy.
(This used to be commit 42052d6079479452aa43eb37ad3d679d28337779)
2001-03-26 23:13:02 +00:00
Jeremy Allison
da8805b377 groupdb/mapping.c:
include/proto.h: Fix missing (void) in proto.
rpc_server/srv_samr_nt.c: Fix user private group problem by filtering out groups that
							clash with users.
smbd/posix_acls.c: Ensure default ACE's are sensible.
utils/pdbedit.c: Fix from Simo Sorce.
Jeremy.
(This used to be commit 29414fe0d6665642d9b5f88a35e712426376c47f)
2001-03-23 02:14:08 +00:00
Jean-François Micouleau
810ea03f9b can delete mapping from command line now.
J.F.
(This used to be commit 287d9fb06899fe7721fdfcd5ccaa566935d31c4d)
2001-03-23 01:19:21 +00:00
Jean-François Micouleau
0053bd8b80 first pass of the new group mapping code
J.F.
(This used to be commit 7154deb026d53cb0cd503562174c3332a372be63)
2001-03-23 00:50:31 +00:00
Andrew Tridgell
90890ef9fc added -E option (for exit on errors)
forced exclusion of filenames containing only '.' as NT rejects those
(This used to be commit a83ff172f271aa74148016f0e2ac62c868c140fb)
2001-03-21 06:44:49 +00:00
Andrew Tridgell
85a18b2c0c latest attempt at lanman1 wildcard matching
(This used to be commit 32361fc53e11a71f133a1727c6234a2bf01a5ccf)
2001-03-21 05:54:09 +00:00
Gerald Carter
762c6e3f84 patches from Simo. Couple of snity things
(This used to be commit af3f2a30c657fc42171bbf7da2354bc4cc7b088d)
2001-03-14 20:17:27 +00:00
Jeremy Allison
c4a84783a6 Added JF's new util.
Jeremy.
(This used to be commit 96bcfdcded7202a7bced58fae6534f1fcd4c4e36)
2001-03-11 00:45:07 +00:00
Jeremy Allison
da3053048c Merge of new 2.2 code into HEAD (Gerald I hate you :-) :-). Allows new SAMR
RPC code to merge with new passdb code.
Currently rpcclient doesn't compile. I'm working on it...
Jeremy.
(This used to be commit 0be41d5158ea4e645e93e8cd30617c038416e549)
2001-03-11 00:32:10 +00:00
Jeremy Allison
6ed9b52862 Ooops - forgot to check the rpcclient and smbcacls compile with the new
code :-(.
Jeremy.
(This used to be commit 70beabf73bdaad7b6a60e24b7a11798a411bed02)
2001-02-28 01:38:12 +00:00