Andrew Tridgell [Wed, 21 Aug 1996 14:15:09 +0000 (14:15 +0000)]
- fix a bug handling readraw packets that caused the timeout to be 30
milliseconds instead of 30 seconds as was intended. Thanks to Paul
Nelson for finding this bug.
JHT ==> Upgraded Samba to Windows NT Server version 4.1
Just to keep ahead of the pack.
Note: Really only done to differntiate our version ID from
existing SMB Servers.
Andrew Tridgell [Wed, 21 Aug 1996 06:09:00 +0000 (06:09 +0000)]
- 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.
Andrew Tridgell [Tue, 20 Aug 1996 15:45:16 +0000 (15:45 +0000)]
- fix a bug in NetServerEnum where counted and total were not counted
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.
Andrew Tridgell [Sat, 17 Aug 1996 14:27:12 +0000 (14:27 +0000)]
- made FAST_SHARE_MODES standard for Linux
- 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
- updated load_netbios_names() to cope with new wins.dat format
it doesn't support loading of Internet Group names yet, but then again,
you can't create Internet Group names yet, so it's not a problem!
Andrew Tridgell [Sat, 17 Aug 1996 11:37:44 +0000 (11:37 +0000)]
- 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!
Andrew Tridgell [Fri, 16 Aug 1996 13:03:26 +0000 (13:03 +0000)]
- 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
Andrew Tridgell [Tue, 13 Aug 1996 12:34:10 +0000 (12:34 +0000)]
added the validchars package written by tino@augsburg.net. This
package automates the building of a "valid chars =" line for any
client DOS based client. This makes setting things up right for
european languages much easier.
Andrew Tridgell [Tue, 13 Aug 1996 08:57:55 +0000 (08:57 +0000)]
- 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
updated comments in announce_server() to indicate that future work needs
to be done on this function when doing an announce host to a remote
domain master browser when samba is a WINS server.
jht spotted error in Domain announcements: the comment was being displayed
as the NetBIOS name of the master browser for samba's workgroup, instead
of samba's NetBIOS name.
updated doc files to include a GPL header, with revision history in it.
added created and tridge comments on first revision first kick-off in
revision history.
bug spotted in nameservresp.c - arguments to test subnet the response
is received on (same_net()) were the wrong way round (ccm@shentel.net)
samba was adding WORKGROUP(1e) as a unique not a group name: fixed this
bug in reply_name_status() and reply_name_query(): WINS entries weren't
being looked up.
name status reply adds local SELF entries to WINS SELF entries: some
SELF entries are only added locally, while others are only added via
WINS. name status needs to have both, combined.
a sync will only occur when an ANN_LocalMasterAnnouncement is received, NOT
an ANN_HostAnnouncement or an ANN_DomainAnnouncement.
when samba is a member of a workgroup, it looks for (using a wins server)
and announces to its domain master. NAME_QUERY_ANNOUNCE_HOST - yet another
'state' - has been created to do this: do the name query on the wins server
and send the announce host to the answer to this query.
jeremy @ vantive wrote the original code to do this, which used the
name_query() function. i'm trying to avoid name_query: it times out and
generally messes things up, but using queue_netbios_packet() and
queue_netbios_pkt_wins() is... not intuitive?
Some examples for printer accounting that I use with samba. lp-acct is
an example for a local printer off a samba server, hp5-redir is for a
remote printer. acct-sum, does the stats from acct-all. There is an
example printcap entry for the redirection of the printer. Lots more
to come!
Andrew Tridgell [Mon, 22 Jul 1996 12:00:39 +0000 (12:00 +0000)]
fix up problems with "smbclient -L". It now uses a generic
NetServerEnum with no workgroup attached if the workgroup is
"WORKGROUP" (the default in the Makefile) and uses the specific
NetServerEnum (with workgroup attached) otherwise.
Sorry for last empty message. Updated file to say that domain logons
and scripts are now possible and to see DOMAIN.txt for more info.
<pkelly@ets.net>
namedbname.c:find_name_search() needed search capability on both local
subnet records and WINS records. it used to return NULL if the name
was not found in the local subnet records even if you asked it to search
the WINS name records as well.
Modified demo smb.conf to not have /tmp writeable by everyone by default.
According to server-linux some people seem to be uncommenting the example
[tmp] without thinking what it does :-)