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

18594 Commits

Author SHA1 Message Date
Samba Release Account
847fe7e456 preparing for release of 1.9.16alpha12
(This used to be commit eae670a7ca)
1996-07-19 09:34:54 +00:00
Samba Release Account
bcfba000df 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.
(This used to be commit 96c2efded8)
1996-07-18 17:09:22 +00:00
Samba Release Account
90357bb3b0 preparing for release of 1.9.16alpha11
(This used to be commit b9d7b458b9)
1996-07-18 10:54:15 +00:00
Andrew Tridgell
b6037f01a0 minor cleanups ready for another release
(This used to be commit 153d324c7b)
1996-07-18 10:20:51 +00:00
Andrew Tridgell
201fefd658 removed some debug stuff from luke
(This used to be commit 1fd1d7c27c)
1996-07-18 10:09:01 +00:00
Samba Release Account
25b30c08dc lots of changes to nmbd
lkcl
(This used to be commit 45d3b26447)
1996-07-17 18:33:36 +00:00
Samba Release Account
e5a0619c28 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
(This used to be commit cb43ce7bc0)
1996-07-10 18:48:49 +00:00
Samba Release Account
9d59ce1d57 missed nmbd.c in previous update.
did a make proto

lkcl
(This used to be commit 4ccc84989e)
1996-07-09 18:11:47 +00:00
Samba Release Account
9fdb312a69 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
(This used to be commit 429f1f975e)
1996-07-09 18:01:46 +00:00
Samba Release Account
3545a9b873 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
(This used to be commit d78b319062)
1996-07-07 13:29:56 +00:00
Samba Release Account
b338bce94f 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
(This used to be commit b50ff657dd)
1996-07-07 12:36:18 +00:00
Samba Release Account
4d314a96e7 Added uninstallation from Makefile, either in parts or total uninstall
Dan
(This used to be commit b6343dd09c)
1996-07-05 03:53:32 +00:00
Samba Release Account
2285033933 Changed install scripts so they don't have hardcoded values
Dan
(This used to be commit 2eccc5eea2)
1996-07-05 03:51:27 +00:00
Samba Release Account
94b935c974 namebrowse.c was using variable work uninitialised.
remkproto'd proto.h

lkcl
(This used to be commit 166d70eba3)
1996-07-04 19:41:16 +00:00
Samba Release Account
7812ff0813 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
(This used to be commit 7719fb0652)
1996-07-04 19:19:26 +00:00
Samba Release Account
9a08bb015c Started uninstall in Makefile
Updated some email addresses
(This used to be commit a7be82ee6e)
1996-07-04 03:17:08 +00:00
Andrew Tridgell
ddbdce7018 generated new proto.h
(This used to be commit 05107be566)
1996-07-03 02:59:01 +00:00
Andrew Tridgell
f64bd08ad3 fixed conflict between two variables called d
(This used to be commit 38135c854e)
1996-07-03 02:58:46 +00:00
Andrew Tridgell
9c77b8ab37 fixed conflict with global variable updatecount
(This used to be commit ba478e9404)
1996-07-03 02:58:18 +00:00
Andrew Tridgell
a7f497c6d6 fix Makefile - remove Lukes private stuff :-)
rerun proto generator
(This used to be commit 98568862ca)
1996-07-03 02:39:49 +00:00
Andrew Tridgell
07fcf2df03 - moved the protocol defs in the client to keep sill C compilers happy
- added change for cnum range in reply_tdis()
(This used to be commit 609c3a5e1e)
1996-07-03 01:58:27 +00:00
Samba Release Account
7ca58ce114 as a result of the writing of namework.doc, namework.c has been tidied up,
some bugs fixed / documented and some discrepancies noted down (in
namework.c as well as namework.doc)

namebrowse.c and namelogon.c contain functions that were inappropriately
placed in namework.c. namebrowse.c contains browse sync queue management
functions that were inappropriately placed in namedb.c

the 'cmd_type' member of response_record has been renamed to 'state'
because that more accurately reflects it purpose (not entirely. sigh).

fixed a bug in nameserv.c that meant the previous version wouldn't
compile.

there's probably a bit more...

lkcl
(This used to be commit a66417ebe8)
1996-07-02 15:31:33 +00:00
Samba Release Account
ee1db51941 updated low-level design documentation on nmbd. first draft of namework.doc
and updated the other two.

lkcl
(This used to be commit 96d242826d)
1996-07-02 15:23:02 +00:00
Samba Release Account
601281a43b patch to fix NetServerEnum with multiple workgroup lists kindly supplied.
it works for him. needs testing.
(This used to be commit 546c490807)
1996-07-01 18:54:02 +00:00
Samba Release Account
7a804a2e83 updated the NetBIOS code due to some bugs found by writing the first draft
of the low level design docs.
(This used to be commit 103012e5f2)
1996-07-01 18:29:21 +00:00
Samba Release Account
a853abd9ae first draft of low-level design documents describing the operation of
nameserv.c and nameresp.c and their interaction with the rest of nmbd.
(This used to be commit 875497d961)
1996-07-01 18:22:31 +00:00
Samba Release Account
70d59e977f added local and remote interfaces (didn't get done in first attempt)
(This used to be commit c0b0139d1a)
1996-06-29 19:27:12 +00:00
Samba Release Account
ed2639ebe2 luke's first attempt at using cvs
accidentally updated the Makefile

updated the name database structure (again!). this time, there is one
name database per local interface. there is also a pseudo-interface on
ip 255.255.255.255. its purpose is to store WINS name entries. all the
local interface name databases store SELF names only. the WINS name
database stores non-special browser names.

added wins.dat file: records WINS entries in ascii format. this is reloaded
when nmbd restarts.

added repeating code for response packets. timer is in seconds only at the
moment.

updated the response queue code to deal with samba registering with a
WINS server a bit better (added more cases when a response isn't received).
tidied up the response packet processing code and expire_response_queue()
code. added cross references between response received and await-response
expired code.

added over-zealous code that checks all machines that register with samba
as a WINS server (every 10 minutes i think): to see whether they are still
alive or not (see rfc1001.txt)

bug reported by terry@ren.pc.athabascau.ca: DNSFAILed names _stay_ as
DNSFAIL, even though the machine may come back up and REGISTER.

removed update_from_reg() function. it's not necessary, and it does too much.

added code that announces on each local interface samba's ttl as zero and
servertype as zero when nmbd is kill -TERMed

first attempt at putting the first functionality of samba browsing back in
(remote subnets should have samba appear in a workgroup specified through
the lmhosts file)

lots of other miscellaneous tidying up / chopping about.
(This used to be commit 7e8c60cfe5)
1996-06-29 18:49:20 +00:00
Samba Release Account
851ee418b4 Basic doc changes to keep up to date.
Dan
(This used to be commit 6d81d56f92)
1996-06-19 13:23:46 +00:00
Samba Release Account
ddc4fc68b9 - deleted reduntant blank line at end of file (JHT)
(This used to be commit 7960522e18)
1996-06-19 12:27:26 +00:00
Andrew Tridgell
dc38599c5a - change date as a demo for john
- modified plp printing parser to work on my system
(This used to be commit 9408f91e1b)
1996-06-19 12:23:54 +00:00
Samba Release Account
912d4dae3a Added source filename to give crude index
Dan 17 June 1996
(This used to be commit 5a72a6c8df)
1996-06-17 14:11:14 +00:00
Andrew Tridgell
02657e5162 demo of cvs - ignore
(This used to be commit 1a30ade78e)
1996-06-12 01:47:09 +00:00
Andrew Tridgell
292b2f1d13 minor patch to allow host announcements to remote subnets
(This used to be commit e264a670e9)
1996-06-10 06:08:50 +00:00
Samba Release Account
53409e5e34 preparing for release of 1.9.16alpha10
(This used to be commit a82ffca73e)
1996-06-10 05:20:35 +00:00
Andrew Tridgell
a521fe8a27 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
(This used to be commit 8e9dce34d5)
1996-06-10 05:16:19 +00:00
Andrew Tridgell
7e3b4a1c0d 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
(This used to be commit b551dc98f7)
1996-06-10 04:38:24 +00:00
Andrew Tridgell
de411c701e moved some more locking routines to locking.c, and moved replacement
routines for broken OSes from util.c to replace.c.
(This used to be commit 3ee9d45426)
1996-06-10 03:39:58 +00:00
Andrew Tridgell
e2eac352b1 updates from Luke to rename "domains" more accurately to "subnets"
(This used to be commit 0a044c25ab)
1996-06-10 03:38:08 +00:00
Samba Release Account
97c01f6114 preparing for release of 1.9.16alpha9
(This used to be commit 32053cfa78)
1996-06-08 05:39:06 +00:00
Andrew Tridgell
3f6fb647e7 more changes from Luke
(This used to be commit df44f10d74)
1996-06-08 05:37:33 +00:00
Andrew Tridgell
bfbca5ac77 changes from Luke
(This used to be commit 5269aa277c)
1996-06-08 04:41:51 +00:00
Andrew Tridgell
b1228b7dcf moved MSBROWSE into nameserv.h
(This used to be commit 90fa15c45f)
1996-06-08 04:36:25 +00:00
Andrew Tridgell
f78081fd1f patches fromk Luke putting in symbolic names for time constants
(This used to be commit 79849b8293)
1996-06-08 04:34:45 +00:00
Andrew Tridgell
4eba893b02 - 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
(This used to be commit e775576f02)
1996-06-08 04:33:37 +00:00
Andrew Tridgell
d160d93d8f - 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.
(This used to be commit 88b191b488)
1996-06-07 03:34:22 +00:00
Samba Release Account
bb0a9664f5 preparing for release of 1.9.16alpha8
(This used to be commit 5a0d016b24)
1996-06-06 11:58:12 +00:00
Andrew Tridgell
b9ae225b28 - 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
(This used to be commit 7ed71b73ae)
1996-06-06 11:43:09 +00:00
Samba Release Account
f6733fe3cf preparing for release of 1.9.16alpha7
(This used to be commit dfb7fa3ae4)
1996-06-06 00:30:18 +00:00
Andrew Tridgell
19d1b1eb5f fix a bug that meant alpha6 couldn't compile.
(This used to be commit 07288091c3)
1996-06-06 00:29:22 +00:00
Andrew Tridgell
a127ecf772 add sunos private makefile to .ignore
(This used to be commit 60a8a9c006)
1996-06-06 00:28:48 +00:00
Samba Release Account
4ccb55ff7d preparing for release of 1.9.16alpha6
(This used to be commit ee330d6045)
1996-06-05 15:46:41 +00:00
Andrew Tridgell
f6655e8a38 - remove some incorrect prototypes from server.c
- formatting cleanup in check_master_browser()
- removed unused code from nameserv.c
(This used to be commit ed3ef2e47d)
1996-06-05 15:44:24 +00:00
Andrew Tridgell
e38afbf382 - 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
(This used to be commit cfbad9b082)
1996-06-05 15:16:09 +00:00
Samba Release Account
526cc39e43 preparing for release of 1.9.16alpha5
(This used to be commit f5c493192e)
1996-06-04 15:20:14 +00:00
Andrew Tridgell
a2641cfe00 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.
(This used to be commit 045014aa57)
1996-06-04 15:14:47 +00:00
Andrew Tridgell
5607ff396c add dummy quotas fn
fix typo in reply to backup lists
(This used to be commit bc4a299437)
1996-06-04 06:53:43 +00:00
Andrew Tridgell
a2c1623827 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
(This used to be commit 0d8dcfa13c)
1996-06-04 06:42:03 +00:00
Andrew Tridgell
81e398963d - 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
(This used to be commit 72543810ce)
1996-06-01 15:25:30 +00:00
Samba Release Account
0966bf7fb7 preparing for release of 1.9.16alpha4
(This used to be commit 8a0a06cba9)
1996-05-31 15:16:22 +00:00
Andrew Tridgell
58734631b4 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
(This used to be commit 635b56f19c)
1996-05-31 15:13:29 +00:00
Andrew Tridgell
26e045daff add my private makefile to the ignore list
(This used to be commit 3e9750cc27)
1996-05-31 06:10:18 +00:00
Andrew Tridgell
d8cf90d37f comment out the code that tries to handle the NT bug where the 2nd
passlen is wrong. The fix is worse than the problem :-)
(This used to be commit 51e22c9310)
1996-05-31 06:09:42 +00:00
Andrew Tridgell
1b87ef2440 - added an entry on WinDD to samba.faq
- 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 48c6b86d4c)
1996-05-30 03:16:17 +00:00
Samba Release Account
8ebd8a3a58 remove cvs.log from cvs, instead use the release script to copy it to
the right places
(This used to be commit d5613d3bf4)
1996-05-29 13:38:01 +00:00
Samba Release Account
fd2a6d67e2 preparing for release of 1.9.16alpha3
(This used to be commit 071c7690a2)
1996-05-29 07:55:29 +00:00
Andrew Tridgell
ec52001809 handle errors from receive_smb better, and print error string
(This used to be commit 7814eca4b2)
1996-05-29 07:54:01 +00:00
Andrew Tridgell
debd5b6ae9 fixed a typo
(This used to be commit 654c242045)
1996-05-29 07:49:50 +00:00
Andrew Tridgell
1956d13494 cleanups to make thinsg compile cleanly
(This used to be commit 39fbeb04ae)
1996-05-29 07:47:47 +00:00
Samba Release Account
4513edd077 preparing for release of 1.9.16alpha2
(This used to be commit 875b2dfad0)
1996-05-29 04:35:50 +00:00
Andrew Tridgell
4ecfd2ea93 cleaned up the way the max log size stuff works and fixed a potential
problem with varargs usage in Debug()
(This used to be commit 8d5a3156ce)
1996-05-29 03:11:42 +00:00
Andrew Tridgell
839ddb871c fixed version number (again!)
(This used to be commit 52b5148221)
1996-05-05 11:35:35 +00:00
Andrew Tridgell
2ef2593c92 made dptr_num signed to handle -1 from OS/2
(This used to be commit d2c5ab135c)
1996-05-05 11:35:09 +00:00
Andrew Tridgell
efdeaf4cf6 - added hostname support to smbstatus
- fix a bug where -s would not be recognised
(This used to be commit 03744dc0cd)
1996-05-05 11:34:03 +00:00
Andrew Tridgell
90d21da1b9 - fix a bug hanlding very log filenames
- move quotas support to separate file
- send keepalives to password server
(This used to be commit f81295c7b4)
1996-05-05 11:26:58 +00:00
Andrew Tridgell
04af282209 move quotas support out of server.c
(This used to be commit 1ed5645a5d)
1996-05-05 11:25:33 +00:00
Andrew Tridgell
11f7553c74 turn on KEEP_PASSWORD_SERVER_OPEN by default
(This used to be commit d2676cdd0b)
1996-05-05 11:25:07 +00:00
Andrew Tridgell
341a401b48 handle being passed a dptr of -1 to mean "close all open dir handles".
Looks like OS/2 does this. It caused a core dump.
(This used to be commit 4b2579daae)
1996-05-05 11:23:23 +00:00
Andrew Tridgell
3ae4d22406 - handle CORE protocol better
- handle case where director exists when untarring
(This used to be commit 7d7bad70d3)
1996-05-05 11:12:54 +00:00
Andrew Tridgell
d4010fc355 ignore some files
(This used to be commit c64d3398df)
1996-05-05 11:09:17 +00:00
Andrew Tridgell
f9014ae98d change version number to 1.9.16p2
(This used to be commit 03f93941b3)
1996-05-05 03:04:51 +00:00
Andrew Tridgell
52fc872aec - close the listening socket in the child process when running as a daemon
- exit with a non-zero exit code if open_sockets() fails
(This used to be commit 83866f3c84)
1996-05-05 03:04:19 +00:00
Andrew Tridgell
8098025e2e fix a dst bug, we had a sign wrong in the calculation :-(
(This used to be commit 2cf4d958f4)
1996-05-04 10:49:35 +00:00
Andrew Tridgell
b2a31c9e81 - use issafe()
- 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 d20627b378)
1996-05-04 10:48:19 +00:00
Andrew Tridgell
03aeb8af5d fix a netgroup bug (innetgr() was being called with the args in the
wrong order!)
(This used to be commit 4419093d33)
1996-05-04 10:45:50 +00:00
Andrew Tridgell
089c5b2165 move the dot_pos calculation down a bit
(This used to be commit 45e2ffdc9c)
1996-05-04 10:44:49 +00:00
Andrew Tridgell
6bbd0d7b69 use the new issafe() macro instead of isalnum() and strchr()
(This used to be commit 79c65e66f8)
1996-05-04 10:43:29 +00:00
Samba Release Account
beee1b280f added sequent fixes
(This used to be commit 21c7f21fd5)
1996-05-04 10:32:30 +00:00
Samba Release Account
ea4abcd719 fixed a typo in the select() emulation code
(This used to be commit 3f37b2db98)
1996-05-04 10:28:35 +00:00
Samba Release Account
d5cd0b3ac0 upped version number
(This used to be commit 3e2239aa59)
1996-05-04 10:23:27 +00:00
Samba Release Account
09960b3d1f added issafe() define for "safe" characters
(This used to be commit 1d7fc598cd)
1996-05-04 10:19:55 +00:00
Samba Release Account
0e8fd33987 Initial version imported to CVS
(This used to be commit 291551d807)
1996-05-04 07:50:46 +00:00
Samba Release Account
0db2ec0e94 This commit was generated by cvs2svn to compensate for changes in r4,
which included commits to RCS files with non-trunk default branches.
(This used to be commit c8a46aca03)
1996-05-04 07:50:46 +00:00
Samba Release Account
97e3422f41 Initial version imported to CVS
(This used to be commit 65968b2943)
1996-05-04 07:50:45 +00:00