summaryrefslogtreecommitdiff
path: root/source3/smbd
AgeCommit message (Collapse)AuthorFilesLines
2000-03-08dded Microsoft Dfs services.Shirish Kalele6-9/+115
* added a new msdfs/ directory under source/ * added msdfs sources under this directory. * modified configure setup to add a --with-msdfs configure time option Modified Files: Makefile.in acconfig.h configure configure.in include/config.h.in include/includes.h include/proto.h include/smb.h include/smb_macros.h param/loadparm.c smbd/negprot.c smbd/nttrans.c smbd/process.c smbd/reply.c smbd/server.c smbd/trans2.c Added Files: include/msdfs.h msdfs/README msdfs/msdfs.c msdfs/msdfs_tdb.c msdfs/parse_dfs_map.c ---------------------------------------------------------------------- (This used to be commit 4684b4a188b54493dbe7f0de2909a8d3c5c3ebf9)
2000-03-01Off by one error in detecting Win2k unicode bug.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 4971e8b44ac38806f6fc0b3bd22d3ccafd1f5d4e)
2000-03-01Fix for Win2k unicode bug where doing SMB_NT_TRANSACT_CREATE it usesJeremy Allison1-12/+21
unicode filenames whilst *not* bothering to set the unicode bit. Nice :-(. Jeremy. (This used to be commit ccddf4d92e4b1af6076692c21247a838498201fc)
2000-02-29Fixes for strange Win2K attempts to auto-inherit ACLs.Jeremy Allison1-8/+27
Jeremy. (This used to be commit 41e37c51816ec048952ada1513c62f2689589001)
2000-02-23lib/system.c: Fixed gcc warnings.Jeremy Allison1-1/+1
nmbd/nmbd_processlogon.c: Use "True" and "False" instead of 1 and 0. Others - preparing for multiple pdu write code. Jeremy. (This used to be commit 9f879ec396230deba34fbe5e82d8a65f92137c54)
2000-02-18Fix for reporting file system attributes correctly.Jeremy Allison1-1/+2
Jeremy. (This used to be commit 801ed2389b97f921aa855513696d304c542fda04)
2000-02-17Don't assume that the (files_struct *) passed to fd_attempt_close()Tim Potter1-2/+9
will be non-NULL. (This used to be commit 02f845e54351ec57ee873a8ed887285552c6ecab)
2000-02-15Added replacement functions sys_popen and sys_pclose. These are basedJeremy Allison3-14/+8
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-07Jeremy can you check lib/util_unistr.c for codepages support ?Jean-François Micouleau2-2/+6
I added 2 UNICODE <-> ASCII functions which _don't_ honor codepage support. J.F. (This used to be commit b81dc7b7f832cae2e66076398a134fbb6c1f78ca)
2000-02-07Fix some more compile warnings.Tim Potter1-1/+2
(This used to be commit 507624dbc0a1a9e1df72a6b8de45038e86a9e5b1)
2000-02-04Fix some compile warnings.Tim Potter2-1/+8
(This used to be commit ccbd936211d4bfc8687cef78405ae58127289d13)
2000-02-03Put back lots of missing calls to dos_to_unix(). Thanks toTim Potter7-44/+59
aono@cc.osaka-kyoiku.ac.jp (Tomoki AONO) (This used to be commit 176c405d2702a4245561ff56c8eac3c754a0dea3)
2000-02-03Mega-VFS merge. Yeah baby!Tim Potter14-158/+261
Synopsis: change every disk access function to work through a vfs_ops structure contained in the connection_struct. (This used to be commit 3aad500c0fb61232ed3431ff4b743b5d18ec852f)
2000-02-03Comments to use vfs_* functions instead of dos_* unless reallyTim Potter2-0/+745
accessing files on local disk. (This used to be commit b55f63da7e6a3c306ce668c77ed63a41d33240db)
2000-01-29Wrapped popen calls in HAVE_POPEN - needed if we are to add theJeremy Allison1-0/+2
env patch. Jeremy. (This used to be commit 94c075faee88538e48d1898f1694500b8a5d4c8b)
2000-01-27Fixed code page conversions of messages outgoing/incoming.Jeremy Allison1-0/+10
Jeremy. (This used to be commit 84b045cbc8b337f1e23f200af433ac9d265a22d4)
2000-01-26Added hash-based stat cache code from Ying Chen.Jeremy Allison2-81/+93
Jeremy. (This used to be commit b62a1bd6328f5894ae1a2fef3ef6fc66304ade52)
2000-01-26Second set of inline optimisation fixes from Ying Chen <ying@almaden.ibm.com>.Jeremy Allison2-5/+5
Stop makeing function calls for every use of skip_multibyte_char. This function is called several *million* times during a NetBench run :-). Jeremy. (This used to be commit e5a3deba46ea2d4cb49a6c4b73edd766fe8b5a5c)
2000-01-25First set of speed improvements from Ying Chen <ying@almaden.ibm.com>.Jeremy Allison4-16/+0
Inline several commonly used functions as macros. Jeremy. (This used to be commit fc0219c7cc4b83e6db17d5b3be70d74fd7971089)
2000-01-16fixed some typos in access_table() which, amaziingly enough, make noAndrew Tridgell1-3/+3
difference to the result. (This used to be commit 9e28b7220bc293e386fec30c2d2e7e401b61b1f7)
2000-01-16made access_table() a pure logic function - makes it simpler to applyAndrew Tridgell1-16/+26
maths to (This used to be commit 0ad62f128d1c26b8f7e71bc045c6f4a584f8d374)
2000-01-16as obelix would say "these romans are crazy"Andrew Tridgell1-40/+59
I've finally got the access table code right for the case where the two opens are on the same connection. It is _incredibly_ complex, but now all 1296 test cases pass. I'll be very surprised if anyone by MS and us gets this right at CIFS2000 (This used to be commit 31a5857ce4f03eb53ff8ea96c5f1ce335941336d)
2000-01-16rewrote the access_table() code to get it right for *.exe, *.dll,Andrew Tridgell1-27/+41
*.sym and *.com files. I still find it incredible that SMB treats file locking differently depending on the file name - that is so ugly it stinks. anyway, we now behave the same way as NT, except for the same-connection case which I'm still working on. (This used to be commit 5b9be3feca26f1f20fe3f32ba90769cc78f9bb6b)
2000-01-16use string_set() instead of string_init()Andrew Tridgell2-5/+5
bug pointed out by Richard (This used to be commit 070f49397ff24e4d6ba7c2c1cfaef2dfa0944bd0)
2000-01-14useable_space does not include the alignment offset calculations.Jeremy Allison1-1/+8
Bugfix from Marc_Jacobsen@hp.com. Jeremy. (This used to be commit eb06c199163232453e2d9ca50d00765c90f8f3e2)
2000-01-14we now pass all byte range locking testsAndrew Tridgell1-0/+2
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-14Added "inherit permissions" patch.Jeremy Allison6-32/+84
Fixed locking bug found by Andrew. Jeremy. (This used to be commit 38dffd360dc2e44bfc9e751f017e24f81ff0f2fa)
2000-01-14some more work on the byte range lockingAndrew Tridgell1-2/+7
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-13changes to reflect the new syntax of the locking calls.Andrew Tridgell3-20/+19
(This used to be commit 44117df2c908d473b3e1a1020b22af6d584809ef)
2000-01-12Added utmp fix from David Lee <T.D.Lee@durham.ac.uk>.Jeremy Allison1-0/+212
Jeremy. (This used to be commit 95d37a1d25d56316c80eec54aea1f358cd621d4c)
2000-01-12Use slprintf not snprintf.Jeremy Allison1-1/+1
Jeremy. (This used to be commit b0a5ba9e01e71a64c7e693b6bf3f9bd499d3e095)
2000-01-08fix a error in access_table revealed by the new deny test in smbtorture. We ↵Andrew Tridgell1-3/+5
now exactly match NT for normal files. We still don't match for *.exe files though (This used to be commit 3f7fea58e8da6d98acadaabf0498ea2e88ea5678)
2000-01-08smbd/mangle.cJeremy Allison3-5/+14
smbd/negprot.c: Tidyup of static initializers. smbd/server.c: Fix -l option. Jeremy. (This used to be commit d120f22fefde21b38e43ea5ad0180bf27304d2eb)
2000-01-08Fixed deny mode bug :Jeremy Allison1-9/+9
: If a file is resident on NT and the first user opens it read/write with DENY_READ then a subsequent : attempt by a second user (running under Windows 95) to open it read/write DENY_NONE fails. : Under samba 2.0.5a the second open succeeds but the file is write only. Jeremy. (This used to be commit 974af581fe428fd0233c2516b16a5132b0e1b583)
2000-01-07this looks like a big commit, but it isn't really :)Andrew Tridgell2-9/+2
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)
2000-01-06Re-added "dfree command" functionality that was described in the man pagesJeremy Allison1-1/+48
but was not in the code. Jeremy. (This used to be commit f4898a1f16a2dbc25d062b0088d6c589a34c93a0)
2000-01-05Moved check_plaintext_password() into smbd/chgpasswd.c from smbd/ipc.c.Jeremy Allison2-43/+43
configure configure.in include/config.h.in: Added <sys/un.h> autoconf code for Luke's UNIX domain sockets code. Jeremy. (This used to be commit 210d61db08136122f51a93428607fccd582c9e7d)
2000-01-05client/client.c: I18N fixes.Jeremy Allison2-67/+130
smbd/dir.c: Reformatting comments. smbd/ipc.c: New password change code for Win98. Jeremy. (This used to be commit 9e90122afd1b6a7cf38660fc3bc3aa8e526bf08b)
2000-01-05implemented talloc() as described on samba-technical. This fixes theAndrew Tridgell1-0/+3
lp_string() bug properly. we still need to add lp_talloc_free() calls in all the main event loops, I've only put it in smbd and nmbd thus far. (This used to be commit aa7f81552540f5dca2c146f5edd805611d5b390f)
2000-01-04Fixed getgrent() recurse problem.Jeremy Allison1-8/+45
Jeremy. (This used to be commit b5420f6152d5df415231cb3fdf614542dbbd7db3)
2000-01-03simple mods to add msrpc pipe redirection. default behaviour: fall backLuke Leighton3-13/+63
to using internal msrpc code in smbd. (This used to be commit 8976e26d46cb991710bc77463f7f928ac00dd4d8)
2000-01-03added suppport for unexpected udp/138 packetsAndrew Tridgell1-75/+88
I also fixed up the lookup_pdc_name() code so that it now works, even with a NT server that insists on replying to udp/138. The method I used to match packets was to use the mailslot string as a datagram ID. The true dgm_id doesn't work as NT doesn't set it correctly. uggh. PS: Jeremy, I had to change your code quite a bit, are you sure this worked with a Samba PDC?? The code looked broken, it got the offsets wrong in the SMB portion of the packet and filled in the IP incorrectly. (This used to be commit 32f66f4ea63038cb4b3785bdf1762abdde076f5d)
2000-01-03got rid of mem_manAndrew Tridgell1-2/+0
yamd is much better, and doesn't require any source code changes if you haven't seen yamd then take a look at http://www3.hmc.edu/~neldredge/yamd/ its excellent! (This used to be commit 25b13f8b79d648188036f027f45bc78ec117cc88)
2000-01-03don't close the database after each claim_connection()Andrew Tridgell1-2/+0
(This used to be commit d5ceb2972b65c261cfb04b6dcccb3ace9f2238a7)
2000-01-02- added tdb_flags option to tdb_open()Andrew Tridgell1-22/+6
- added TDB_CLEAR_IF_FIRST flag to clear the database if this is the first attached process. Useful for non-persistent databases like our locking area (this will also make upgrades to new database layouts easier) - use lock_path() in a couple of places - leave connections database open while smbd running - cleaned up some tdb code a little, using macros for constants (This used to be commit 00e9da3ca577527db392aced62f02c69cfee8f4f)
1999-12-21Changed MAX to MIN in SET_FILE_BASIC_INFO as recommended by "Michael C. ↵Jeremy Allison1-1/+1
Adler" <Michael.Adler@compaq.com> as this breaks the least number of programs. Jeremy. (This used to be commit 2cf408772f7b763a484fdd893da28999c8f9d025)
1999-12-21converted all our existing shared memory code to use a tdb databaseAndrew Tridgell6-61/+38
instead of either sysv or mmap shared memory or lock files. this means we can now completely remove locking_shm.c locking_slow.c shmem.c shmem_sysv.c and lots of other things also got simpler locking.c got a bit larger, but is much better compartmentalised now (This used to be commit e48c2d9937eea0667b8cd3332e49c06314ef31e7)
1999-12-21first cut at using the tdb code for the connections structure, theAndrew Tridgell3-160/+75
SWAT status page and smbstatus. It made the code _much_ simpler, I wish we'd done a database module a long time ago! (This used to be commit 4951755413c11d4c5b9af4699a6e622056d52433)
1999-12-21Fix from tulipant-gergely@dbrt.hu for returning incorrect error codeJeremy Allison1-1/+1
on user auth fail. Jeremy. (This used to be commit 886ad59d798175f037ea9249dcefa78660e4992a)
1999-12-20*Finally*. Correct patch to fix timestamp problems from Paul Eggert ↵Jeremy Allison1-3/+14
<eggert@twinsun.com>. I wish I had written this one :-). Jeremy. (This used to be commit 8f93c08881c22d121c7337d11de070e2b8f7ba33)