1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-29 21:47:30 +03:00

227 Commits

Author SHA1 Message Date
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
-
Samba Release Account
15c1c84850 preparing for release of 1.9.16alpha18 -
Andrew Tridgell
f84199aad6 fixed installscripts.sh so it no longer creates ] and [ directories
every time its run!
-
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
-
Andrew Tridgell
46277e64a1 added support for the Bull Operating System (BOS) -
Andrew Tridgell
c94866e9e4 - added FAST_SHARE_MODES code
- added some named pipe code from Jim
-
Andrew Tridgell
b4aaec504a changed "unsigned long" to "uint32" in several places (for IP
addresses) to keep 64 bit machines happy.
-
Andrew Tridgell
9735d7e8e2 fixed an obvious bug that meant that DosPrintQEnum could never
work. Now we'll see if it works after this fix ...
-
Andrew Tridgell
424814bed7 disabled SETFS (which was only enabled for Linux) until we resolve a
couple of bug reports that may be caused by it.

Andrew
-
Samba Release Account
16f10b333d preparing for release of 1.9.16alpha17 -
Andrew Tridgell
f1dc2b9317 minor cleanups -
Andrew Tridgell
c66ad071b7 - add the 0x1c name for all interfaces if we are a logon server -
Andrew Tridgell
d84f5402fd don't allow newlines in printer status messages -
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
-
Andrew Tridgell
3a7c2d9dfa minor fix to write_data() for EOF handling -
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
-
Samba Release Account
6567bac5d1 preparing for release of 1.9.16alpha16 -
Samba Release Account
32f495cf22 preparing for release of 1.9.16alpha14 -
Samba Release Account
12c50bac4e 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.

lkcl
-
Samba Release Account
2193c1ee4e updating documentation to reflect code a little bit.
lkcl
-
Samba Release Account
b5fb0293b0 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.
-
Samba Release Account
043898aa85 preparing for release of 1.9.16alpha15 -
Samba Release Account
70d3d3bbf0 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.

lkcl
-
Samba Release Account
6e932e4bae local_only NetServerEnum syncs can now be issued.
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?

lkcl with help from jra
-
Samba Release Account
801fe1066e preparing for release of 1.9.16alpha13 -
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.
-
Andrew Tridgell
7c8fd43b4e minor cleanups -
Andrew Tridgell
fabd4230f1 the client now loads the smb.conf config file so it can get the
interfaces info, and the workgroup right.
-
Andrew Tridgell
51e5a1a546 removed the remote interfaces stuff. -
Andrew Tridgell
9e411f2c90 added lots of comments to the docs that Luke wrote on the internals of
nmbd. I haven't been through all of them yet, but I'm getting there
:-)
-
Andrew Tridgell
e6282da558 added a bunch of comments to Lukes docs. -
Andrew Tridgell
c1415349ac minor debug output fix -
Andrew Tridgell
6fa3468c9b 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.
-
Samba Release Account
eae670a7ca preparing for release of 1.9.16alpha12 -
Samba Release Account
96c2efded8 NeXT needs #define pid_t int in includes.h
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.
-
Samba Release Account
b9d7b458b9 preparing for release of 1.9.16alpha11 -
Andrew Tridgell
153d324c7b minor cleanups ready for another release -
Andrew Tridgell
1fd1d7c27c removed some debug stuff from luke -
Samba Release Account
45d3b26447 lots of changes to nmbd
lkcl
-
Samba Release Account
cb43ce7bc0 updated docs to match code mods from last two or three updates. done
some more commenting of code to match docs.

sorted some bugs.

ipc BOOL domains was uninitialised.

lkcl
-
Samba Release Account
4ccc84989e missed nmbd.c in previous update.
did a make proto

lkcl
-
Samba Release Account
429f1f975e sorted out various timer delay bugs: nameannounce.c nameserv.c
namedbname.c:search_for_name() wasn't looking for 0x1b as well as
0x0 and 0x20 name types.

reduced number of retransmissions of packets from 4 to 3 times.

added code that ensures remote lmhosts entries don't get deleted when
a master browser cannot be found on a remote subnet. stopped forcing
an election on remote subnets if a master browser cannot be found.

stopped browse list and wins list from being written out too frequently.

only add samba's names to local interfaces.

add 0x1c name if we are a domain logon machine (needs more exploration).

why bother reloading services when receiving a SIGTERM?

sort out add_my_name_entry() and remove_name_entry() to deal with
broadcast, samba as a WINS and samba using a WINS. properly.

added extra debug information to help with expected response queue code.
updated debug comments in become_master().

altered dump_names() DEBUG format. it looks prettier.
altered wins.dat format to match DEBUG format.

lkcl
-
Samba Release Account
d78b319062 added the recently shuffled and updated source files missed in the
previous commit (see previous log message for details)

fixed bug in nameservreply.c: wrong macro in use (RSSVAL not IVAL!).

did another make proto

lkcl
-
Samba Release Account
b50ff657dd tidied up: code shuffling and documentation.
created namedb*.c nameservresp.c nameservreply.c and namepacket.c
added modules to Makefile, downloading dan's current version first :-)
shuffled docs to match source
created more docs

fixed bug in announce_backup() discovered when going nameannounce.doc:
backup list requests to the master browser should be used when samba is
not a master browser; backup list requests to the primary domain
controller should be used when samba is not a primary domain controller.

fixed bug in sync_server: it would never send MasterAnnounce packets.

removed the code that ignored special browser names: these should only
be ignored (except 0x1b names) when broadcasted name queries are sent,
not when directed registration or directed queries are sent samba as a
WINS server. (note: exactly what's going on is still uncertain).

renamed NAME_QUERY_MST_SRV_CHK  to NAME_QUERY_PDC_SRV_CHK  (more accurate).
renamed NAME_STATUS_MST_SRV_CHK to NAME_STATUS_PDC_SRV_CHK (more accurate).

added secured WINS name registration: a new 'state' NAME_REGISTER_CHALLENGE;
functions send_name_response(), response_name_query_register(); added
sending of WAIT ACKNOWLEDGEMENT packet; added a reply_to_ip field to
the response record structure so that after the name query challenge,
you know who to inform of the outcome of that challenge.

note: these are all currently untested modifications (yikes!)

lkcl
-
Samba Release Account
b6343dd09c Added uninstallation from Makefile, either in parts or total uninstall
Dan
-
Samba Release Account
2eccc5eea2 Changed install scripts so they don't have hardcoded values
Dan
-
Samba Release Account
166d70eba3 namebrowse.c was using variable work uninitialised.
remkproto'd proto.h

lkcl
-
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
-
Samba Release Account
a7be82ee6e Started uninstall in Makefile
Updated some email addresses
-
Andrew Tridgell
05107be566 generated new proto.h -