summaryrefslogtreecommitdiffstats
path: root/source/smbd/server.c
Commit message (Collapse)AuthorAgeFilesLines
* syncing up for 2.2.6pre2Gerald Carter2002-08-271-2/+2
|
* beginning to sync up for 2.2.5 release....Gerald Carter2002-06-171-3/+3
|
* Start of merge to 2_2_RELEASE branch for release.Jeremy Allison2002-04-301-46/+53
| | | | Jeremy.
* Move over to RELEASE branch.Jeremy Allison2002-02-011-50/+64
| | | | Jeremy.
* Sync-up with SAMBA_2_2 branch.Jeremy Allison2001-10-111-5/+15
| | | | Jeremy.
* Syncup getting ready for release.Jeremy Allison2001-07-061-18/+20
| | | | Jeremy.
* Added get/set SD's on shares. Check on tcon.Jeremy Allison2001-04-091-0/+4
| | | | Jeremy.
* Got "medieval on our ass" about adding the -1 to slprintf.Jeremy Allison2001-04-081-1/+1
| | | | Jeremy.
* Fairly big (but needed) change. Move to per-pipe POLICY handles.Jeremy Allison2001-03-081-6/+0
| | | | | | | | | | | | | | | | | | | | All policy handles will be destroyed on pipe close. No bitmap used, and all handles allocated/deleted in the same way. The ugly, handle specific code in srv_lsa_hnd.c has been removed, now each handle type can store a private data field along with a function that will free the private data on handle close. This means the linked list of printer handles has been removed, as all the info has been added into the pipes_struct. The only issue was enumerating all printers across all open pipes on a change message receipt. This was acheived by adding an enumerate pipes function. This will be a little difficult to move to HEAD due to the samr changes, and probably needs a little more testing with insure. However, even if it turns out that handles are persistent between NT pipes in the same smbd I can fix this by transferring the handle linked list to another pipe of the same type on handle close if this turns out to be the case. Jeremy.
* But Doctor, I had to kill the patient in order to save him....Jeremy Allison2001-02-211-3/+0
| | | | | | | | | | | | | | | | | | | This will probably break 2.2 for a while. Do *NOT* checkout unless you like core dumps. This is the first merge of the TNG SAMR code into 2.2. It will eventually give us a wonderful PDC, but maybe painful in the short term. It had to be done however, and this touches almost every file (mostly just removing the OLD_NT_DOMAIN) stuff. I removed some SAMR functionality from rpcclient that would no longer compile. Also changed fstring to 256 bytes to better match an NT pathname. Jeremy.
* nmbd/nmbd.c:Jeremy Allison2001-02-151-1/+1
| | | | | | | smbd/server.c: Stop duplicate log files. printing/printing.c: Debug logs from DaveCB for common error case. lib/interface.c: Bind interfaces fix from Herb. Jeremy.
* lib/debug.c: name clashJean-François Micouleau2001-02-101-1/+1
| | | | | | | | | | | | | | | | | lib/msrpc_use.c,rpc_client/cli_spoolss.c: remove const param/loadparm.c: changed show add printer wizard to true. If you don't want the add printer wizard to display, you can't change the forms nor add/delete/update drivers from an NT box !!! printing/nt_printing.c: more checking and debug in unused code ! rpc_server/srv_spoolss_nt.c: don't save the per-user devmode and explain why. A bit long but I hope it clears confusion. smbd/process.c, smbd/server.c: picky compiler J.F.
* include/debug.h:Jeremy Allison2001-02-091-0/+17
| | | | | | | | | | | lib/debug.c: Fixes from JohnR to implement debug classes. smbd/process.c: smbd/server.c: param/loadparm.c: "max smbd processes" parameter from JohnR. rpc_parse/parse_spoolss.c: Drivername fix from JohnR. rpc_server/srv_spoolss_nt.c: Update from JF. smbd/trans2.c: Revert incorrect wildcard fix. Jeremy.
* Mega-merge for fixes made in appliance-head.Jeremy Allison2001-01-271-0/+5
| | | | | | | | | | | | | | | | nmbd/nmbd.c: smbd/server.c: Inherited signal fix from John Reilly. printing/nt_printing.c: printing/printing.c: rpc_server/srv_spoolss_nt.c: Fix for PCL drivers not being able to save printer properties. printing/printfsp.c: smbd/close.c: Fix to allow cleanup of spool files on connection drop. tdb/tdb.c: malloc fix from Tim Potter. tdb/tdbtool.c: Free list viewer from John. smbd/lanman.c: Fix to stop a buffer overrun in Win9x from corrupting it's own parameter list. Sigh.... buffer overruns are-us (MS). Jeremy.
* Patch from Richard Bollinger for dead entries being left in connections tdb.Jeremy Allison2001-01-081-0/+5
| | | | Jeremy.
* passdb/secrets.c passdb/smbpassfile.c smbd/server.c : Actually *use* the codeJeremy Allison2000-11-271-0/+5
| | | | | | | written to transition from an old DOMAIN.MACHINE.MAC file to secrets.tdb. printing/nt_printing.c: Fix case insensitive name lookups for driver files. John - this should fix the Win9x/WinME problem correctly. Jeremy.
* Fixed messaging so main smbd can get lib/message.c messages.Jeremy Allison2000-11-271-0/+8
| | | | Jeremy.
* Free talloc'ed memory from the main smbd. Patch from Rich Bollinger, Elliott ↵Jeremy Allison2000-11-221-0/+3
| | | | | | Company Jeremy.
* Ignore SIGUSR2. Terminate nmbd if we have no interfaces.Jeremy Allison2000-10-121-0/+5
| | | | Jeremy.
* have "master smbd call message_init so it is not killed by messages sentHerb Lewis2000-10-121-4/+4
| | | | | | to it's PID. Jeremy or Andrew - please check this out for other possible side effects
* Remove lpq as root fix - do this in print_job_start insteadJeremy Allison2000-10-111-4/+0
| | | | | as part of print queue length processing. Jeremy.
* Fixes to periodically scan printing.tdb in idle time and occasionallyJeremy Allison2000-10-101-0/+4
| | | | | | | on exit. Needed to fix printing.tdb from groving to 300Mb+ if being driven by smbclient clients that never ask for status... (effective DOS attack :-). Jeremy.
* the first cut of the internal messaging system.Andrew Tridgell2000-09-111-14/+4
| | | | | The motivation for this system is to replace the UDP message for oplocks, but this commit only does the "set debug level" message.
* Run main server loop with sys_select() instead of sys_select_intr(). TheTim Potter2000-07-241-2/+13
| | | | main daemon was not catching sighup and reloading the service file.
* Call init_sec_ctx() instead of init_uid().Tim Potter2000-06-231-9/+1
| | | | Delete OriginalDir stuff.
* totally rewrote the async signal, notification and oplock notificationAndrew Tridgell2000-06-121-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | handling in Samba. This was needed due to several limitations and races in the previous code - as a side effect the new code is much cleaner :) in summary: - changed sys_select() to avoid a signal/select race condition. It is a rare race but once we have signals doing notification and oplocks it is important. - changed our main processing loop to take advantage of the new sys_select semantics - split the notify code into implementaion dependent and general parts. Added the following structure that defines an implementation: struct cnotify_fns { void * (*register_notify)(connection_struct *conn, char *path, uint32 flags); BOOL (*check_notify)(connection_struct *conn, uint16 vuid, char *path, uint32 flags, void *data, time_t t); void (*remove_notify)(void *data); }; then I wrote two implementations, one using hash/poll (like our old code) and the other using the new Linux kernel change notify. It should be easy to add other change notify implementations by creating a sructure of the above type. - fixed a bug in change notify where we were returning the wrong error code. - rewrote the core change notify code to be much simpler - moved to real-time signals for leases and change notify Amazingly, it all seems to work. I was very surprised!
* Linux kernel oplocks now seem to work, but need a _lot_ of testingAndrew Tridgell2000-06-111-1/+1
| | | | | I had to modify sys_select() to not loop on EINTR. I added a wrapper called sys_select_intr() which gives the old behaviour.
* continued the split of the kernel level oplocks code into a moreAndrew Tridgell2000-06-101-15/+8
| | | | | modular form. In this pass I added oplock_irix.c and added a "struct kernel_oplocks" that describes a kernel oplock implementation.
* clean up oplock capability code ready for Linux codeAndrew Tridgell2000-06-091-6/+5
|
* The new msdfs implementation that uses symlinks to point to otherShirish Kalele2000-05-161-11/+0
| | | | | | | | | | | | | | | | servers. Very intuitive. Removed the dfs map parsing code and tdb maintenance code (files msdfs/parse_dfs_map.c & msdfs/msdfs_tdb.c), dfs map loading and unloading calls (param/loadparm.c smbd/server.c). Added code to display msdfs format symlinks as directories in a transact2_findfirst/findnext. (smbd/trans2.c) Modified msdfs/msdfs.c to use the msdfs symlinks to create dfs referrals. Changed msdfs/README to reflect new operability.
* formatting fixAndrew Tridgell2000-05-101-1/+1
|
* more merging voodooAndrew Tridgell2000-05-101-0/+2
| | | | | | this adds "#define OLD_NTDOMAIN 1" in lots of places. Don't panic - this isn't permanent, it should go after another few merge steps have been done
* more mergingAndrew Tridgell2000-05-101-2/+3
| | | | | it is now at the stage that winbindd can compile in the head branch, but not link
* Fix for check_kernel_oplocks looking for the var directoryHerb Lewis2000-05-091-2/+2
| | | | | before it may need to be created. Jeremy.
* This is reall Jeremy commiting as Herb at SGI labs. FixHerb Lewis2000-05-091-1/+1
| | | | | | for "socket operation on non-socket" error in log.smb on HEAD branch startup (server_fd not initialized to -1). Jeremy.
* added secrets.tdb and changed storage of trust account password to useAndrew Tridgell2000-05-081-0/+2
| | | | it
* Added sys_fork() and sys_getpid() functions to stop the overheadJeremy Allison2000-05-021-1/+1
| | | | | of doing a system call every time we want to just get our pid. Jeremy.
* moved trans2.h and nterr.h into includes.h with all our other includesAndrew Tridgell2000-04-251-1/+0
|
* moved INSURE hook into util.cAndrew Tridgell2000-04-241-23/+0
|
* trick to get full stack trace when using the free version of insureAndrew Tridgell2000-04-231-0/+24
|
* - got rid of the "passive" optionAndrew Tridgell2000-04-191-9/+1
| | | | - cleaned up the standard_sub_*() calls a lot
* the changes to the main smb codeAndrew Tridgell2000-04-161-0/+4
| | | | | | | | | | | | | | | | | | | | | ------------ The following series of commits are for the new tdb based printing backend. This completely replaces our old printing backend. Major changes include: - all print ops are now done in printing/*.c rather than scattered all over the place - system job ids are decoupled from SMB job ids - the lpq parsers don't need to be nearly so smart, they only need to parse the filename, the status and system job id - we can store lots more info about a job, including the full job name - the queue cache control is much better I also added a new utility routine file_lines_load() that loads a text file and parses it into lines. This is used in out lpq parsing and I also want to use it to replace all of our fgets() based code in other places.
* Roll back to using static MACHINE.SID after consultation with Andrew. ThisJeremy Allison2000-04-121-14/+1
| | | | | | code will be removed soon and a SID auto-generated from (probably) primary hostname and never stored in a file will replace it. Jeremy.
* finally got sick of the "extern int Client" code and the stupidAndrew Tridgell2000-04-111-18/+33
| | | | | | | | | | | | | | | | assumption that we have one socket everywhere while doing so I discovered a few bugs! 1) the clientgen session retarget code if used from smbd or nmbd would cause a crash as it called close_sockets() which closed our main socket! fixed by removing close_sockets() completely - it is unnecessary 2) the caching in client_addr() and client_name() was bogus - it could easily get fooled and give the wrong result. fixed. 3) the retarget could could recurse, allowing an easy denial of service attack on nmbd. fixed.
* Cleaning up the warnings from configure.developer.Shirish Kalele2000-03-101-1/+3
| | | | Found that Jeremy had already made some of the changes.
* removed unused variableJean-François Micouleau2000-03-101-1/+0
| | | | J.F.
* dded Microsoft Dfs services.Shirish Kalele2000-03-081-2/+12
| | | | | | | | | | | | | | | | | * 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 ----------------------------------------------------------------------
* Jeremy can you check lib/util_unistr.c for codepages support ?Jean-François Micouleau2000-02-071-2/+5
| | | | | | | I added 2 UNICODE <-> ASCII functions which _don't_ honor codepage support. J.F.
* Mega-VFS merge. Yeah baby!Tim Potter2000-02-031-2/+2
| | | | | Synopsis: change every disk access function to work through a vfs_ops structure contained in the connection_struct.
* Added hash-based stat cache code from Ying Chen.Jeremy Allison2000-01-261-0/+1
| | | | Jeremy.