summaryrefslogtreecommitdiffstats
path: root/source/smbd
Commit message (Collapse)AuthorAgeFilesLines
...
* removed unused variableJean-François Micouleau2000-03-101-1/+0
| | | | J.F.
* Big update moving the multi-pdu support from 2.0.x into HEAD for JFJeremy Allison2000-03-092-48/+30
| | | | | | | | | | | | and the printer functions. Also tidied up some header includes and got the order right so you can now do a : make proto make clean make Jeremy.
* Fixups for Win2K security descriptors from the 2.0.x branch.Jeremy Allison2000-03-091-26/+60
| | | | Jeremy.
* dded Microsoft Dfs services.Shirish Kalele2000-03-086-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 ----------------------------------------------------------------------
* Off by one error in detecting Win2k unicode bug.Jeremy Allison2000-03-011-1/+1
| | | | Jeremy.
* Fix for Win2k unicode bug where doing SMB_NT_TRANSACT_CREATE it usesJeremy Allison2000-03-011-12/+21
| | | | | unicode filenames whilst *not* bothering to set the unicode bit. Nice :-(. Jeremy.
* Fixes for strange Win2K attempts to auto-inherit ACLs.Jeremy Allison2000-02-291-8/+27
| | | | Jeremy.
* lib/system.c: Fixed gcc warnings.Jeremy Allison2000-02-231-1/+1
| | | | | | nmbd/nmbd_processlogon.c: Use "True" and "False" instead of 1 and 0. Others - preparing for multiple pdu write code. Jeremy.
* Fix for reporting file system attributes correctly.Jeremy Allison2000-02-181-1/+2
| | | | Jeremy.
* Don't assume that the (files_struct *) passed to fd_attempt_close()Tim Potter2000-02-171-2/+9
| | | | will be non-NULL.
* Added replacement functions sys_popen and sys_pclose. These are basedJeremy Allison2000-02-153-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.
* Jeremy can you check lib/util_unistr.c for codepages support ?Jean-François Micouleau2000-02-072-2/+6
| | | | | | | I added 2 UNICODE <-> ASCII functions which _don't_ honor codepage support. J.F.
* Fix some more compile warnings.Tim Potter2000-02-071-1/+2
|
* Fix some compile warnings.Tim Potter2000-02-042-1/+8
|
* Put back lots of missing calls to dos_to_unix(). Thanks toTim Potter2000-02-037-44/+59
| | | | aono@cc.osaka-kyoiku.ac.jp (Tomoki AONO)
* Mega-VFS merge. Yeah baby!Tim Potter2000-02-0314-158/+261
| | | | | Synopsis: change every disk access function to work through a vfs_ops structure contained in the connection_struct.
* Comments to use vfs_* functions instead of dos_* unless reallyTim Potter2000-02-032-0/+745
| | | | accessing files on local disk.
* Wrapped popen calls in HAVE_POPEN - needed if we are to add theJeremy Allison2000-01-291-0/+2
| | | | | env patch. Jeremy.
* Fixed code page conversions of messages outgoing/incoming.Jeremy Allison2000-01-271-0/+10
| | | | Jeremy.
* Added hash-based stat cache code from Ying Chen.Jeremy Allison2000-01-262-81/+93
| | | | Jeremy.
* Second set of inline optimisation fixes from Ying Chen <ying@almaden.ibm.com>.Jeremy Allison2000-01-262-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.
* First set of speed improvements from Ying Chen <ying@almaden.ibm.com>.Jeremy Allison2000-01-254-16/+0
| | | | | Inline several commonly used functions as macros. Jeremy.
* fixed some typos in access_table() which, amaziingly enough, make noAndrew Tridgell2000-01-161-3/+3
| | | | difference to the result.
* made access_table() a pure logic function - makes it simpler to applyAndrew Tridgell2000-01-161-16/+26
| | | | maths to
* as obelix would say "these romans are crazy"Andrew Tridgell2000-01-161-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
* rewrote the access_table() code to get it right for *.exe, *.dll,Andrew Tridgell2000-01-161-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.
* use string_set() instead of string_init()Andrew Tridgell2000-01-162-5/+5
| | | | bug pointed out by Richard
* useable_space does not include the alignment offset calculations.Jeremy Allison2000-01-141-1/+8
| | | | | Bugfix from Marc_Jacobsen@hp.com. Jeremy.
* we now pass all byte range locking testsAndrew Tridgell2000-01-141-0/+2
| | | | | the last piece was to use a smb timeout slightly larger than the locking timeout in bloking locks to prevent a race
* Added "inherit permissions" patch.Jeremy Allison2000-01-146-32/+84
| | | | | Fixed locking bug found by Andrew. Jeremy.
* some more work on the byte range lockingAndrew Tridgell2000-01-141-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.
* changes to reflect the new syntax of the locking calls.Andrew Tridgell2000-01-133-20/+19
|
* Added utmp fix from David Lee <T.D.Lee@durham.ac.uk>.Jeremy Allison2000-01-121-0/+212
| | | | Jeremy.
* Use slprintf not snprintf.Jeremy Allison2000-01-121-1/+1
| | | | Jeremy.
* fix a error in access_table revealed by the new deny test in smbtorture. We ↵Andrew Tridgell2000-01-081-3/+5
| | | | now exactly match NT for normal files. We still don't match for *.exe files though
* smbd/mangle.cJeremy Allison2000-01-083-5/+14
| | | | | | smbd/negprot.c: Tidyup of static initializers. smbd/server.c: Fix -l option. Jeremy.
* Fixed deny mode bug :Jeremy Allison2000-01-081-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 looks like a big commit, but it isn't really :)Andrew Tridgell2000-01-072-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.
* Re-added "dfree command" functionality that was described in the man pagesJeremy Allison2000-01-061-1/+48
| | | | | but was not in the code. Jeremy.
* Moved check_plaintext_password() into smbd/chgpasswd.c from smbd/ipc.c.Jeremy Allison2000-01-052-43/+43
| | | | | | configure configure.in include/config.h.in: Added <sys/un.h> autoconf code for Luke's UNIX domain sockets code. Jeremy.
* client/client.c: I18N fixes.Jeremy Allison2000-01-052-67/+130
| | | | | | smbd/dir.c: Reformatting comments. smbd/ipc.c: New password change code for Win98. Jeremy.
* implemented talloc() as described on samba-technical. This fixes theAndrew Tridgell2000-01-051-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.
* Fixed getgrent() recurse problem.Jeremy Allison2000-01-041-8/+45
| | | | Jeremy.
* simple mods to add msrpc pipe redirection. default behaviour: fall backLuke Leighton2000-01-033-13/+63
| | | | to using internal msrpc code in smbd.
* added suppport for unexpected udp/138 packetsAndrew Tridgell2000-01-031-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.
* got rid of mem_manAndrew Tridgell2000-01-031-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!
* don't close the database after each claim_connection()Andrew Tridgell2000-01-031-2/+0
|
* - added tdb_flags option to tdb_open()Andrew Tridgell2000-01-021-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
* Changed MAX to MIN in SET_FILE_BASIC_INFO as recommended by "Michael C. ↵Jeremy Allison1999-12-211-1/+1
| | | | | | | Adler" <Michael.Adler@compaq.com> as this breaks the least number of programs. Jeremy.
* converted all our existing shared memory code to use a tdb databaseAndrew Tridgell1999-12-216-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