summaryrefslogtreecommitdiff
path: root/source3/smbd
AgeCommit message (Collapse)AuthorFilesLines
1996-10-02- a huge pile of changes from Luke which implement the browse.confAndrew Tridgell4-19/+77
stuff and also fix a pile of nmbd bugs. Unfortunately I found it very hard to disentangle the new features from the bug fixes so I am putting in the new code. I hope this is the last big pile of changes to the 1.9.16 series! (This used to be commit 20b6203dac4bbb43e4e7bea0b214496d76d679d9)
1996-10-02- accept either NT or lanman passwords in tconXAndrew Tridgell1-10/+9
(This used to be commit b6c1c60d72e1625ca172b8f8eb07078413611468)
1996-08-24added debug infoAndrew Tridgell1-1/+1
(This used to be commit 4a988021a2aceaa5fc0d4e5ba2802392a7141ad8)
1996-08-24removed all of lukes recent changes. I need to do a p2 release butSamba Release Account2-37/+3
can't test the multi group changes. I also found that some of lukes changes wiped out some recent bug fixes. Is your CVS tree ok luke? (This used to be commit 8b7fe224bce64803d55ae279fa61ef3ebbbb0241)
1996-08-24fixed dircahe bugSamba Release Account1-2/+2
(This used to be commit 050f941e21aeb57ab47ac9d29fb4acfceab45087)
1996-08-23- fixed bugs in nmb response packet checking.Samba Release Account2-3/+37
- added multiple workgroup code - samba can register under different (unique) NetBIOS aliases, one per workgroup it joins. lkcl (This used to be commit f24e341e7e4d8726b98d3a0f83b24f61817fe536)
1996-08-22- add timeouts to connect() for password server connections. ThisAndrew Tridgell1-1/+1
makes multiple password servers practical. (This used to be commit 5c3e8326cc45d3cbd076475e445ce461a2bf7560)
1996-08-21- fix a bug handling readraw packets that caused the timeout to be 30Andrew Tridgell2-2/+2
milliseconds instead of 30 seconds as was intended. Thanks to Paul Nelson for finding this bug. (This used to be commit 78f62c83be5df6b66aa0b5e83b2d290f97ce53c2)
1996-08-21handle sigpipe better for server securityAndrew Tridgell1-0/+14
(This used to be commit d87fdb3ee95b6640d5deef823f22e8d98350ca33)
1996-08-21JHT ==> Upgraded Samba to Windows NT Server version 4.1Samba Release Account1-1/+1
Just to keep ahead of the pack. Note: Really only done to differntiate our version ID from existing SMB Servers. (This used to be commit 6636c7b5b8e8a4ccf7f39450011ed864049a7cd1)
1996-08-21- new handling of ST_TYPE bits, they are now consolidated much more inAndrew Tridgell1-2/+1
DFLT_SERVER_TYPE in nameserv.h - got rid of a lot of spurious domain controller stuff. Samba is not a domain controller yet, but it can be a domain master. We were claiming to be a domain controller in some packets which may have caused problems - don't do preferred master startups on the WINS pseudo-net - don't do election requests on the WINS pseudo-net - fix a nasty bug in become_non_master() which wiped out the bits in remove_type before using them. The result was that samba didn't like losing its master status. - changed the logic in the election packet handling to enable us to become a non-master whenever we receive a winning election frame, even if we aren't expecting it - get another packet from the socket in nmbd when we reject one of our own packets, this stops us from going into the packet reading code too often and makes nmbd much snappier - always remove a name immediately when we try to release it, don't wait for the lack of response from the network, otherwise we will end up replying to name that we don't really own. We still send the dereg packets, we just don't wait for them to time out. (This used to be commit eb84f2f342375439d94481a0ccf47c9593544e32)
1996-08-20- fix a bug in NetServerEnum where counted and total were not countedAndrew Tridgell3-47/+57
correctly if there were multiple instances of a name. This led to the infamous "not enough memory" error when browsing (but this isn't the only cause of that message) - fix a triple-chaining bug which affected OpenX following a TconX - fix a serious nmbd bug that meant nmdb would answer packets that it wasn't supposed to, causing havoc with browse lists. - never time out SELF packets. This is an interim fix until I find out why nmbd thought they should be timed out. (This used to be commit 2960c3908c2c3b01a1f2b77def60350018d298e1)
1996-08-19fix a bug in the new chaining codeAndrew Tridgell1-6/+10
(This used to be commit 50ed940451e9d009f19e735074f8fcdb503f5c25)
1996-08-19- added "netbios name" option in smb.conf to make controlling the nameAndrew Tridgell3-200/+96
that samba uses possible - added "socket address" option to allow virtual SMB servers (on systems with IP aliasing line Linux) - disabled FAST_SHARE_MODES by default in Linux as older Linux boxes can't do shared writeable mappings. We really need autoconf ... - added new option types in loadparm so a string type can be specified ot be uppercase only, this is used for the workgroup and netbios name options - auto-create the lock directory if it doesn't exist in shared mem startup - get rid of announce_backup() - change a few comments in nmbd code - rewrote the chaining code completely. Hopefully it will handle any depth chains now. - added LPRng support (This used to be commit e9eac6cd49c352349580ddb13d720cb201aecc48)
1996-08-17- made FAST_SHARE_MODES standard for LinuxAndrew Tridgell1-5/+14
- you can now press enter after a password prompt with "smbclient -L hostname" and it will use a blank username and password, the same as if you used -U% - changed the wins.dat store code to not go via a string variable (just use fprintf instead) - removed a "unsigned long" that luke put back in, changing it to uint32 to keep 64 bit machines happy. Naughtly luke! - allow guest non-connnected print queue listings so ms client 3 can work (This used to be commit 917160dee69bbc198985b6f3232ca2dcda809d8a)
1996-08-17- added support for Amiga-unix (based on BSD I think)Andrew Tridgell4-114/+44
- changed the order of PROGS and SPROGS in Makefile (SPROGS first) - another 64 bit cleanup (for INADDR_NONE) - added paranoia code in DirCacheAdd() to detect looping - fixed important DirCache flush bug - rewrote the NetServerEnum code after I found it could return servers from multiple workgroups at once, and this could cause browsing havoc. Now a null workgroup query is equivalent to a query for the servers primary workgroup - got rid of my_workgroup() - got rid of "workgroup = *" comment in Makefile. We no longer support a workgroup of *, users must set the workgroup explicitly - the wins.dat file was being stored in a different format to what it was being loaded in - this could cause havoc. fixed. - uppercase our netbios name and the workgroup name at startup - if accept fails in main loop when running as a daemon then continue, don't just exit! - don't use ./ on smbclient in smbtar - better code to detect if a process exists (This used to be commit ec3d53963064b50ff33e8eff47812aac82f164ba)
1996-08-15- added FAST_SHARE_MODES codeAndrew Tridgell4-12/+500
- added some named pipe code from Jim (This used to be commit c94866e9e44ea1eb72da06bc65ef1c032ae8e0c9)
1996-08-14fixed an obvious bug that meant that DosPrintQEnum could neverAndrew Tridgell1-1/+1
work. Now we'll see if it works after this fix ... (This used to be commit 9735d7e8e2978ce17a001d7d5766faf382ff5788)
1996-08-13minor cleanupsAndrew Tridgell1-1/+1
(This used to be commit f1dc2b93179ace36407bbb25c2c34c78087714bd)
1996-08-13- sequent-ptx support from bressler@iftccu.ca.boeing.com (RickAndrew Tridgell3-30/+63
Bressler) - machten support from Trevor Strohman (trev@figment.tenon.com) - added qinfo command to client as part of drag-and-drop printer support for win95 from David Chappell <chappell@mouse.cc.trincoll.edu> He also added the "printer driver" option - use sigblock() on more systems and use sigsetmask(0) instead of sigunblock() as its more portable. This beats a problem with zombies on heavilily loaded systems. - added internals.doc written by David Chappell into the source tree - get rid of PRINT_COMMAND options from local.h as they are no longer relevent - new kanji code from Fujita - don't set the recursion_available flag on queries in nmbd - fix a potential bug with pointer subtraction in printing.c - got rid of error_count code as the real fix (the EOF problem) is now in (This used to be commit aa6f8b04d125b5bc00f267abf72b800228aabf7d)
1996-08-09applying login updates from jim@oxfordcc.co.uk, sent in bySamba Release Account2-10/+16
lewis2@server.uwindsor.ca. rest of this patch to follow. bug in interface.c - uninitialised pointer. nmbd has 0x20 as well as 0x0 NetBIOS name when lmhosts entry is added. lkcl (This used to be commit 2b9475cc5fda4b272f19c4f168d3f00363c8042b)
1996-07-30fix a bug that we've had for a long time where we don't handle EOFAndrew Tridgell3-29/+27
properly from clients, and end up looping like mad. At least I _hope_ this is fixed. (This used to be commit a7c7d7afe2ef81f4a74584ce9b71e54442f7e484)
1996-07-17lots of changes to nmbdSamba Release Account1-1/+1
lkcl (This used to be commit 45d3b2644733333c657c48a69719fec72881f7df)
1996-07-10updated docs to match code mods from last two or three updates. doneSamba Release Account1-1/+1
some more commenting of code to match docs. sorted some bugs. ipc BOOL domains was uninitialised. lkcl (This used to be commit cb43ce7bc08fa43a6ce49e0937f13afec5dce67b)
1996-07-04modified become_master() to a state-based system. becoming a masterSamba Release Account1-27/+3
is now performed in stages: wait for each NetBIOS name to be successfully registered before proceeding to the next stage. tied implicit name registration and release (broadcast method) to the same piece of code as explicit method (via WINS server). created special_browser_name() function that checks __MSBROWSE__ name: this name is ignored by WINS servers apparently. fixed likely incompatibility between refresh_my_names() and add_my_names(). (netbios entries were unlikely to be refreshed). NOTE: none of these changes have been tested. at all. lkcl (This used to be commit 7719fb06524a66ce5e3f30f3152ddb1e200c97f3)
1996-07-03- moved the protocol defs in the client to keep sill C compilers happyAndrew Tridgell1-0/+5
- added change for cnum range in reply_tdis() (This used to be commit 609c3a5e1e3a8d9ba380a802ab3ecf6f47093846)
1996-07-01patch to fix NetServerEnum with multiple workgroup lists kindly supplied.Samba Release Account1-3/+27
it works for him. needs testing. (This used to be commit 546c49080707c0cbaa6bfc928102d52826867592)
1996-06-10a cleanup of the receive_smb() usage, adding timeouts in some placesAndrew Tridgell5-13/+32
also added paranoid code in the main process() loop of smbd to detect when smbd is looping uselessly. This should stop the "smbd is chewing lots of cpu" reports (This used to be commit 8e9dce34d50d673cb50531f0c4c7672ce2522cef)
1996-06-10got rid of a lot of redundent header files as we now globally generateAndrew Tridgell12-19/+7
prototypes automatically using "make proto". This is much less prone to error than the old method of manually adding prototypes (This used to be commit b551dc98f7cc194a5fc2e67a4ebae7fd67a01bbc)
1996-06-08- added comments to byteorder.h explaining how it works.Andrew Tridgell1-16/+92
- fixed problem with installscripts if srcdir is not set - fixed ptr init bug in interface.c - changed default lookup type in nmblookup to match nbtstat under NT - new quotas fixes for sunos and solaris (This used to be commit e775576f026d282473256aeac6fef65a85acd98e)
1996-06-07- added predict.c, moving the routines from util.cAndrew Tridgell1-0/+146
- added iface_count() and iface_n_ip() routines so its easy to loop over the local interface list - made readsize a normal loadparm global - check for null w in add_domain_entry() - set the deathtime to time()-1 for doamin entries with servertype==0 This allows servers that are shutting down to be removed - add the 0x1c name at startup if we are a WINS server. Previously we added it only if we were a master - loop over interfaces in add_my_domains(), so people don't have to have a lmhosts file to get lp_workgroup() on all interfaces - set add to True for find_workgroupstruct() in nmbsync, and check for null return - remove some ugly "errno = EBADF" bits. they just confused things. (This used to be commit 88b191b48836eeb7937f25b37d0bdd4a2276e5a7)
1996-06-06- added interface.c and removed all the references to myip, bcast_ipAndrew Tridgell3-26/+47
and Netmask, instead replacing them with calls to routines in interface.c - got rid of old MAXINT define - added code to ensure we only return one entry for each name in the ipc enum routines - added new_only option to add_netbios_entry() to prevent overwriting of important names - minor time handling fixup (This used to be commit 7ed71b73ae745da099072eee36fc2700d1d91407)
1996-06-05- remove some incorrect prototypes from server.cAndrew Tridgell1-5/+0
- formatting cleanup in check_master_browser() - removed unused code from nameserv.c (This used to be commit ed3ef2e47d5039077993c6addaf44dce2bb1e780)
1996-06-05- changed some debug levels in clientutil.cAndrew Tridgell2-10/+20
- added dir_check_ftype() to clean up the file type checking a bit - added check for libc version >= 5 for setfsuid() for Linux - moved the AM_MASTER() and related macros to nameserv.h - added proper defines for the various netbios announce types - don't call the announce_backup() code, as I'm pretty sure its wrong it sent ANN_GetBackupListReq packets as broadcasts, they are supposed to be used only by clients to the master browser to find a list of available backup servers to remote a netserverenum to, I don't think nmbd should ever send one. - fixed a bug in the browse list writing - minor debug cleanups - put in the code to discard our own broadcasts (it won't work for multi-homed hosts though) - changed ELECTION_VERSION to 1 so we can be beaten by a NT 3.51 server by lowering the os level. - only do sync_browse_lists() if we are the master browser, otherwise we'll cause network overload - don't call tell_become_backup() as it appears to be badly broken, it should only be used when the machine being told has its MAINTAIN_LIST to to auto. Not calling it does no great harm anyway - fix a nasty bug where becomebackup was confused with reset browser! - make setbuffer() not get caught by the auto protototypes (This used to be commit cfbad9b08242962f41595273de08a7293fe432b1)
1996-06-04add dummy quotas fnAndrew Tridgell1-0/+4
fix typo in reply to backup lists (This used to be commit bc4a2994377ab078d3d1a900f79fda9dfe4d0e6a)
1996-06-04a huge pile of changes :-)Andrew Tridgell7-81/+60
The biggest thing is the integration of Lukes new nmbd. Its still largely untested, so we will really need some feedback I've also added auto prototype generation and cleaned up a lot of minor things as a result (This used to be commit 0d8dcfa13c527ec2c8aca39ba49c09e4e694b26c)
1996-06-01- moved the uid handling to uid.cAndrew Tridgell4-403/+536
- added setfsuid() support (for Linux) - started adding some of Lukes changes, just the loadparm and ipc ones so far (This used to be commit 72543810ce3eb5ea7b141f957edf38b4c46b1ea4)
1996-05-31Lots of changes!Andrew Tridgell5-22/+53
- add faq info on NT printer handling - add "delete readonly" option to help rcs users - add stuff to man pages on new printer options - add "proxy name resolution" option - add "command string" -c option to smbclient (thanks Ken) - split time functions into time.c - rearrange the quotas stuff a bit and fix some bugs - complete rehash of the time handling code thanks to Paul Eggert - fix nmblookup output a bit - add plp print queue parsing from Bertrand Wallrich (This used to be commit 635b56f19c817527c52e9bbde31faa6a8a47777b)
1996-05-31comment out the code that tries to handle the NT bug where the 2ndAndrew Tridgell1-0/+2
passlen is wrong. The fix is worse than the problem :-) (This used to be commit 51e22c931078e0b612dbc9e20dc143c3aebf7eb5)
1996-05-30- added an entry on WinDD to samba.faqAndrew Tridgell1-2/+3
- added a sample smb.conf from Thoralf.Freitag@remserv.rz.fhtw-berlin.de - print the errno when you get a can't change directory error - added installscripts.sh from James_K._Foote.PARC@xerox.com (This used to be commit 48c6b86d4c580d62ef46132dc04ce2b1d14e21e8)
1996-05-29handle errors from receive_smb better, and print error stringAndrew Tridgell1-3/+4
(This used to be commit 7814eca4b22f909e75c3321d9a157c2228198c5c)
1996-05-29fixed a typoAndrew Tridgell1-1/+1
(This used to be commit 654c242045a70b600488a765eb46b6f79e484de9)
1996-05-29cleanups to make thinsg compile cleanlyAndrew Tridgell1-7/+10
(This used to be commit 39fbeb04ae938594c380d97ebe67c012fa0dd51a)
1996-05-05made dptr_num signed to handle -1 from OS/2Andrew Tridgell1-1/+1
(This used to be commit d2c5ab135ca7ee6366f5f8733440318a724a4378)
1996-05-05- fix a bug hanlding very log filenamesAndrew Tridgell1-247/+7
- move quotas support to separate file - send keepalives to password server (This used to be commit f81295c7b4346759ac522ba610438a68204f1858)
1996-05-05move quotas support out of server.cAndrew Tridgell1-0/+330
(This used to be commit 1ed5645a5d150de4e5e788c2389aa3cbe70a8faf)
1996-05-05turn on KEEP_PASSWORD_SERVER_OPEN by defaultAndrew Tridgell1-2/+2
(This used to be commit d2676cdd0b44fc4fc825118e510bac2c3f1e40d9)
1996-05-05handle being passed a dptr of -1 to mean "close all open dir handles".Andrew Tridgell1-0/+13
Looks like OS/2 does this. It caused a core dump. (This used to be commit 4b2579daae0a9d78780476694fd395d97445e197)
1996-05-05- close the listening socket in the child process when running as a daemonAndrew Tridgell1-12/+16
- exit with a non-zero exit code if open_sockets() fails (This used to be commit 83866f3c84bd53a68f4937dddf4903eee7a00aaf)
1996-05-04- use issafe()Andrew Tridgell1-12/+15
- map the archive bit in a more robust manner. We now set it when we first write to the file after opening it. (This used to be commit d20627b378e41546f00e5aabc86a71889ebc236a)