1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
Commit Graph

1439 Commits

Author SHA1 Message Date
Andrew Tridgell
671b3a3a77 - fix the EALREADY bug so connections to slow hosts with smbclient get
through

- add workarounds to handle the win95 and WinNT bugs in handling
password lengths in sessionsetup
0001-01-01 00:00:00 +00:00
Andrew Tridgell
45e66a69d3 backout all the changes to nmbd.
The 1.9.16 tree is now back to 1.9.16p2 as far as nmbd is concerned
apart from a small change that fixes the announce type in two places.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
20b6203dac - a huge pile of changes from Luke which implement the browse.conf
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!
0001-01-01 00:00:00 +00:00
Samba Release Account
8b7fe224bc removed all of lukes recent changes. I need to do a p2 release but
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?
0001-01-01 00:00:00 +00:00
Samba Release Account
f24e341e7e - fixed bugs in nmb response packet checking.
- added multiple workgroup code - samba can register under different
  (unique) NetBIOS aliases, one per workgroup it joins.

lkcl
0001-01-01 00:00:00 +00:00
Andrew Tridgell
fcce452557 - fix client for pathworks 4 access
- fix "connection already connected" bug in open_socket_out()
0001-01-01 00:00:00 +00:00
Andrew Tridgell
5c3e8326cc - add timeouts to connect() for password server connections. This
makes multiple password servers practical.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
eb84f2f342 - new handling of ST_TYPE bits, they are now consolidated much more in
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.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
e9eac6cd49 - added "netbios name" option in smb.conf to make controlling the name
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
0001-01-01 00:00:00 +00:00
Andrew Tridgell
ec3d539630 - added support for Amiga-unix (based on BSD I think)
- 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
0001-01-01 00:00:00 +00:00
Andrew Tridgell
be2b679403 - added the "remote announce" option
- made the lp_string() code able to handle any length string
- got rid of the obsolete lmhosts code, instead users should use
"interfaces" and "remote announce". lmhosts now is just used as a IP
to netbios name map
- cleanup the inet_address() code
0001-01-01 00:00:00 +00:00
Andrew Tridgell
c94866e9e4 - added FAST_SHARE_MODES code
- added some named pipe code from Jim
0001-01-01 00:00:00 +00:00
Andrew Tridgell
b4aaec504a changed "unsigned long" to "uint32" in several places (for IP
addresses) to keep 64 bit machines happy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
aa6f8b04d1 - sequent-ptx support from bressler@iftccu.ca.boeing.com (Rick
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
0001-01-01 00:00:00 +00:00
Andrew Tridgell
3a7c2d9dfa minor fix to write_data() for EOF handling 0001-01-01 00:00:00 +00:00
Samba Release Account
2b9475cc5f applying login updates from jim@oxfordcc.co.uk, sent in by
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
0001-01-01 00:00:00 +00:00
Andrew Tridgell
a7c7d7afe2 fix a bug that we've had for a long time where we don't handle EOF
properly from clients, and end up looping like mad.

At least I _hope_ this is fixed.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
51e5a1a546 removed the remote interfaces stuff. 0001-01-01 00:00:00 +00:00
Samba Release Account
7719fb0652 modified become_master() to a state-based system. becoming a master
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
0001-01-01 00:00:00 +00:00
Samba Release Account
a7be82ee6e Started uninstall in Makefile
Updated some email addresses
0001-01-01 00:00:00 +00:00
Samba Release Account
c0b0139d1a added local and remote interfaces (didn't get done in first attempt) 0001-01-01 00:00:00 +00:00
Samba Release Account
6d81d56f92 Basic doc changes to keep up to date.
Dan
0001-01-01 00:00:00 +00:00
Andrew Tridgell
1a30ade78e demo of cvs - ignore 0001-01-01 00:00:00 +00:00
Andrew Tridgell
8e9dce34d5 a cleanup of the receive_smb() usage, adding timeouts in some places
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
0001-01-01 00:00:00 +00:00
Andrew Tridgell
b551dc98f7 got rid of a lot of redundent header files as we now globally generate
prototypes automatically using "make proto". This is much less prone
to error than the old method of manually adding prototypes
0001-01-01 00:00:00 +00:00
Andrew Tridgell
3ee9d45426 moved some more locking routines to locking.c, and moved replacement
routines for broken OSes from util.c to replace.c.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
e775576f02 - added comments to byteorder.h explaining how it works.
- 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
0001-01-01 00:00:00 +00:00
Andrew Tridgell
88b191b488 - added predict.c, moving the routines from util.c
- 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.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
7ed71b73ae - added interface.c and removed all the references to myip, bcast_ip
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
0001-01-01 00:00:00 +00:00
Andrew Tridgell
cfbad9b082 - changed some debug levels in clientutil.c
- 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
0001-01-01 00:00:00 +00:00
Andrew Tridgell
045014aa57 Did more integration of Lukes code ready for the first release.
I've now got WINS registration working, and refresh working. Its
looking pretty good so far, but needs lots of testing.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
0d8dcfa13c a huge pile of changes :-)
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
0001-01-01 00:00:00 +00:00
Andrew Tridgell
72543810ce - moved the uid handling to uid.c
- added setfsuid() support (for Linux)
- started adding some of Lukes changes, just the loadparm and ipc ones
so far
0001-01-01 00:00:00 +00:00
Andrew Tridgell
635b56f19c Lots of changes!
- 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
0001-01-01 00:00:00 +00:00
Andrew Tridgell
7814eca4b2 handle errors from receive_smb better, and print error string 0001-01-01 00:00:00 +00:00
Andrew Tridgell
8d5a3156ce cleaned up the way the max log size stuff works and fixed a potential
problem with varargs usage in Debug()
0001-01-01 00:00:00 +00:00
Andrew Tridgell
2cf4d958f4 fix a dst bug, we had a sign wrong in the calculation :-( 0001-01-01 00:00:00 +00:00
Samba Release Account
3f37b2db98 fixed a typo in the select() emulation code 0001-01-01 00:00:00 +00:00
Samba Release Account
291551d807 Initial version imported to CVS 0001-01-01 00:00:00 +00:00