summaryrefslogtreecommitdiffstats
path: root/source/nmbd
Commit message (Collapse)AuthorAgeFilesLines
* beginning to sync up for 2.2.5 release....Gerald Carter2002-06-172-3/+3
|
* Start of merge to 2_2_RELEASE branch for release.Jeremy Allison2002-04-3011-69/+103
| | | | Jeremy.
* Move over to RELEASE branch.Jeremy Allison2002-02-0127-192/+151
| | | | Jeremy.
* Sync-up with SAMBA_2_2 branch.Jeremy Allison2001-10-1111-60/+130
| | | | Jeremy.
* Merge of compile warning fix from 2.2.Jeremy Allison2001-07-111-1/+3
| | | | Jeremy.
* Syncup getting ready for release.Jeremy Allison2001-07-064-37/+83
| | | | Jeremy.
* - remove template from smbrun(). Now uses /tmp and mkstempAndrew Tridgell2001-04-131-1/+1
| | | | | | | - fixed some uninitialised variable warnings - removed smbrun utility (never used) - removed some incorrect varargs usage - removed smbrun smb.conf option
* As Andrew suggested, make smbrun return a fd for a deleted file which can thenJeremy Allison2001-04-121-1/+1
| | | | | be read. Jeremy.
* Got "medieval on our ass" about adding the -1 to slprintf.Jeremy Allison2001-04-082-5/+5
| | | | Jeremy.
* Fix insure-found parameter size missmatch.Jeremy Allison2001-03-231-2/+2
| | | | Jeremy.
* Removed rpc_unistrXX calls as the fix in include/byteorder.h now meansJeremy Allison2001-03-141-1/+1
| | | | | | | | | | that unistrs are correctly converted from bigendian->littlendian on unmarshalling from a bigendian client. Many thanks to Herb for tracking this one down. nmbd/nmbd_processlogon.c: Fix from Herb to return netlogon reply to the correct NBT logon name (AS/U showed this was needed - NT4 does the same). Jeremy.
* Fixed double fclose() call (I love insure :-).Jeremy Allison2001-03-081-2/+0
| | | | 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.
* Mega-merge for fixes made in appliance-head.Jeremy Allison2001-01-271-0/+6
| | | | | | | | | | | | | | | | 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.
* Big merge to sync up appliance-head and 2.2.Jeremy Allison2001-01-081-3/+3
| | | | Jeremy.
* Make sure that anyone sending poret 138 requests can get replies if theRichard Sharpe2001-01-051-1/+1
| | | | server is on the same machine as the client.
* John Reilly's broadcast release names fix.Jeremy Allison2000-11-171-0/+4
| | | | Jeremy.
* Ignore SIGUSR2. Terminate nmbd if we have no interfaces.Jeremy Allison2000-10-121-5/+19
| | | | Jeremy.
* Ensure browse.dat is written and read in UNIX character set format.Jeremy Allison2000-10-071-3/+13
| | | | Jeremy.
* - changed the msg_type to be an int instead of an enum so that it isAndrew Tridgell2000-09-123-14/+25
| | | | | | | easier to add new message types to messages.h without breaking old binaries - added a MSG_FORCE_ELECTION message to force nmbd to hold an election
* debug messages now work for nmbdAndrew Tridgell2000-09-112-82/+79
|
* the first cut of the internal messaging system.Andrew Tridgell2000-09-112-31/+0
| | | | | The motivation for this system is to replace the UDP message for oplocks, but this commit only does the "set debug level" message.
* Fix for bind interfaces only sometimes picking the wrong IP addressJeremy Allison2000-08-301-2/+24
| | | | | for a name query. From Steve Langasek <vorlon@netexpress.net>. Jeremy.
* Instead of handing back a string (which might be a DNS name or an IPChristopher R. Hertel2000-07-191-8/+9
| | | | | | | | | | | | | | | | | | string), the wins_srv module now hands back a struct in_addr when it's called. It caches the IP address once it has been looked up. The IP is cleared (and must be looked up again) if the 'wins server' parameter is reread, or if the node is marked 'dead'. A dead node will not be re-tried for 10 minutes (per a #define in wins_srv.c). As it was, the code was reading the WINS server name or IP directly from lp_wins_server. That's okay, except that if the value was expressed as a name, then a DNS lookup would be done every time the client wanted to talk to the server. I still need to work out the implications of failover regarding the 'unicast subnet' list. Chris -)-----
* First cut toward adding WINS server failover.Christopher R. Hertel2000-07-191-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | *Note: failover doesn't actually work yet!* It's just that the code I'm adding provides all of the pieces necessary. I do have one big question. Something that I'll have to ask Jeremy, I'm thinkin'. In nmbd/nmbd_subnetdb.c the IP of the WINS server is used to set up the Unicast subnet. ...so what happens if the WINS server changes? My guess is either: a) nothing. b) I'd have to change the unicast subnet entry whenever the WINS server changes. Urq. BTW, the lp_wins_server() function no longer returns the WINS server name or IP. It returns the list of WINS servers entered in smb.conf. To get the currently 'live' WINS server, use the wins_srv() function. Fun, eh? Chris -)-----
* 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.
* more mergingAndrew Tridgell2000-05-101-2/+1
| | | | | it is now at the stage that winbindd can compile in the head branch, but not link
* Fixed wild pointer diff found by insure.Jeremy Allison2000-05-021-1/+1
| | | | Jeremy.
* Added sys_fork() and sys_getpid() functions to stop the overheadJeremy Allison2000-05-025-6/+6
| | | | | of doing a system call every time we want to just get our pid. Jeremy.
* don't qsort a list less than 2 entriesAndrew Tridgell2000-04-251-1/+3
|
* fixed a parameter bug found by insureAndrew Tridgell2000-04-241-1/+1
|
* This is a *big* checkin that may break some things, but implements theJeremy Allison2000-04-221-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | new open mechanism Andrew & I discussed. config.sub: configure: Included the QNX patch. include/vfs.h: smbd/vfs-wrap.c: smbd/vfs.c: Added ftruncate vfs call (needed). Note that we will also need locking calls in the vfs (to be added). lib/util_unistr.c: nmbd/nmbd_processlogon.c: Fix for NT domain logons causing nmbd to core dump. Also fix for sidsize DOS bug. locking/locking.c: Check value of ret before using it for memdup. printing/printing.c: Convert print_fsp_open to return an allocated fsp. rpc_server/srv_lsa.c: Fix for NT domain logons. I have removed all use of lp_share_modes() from the code (although I left the parameter in the table for backwards compatibility). It no longer makes sense for this to exist. smbd/close.c: Removed lp_share_modes(). smbd/fileio.c: Fixed parameters to unlock_share_entry call in panic code. smbd/files.c: Correctly set the unix_ERR_code to ERRnofids on fsp allocation fail. smbd/nttrans.c: smbd/reply.c: smbd/trans2.c: Changed all occurrences of open_file_shared/open_directory/ open_file_stat to return an fsp from the call. smbd/open.c: Changed all occurrences of open_file_shared/open_directory/ open_file_stat to return an fsp from the call. In addition I have fixed a long standing race condition in the deny mode processing w.r.t. two smbd's creating a file. Andrew, please note that your original idea of using open with O_EXCL in this case would not work (I went over the races very carefully) and so we must re-check deny modes *after* the open() call returns. This is because there is a race between the open with O_EXCL and the lock of the share mode entry. Imagine the case where the first smbd does the open with O_EXCL and a deny mode of DENY_ALL, but is pre-empted before it locks the share modes and creates the deny mode entry for DENY_ALL. A second smbd could then come in with O_RDONLY and a deny mode of DENY_NONE and the two opens would be allowed. The *only* way to fix this race is to lock the share modes after the open and then do the deny mode checks *after* this lock in the case where the file did not originally exist. This code will need extensive testing but seems to initially work. Jeremy.
* updates from the TNG branchAndrew Tridgell2000-04-181-10/+6
|
* logic for domainsidsize is if size is zero, there's no sid, so don'tLuke Leighton2000-04-121-1/+0
| | | | | | | advance over it and 4-byte align. this _used_ to be "regardless of domainsidsize, advance by domainsidsize+3" which is wrong.
* include/byteorder.h: ALIGN4/ALIGN2 macros.Jeremy Allison2000-04-111-3/+3
| | | | | | | | | | | | include/includes.h: Added SMB_BIG_UINT_BITS. lib/util.c: Removed align2/align4 - use macros. libsmb/namequery.c: Use ALIGN2. locking/locking.c: Replace do_lock, do_unlock, args with SMB_BIG_UINT, not SMB_OFF_T. Needed to move to hiding POSIX locks at a lower layer. nmbd/nmbd_processlogon.c: Use ALIGN2/ALIGN4 macros. smbd/blocking.c: Replace do_lock, do_unlock, args with SMB_BIG_UINT, not SMB_OFF_T. smbd/reply.c: Replace do_lock, do_unlock, args with SMB_BIG_UINT, not SMB_OFF_T. Jeremy.
* add a commentAndrew Tridgell2000-04-111-1/+1
|
* some updates to the process logon code to reflect lukes latestAndrew Tridgell2000-04-111-20/+38
| | | | research plus some cleanups
* finally got sick of the "extern int Client" code and the stupidAndrew Tridgell2000-04-111-1/+0
| | | | | | | | | | | | | | | | 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.
* Additional fix for nmbd and 127.0.0.1 interface.Jeremy Allison2000-04-031-0/+12
| | | | Jeremy.
* Cause nmbd to ignore loopback interface when constructing its interface ↵Jeremy Allison2000-03-291-0/+14
| | | | | | | | list. This is done by default when interfaces are probed, but if someone explicitly adds 127.0.0.1 to the interfaces line for smbd, then nmbd would start to try and register names on it. This was not good :-(. Jeremy.
* damn, the test was the wrong way around for short_resuestAndrew Tridgell2000-03-281-1/+1
|
* changed the definition of dos_PutUniCodeAndrew Tridgell2000-03-271-9/+4
| | | | | | | | | the previous definition could result is us overflowing a buffer. The null termination was always added yet the size returned did not include the null termination. the new function takes a BOOL null_terminate, and always returns the total number of bytes consumed by the string.
* the final part of the nmbd merge between head and tng - this gets theAndrew Tridgell2000-03-272-30/+38
| | | | GETDC stuff sorted out
* fixed the hanlding of recursion desired when sending packets fromAndrew Tridgell2000-03-271-23/+22
| | | | | | | | | | nmbd. It does NOT follow the rule that packets to the wins server have rec_des set (I know that we have postulated this in the past). Please don't screw with this unless you do careful testing from WinXX clients. Luke and I spent a couple of hours today getting this right (it was wrong in both TNG and HEAD)
* rename static reload_services function to reload_nmbd_services becauseLuke Leighton2000-03-271-6/+6
| | | | it clashes with other reload_services definitions.
* when doing a "secure nbns" wack response and check with owner for aAndrew Tridgell2000-03-261-1/+4
| | | | | | | | | multihomed registration we were sending the packet to the wrong host! We sent it to the person trying to register rather than to the person who currently holds the name. That means we were not secure and we could allow two people to register the same name. Jeremy, you may wish to merge this change into 2.0.X
* merge from tng ...Andrew Tridgell2000-03-261-1/+1
| | | | reload services can be static
* lib/system.c: Fixed gcc warnings.Jeremy Allison2000-02-231-2/+2
| | | | | | nmbd/nmbd_processlogon.c: Use "True" and "False" instead of 1 and 0. Others - preparing for multiple pdu write code. Jeremy.
* richard got the short request for GETDC right (hooray!) win9x _and_ ntLuke Leighton2000-02-221-11/+24
| | | | now work.
* Modified auto alignment of ud[] struct on stack to be declared as anJeremy Allison2000-01-282-4/+4
| | | | | | array of pointers. This should cause alignment on a correct boundary.. Spotted by Darren Reed <darrenr@telnetmedia.com>. Jeremy.