summaryrefslogtreecommitdiff
path: root/source3/utils
AgeCommit message (Collapse)AuthorFilesLines
2000-05-08added secrets.tdb and changed storage of trust account password to useAndrew Tridgell1-14/+3
it (This used to be commit 88ad00b82acc4636ab57dfe710af08ea85b82ff1)
2000-05-06signed/unsigned fixes so we can handle a lock base close to 2^32Andrew Tridgell1-31/+29
(This used to be commit 0ce2ca5ccdd0e2e7711dcbf66b72a183b2692cfe)
2000-05-05make debug easier to readAndrew Tridgell1-6/+9
(This used to be commit c14a2616441b2f3357a081c6dbae7d5b677e5a12)
2000-05-05make debug easier to readAndrew Tridgell1-5/+6
(This used to be commit d64bb07f0ad0efa1a20015b620ae33fb082b1e44)
2000-05-05nasty hack to print posix locksAndrew Tridgell1-0/+17
(This used to be commit efc9752f1e00b38abe3b5d3a98627a9fe6122bc4)
2000-05-05example of broken posix lock behaviourAndrew Tridgell1-0/+8
(This used to be commit b3999f3b20d470b9c873b297e7aeb043da61588d)
2000-05-04rpc_server/srv_lsa.c: Bring into sync with 2.0.x.Jeremy Allison1-2/+14
rpc_server/srv_pipe_hnd.c: Bring into sync with 2.0.x. smbd/blocking.c: Improve blocking debug reporting. utils/torture.c: Added check for NT locking bug. Jeremy. (This used to be commit e8ff6d3fb5537c39611a5784bf7216ae812acd27)
2000-05-04parameterize the lock timeoutAndrew Tridgell1-2/+3
(This used to be commit 98ad4095ccc8d0349d05e6e9223eaad057029626)
2000-05-04added a test for the NT byte range lock into smbtortureAndrew Tridgell1-1/+16
(This used to be commit 7cfd45cc56e01a20a122c7742dc7e6a4ed59415f)
2000-05-04an even simpler example of NT gettings its locking code wrong. ThisAndrew Tridgell1-20/+14
one doesn't even need two connections to the box, just two file handles. it is a very simple case actually, and one I think will happen quite a lot in real life. I wonder how they haven't noticed it? I checked and W2K has the same bug. (This used to be commit 0b335e415818028ac0daad5f99c2fd9086a2a656)
2000-05-04need LOCKING_OBJ in locktest nowAndrew Tridgell1-3/+7
(This used to be commit 89e71994450f479a0f3839f192d868924626fc84)
2000-05-04more locktest improvementsAndrew Tridgell1-31/+81
the current preset tests show a very interesting NT bug - it sometimes refuses a lock that it shouldn't. (This used to be commit 85b5dc64cf7cc80567f9069a48c4d20c10ccec01)
2000-05-04fixed message textAndrew Tridgell1-1/+1
(This used to be commit 99e522023eae7cf1a88e5de50f2b09df3ea318d3)
2000-05-04added -A analyze mode to locktest - it can now automatically pruneAndrew Tridgell1-139/+242
the list of locks that cause a failure (This used to be commit 0beee59432f17f90a1c4c2c68a7ea6022b5d0908)
2000-05-04found a much simpler case that kills the posix lockingAndrew Tridgell1-5/+5
(This used to be commit b703cecf81dc62234171eaaa4c0cae448f144e1f)
2000-05-04fixed a uninit memory read that insure foundAndrew Tridgell1-6/+3
(This used to be commit 43fe5b98b4514d59e1c4bbc54a628cfbd771fc4f)
2000-05-04added ability to present lock testsAndrew Tridgell1-16/+40
(This used to be commit 3fc6a467fc3dfd2a59d4509ec52172d2dd048c80)
2000-05-03improved the lock test programAndrew Tridgell1-15/+27
(This used to be commit a0a3931c6e5824121bf4a8d075ef24b9b70e8aa1)
2000-05-03added a nasty lock testing programAndrew Tridgell1-0/+340
it opens 2 connections to each of 2 servers, and opens 2 fnums on the same file on each connection (a total of 8 file descriptors) then it does random lock/unlock/reopen requests in a 100 byte range on the file and compares the results from the 2 servers. strangely enough, NT fails this test against itself right now - I'm still trying to figure that out. (This used to be commit 2f14d7c9bca5e170b8d2c169801cb200021fd467)
2000-05-03Added read overlay write lock on same fnum test to locktest2.Jeremy Allison1-1/+117
Added locktest5 for locking stacks. Jeremy. (This used to be commit 65399ae1f058886b8779a01fb35fe3080cc3c145)
2000-05-01locking/posix.c: Fixed double-free nasty crash bug found by insure.Jeremy Allison2-1/+10
utils/make_smbcodepage.c: utils/make_unicodemap.c: Insure 'make install' fixes. Jeremy. (This used to be commit 3b25f7368be3877e9ad27498bc9451ec88d4b07f)
2000-04-30handle the special rule of *.* for old style listings when old_list isAndrew Tridgell1-0/+3
true (This used to be commit cdf4c4c812086d6e7cdc0436f5e31c420dcfb3e5)
2000-04-30added cli_list_old() to allow for old style directory listing fromAndrew Tridgell1-5/+12
masktest (This used to be commit 8a5c8cfa0ede1d119bf9013e321a497beefd4dda)
2000-04-30changed masktest to test the internal algorithm against one server,Andrew Tridgell1-78/+30
rather than 2 servers (This used to be commit 0e63b4b36334aeb6de6691436b82e1d9784b1541)
2000-04-30YIPEE!!!!!Andrew Tridgell1-78/+16
We finally have a perfect emulation of Microsoft wildcard matching. The routine ms_fnmatch() does wildcard matching with all MS wildcards (including the unicode wildcards), and masktest against a NT4 workstation with hundreds of thousands of random exmaples has not found a single error. amazingly it is only about 60 lines of code, but it has taken us years to get it right. I didn't sleep much last night :) (This used to be commit cc9e007cdfdd300189f89e2a55e4234e47fa842d)
2000-04-27Fixed subtle unlocking bug when a file is closed. We need to store theJeremy Allison1-1/+1
smbpid used when a file was opened in the files_struct. Else we use the wrong global_smbpid when we are closing the file and trying to remove the brl locks - this causes the brl locks to be left when the file is closed as the samba_context check fails. Jeremy. (This used to be commit 2746e5602e493e5b022764b4b839eb4d2f14363b)
2000-04-27quick hack to get smbtorture working againAndrew Tridgell1-0/+2
(This used to be commit 2d37c1f98f45646546ee76743f9df90b1c0b01ae)
2000-04-25fixed a memory leak in nmblookupAndrew Tridgell1-0/+2
(This used to be commit 49865ea06c96b01a5e5dec84d64b78bf26129be3)
2000-03-26load smb.conf and interfaces in masktest (to allow for netbios nameAndrew Tridgell1-0/+4
resolution) (This used to be commit f007531742f5570d5b9b8cb20cab19cd1ab1bfed)
2000-03-14Fixed parsing issue with HP printer defs reported by HP.Jeremy Allison1-26/+62
Jeremy. (This used to be commit 035272e6bcc8c43bf4521e4a20b0c35b0901e904)
2000-03-07added a tcon test: make two tconXs with the same user/pass, open a fileLuke Leighton1-0/+72
with one of them and try to write to the file with the other. (This used to be commit f8d3ce0419aee44e4d5efe1257ce4b27f7511ceb)
2000-03-01Fixed smbpasswd crash bugs found by Giulio.Jeremy Allison1-3/+2
Jeremy. (This used to be commit 54440428e5dbf5c1e673e881d3a9364e64ad2ad7)
2000-02-25client/client.c:Jeremy Allison1-53/+43
libsmb/clientgen.c: Fixes for Win2k smbclient browsing. Other fixes implement smbpasswd -x user to delete users. Also allows swat to do the same. Jeremy. (This used to be commit 9f6ad046761adecafba59040baa3abc9f0959e65)
2000-02-15Added replacement functions sys_popen and sys_pclose. These are basedJeremy Allison1-9/+35
on the glibc source code and are safer than the traditional popen as they don't use a shell to exec the requested command. Now we have these functions they can be tightened up (environment etc.) as required to make a safe popen. It should now be safe to add the environement variable loading code to loadparm.c Jeremy. (This used to be commit b52e92b09d4ca3b66e534f520468dee27065d048)
2000-02-10the beginnings of a fnmatch() based wildcard matching routineAndrew Tridgell1-20/+66
(This used to be commit ef256de9d9a204cf91fe8b636d07400cd0648d1e)
2000-02-09update masktest for new make_nmb_name() syntaxAndrew Tridgell1-3/+3
(This used to be commit 3609e835d4f938190f43b958403978c892b4bc9b)
2000-02-09added masktest to head branch, in preparation for another assault onAndrew Tridgell1-0/+435
the wildcard handling code (This used to be commit 3f77690dade57f4ae9da7196b0aa7a3a43afcc46)
2000-02-041) added void* state argument to tdb_traverse. guess what! there wereLuke Leighton1-2/+2
two places i found where it was appropriate to _use_ that third argument, in locking.c and brlock.c! there was a static traverse_function and i removed the static variable, typecast it to a void*, passed it to tdb_traverse and re-cast it back to the traverse_function inside the tdb_traverse function. this makes the use of tdb_traverse() reentrant, which is never going to happen, i know, i just don't like to see statics lying about when there's no need for them. as i had to do in samba-tng, all uses of tdb_traverse modified to take the new void* state argument. 2) disabled rpcclient: referring people to use SAMBA_TNG rpcclient. i don't know how the other samba team members would react if i deleted rpcclient from cvs main. damn, that code's so old, it's unreal. 20 rpcclient commands, instead of about 70 in SAMBA_TNG. (This used to be commit 49d7f0afbc1c5425d53019e234d54ddf205c8e9a)
2000-01-16renamed DENY to DENY1Andrew Tridgell1-5/+95
added DENY2 test that checks all 648 deny combinations for the case of two opens on the same connection (This used to be commit 01d4c4784dd26bdfc9883907b3170e8b0ea0cd6f)
2000-01-16use GET_DENY_MODE() macroAndrew Tridgell1-2/+1
(This used to be commit d9c3e0e61f315ad4d9c3ea6bb6acc8500befe6b4)
2000-01-16added code to allow traversal of the byte range lock databaseAndrew Tridgell1-1/+29
this is used with "smbstatus -B" to dump the lock list (This used to be commit 5f022629146701e6d543f77007dc944e4277ab0c)
2000-01-14casts and defines to make solaris happyAndrew Tridgell2-3/+3
(This used to be commit 77cf152c02b445f4b6e9de393936dd6e54e6f442)
2000-01-14we now pass all byte range locking testsAndrew Tridgell1-14/+12
the last piece was to use a smb timeout slightly larger than the locking timeout in bloking locks to prevent a race (This used to be commit 1b54cb4a33a65e62c2e3189b78ef073869a60c75)
2000-01-14some more work on the byte range lockingAndrew Tridgell1-14/+16
note the ugly global_smbpid - I hope that won't bethere for long, I just didn't want to do two lots of major surgery at the one time. Using global_smbpid avoids the big change of getting rid of our inbuf/outbuf interface to reply routines. I'll do that once the locking stuff passes all tests. (This used to be commit f8bebf91abcaa5bda3ec8701f9242f220da8943a)
2000-01-13greatly expanded the lock4 locking test. we now pass all but one testAndrew Tridgell1-45/+93
- that should be fixed soon. (This used to be commit 23bb936e1fdeab2ad697ed946c945ef5ce87357d)
2000-01-10I'm currently designing a new locking system (using a tdb database!)Andrew Tridgell1-21/+129
that will make us match NT semantics exactly and do away with the horrible fd multiplexing in smbd. this is some diag stuff to get me started. - added the ability to do read or write locks in clientgen.c - added a LOCK4 test to smbtorture. This produces a report on the server and its locking capabilities. For example, NT4 gives this: the same process cannot set overlapping write locks the same process can set overlapping read locks a different connection cannot set overlapping write locks a different connection can set overlapping read locks a different pid cannot set overlapping write locks a different pid can set overlapping read locks the same process can set the same read lock twice the same process cannot set the same write lock twice the same process cannot override a read lock with a write lock the same process can override a write lock with a read lock a different pid cannot override a write lock with a read lock the same process cannot coalesce read locks this server does strict write locking this server does strict read locking whereas Samba currently gives this: the same process can set overlapping write locks the same process can set overlapping read locks a different connection cannot set overlapping write locks a different connection can set overlapping read locks a different pid can set overlapping write locks a different pid can set overlapping read locks the same process can set the same read lock twice the same process can set the same write lock twice the same process can override a read lock with a write lock the same process can override a write lock with a read lock a different pid can override a write lock with a read lock the same process can coalesce read locks this server does strict write locking this server does strict read locking win95 gives this - I don't understand why! the same process cannot set overlapping write locks the same process cannot set overlapping read locks a different connection cannot set overlapping write locks a different connection cannot set overlapping read locks a different pid cannot set overlapping write locks a different pid cannot set overlapping read locks the same process cannot set the same read lock twice the same process cannot set the same write lock twice the same process cannot override a read lock with a write lock the same process cannot override a write lock with a read lock a different pid cannot override a write lock with a read lock the same process cannot coalesce read locks this server does strict write locking this server does strict read locking (This used to be commit 49637936b6e9478df248c4ef73d818870c73b597)
2000-01-08extent smbtorture to test with both an exe file and a dat fileAndrew Tridgell1-37/+43
(This used to be commit dd2ce575047eb57288bff11669512132fd347fda)
2000-01-08cli_open() wasn't handling DENY_FCB or O_WRONLY correctly.Andrew Tridgell1-1/+1
After fixing that I needed to use O_RDWR instead of O_WRONLY in several places to avoid the silly bug in MS servers that doesn't allow getattrE on a file opened with O_WRONLY (This used to be commit e21aa4cb088f348139309d29c85c48c8b777cff5)
2000-01-08added a DENY test that tests deny mode handling. It produces a matrixAndrew Tridgell1-2/+86
of 324 lines (6*6*3*3) of all possible deny mode behaviour. This allows us to compare with NT. We currently don't match :) (This used to be commit 2071105b439e87cb1c7c3a8c1b2046441eb46270)
2000-01-07this looks like a big commit, but it isn't really :)Andrew Tridgell2-8/+8
This fixes our netbios scope handling. We now have a 'netbios scope' option in smb.conf and the scope option is removed from make_nmb_name() this was prompted by a bug in our PDC finding code where it didn't append the scope to the query of the '*' name. (This used to be commit b563be824b8c3141c49558eced7829b48d4ab26f)