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

48855 Commits

Author SHA1 Message Date
Samba Release Account
41bbc5e21f smb.h: Added error code used for OS2 WPS.
trans2.c: Added OS2 WPS fix - but ifdefed out for now. Will turn on
after 1.9.17 release.
Jeremy (jallison@whistle.com)
(This used to be commit 9d5d347686)
1997-08-26 01:28:27 +00:00
Samba Release Account
4c319ad046 charset.c : Add mapping for code page 932 (KANJI).
client.c : Fix crash bug. Add code to use BUFFER_SIZE for NetServerEnum calls.
namepacket.c: Fixed cast.
nmbsync.c : Add code to use BUFFER_SIZE for NetServerEnum calls.
smb.h : Set default client code page to 932 for KANJI.
system.c : Remove vendor specific code that crept in :-).
util.c : Added #define to allow Samba to behave as Win95 when doing
         KANJI case insensitivity tests.

Jeremy (jallison@whistle.com)
(This used to be commit 7f7d2faa07)
1997-08-25 22:18:31 +00:00
Samba Release Account
bce14d3642 Kanji fixes for upper/lower case conversion with sjis characters.
Code from Takashi Fujita <fujita@ainix.isac.co.jp>.
Jeremy (jallison@whistle.com)
(This used to be commit 07f7e378c4)
1997-08-21 20:03:45 +00:00
Samba Release Account
46dbd8c060 Changes to allow Samba to return the same error code as Windows NT.
Takes care of the cases where a Windows program is parsing a pathname
component by component and expects 2 different errors.
ERRbadpath - if a component in the path doesn't exist.
ERRbaddirectory - if a component in the path exists but is not a directory.
Extra error code added to smb.h to support this.
Code based on suggestions from "Christian Groessler" <chris@fast-ag.de>.

Jeremy (jallison@whistle.com)
(This used to be commit 28b3c6db8a)
1997-08-20 20:32:23 +00:00
Samba Release Account
c76dc7c296 Fix suggested by "Christian Groessler" <chris@fast-ag.de>
dir.c: Cause dptr_create to return -2 when failing on unix error.
reply.c: Use UNIXERROR in more cases.
server.c: Add ENOTDIR mapping to error table.
trans2.c: Correctly determine UNIX error on dptr_create.
Jeremy (jallison@whistle.com)
(This used to be commit de38a0b34f)
1997-08-20 01:22:05 +00:00
Samba Release Account
e9269c67a5 Makefile: Changed for HPUX10 tidyup.
includes.h:	Changed for HPUX10 tidyup.
ipc.c:		Fixed bug where getting local server list from NT browsers would
            fail.
nmbsync.c:	Fixed bug where getting local server list from NT browsers would
            fail.
proto.h:	Changed for crash bug on SCO with USE_MMAP.
quotas.c:	Added OSF quotas (patch from Bret Giddings <bret@essex.ac.uk>).
            Rolled back solaris uid change - I think it was wrong.
reply.c:	Changed for crash bug on SCO with USE_MMAP.
server.c:	Removed Lukes changes. Changed for crash bug on SCO with USE_MMAP.
smb.h:		Changed for crash bug on SCO with USE_MMAP.
smbpasswd.c:Fixed crash bug with Lukes changes.
uid.c:		Removed Lukes changes.
util.c:		Fixed I18N bug with extended char filenames and widelinks = no.
Jeremy (jallison@whistle.com)
(This used to be commit bf1c79f7fd)
1997-08-19 19:22:26 +00:00
John Terpstra
8df30387b5 JHT ===> Just making sure any new tests do not announce as the last alpha!
(This used to be commit f75e7ab927)
1997-08-18 04:32:17 +00:00
Samba Release Account
ea4c7557dd connecting to IPC$ goes under the guest account. the IPC$ share should
be treated no differently than any other share (for any security setting:
user, server or share).

this will clear up a bug where, when clients connect to the IPC$ share, this
used to be done under the guest account.  the standard_sub_basic() macros
will substitute the _guest_ account for %U, causing the samba server to
look different from when the client then connects to any other share.

lkcl
(This used to be commit 3852656960)
1997-08-17 21:03:12 +00:00
Samba Release Account
b65fdef1ba includes.h: Fixed S_IFLNK for old DEC ultrix.
ipc.c:	Finally :-) fixed responses to NetServerEnum2 when SV_TYPE_ALL
        given.
Jeremy (jallison@whistle.com)
(This used to be commit 1dc37c8350)
1997-08-13 20:16:32 +00:00
Samba Release Account
9b41ada7c8 charset.c: Fixed bug with 'valid chars' param.
loadparm.c:	Fixed bug with 'valid chars' param.
nameelect.c:Unregister the 1b name from the WINS server when unbecoming master.
nameservresp.c: Fix nasty browse bug where we were sending the query
                to the wrong ip address.
Jeremy (jallison@whistle.com)
(This used to be commit 927d1875f0)
1997-08-12 23:02:45 +00:00
Samba Release Account
9170cfd4b6 spelling.
lkcl
(This used to be commit 7e326450cf)
1997-08-11 18:06:44 +00:00
Samba Release Account
11361141e5 updating comments.
lkcl
(This used to be commit 50a9a235fd)
1997-08-10 13:16:12 +00:00
Samba Release Account
1330324e7b bug in num. arguments detection that stopped the -add option working
lkcl
(This used to be commit e025ffa0aa)
1997-08-09 13:29:02 +00:00
Samba Release Account
8df69f8601 failure to register DOMAIN<1b> netbios name caused nmbd to exit (a call to
exit()).  this is a bad idea.

lkcl
(This used to be commit e6334c14d5)
1997-08-07 13:42:26 +00:00
Samba Release Account
049640c8b6 updated smbpasswd to take the password on the command-line.
two sets of operation:

as root: specify username password.
as user: specify old password  new password

this will allow shell scripts (like adduser) to include smbpasswd.

lkcl
(This used to be commit 7e5f1681bd)
1997-08-06 14:35:23 +00:00
Samba Release Account
b5114b41f5 Makefile: Added IRIX 6 target.
loadparm.c: Fixed stupid static warnings with set_default_server_announce_type.
password.c:	Fixed char -> uchar cast warnings.
nameservreply.c: Fixed group fade out code.
Jeremy (jallison@whistle.com)
(This used to be commit a2dd5c5a55)
1997-08-05 01:31:55 +00:00
Samba Release Account
363b9a2739 loadparm.c: Added new netbios aliases parameter (code from Cisco)
nameannounce.c: Code to announce aliases as well as our own names.
namedbsubnet.c: Code to add the aliases to the server list.
nameserv.c:		Code to defend our aliases on the namelist.
namework.c:		Code to check it's one of our aliases.
nmbd.c:			Code to initialise the aliases.
proto.h:		Fixup protos.
util.c:			Code to check it's one of our aliases.
All above code based on code for 1.9.16p11 donated by Cisco
from Ben Woodard <bwoodard@luthien.cisco.com>
Jeremy (jallison@whistle.com)
(This used to be commit a2ce1c0cb1)
1997-07-31 18:47:26 +00:00
Samba Release Account
75bbf35a86 client.c: Minor change to cast parameters for DEC unix.
clientutil.c:	Minor change to cast parameters for DEC unix.
ipc.c:		Fixes to parameterise the stuff John wants.
loadparm.c:	Fixes to parameterise the stuff John wants.
nameannounce.c: Fixes to parameterise the stuff John wants.
namedbwork.c: Fixes to parameterise the stuff John wants.
nameserv.h:	Fixes to parameterise the stuff John wants.
proto.h: Fixes to parameterise the stuff John wants.
smb.h: Fixes to parameterise the stuff John wants.
util.c: tidy.
Jeremy (jallison@whistle.com)
(This used to be commit 9fbca2594b)
1997-07-30 19:17:51 +00:00
Samba Release Account
01d19fd31d Minor text mods, mostly checking that CVS still works
Dan
(This used to be commit 632bf0dab0)
1997-07-30 10:13:14 +00:00
Samba Release Account
bf65e9a56b Missed removing some redundent code.
Jeremy (jallison@whistle.com)
(This used to be commit 4135fdb323)
1997-07-28 19:21:56 +00:00
Samba Release Account
7314126d9e client.c: Added amanda fixes.
clitar.c:	Added amanda fixes.
nameannounce.c:	Removed redundent code.
nameelect.c:	Removed redundent code.
nameserv.h:		Removed redundent code.
nameservresp.c:	Removed redundent code.
namework.c:		Removed redundent code.
password.c:		Prevented crash if getpwnam fails.
Jeremy (jallison@whistle.com)
(This used to be commit 760fe30353)
1997-07-28 18:59:57 +00:00
Samba Release Account
da0ca0a7cb Re-added shm stuff - keeps getting lost.
Jeremy (jallison@whistle.com)
(This used to be commit 4fad0a63aa)
1997-07-24 23:29:52 +00:00
Samba Release Account
834518eddd loadparm.c: Changed default create mask to 755 to support MAP_ARCHIVE.
server.c:	Added check for MAP_ARCHIVE before we set archive bit.
Jeremy (jallison@whistle.com)
(This used to be commit d21a166277)
1997-07-24 22:42:16 +00:00
Samba Release Account
7950c5e870 nameserv.c: split add_domain_names() into three functions:
add_domain_logon_names() - adds <1c> names on WINS and broadcast.
            add_domain_master_wins() - adds <1b> name only with WINS server
            add_domain_master_bcast() - adds <1b> names only by bcast.

          : made add_domain_names() add <1c> names, unconditionally, and
            add <1b> name with the WINS server if using a WINS server, or
            add <1b> name by broadcast if _not_ using a WINS server, but
            _not_ both.

          : removed the direct parameter from remove_name_entry() and
            add_my_name_entry().

nameelect.c: made become_domain_master(), on successful registration of
             the <1b> name with the WINS server, go ahead and register
             the <1b> names by broadcast.  if the <1b> name is _not_
             successfully registered with the WINS server, the broadcast
             registration of <1b> names will _not_ proceed.

namedbsubnet.c: sorted out calls to add_my_name_entry() and remove_my_name()
                which no longer has a direct parameter.


this is all added because...

in order to fix a compatibility bug with 1.9.16p2->p11, jeremy had added a
feature that got the <1b> broadcast registered names _directly_ into the nmbd
netbios lists, undefended.  the aim was to get round the aggressive netbios
registration of <1b> names of 1.9.16p2->p11.


however, because 1.9.16p2->p11 don't properly _provide_ netlogon services,
it is better that an error message appears in 1.9.17 logs, and that
administrators are made aware of the problems with 1.9.16p2->p11, and replace
1.9.16p2->p11 servers, rather than attempt to run 1.9.16 alonside 1.9.17.

(these warning messages will need to be added...)


in _addition_, they shouldn't _be_ getting two samba servers to provide
domain logon / domain master services for the same workgroup in the same
WINS scope!


lkcl
(This used to be commit 5a668ff7ba)
1997-07-24 20:39:30 +00:00
Samba Release Account
1fa6244b29 removed definition of strslashcmp - now a static in clitar.c.
Jeremy (jallison@whistle.com)
(This used to be commit 83448e7a11)
1997-07-24 20:16:07 +00:00
Samba Release Account
816897d4a2 patch by glenn burkhardt to allow recursive excluding of directories.
glenn@aoi.ultranet.com

lkcl
(This used to be commit 4aac8449ae)
1997-07-24 20:04:16 +00:00
Samba Release Account
15ae50ca52 Makefile: Added UNIXWARE 2.x with shadow passwords from fja@extratech.com
client.c:	Made prompt appear at debug level 0. Fixed strcasecmp redefinition.
            Caused client to use set_blocking rather than making fcntl calls itself.
dir.c:		Removed redundent snum parameters.
includes.h:	Added SCO fixes.
loadparm.c:	Made default 'files to hide' a null string.
nmbd.c:		Removed O_NONBLOCK from pid file open for platforms that dont have it.
proto.h:	Changed snum to cnum where needed. Changed is_xx_path to is_in_path
            (now called via MACRO).
quotas.c:	Swapped setuid/seteuid calls when restoring uid.
reply.c:	Removed redundent snum parameters.
server.c:	Changed snum to cnum where needed. Setup new veto_list, hide_list
            namelists. Added standard_sub changes from
            Stefaan A Eeckels <Stefaan.Eeckels@ecc.lu> and
            Paul Rippin <pr3245@nopc.eurostat.cec.be>
shmem.c:	Changed cast for sizeof to be int before negating.
smb.h:		Added new veto_list, hide_list entries to connections.
            Added IS_PRINT, IS_HIDDEN_PATH, IS_VETO_PATH macros.
trans2.c:	Removed redundent snum parameters.
util.c:		Added standard_sub_basic changes from
            Stefaan A Eeckels <Stefaan.Eeckels@ecc.lu> and
            Paul Rippin <pr3245@nopc.eurostat.cec.be>
            Fixed up veto/hidden path processing so the paths are
            pres-parsed and checked for wildcards (for speed).
Jeremy (jallison@whistle.com)
(This used to be commit 9afa36f787)
1997-07-24 17:25:11 +00:00
John Terpstra
7020afbd03 JHT ===> Getting ready for release of 1.9.17alpha5
Please note that version.h has been updated!!!!!!!!!!
(This used to be commit 271d12b5dd)
1997-07-23 10:54:00 +00:00
Samba Release Account
a3de6a813e charset.c: Fixed signed/unsigned issues.
password.c:	Fixed problem with MS-Exchange services.
Jeremy (jallison@whistle.com)
(This used to be commit e723dd3dee)
1997-07-22 19:04:40 +00:00
Samba Release Account
0cdc68332d Removed lp_killunused() call from server main loop. This
WAS A MAJOR BUG THAT CAN CAUSE IPC$ to be removed !!!!!
Not sure how this one got introduced (but I have my
suspicions :-). lp_killunused() MUST ONLY BE CALLED from
reload_services().
Jeremy (jallison@whistle.com)
(This used to be commit 937f0fbf87)
1997-07-22 18:35:44 +00:00
Samba Release Account
b95057c127 Fixed bug with -add code that put wrong password in nt md4 field.
Jeremy (jallison@whistle.com)
(This used to be commit aabb18953b)
1997-07-21 16:58:10 +00:00
Samba Release Account
612111c7a1 charset.c: Split charset_initialise() into 2 - a charset_initialise() and
a codepage_initialise(). Fixes problem with initialising dos map
            twice.
charset.h:  Changes to support charset changes.
client.c:   Changes to support charset changes.
loadparm.c:	follow symlinks parameter from David Clerc <David.Clerc@cui.unige.ch>
nmbd.c:		Changes to support charset changes.
nmblookup.c:Changes to support charset changes.
proto.h:	Changes to support charset changes.
reply.c:	Don't call security=server with no user/no password guest. Fix from
            Stefaan A Eeckels <Stefaan.Eeckels@ecc.lu>
server.c:   follow symlinks code from David Clerc <David.Clerc@cui.unige.ch>
smbpasswd.c:Changes to support charset changes.
status.c:	Changes to support charset changes.
testparm.c: Changes to support charset changes.
testprns.c: Changes to support charset changes.
uid.c:		Fixed log message with no \n.
Jeremy (jallison@whistle.com)
(This used to be commit 2a28a6e5e4)
1997-07-18 20:21:32 +00:00
Samba Release Account
8b904f4ecc Makefile: Added krb5 option from Nathan Neulinger <nneul@umr.edu>
includes.h:	Added krb5 option from Nathan Neulinger  <nneul@umr.edu>, added SGI5 fix.
password.c: Added krb5 option from Nathan Neulinger  <nneul@umr.edu>
quotas.c: Added inode quote fix.
reply.c: removed redundent code.
server.c: Changed error debug to 0, removed redundent check.
util.c: Added close_low_fd() to become_daemon - fix for rsh from Johnathan Knight.
Jeremy (jallison@whistle.com)
(This used to be commit 256afb7648)
1997-07-17 20:11:58 +00:00
Samba Release Account
6835bd679c Fix silly crash bug in FAST_SHARE_MODES (same bug as was in
SLOW_SHARE_MODES - duh !).
Jeremy (jallison@whistle.com)
(This used to be commit d38ac4f3a2)
1997-07-15 17:47:43 +00:00
Samba Release Account
0776dea81f local.h: Removed ununsed SHARE_MODES_XXX defines. Upped SMBD_RELOAD_CHECK
from 10 to 60.
server.c:	Removed unused code (was If 0'ed out).
trans2.c:	Backed out Luke's ctime->mtime change. I don't think it
            is correct. Left the other fixes, though.
util.c:		Changed veto/hide files separator back to '/'.
Jeremy (jallison@whistle.com)
(This used to be commit b47121624c)
1997-07-14 19:45:34 +00:00
Samba Release Account
f7f1be3275 CIFS definitions for SMB_INFO_xxx etc.
lkcl
(This used to be commit 9fda8a6fef)
1997-07-14 18:19:26 +00:00
Samba Release Account
136732a6f4 counter loop % usage only worked if counters were an exact multiple of
SMBD_LOOP time.  used >= instead.

lkcl
(This used to be commit c881dff3bf)
1997-07-13 14:05:01 +00:00
Samba Release Account
adf19b8ec3 added pretty printing of data section to show_msg(), for debug log level 10.
data section output is now in same format as tcpdump (hex and characters).

lkcl
(This used to be commit dcb1a74cf1)
1997-07-13 12:58:20 +00:00
Samba Release Account
9a8c54f51b trans2 query file/path info - unix change times being reported as dos create
times.  now reports unix modified times as dos create times: the alternative
is to report zero (unknown create time).

w95 reports the info level 0x101 (smb query file basic) as data size 40 bytes
not 36.  put 40 bytes data instead.

put in comments into trans2 set file/path info, showing which is the create
time, which is the mod time.

lkcl
(This used to be commit ff455e4059)
1997-07-12 14:41:26 +00:00
John Terpstra
7c723f75fd JHT ==> Just tidying up for Release.
(This used to be commit 4e9b7c92f7)
1997-07-12 02:59:43 +00:00
Samba Release Account
792771ecc9 interface.c: Fix for AIX4.x finding interfaces.
server.c:		Subtle fix for filenames containing ':'.
Jeremy (jallison@whistle.com)
(This used to be commit ee9f57bab2)
1997-07-11 00:54:45 +00:00
Samba Release Account
0378cd5a8c Added -a option (for Andrew:-). Fixed bug where users with
"NO PASSWORD" couldn't change their passwords.
Jeremy (jallison@whistle.com)
(This used to be commit 87d17af008)
1997-07-10 20:15:48 +00:00
John Terpstra
cec799512d JHT ==> Added copyright notations for my works. This is regretably needed!
(This used to be commit c80111cdf5)
1997-07-09 11:04:45 +00:00
Samba Release Account
25eae02948 Makefile: Added AIX targets from Ole Holm Nielsen <Ole.H.Nielsen@uni-c.dk>
chgpasswd.c:	Added Samba/GPL notice (for obvious reasons).
clitar.c:		Updated Copyright date to include 1997 (for obvious reasons).
getsmbpass.c:	Updated Copyright date to include 1997 (for obvious reasons).
includes.h:		Added stropts for solaris.
loadparm.c:		Changed comment for hide files option.
nameconf.c:		Updated Copyright date to include 1997 (for obvious reasons).
nmbd.c:			Updated Copyright date to include 1997 (for obvious reasons).
pcap.c:			Updated Copyright date to include 1997 (for obvious reasons).
proto.h:		Re-added accidentaly deleted smb_shm_ calls.
quotas.c:		Added AIX quota patch from Ole Holm Nielsen <ohnielse@fysik.dtu.dk>
server.c:		Optimization on calling is_hidden_path. Updated Copyrights.
smb.h:			Changed DEFAULT_FILES_TO_HIDE from  "*/.*" to ".*".
smbpass.c:		Updated Copyright date to include 1997 (for obvious reasons).
ufc.c:			Updated Copyright date to include 1997 (for obvious reasons).
util.c:			Added last component code to is_in_path().
Jeremy (jallison@whistle.com)
(This used to be commit 9385ae1005)
1997-07-08 16:54:44 +00:00
Samba Release Account
bc4d8cb306 missed one OpenDir() and two is_vetoed_name() calls, both of which take
a service number as a parameter, in the rmdir code, when doing a recompile.

lkcl
(This used to be commit e095e339e6)
1997-07-06 14:07:00 +00:00
Samba Release Account
1fe89d0b71 added, tested and debugged new "hide files" option.
lkcl
(This used to be commit 60af320a43)
1997-07-06 13:48:10 +00:00
Samba Release Account
b4863b07f4 replaced the "wins proxy" to treat NetBIOS names as DNS names with new
"dns proxy" option.  the "wins proxy" option should be used for broadcast
only hosts, and isn't properly implemented anyway.

the new "dns proxy" option can be disabled if the (blocking) dns resolution
takes up a significant amount of time.  this _will_ occur if gethostbyname
does external DNS lookups, instead of just (immediately) returning entries
in /etc/hosts.

lkcl
(This used to be commit 350dfc57dd)
1997-07-06 12:06:23 +00:00
Samba Release Account
c9914c98f0 preparing for release of 1.9.17alpha4
(This used to be commit ef5ccde476)
1997-07-03 20:51:44 +00:00
Samba Release Account
3e37f8f70f Makefile: Added DGUX changes for intel.
namedbwork.c: Minor tidyup for election flah.
util.c:		Fix for broken readdir detectino code.
version.h:	Back to 1.9.17alpha3 - will be updated by release script.
Jeremy jallison@whistle.com
(This used to be commit 26635733a7)
1997-07-03 20:45:06 +00:00
Samba Release Account
4a2cc7bb2b preparing for release of 1.9.17alpha4
(This used to be commit 16f6bf700f)
1997-07-03 19:55:04 +00:00
Samba Release Account
f6384eca67 Fix for deleting directories that contain only veto files.
Needed for interoperability with netatalk volumes.
Jeremy (jallison@whistle.com)
(This used to be commit e72a8513bc)
1997-07-03 19:44:06 +00:00
Samba Release Account
fc3901122d Fixes for UnixWare 2.x with shadow passwords from
Warren Young <tkennedy@cyberport.com>.
(This used to be commit 885b42b447)
1997-07-03 17:19:46 +00:00
Samba Release Account
6b7ca0ddfd Fixed wierd bug with lowercase accented character directories.
Jeremy (jallison@whistle.com)
(This used to be commit 1f0ecfe4fc)
1997-07-02 22:37:44 +00:00
Samba Release Account
594f8a4361 Fixed compile warnings for FreeBsd & Linux.
Jeremy (jallison@whistle.com).
(This used to be commit 93352e1aae)
1997-07-02 01:19:41 +00:00
Samba Release Account
1599e41ec4 Rolled back Lukes changes. Not quite ready for prime time.
Jeremy (jallison@whistle.com)
(This used to be commit ed04ec7ab8)
1997-07-01 20:50:57 +00:00
Samba Release Account
ce9baa3bac made "hide files" and "veto files" into per-service parameter sections,
instead of just [global].  this makes it easier to decide whether to
remove the "hide dot files" per-service parameter, and supercede it with
a default "hide files" value of ".*".

lkcl
(This used to be commit f3ee4620ea)
1997-07-01 19:42:42 +00:00
Samba Release Account
738d29667f added "hide files" option.
lkcl
(This used to be commit 6e594ce0e5)
1997-07-01 19:02:43 +00:00
Samba Release Account
29ac1823df namedbsubnet.c: Added code for returning restricted lists of servers.
(This used to be commit d895094387)
1997-07-01 01:23:34 +00:00
Samba Release Account
fb1429c197 client.c: New print queue query code from Jeff C. Foster " <jfoste@wgc.woodward.com>
ipc.c:			Added code for returning restricted lists of servers.
loadparm.c:		Changed default for force create mode to 000.
				Changed default maxmux to 50 to comply with NT.
locking.c:		Fixed silly crash bug with slow share mode code.
nameannounce.c:	Added code for returning restricted lists of servers.
namedbserver.c:	Added code for returning restricted lists of servers.
nameelect.c:	Added code for returning restricted lists of servers.
namework.c:		Added code for returning restricted lists of servers.
nmbsync.c:		Added code for returning restricted lists of servers.
server.c:		Added quota fix Albrecht Gebhardt <albrecht.gebhardt@uni-klu.ac.at>
smb.h:			Added define for COPYBUF_SIZE.
system.c:		Rename across filesystems Patch from Warren Birnbaum
				<warrenb@hpcvscdp.cv.hp.com>
util.c:			Minor fix for warning.
(This used to be commit 1c6e433caa)
1997-07-01 01:19:13 +00:00
Samba Release Account
9e37076f2b shmem.c: Changed debug to higher level
uid.c:		Stop smbrun from deleting device files.
util.c:		Added EAGAIN to known error list.
Jeremy (jallison@whistle.com)
(This used to be commit c07db8d8e7)
1997-06-27 00:26:59 +00:00
Samba Release Account
434d26acfe loadparm.c: Added "force create mode" and "force directory mode" params.
proto.h:	Added lp_force_create_mode()and lp_force_dir_mode().
server.c:	Fixed application of mode bits to be regular across files
		and directories.
smb.h:		Removed unused CREATE_MODE macro.
Jeremy (jallison@whistle.com)
(This used to be commit 2c92821250)
1997-06-19 00:18:23 +00:00
Samba Release Account
16c87e9198 Fixed *really* stupid bug in register_vuid - only a problem
on multi-user NT systems.
Jeremy (jallison@whistle.com)
(This used to be commit 6ca5c8ca32)
1997-06-18 01:04:57 +00:00
Samba Release Account
2a33e58d18 charset.c: Dropped debug message to level 6.
loadparm.c:	Added "time server" parameter.
nameserv.h:	Added "time server" parameter.
proto.h:	Added lp_time_server().
server.c:	Removed incorrect | 0700 - this was a whistle specific change.
Jeremy (jallison@whistle.com).
(This used to be commit 54dcca1240)
1997-06-16 20:49:15 +00:00
Samba Release Account
c6e63aa896 Makefile: Added quoata changes for Linux from Thorvald Natvig
Makefile.RPM:	Added quoata changes for Linux from Thorvald Natvig
charset.c:	Large changes to add multiple client code pages.
charset.h:	Changed charset_initialise() proto.
client.c:	Fixed message sending bug. Changed charset_initialise().
ipc.c:		Fixed #ifdef compile problems.
loadparm.c:	Added "client code page" option.
nmbd.c:		Changed charset_initialise(). Fixed lmhosts read.
nmblookup.c:	Changed charset_initialise().
proto.h:	Added lp_client_code_page(void).
quotas.c:	Added quoata changes for Linux from Thorvald Natvig
reply.c:	Changed debug level. Made SMBecho ignore tid.
server.c:	Changed charset_initialise().
smb.h:		Added DEFAULT_CLIENT_CODE_PAGE as 850.
smbpasswd.c:	Changed charset_initialise().
status.c:	Changed charset_initialise().
testparm.c:	Changed charset_initialise().
testprns.c:	Changed charset_initialise().
Jeremy Allison (jallison@whistle.com)
(This used to be commit 957025bace)
1997-06-11 01:03:06 +00:00
Samba Release Account
56adabeed7 Patch from Albrecht Gebhardt Albrecht Gebhardt - fixes domain
logons.
(This used to be commit 76647c0609)
1997-06-09 18:57:45 +00:00
Samba Release Account
548196362b loadparm.c: Made explicit max packet now ignored.
namedbwork.c:	Don't announce potential browser if local master = False.
nameelect.c:	Raise debug level of comment to 2.
proto.h:	Added reset_globals_after_fork().
server.c:	Call reset_globals_after_fork() after forking child.
util.c:		Added reset_globals_after_fork() - should stop problems
                with % substitutions in children.
(This used to be commit 77be0f710c)
1997-06-06 16:14:17 +00:00
Samba Release Account
3f067df495 includes.h: Added USE_SETSID for SGI.
nameelect.c:	Added debug 0 comments so you know when you have become a master/domain master.
nameservreply.c:Stopped SELF names from being remotely released. This still needs work.
nmbsync.c:	Added debug 0 comments so you know when a sync is being done.
Jeremy jallison@whistle.com
(This used to be commit b40d3bede6)
1997-06-03 17:14:48 +00:00
Samba Release Account
9276c29e64 namedbname.c: Fixed problem with remove_name code that could cause core dump.
Jeremy jallison@whistle.com
(This used to be commit 65f82fb153)
1997-06-03 00:03:27 +00:00
Samba Release Account
094f7ce427 nameannounce.c: Made sure recurse flag set correctly.
namedbname.c:		Made sure wins.dat updated when list changes.
			Changed to returning 255.255.255.255 when 1e name
			queried.
namepacket.c:		Made sure recurse flags set correctly.
nameserv.c:		Made sure recurse flags set correctly.
nameservreply.c:	Made send_name_response() static, Made sure recurse flags set correctly.
			Changed to returning 255.255.255.255 when 1e name
                        queried.
proto.h:		Removed send_name_response().
Jeremy jallison@whistle.com
(This used to be commit 4e9fd24f65)
1997-06-02 19:51:56 +00:00
Samba Release Account
d98bea900e namepacket.c: Block SIGTERM correctly - we can only take them at defined points.
nameserv.c:		Fixup name release code - used when we are going down.
nameservreply.c:	Relaxed check for deleting name - original code never deleted.
nmbd.c:			Block SIGTERM signals most of the time - see comment on namepacket above.
Jeremy (jallison@whistle.com)
(This used to be commit 9f4e012247)
1997-05-31 01:11:40 +00:00
Samba Release Account
5c4776f496 namedbname.c: Added 'S' or 'R' flags to wins.dat to aid debugging. Forced all type 1e
names to be added as 255.255.255.255.
namedbsubnet.c:	Fixed bug I intruduced - register 1e name on WINS subnet also.
                (thanks to Luke for pointing this one out).
Jeremy (jallison@whistle.com)
(This used to be commit fbeaf146c0)
1997-05-30 23:15:17 +00:00
Samba Release Account
3ab97ebe6d charcnv.c: Fixed silly bugs detected on IRIX.
client.c:	Fixed silly bugs detected on IRIX.
namedbname.c:	Stopped 1d names from being registered in WINS db.
namedbsubnet.c:	Only register 1e names on broadcast subnet.
nameelect.c:	Changed add_my_name entries. Forced host announces if we
                have less than 10 servers listed. Fixed registering 1b
                domain name issues.
namepacket.c:	Added error message when dgram discarded.
nameserv.c:	Added notion of 'direct' names that are not registered on
                the network. Needed to get around bugs in earlier nmbd
                handling of DOMAIN(1b) names.
nameservreply.c:Tidied up debug message.
nameservresp.c:	Added response_name_query_domain() code. Deals with
                re-registering DOMAIN(1b) name.
nmbd.c:		Fixed silly bugs detected on IRIX.
nmblib.c:	Added paranoia debugs.
proto.h:	Updated remove_name_entry(), add_my_name_entry().
server.c:	Fixed silly bugs detected on IRIX.
trans2.c:	Fixed silly bugs detected on IRIX.
uid.c:		Fixed silly bugs detected on IRIX.
version.h:	Updated to alpha3.
Jeremy (jallison@whistle.com).
(This used to be commit f08222bd8b)
1997-05-30 20:40:48 +00:00
Samba Release Account
ccf4314fe7 loadparm.c: Ensure printer services cannot be read only and don't use share mode locking.
locking.c:	Changed aborts to returns so not so drastic on PANIC errors.
proto.h:	Removed definition of open_file as this is now never externally called.
reply.c:	Changed reply_mknew, reply_ctemp, reply_printopen to go through open_file_shared.
server.c:	Modified open_file_shared to be more robust and be useful for printer & temp files.
		Removed truncate option from open_file (now all truncates are done in open_file_shared).
util.c:		Added EAGAIN to errors checked in open_socket_out().
version.h:	Updated to 1.9.17alpha2.
jallison@whistle.com
(This used to be commit d8471909b7)
1997-05-27 20:28:45 +00:00
Samba Release Account
5eb73eeea3 coding standards issue: should never compare a boolean expression == False
or == True.  should always do if (boolean_expression).

sorry.

lkcl
(This used to be commit 73ae238801)
1997-05-22 19:08:56 +00:00
Samba Release Account
109137d861 Removed use of 'domain controller' parameter for browsing system
as Luke recommends. jallison@whistle.com
(This used to be commit bad6ec1272)
1997-05-22 18:17:55 +00:00
Samba Release Account
2225f7c780 Makefile: Turned on FAST_SHARE_MODES by default for a bunch of machines.
nameelect.c: Fixed bug where we were always using our workgroup name instead
             of the current one.
jallison@whistle.com
(This used to be commit 42407a11ff)
1997-05-21 23:52:35 +00:00
Samba Release Account
bd0d54cfd7 Added code to make nmbd always lose elections if 'local master'
parameter is set to False.
jallison@whistle.com
(This used to be commit 1bcf6791c7)
1997-05-21 18:18:38 +00:00
Samba Release Account
71e5f97555 Added fix from Paul Nelson @ Thursby - smb_mid field could be
corrupted if security = server.
jallison@whistle.com
(This used to be commit 52da1897ce)
1997-05-21 01:09:51 +00:00
Samba Release Account
aa864415c5 dir.c: Fixed double slash issue.
includes.h: Changed to ifdef FAST_SHARE_MODES.
ipc.c:  Changed lp_workgroup() to myworkgroup.
loadparm.c:  Added new shared mem parameters. Added Luke's fix.
locking.c: Rewrite to do share modes better (both fast and slow modes).
nameannounce.c:  Changed lp_workgroup() to myworkgroup. Added Luke's fix.
nameconf.c:  Changed lp_workgroup() to myworkgroup.
namedbname.c:  Improved debug.
namedbserver.c:  Changed lp_workgroup() to myworkgroup.
namedbsubnet.c:  Added Luke's fix - rewritten somewhat.
namedbwork.c:  Changed lp_workgroup() to myworkgroup.
nameelect.c:  Added Luke's fix - rewritten somewhat.
nameresp.c:  Stoped shadowing global.
nameserv.c:  Added Luke's fix - Improved debug.
nameservreply.c:  Improved debug.
namework.c:  Changed lp_workgroup() to myworkgroup.
nmbd.c:  Added Luke's fix - Changed lp_workgroup() to myworkgroup.
pipes.c:   Changed lp_workgroup() to myworkgroup.
proto.h:   Added Luke's fix, added smb_shm_ proto's.
reply.c:  Changed lp_workgroup() to myworkgroup.
server.c:  Rewrite to do share modes better (both fast and slow modes).
shmem.c:  Rewrite to do share modes better (both fast and slow modes).
smb.h:  Rewrite to do share modes better (both fast and slow modes).
status.c:  Rewrite to do share modes better (both fast and slow modes).
trans2.c:  Fixed double slash issue.
util.c:  Tidied up, created myworkgroup.
Jeremy Allison (jallison@whistle.com).
(This used to be commit 2a1711eaaf)
1997-05-20 00:32:51 +00:00
Samba Release Account
5495a3446d namedbname.c: Fixed *nasty* bug that caused nmbd to spin and eat memory
and CPU whilst trying to become a master browser. Don't ask,
              you don't want to know :-).
nameresp.c: Tidied formating of code.
nameservresp.c: Added debug value of IP address that is rejecting our
                registration.
jallison@whistle.com
(This used to be commit c0bae276a9)
1997-05-15 23:47:34 +00:00
Samba Release Account
e896730fe7 use NULL instead of 0
lkcl
(This used to be commit 5582e448c9)
1997-05-12 14:24:59 +00:00
John Terpstra
ad30487281 Updated Samba minor version so it announces itself as NT Server version
4.20. This indicates that the browsing code has been updated (changed).
(This used to be commit 7d106024f1)
1997-05-11 12:21:44 +00:00
Samba Release Account
441855fe0e status.c: Added brief option. Patch from ccctim@mailbox.ucdavis.edu
client.c: Added translation of '/' characters to '\' characters. Suggested by friedl@mtndew.com (Stephen J. Friedl)
charcn.c: Fix for iso8859-2 (Eastern European) conversions based on a patch from Miroslaw M. Maczka <elvisbze@polbox.com>
(This used to be commit 27708a73ce)
1997-05-08 21:17:59 +00:00
Samba Release Account
0f1f0ceb95 'The mother of all checkins' :-). Jeremy Allison (jallison@whistle.com)
Wed May  7 1997: Update for 1.9.17alpha1 release - 'browsefix release'
designed to make browsing across subnets work.

byteorder.h:	Updated copyright to 1997.
charcnv.c:      Updated copyright to 1997.
charset.c 	Updated copyright to 1997.
charset.h	Updated copyright to 1997.
client.c	Updated copyright to 1997.
clientutil.c	Updated copyright to 1997.
dir.c		Updated copyright to 1997.
fault.c		Updated copyright to 1997.
includes.h	Updated copyright to 1997.
interface.c	Updated copyright to 1997.
ipc.c		Updated copyright to 1997.
kanji.c		Updated copyright to 1997.
kanji.h		Updated copyright to 1997.
loadparm.c	Updated copyright to 1997.
locking.c	Updated copyright to 1997.
mangle.c	Updated copyright to 1997.
message.c	Updated copyright to 1997.
nameannounce.c

	Made use of WINS subnet explicit.
Added reset_announce_timer() so announcement
can be made immediately when we become a master.
Expanded code to do sync with dmb.

namebrowse.c

	Removed redundent checks for AM_MASTER in
sync code. Made use of WINS subnet explicit.

namedbname.c	Made use of WINS subnet explicit.
namedbresp.c	Made use of WINS subnet explicit.
namedbserver.c	Made use of WINS subnet explicit.

namedbsubnet.c

	Explicitly add workgroup to WINS subnet
when we become a dmb. Made use of WINS subnet explicit.

namedbwork.c

	Made use of WINS subnet explicit. Removed
redundent check_work_servertype() function.

nameelect.c

	Explicitly add workgroup to WINS subnet
when we become a master browser. Made use of WINS subnet explicit.

namelogon.c	Updated copyright to 1997.
namepacket.c	Updated copyright to 1997.
namequery.c	Updated copyright to 1997.

nameresp.c

	Made use of WINS subnet explicit. Made nmbd fail if
configured as master browser and one exists already.

nameserv.c

	Made use of WINS subnet explicit. Remove redundent
logon server and domain master code.

nameserv.h	Add emumerate subnet macros.
nameservreply.c	Made use of WINS subnet explicit.
nameservresp.c	Updated copyright to 1997.

namework.c

	Made use of WINS subnet explicit. Updated code to
add sync browser entries to add subnet parameter.

nmbd.c

	Added sanity check for misconfigured nmbd.

nmblib.c	Updated copyright to 1997.
nmblookup.c	Updated copyright to 1997.
nmbsync.c

	Removed redundent AM_ANY_MASTER check.

params.c	Updated copyright to 1997.
password.c	Updated copyright to 1997.
pipes.c		Updated copyright to 1997.
predict.c	Updated copyright to 1997.
printing.c	Updated copyright to 1997.

proto.h

	Changed protos for new nmbd code.

quotas.c	Updated copyright to 1997.
replace.c	Updated copyright to 1997.
reply.c		Updated copyright to 1997.
server.c	Updated copyright to 1997.
shmem.c		Updated copyright to 1997.
smb.h		Updated copyright to 1997.
smbencrypt.c	Updated copyright to 1997.
smbpasswd.c	Updated copyright to 1997.
smbrun.c	Updated copyright to 1997.
status.c	Updated copyright to 1997.
system.c	Updated copyright to 1997.
testparm.c	Updated copyright to 1997.
testprns.c	Updated copyright to 1997.
time.c		Updated copyright to 1997.
trans2.c	Updated copyright to 1997.
trans2.h	Updated copyright to 1997.
uid.c		Updated copyright to 1997.
username.c	Updated copyright to 1997.
util.c		Updated copyright to 1997.
version.h

	Changed to 1.9.17alpha1.
(This used to be commit cf23a155a1)
1997-05-08 01:14:17 +00:00
Samba Release Account
121c81e3d6 added automount home directory support. contributed by simeon@bangor.co.uk
and a mini bug-fix by rob.nacarrato@sheridanc.on.ca

reads in an entry from the auto.home file for the user when they log in,
and mounts their home directory as the default path for the [homes] service.

i might add this as to the %substitution system, so that you can
specify subdirectories for the user profiles, mainly.

lkcl
(This used to be commit 0bb6acc358)
1997-05-07 17:56:46 +00:00
Samba Release Account
999357a697 name_unregister_work() using strequal incorrectly.
lkcl
(This used to be commit 1d1143fb6f)
1997-05-03 16:48:31 +00:00
Samba Release Account
841f3e9136 expiry of browser entries wasn't happening once the entry had synced.
lkcl
(This used to be commit 1d89338fd9)
1997-04-17 04:41:53 +00:00
Samba Release Account
da7b171a59 two bugs jeremy and i found while at sgi.
find_workgroupstruct call in nameannounce.c should have False not True
check_master_browser should _only_ force an election for its own
workgroup, not other workgroups!

lkcl
(This used to be commit d0dc4c9b7c)
1997-04-17 04:39:55 +00:00
Samba Release Account
6e444304d3 removed reference to subnet_record and work_record, as neither are needed.
lkcl
(This used to be commit 3e7bd36c77)
1997-04-11 23:26:37 +00:00
Samba Release Account
c1da1bfc1e jra@cygnus.com: Changed CHECK_TIME_MST_ANNOUNCE back to 15 from 1 (from test).
(This used to be commit 0294ab7cbb)
1997-04-09 01:21:04 +00:00
Samba Release Account
20b5dea237 Large changes from jra@cygnus.com. Mainly browser updates.
access.c: Fixed crash if yp domain unavailable.
includes.h: Moved ifdefs for minor platform.
interface.c: Changed name of ipgrp to wins_ip to make it clearer.
loadparm.c: Changed default of wins support to 'no'.
nameannounce.c: Many changes to fix cross subnet browsing.
namebrowse.c: Many changes to fix cross subnet browsing.
namedbname.c: Many changes to fix cross subnet browsing.
namedbresp.c: Many changes to fix cross subnet browsing.
namedbsubnet.c: Many changes to fix cross subnet browsing.
namedbwork.c: Many changes to fix cross subnet browsing.
nameelect.c: Many changes to fix cross subnet browsing.
namelogon.c: Many changes to fix cross subnet browsing.
namepacket.c: Many changes to fix cross subnet browsing.
nameresp.c: Many changes to fix cross subnet browsing.
nameserv.c: Many changes to fix cross subnet browsing.
nameserv.h: Many changes to fix cross subnet browsing.
nameservreply.c: Many changes to fix cross subnet browsing.
nameservresp.c: Many changes to fix cross subnet browsing.
namework.c: Many changes to fix cross subnet browsing.
nmbd.c: Change to search wins subnet.
nmbsync.c: Change to check if we are any master before proceeding.
proto.h: Added find_subnet_all() and check_work_servertype().
util.c: Moved 'done' settings on name resolution.
(This used to be commit a82476eee2)
1997-04-09 01:19:25 +00:00
Samba Release Account
02e610b927 name_type for name_query with smbclient -M name should be used. that way,
you get messages to the proper location.

lkcl
(This used to be commit deedac6523)
1997-04-03 16:57:06 +00:00
Samba Release Account
83329ef56e finally! doing a strequal() == 0 instead of just strequal(). too used to
strcmp.  oops.

lkcl
(This used to be commit cb8d00fff3)
1997-03-15 19:08:18 +00:00
Samba Release Account
c0a0de60df compile errors. oops.
lkcl
(This used to be commit b42bbc902b)
1997-03-15 18:40:50 +00:00
Samba Release Account
a2bb924496 become_domain_master(), become_local_master() and become_logon_server()
weren't being called properly from name_register_work().

lkcl
(This used to be commit 9987724cb8)
1997-03-15 18:38:27 +00:00
Samba Release Account
e1eb836430 bug: when checking whether there is a PDC already on the current local
subnet, on finding that there was no response, the (broadcast) ip address
queried was accidentally being compared to the (unicast) interface ip
address.  this would stop non-WINS-client nmbds from ever becoming a PDC.

lkcl
(This used to be commit 94060a4a9b)
1997-03-15 17:59:42 +00:00
Samba Release Account
9f1d339309 JHT ===> Blasted typos. BROWSER_ELECT_VERSION in smb.h should have been
BROWSER_ELECTION_VERSION.
(This used to be commit 377bfdecfc)
1997-03-15 14:58:30 +00:00
Samba Release Account
aaba4712c8 JHT ===> Moved MAJOR_VERSION and MINOR_VERSION defines to smb.h
Made version info consistent in ipc.c and nameannounce.c
	Added define for BROWSER_ELECTION_VALUE and BROWSER_CONSTANT
	(see do_announce_host() in nameannounce.c).

	Sniffing with the latest bloodhound I found that the byte range
	occupied by the BROWSER_ELECTION_VALUE is interpreted depending
	on the type of announcement being made.

	In a Local_Master_Announcement it is BROWSER_ELECTION_VALUE
	but in both Workgroup_Announcement and Host_Announcement
	this is seen as Comment_String_Pointer. What does this mean?
	We need to know?
(This used to be commit 86b0018cc7)
1997-03-15 14:47:00 +00:00
Samba Release Account
68068dbafc added jeremy's patch to return Node Status info type in a Node Status
response, instead of always Name Query.

oops.

lkcl
(This used to be commit 85a61bfb0e)
1997-03-13 19:05:51 +00:00
Samba Release Account
5f178fc18a added code that checks whether the DOMAIN<1b> name is claimed on the
local subnet _before_ going and registering it.  the reason for this
is that i don't want to cause chaos by registering the name twice.

it's ok to register DOMAIN<1b> with the WINS server, because the WINS
server's job is to check a) _if_ there's a current owner of the name
b) if the current owner exists c) if the current owner still wants the
name.  if they don't, the WINS server responds by saying, 'yes, you can
have it'.

lkcl
(This used to be commit 0d51899b59)
1997-03-12 20:21:11 +00:00
Samba Release Account
b581d03240 1) updated ipc.c NetUserGetInfo - load \\%L\%U instead of \\%L\HOMES
because the share must be browseable by a w95 client

2) send_mailslot_reply - unique or group datagram argument added.

3) netlogon.c - rewrote response packet to do the right thing for w95.

4) server.c reply_nt1() - added OEMDomainstring to the end.

5) (deep breath) reworked the nmbd-browsing code a little bit.
   i discovered two months ago that becoming a primary domain controller
   (and domain master browser) is done independently of becoming a
   backup domain controller (logon server) is done independently of
   becoming a local master browser.

   therefore, three sets of state-machines (instead of just one) are in
   place - each of which is responsible for taking samba through the
   required stages to become:  a logon server; a domain master browser;
   and a local master browser.

   each of these three things can occur independently on each interface,
   _including_ the wins pseudo-interface.  the only slight caveat is that
   the wins pseudo-interface, by virtue of _not_ being a broadcast
   interface, does _not_ register as a local master browser with the wins
   server, as this doesn't make sense.

lkcl
(This used to be commit 88c6a00c3c)
1997-03-09 14:58:22 +00:00
Samba Release Account
3046a0d7c2 preferred master option will force an election every 5 minutes if the
server isn't a preferred master, and DEBUG(0,(...)) this.

reason: if the os level etc parameters aren't working properly, then
a domain master browser samba server that _ought_ to be the local master
browser as well might not.

i'll modify smb.conf.5 man page etc to reflect this change.

lkcl
(This used to be commit ebaff730c9)
1997-03-08 18:47:07 +00:00
Samba Release Account
ab0bdc6682 Added better debug for what kind of netbios packet we got.
jra@cygnus.com
(This used to be commit 4563d978fe)
1997-03-07 17:28:41 +00:00
Samba Release Account
3e2f9c3dee quotas.c: Fixed typo in #ifdef'ed compile.
ufc.c: Added pre-declaration of _ufc_doit().
jra@cygnus.com
(This used to be commit 7c690e020f)
1997-03-07 17:24:22 +00:00
Samba Release Account
89f6150ffe Fix fro signed/unsigned problem with TIME_T_MIN from Anatoly V. Grabar
<agra@sice.ru>
jra@cygnus.com
(This used to be commit ed7e3a9347)
1997-03-07 17:22:27 +00:00
Samba Release Account
33548ecd2d added debug_nmb_packet() call.
lkcl
(This used to be commit 8a81c6d49a)
1997-03-02 14:20:12 +00:00
Samba Release Account
da0a56a278 Split maxxmit parameter into two : max_send (auto configured by the
connecting client, as per CIFS4) and max_recv, which can be configured
as the old maxxmit was. Fixes problems with NT directory listings when
maxxmit is set very small.
jra@cygnus.com
(This used to be commit c2d5d1040a)
1997-02-28 20:39:36 +00:00
Samba Release Account
0fb433564c JHT ===> Set to 1.9.16p12alpha until someone thinks it's Beta prime time.
To be set to 1.9.16p12 just before release.
(This used to be commit 09d81adb9e)
1997-02-23 07:00:44 +00:00
Samba Release Account
df42b0a7bc Makefile: Added cleandir target.
chgpasswd.c: Added patch from Roland Haag <haag@think.de> to allow
             password changes to be done more than once.
loadparm.c: Added entries for the "directory mode/directory mask parameters".
            Changed default file mode to 644.
proto.h: Added sys_gethostbyname.
server.c: Added directory mode changes.
system.c: Added sys_gethostbyname.
trans2.c: Added NT_FILE_ATTRIBUTE_NORMAL patch from Roger Orr
          <rorr@csfp.csfb.com>
trans2.h: Defined NT_FILE_ATTRIBUTE_NORMAL for above patch.
util.c: Changes calls to gethostbyname to sys_gethostbyname.
jra@cygnus.com
(This used to be commit d8d8a7ee00)
1997-02-23 05:18:09 +00:00
Samba Release Account
f1a494b74e JHT ===> Updated SV_TYPE defines in smb.h (added WIN95 entry)
nameserv.h returned to original state.
(This used to be commit e313de4619)
1997-02-22 15:24:31 +00:00
Samba Release Account
e9a4f896bd Fixed problem with renaming folder on top level share.
jra@cygnus.com
(This used to be commit 7ba1cff934)
1997-02-18 17:20:14 +00:00
Samba Release Account
cbc6c3faf2 Fixed inclusion of crypt.h bug when libdes is being used on Solaris
only.
jra@cygnus.com
(This used to be commit c189ef3845)
1997-02-13 20:49:12 +00:00
Samba Release Account
d557ec0462 Fixed bugs in my YOST replacement code. Doing a trim_string
in unix_clean_name caused directory names to go from ./ to "".
This is now checked for, unix_clean name returns ./ in these
cases.
jra@cygnus.com
(This used to be commit 64a16d9c2a)
1997-02-13 20:36:58 +00:00
Samba Release Account
2cf19029f0 JHT ===> Updated RedHat RPM Makefile - not really used except to generate
the RedHat Makefile diffs.
(This used to be commit a8b5812107)
1997-02-12 12:38:35 +00:00
Samba Release Account
8bd0dbb1af Replaced YOST code with more functionally equivalent code that
changes a bit less. Also added fix to tricky reply_mv case.
jra@cygnus.com
(This used to be commit f22ac13b14)
1997-02-11 22:53:29 +00:00
Samba Release Account
25ca2fd3d3 Added trim_string(s, "./", 0) to unix_clean_name to remove
leading ./ characters.
jra@cygnus.com
(This used to be commit 617370314e)
1997-02-10 20:03:56 +00:00
Samba Release Account
c6311f4e0a Removed YOST code. Removal of leading ./ chars should
be done in unix_clean_name in util.c
jra@cygnus.com
(This used to be commit f9f1085c7d)
1997-02-10 19:27:27 +00:00
Samba Release Account
8839603f03 JHT ===> William Yost patches integrated to fix leading path on 8.3
filename problem.
	Problem conditions:
		case sensitive = no
		default case = lower
		mangle case = yes
		preserve case = yes
		short preserve case = yes
	Problem: Win95 still writes upper case file names.
	Patches supplied have been incorporated into mangle.c and server.c
	but needs YOSTW to be defined for it to take effect.

	Action:
	=======
	If we are happy with the patch, delete old code in mangle.c, then
	remove all YOSTW #ifdefs.
(This used to be commit 84fc674c89)
1997-02-10 13:54:29 +00:00
Samba Release Account
087c162f8f Fixed incorrect offset into array.
jra@cygnus.com
(This used to be commit 7c386c45b0)
1997-02-06 17:33:03 +00:00
Samba Release Account
5c63dbb6fe JHT ===> **** WARNING **** Only updated version to 1.9.16p11
so I can test RedHat RPM builds.
(This used to be commit fa1dff05d4)
1997-02-04 11:21:19 +00:00
Samba Release Account
cc55a88ddc JHT ===> Fixed potential PAM Security hole and second chance syndrome
spurious warning message "Warning - no crypt available"
(This used to be commit dc559428b8)
1997-02-04 10:35:38 +00:00
Samba Release Account
1fe69a7dd9 Fixed my stupid typo in earlier fix.
jra@cygnus.com
(This used to be commit e9a8ccb36b)
1997-02-04 01:21:52 +00:00
Samba Release Account
f24c04fc77 Fixed up problems with CDROM filesystems (return EROFS) and
also compile issue with USE_MMAP code.
jra@cygnus.com
(This used to be commit 8e9fe58991)
1997-02-03 19:48:56 +00:00
Samba Release Account
ab1b1855bd Fixed const definitions for StrCaseXXX calls.
jra@cygnus.com
(This used to be commit cbb5963965)
1997-02-03 19:41:59 +00:00
Samba Release Account
30ae26ba42 Fixed bug with NT and large directories.
jra@cygnus.com
(This used to be commit f0aa5e3ff0)
1997-02-03 19:40:15 +00:00
Samba Release Account
98bf10bc5d util.c: StrCaseCmp and StrnCaseCmp terminated incorrectly, giving false
answers when a string was partially identical.  this issue is still
outstanding, and needs to be investigated further.

loadparm.c: added lp_logon_path() parameter.
ipc.c: in NetUserGetInfo, lp_logon_path() can be returned instead of always
specifying \\SAMBA_SERVER\HOMES (which may not necessarily exist).
it is now possible to specify lp_logon_path() as \\ARBITRARY_SERVER\%U,
just like NT server can.  the default is \\SAMBA_SERVER\HOMES, just like
it used to be.

lkcl
(This used to be commit d5b6ad7cb8)
1997-02-02 18:12:36 +00:00
Samba Release Account
2831c62774 line 1960 - call to atexit - address of higher order function killkids
not needed (address already specified).

lkcl
(This used to be commit c5ab2eb71a)
1997-02-02 16:03:51 +00:00
Samba Release Account
c9180534ef JHT ===> Prepared now for release of samba-1.9.16p10 RedHat RPMS
(This used to be commit e6fa5669e9)
1997-01-31 15:18:47 +00:00
Samba Release Account
e7a1027a01 Fixed issue with null ypdomainname being used.
Jermy.
(This used to be commit 25175ce311)
1997-01-29 22:28:10 +00:00
Samba Release Account
9e83cac78e Fixed proto problem with lp_veto_files().
Jeremy
(This used to be commit c43d192a36)
1997-01-29 21:53:26 +00:00
Samba Release Account
691632e555 Added fix for file descriptor re-use failing when
file_exists is false.
Jeremy (jra@cygnus.com).
(This used to be commit b587f18247)
1997-01-23 19:39:57 +00:00
Samba Release Account
869f24e0b1 locking.c proto.h shmem.c smb.h status.c :
Changed shm_ prefixes to smb_shm_ prefixes as shm_ is a POSIX.4
prefix. Updated fd code in FAST_SHARE_MODE code
to work with new fd indirection.
quotas.c: Fixed #ifdef not on position zero.
Jeremy. (jra@cygnus.com).
(This used to be commit c9a9d56642)
1997-01-15 01:53:25 +00:00
Samba Release Account
586c6276ec Added an extra parameter for unix_convert. If present this is the
last component of the modified pathname before modification. This
is needed due to an exceptional condition in reply_mv when the
filesystem is case preserving, but not case sensitive and the
user wants to change the case of a filename. Code for this is
also added to reply.c
Jeremy (jra@cygnus.com).
(This used to be commit cdafa35f9d)
1997-01-13 19:41:08 +00:00
Samba Release Account
8bc7d6bebd Makefile: Changes to split Solaris into Solaris2.3 and previous, and 2.4 and after from Paul Eggert.
Makefile: Added AMIGA changes from Rask Ingemann Lambertsen <rask@k4315.kampsax.dtu.dk>.
charset.c: Patch for Western European Languages from Josef Hinteregger <joehtg@joehtg.co.at>
charset.h: Patch for Western European Languages from Josef Hinteregger <joehtg@joehtg.co.at>
clitar.c: Patch to re-sync after read fail from (lost contributor name, sorry).
includes.h: Patch for AMIGA from Rask Ingemann Lambertsen <rask@k4315.kampsax.dtu.dk>
includes.h: Patch for SunOS atexit by Jeremy (jra@cygnus.com)
interface.c: Patch for AMIGA from Rask Ingemann Lambertsen <rask@k4315.kampsax.dtu.dk>
kanji.h: Patch for Western European Languages from Josef Hinteregger <joehtg@joehtg.co.at>
locking.c: Patch to fix file locking from Jeremy (jra@cygnus.com)
locking.c: Patch to add granularity of lock files to usec by Jeremy (jra@cygnus.com)
pipes.c: Patch to fix file locking from Jeremy (jra@cygnus.com)
proto.h: Patch to fix file locking from Jeremy (jra@cygnus.com)
reply.c: Patch to fix file locking from Jeremy (jra@cygnus.com)
server.c: Patch to fix file locking from Jeremy (jra@cygnus.com)
server.c: Patch for FAST_SHARE_MODE fix from (lost contributor name, sorry).
smb.h: Patch to fix file locking from Jeremy (jra@cygnus.com)
smb.h: Patch to add granularity of lock files to usec by Jeremy (jra@cygnus.com)
status.c: Patch to fix file locking from Jeremy (jra@cygnus.com)
statuc.c: Patch to add granularity of lock files to usec by Jeremy (jra@cygnus.com)
system.c: Patch for Western European Languages from Josef Hinteregger <joehtg@joehtg.co.at>
trans2.c: Patch to fix file locking from Jeremy (jra@cygnus.com)
trans2.c: Patch to fix volume name reported to Win95 from Jeremy (jra@cygnus.com)
util.c: Patch for Western European Languages from Josef Hinteregger <joehtg@joehtg.co.at>
util.c: Patch to fix client_name from continuously returning UNKNOWN (from various contributors).
version.h: Update to 1.9.16p10.
(This used to be commit 03d28fa32e)
1997-01-09 18:02:17 +00:00
Samba Release Account
6847604079 JHT ==> Added just for RedHat support so I have a working copy of the RPM
aware makefile to generate the RPM source and binary distributions.
(This used to be commit d30c208c11)
1997-01-03 12:17:12 +00:00
Samba Release Account
4bf19abcad JHT => Modified for RedHat Linux for DEC Alpha platform includes.
(This used to be commit 40fa8d4be6)
1997-01-02 04:50:59 +00:00
Samba Release Account
d613892674 JHT ==> Added extensions for PAM (Pluggable Authentication Module) support
for Linux and other little beasties that use PAM.
	Source: ftp.redhat.com/pub/Incoming/samba-1.9.16p9.src.rpm
	Originally from RedHat modifications to samba-1.9.15p8
(This used to be commit 79145bad56)
1997-01-02 04:04:49 +00:00
Samba Release Account
9654c572fd Added Whistle veto file functions. Moved fcntl locking from
locking.c to util.c
jra@cygnus.com
(This used to be commit f2d481a2d3)
1996-12-10 18:03:44 +00:00
Samba Release Account
9db489ea55 Fixed for FreeBsd.
jra@cygnus.com
(This used to be commit 979acbc109)
1996-12-10 18:02:08 +00:00
Samba Release Account
d68e27a3bc Added -f lockfile support.
jra@cygnus.com
(This used to be commit 84024a3df3)
1996-12-10 18:00:22 +00:00
Samba Release Account
53a9501444 Fixed quota support for FreeBsd.
jra@cygnus.com
(This used to be commit d1009c5351)
1996-12-10 17:58:11 +00:00
Samba Release Account
3eb2945910 Added veto calls.
jra@cygnus.com
(This used to be commit 8167becd33)
1996-12-10 17:56:40 +00:00
Samba Release Account
61236274fe Added -f option for lock file.
jra@cygnus.com
(This used to be commit 0c8df4cef9)
1996-12-10 17:55:27 +00:00
Samba Release Account
c95ed5bbbd Added in missing return statement.
jra@cygnus.com
(This used to be commit 61dc3087a0)
1996-12-10 17:53:59 +00:00
Samba Release Account
75e3bbc651 Moved fcntl locking code into util.c to allow it to be
called from nmbd code.
jra@cygnus.com
(This used to be commit d718f4fd30)
1996-12-10 17:53:00 +00:00
Samba Release Account
5b6f1e347e Added in veto files parameter created by Whistle.
jra@cygnus.com
(This used to be commit 09aa77766c)
1996-12-10 17:51:42 +00:00
Samba Release Account
0f22ee6976 Added in changes for FreeBsd.
jra@cygnus.com
(This used to be commit 074d28fcb6)
1996-12-10 17:50:28 +00:00
Samba Release Account
b719173ecb Added in veto files parameter create by Whistle.
jra@cygnus.com
(This used to be commit d5659df9c2)
1996-12-10 17:49:11 +00:00
Samba Release Account
b02557f80e Added Volkers fix for bundary condition. Needed as word
alignment wasn't being taken into account in space
calculations.
(This used to be commit 2fd77d66c0)
1996-12-03 19:05:27 +00:00
Samba Release Account
7da995a1dd Set num_validated_users to zero if Realloc fails.
(This used to be commit 57121e609e)
1996-11-09 01:56:20 +00:00
Samba Release Account
724a529a20 increased debug levels for name dump to same as that for workgroup dump
in log files. really verbose listings ought only to be shown at debug
log level 5 and above.

lkcl
(This used to be commit 6f0a4d7178)
1996-11-06 20:27:50 +00:00
Samba Release Account
bc25ddf6af queries for 0x1b names were resulting in dns lookups. not good.
lkcl
(This used to be commit 992ca1f32b)
1996-11-06 20:17:48 +00:00
Samba Release Account
c97bb2f272 nmblookup was looking for 0x1b (domain master browser) not 0x1d (local
master browser) names with the -M switch.

lkcl
(This used to be commit f27a9ccc97)
1996-11-06 20:14:24 +00:00
Samba Release Account
351b375693 allowed packets coming in from 'unexpected' subnets.
lkcl
(This used to be commit 2e727071c2)
1996-11-03 17:11:00 +00:00
Samba Release Account
5d55d4cf5c removed getdomainname() stuff and appending a '.' to the name in
dns_name_search().

lkcl
(This used to be commit adf5a42c21)
1996-10-27 15:23:51 +00:00
Samba Release Account
f14a7c5ce8 severe debugging session for nmbd. in fact, i'm surprised that browsing
in 1.9.16 works at all!

question and resource record types for queries and response netbios
packets sorted out properly (see rfc1002.txt 4.2.1.3).

receipt of browser announcement packets were playing up

lkcl
(This used to be commit b289db62f1)
1996-10-27 14:22:56 +00:00
Samba Release Account
697e46373c Changed become_user to take a vuid as second arg.
Consistent with other changes to make smb_uid an index+offset
into the validated_users table.
jra@cygnus.com
(This used to be commit 89675f8ae8)
1996-10-25 20:50:31 +00:00
Samba Release Account
134c804497 Added definitions for vuid offset and invalid user smb_uid.
Added vuid to connections struct.
jra@cygnus.com
(This used to be commit 555f6cda31)
1996-10-25 20:48:25 +00:00
Samba Release Account
ddc18f4183 Modified all references to smb_uid to be vuid's.
jra@cygnus.com
(This used to be commit 5056672a3a)
1996-10-25 20:42:46 +00:00
Samba Release Account
2afda91963 Modified all references to uid to vuid.
jra@cygnus.com
(This used to be commit a2b07e5562)
1996-10-25 20:30:22 +00:00
Samba Release Account
9467fec295 Changed prototypes for accesses into validated_users structure.
Ensured all smb_uid accesses are uint16's.
jra@cygnus.com
(This used to be commit b5e2d87179)
1996-10-25 20:20:17 +00:00
Samba Release Account
8c5c55fea5 Core of the changes for returning smb_uid's. smb_uid's are now
returned as an index plus offset into the valudated_users table.
The offset (100) is added so that an smb_uid of zero becomes
an invalid value. All access into the validated_users table are
done by removing the offset and indexing into the table. Out of
ranges return NULL. Causes accesses into the validated_users table
to be more consistant and controlled.

This change made due to the fact that the uid field is only 16
bits in the smb header and we need for this not to be a unix
user id (which can ge 32 bits).

jra@cygnus.com
(This used to be commit ac265eff85)
1996-10-25 20:18:28 +00:00
Samba Release Account
9bc6d7f4d6 Changed definitions of prototypes to take uint16 vuid's not
int uid's. Part of the change for Samba to return an index+offset
into the registered users table rather than a raw unix uid.
Added casts to required prototypes for function pointers in
tables.
jra@cygnus.com
(This used to be commit ec2a3a1cf2)
1996-10-25 20:10:53 +00:00
Samba Release Account
57d8802356 debugging the dns lookup changes
lkcl
(This used to be commit 3f63dd6771)
1996-10-25 19:31:48 +00:00
Samba Release Account
186c119d6f debugged dns lookup / netbios name query code from yesterday.
lkcl
(This used to be commit 7c2f1da377)
1996-10-25 16:43:04 +00:00
Samba Release Account
e010ad006e dealing with name queries and dns lookups etc.
lkcl
(This used to be commit 98cb371244)
1996-10-24 17:48:06 +00:00
Samba Release Account
8a7c1bd335 preparing for release of 1.9.16p9
(This used to be commit 526e597d3c)
1996-10-24 00:11:14 +00:00
Andrew Tridgell
08d00eb68e - added support for TMPDIR env variable
- fixed fault.c for linux 2.1
- put back in the FIND_SELF failing code
- cleaned up casts in encryption
(This used to be commit 3af04f1580)
1996-10-24 00:09:08 +00:00
Samba Release Account
dc0d4d2efb Jeremy <jra@cygnus.com>
Removed AS_USER requirement for SMBulogoff. A valid TID (cnum) is not
given for this call, which become_user needs if it is not to return
an error. This fixes a specific case with NT4.0 which stops users
attaching to a Samba server using a different account to the one they
are logged in under.
(This used to be commit c65a2cdd83)
1996-10-23 19:12:47 +00:00
Samba Release Account
7ccb388e3f preparing for release of 1.9.16p8
(This used to be commit 09588edfec)
1996-10-23 18:44:19 +00:00
Samba Release Account
4ec574af76 wrong answer response resource record type expected, so the response packet
was being abandoned. oops.

lkcl
(This used to be commit cf2ed4183b)
1996-10-23 18:38:05 +00:00
Samba Release Account
44df12f236 code was added to stop samba from replying to queries for its own names (?! :-)
lkcl
(This used to be commit 92a3d0f3e1)
1996-10-23 18:28:52 +00:00
Samba Release Account
fb421186e6 the response packets are being received (fix to process_nmb() worked)
however dead_netbios_entry() is still thinking that no response has
been received when the response_record times out for the registration
with the WINS server. only print a debug message when no registration
response is _really_ received from the WINS server.

lkcl
(This used to be commit e9eb9d70e3)
1996-10-13 13:47:02 +00:00
Samba Release Account
280525df33 preparing for release of 1.9.16p7
(This used to be commit 998f8bae72)
1996-10-11 17:56:42 +00:00
Samba Release Account
eff62fd6db netbios registration and release response packets were being junked. a
BAD idea.

lkcl
(This used to be commit b790455aca)
1996-10-11 17:55:16 +00:00
Andrew Tridgell
c71c1ff55f - set default printer driver string to "NULL"
- fixed debug levels for name status parsing
(This used to be commit f2c5f1eab1)
1996-10-11 05:49:42 +00:00
Samba Release Account
0b031a3f41 preparing for release of 1.9.16p6
(This used to be commit fca0c5dc8e)
1996-10-09 15:10:16 +00:00
Andrew Tridgell
6dc1fe06c1 - correctly handle non-encrypted share mode session-setup. We were
losing the username due to the recent "handle broken password lengths"
patch.
(This used to be commit b006cd6f91)
1996-10-09 15:08:29 +00:00
Samba Release Account
2bb84baa5b preparing for release of 1.9.16p5
(This used to be commit 952918bdd5)
1996-10-07 15:06:26 +00:00
Andrew Tridgell
ec85f2e53d - revert to old idle dir code (marty pointed out a problem with the
new code)

- handle server level security in the new "detect NT password length
stuffups" code
(This used to be commit 7c135d4994)
1996-10-07 15:04:48 +00:00
Samba Release Account
426d930adb preparing for release of 1.9.16p4
(This used to be commit 13c3a05093)
1996-10-07 11:14:29 +00:00
Andrew Tridgell
dfa2b456c7 - continue when failing to load config file in nmblookup and smbclient
- fix important bug in nmbd where it set the return code for a
negative name response to 0 (which means success!)
(This used to be commit bfa816cc8f)
1996-10-07 11:06:34 +00:00
Andrew Tridgell
8781e4d787 - changed the default nmbd loop timout to 10 seconds (2 seconds was much
too short)

- got rid of many unnecessary calls to time(NULL) in nmbd. They were
causing it to chew too much CPU time when idle. Now we pass a time
value in from the top level.
(This used to be commit 3cd7303dbc)
1996-10-07 01:56:21 +00:00
Samba Release Account
799172e830 preparing for release of 1.9.16p3
(This used to be commit 47212791c2)
1996-10-05 14:28:39 +00:00
Andrew Tridgell
e8b17deb5a add DEBUGLEVEL to replace.c
(This used to be commit b215a90206)
1996-10-05 14:27:00 +00:00
Andrew Tridgell
f6c9fed7ac - use waitpid for ultrix
- don't use wait4
(This used to be commit 2aa612d676)
1996-10-05 13:38:29 +00:00
Andrew Tridgell
f3c79936d7 - replace the base36 function with one that works on more systems
(compiler bugs were the problem)

- minor password cleanups (catch WfWG bug where it sets the password
to a space instead of a NULL)

- fix printing problem for kanji users

- minor cleanups
(This used to be commit 92566ecc31)
1996-10-05 13:13:31 +00:00
Andrew Tridgell
e5893bdfbe I have fixed quite a few important bugs in this commit.
Luke, can you take special note of the bug fixes to nmbd so you can
propogate them to your new code.

- rewrote the code that used to use fromhost(). We now call
gethostbyaddr() only if necessary and a maximum of once per
connection. Calling gethostbyaddr() causes problems on some systems so
avoiding it if possible is a good thing :-)

- added the "fake oplocks" option. See the docs in smb.conf(5) and
Speed.txt

- fixed a serious bug in nmbd where it would try a DNS lookup on
FIND_SELF queries. This caused a lot of unnecessary (and incorrect)
DNS lookups to happen. FIND_SELF queries should only go to the
internal name tables.

- don't set FIND_SELF for name queries if we are a wins proxy, as we
are supposed to be answering queries for other hosts.

- fixed a bug in nmbd which had "if (search | FIND_LOCAL)" instead of
"if (search & FIND_LOCAL)". Luke, this was in nameservreply.c

- the above 3 bugs together meant that DNS queries were being cached,
but the cache wasn't being used, so every query was going to DNS, no
wonder nmbd has been chewing so much CPU time! Another side effect was
that queries on names in lmhosts weren't being answered for bcast
queries with "wins proxy" set.

- ignore the maxxmit for seconday session setups (see CIFS spec)

- close user opened files in a uLogoffX for user level security (see
CIFS spec)

- added uid into the files struct to support the above change
(This used to be commit ea472b7217)
1996-10-05 10:41:13 +00:00
Andrew Tridgell
38087ccb40 - use workgroup from smb.conf in smbclient
- change debug level on clitar stuff

- define MAP_FILE if not defined

- ensure we never set authoritative on queries in nmbd

- fake a positive response to SMBioctl, apparently this is needed for
some WfWg printer drivers

- deny file access for non-fcbopen queries when (access_allowed == AREAD && flags == O_RDWR)

- add sys_waitpid()
(This used to be commit 61e3116e57)
1996-10-05 02:54:37 +00:00
Andrew Tridgell
e23f2b9cef - changed the umask handling. We now set the umask to 0 and explicitly
set the mode on all created files. I think this is a better policy.

- change the debug levels on some items

- fix a charset handling bug which affected foreign and extended
charset users

- no longer switch back to the original directory when idle, instead
switch to / as the original directory may not be readable by ordinary
users.

- fix some bugs where the create mode of files was not being
explicitly set (it was relying on the umask and using fopen). Not a
big bug as it only affected obscure commands like the messaging ops.

- got rid of the lock code in the lpq cache as its no longer needed

- rewrote smbrun to be faster and to remove the security hole. We now
don't actually need a external smbrun binary, its all done by smbd.

- add a more explicit warning about uids and gids of -1 or 65535
(This used to be commit 5aa735c940)
1996-10-04 09:31:07 +00:00
Andrew Tridgell
986edc0146 - 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
(This used to be commit 671b3a3a77)
1996-10-02 16:16:16 +00:00
Andrew Tridgell
afd08462ad 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.
(This used to be commit 45e66a69d3)
1996-10-02 15:41:30 +00:00
Andrew Tridgell
5a2f52b79e - 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!
(This used to be commit 20b6203dac)
1996-10-02 14:09:22 +00:00
Andrew Tridgell
11d9539d75 - accept either NT or lanman passwords in tconX
(This used to be commit b6c1c60d72)
1996-10-02 14:06:17 +00:00
Andrew Tridgell
908771bb0f added debug info
(This used to be commit 4a988021a2)
1996-08-24 01:46:47 +00:00
Samba Release Account
9ad5a3fe36 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?
(This used to be commit 8b7fe224bc)
1996-08-24 01:41:46 +00:00
Samba Release Account
8c41ad5614 fixed dircahe bug
(This used to be commit 050f941e21)
1996-08-24 01:32:51 +00:00
Samba Release Account
5945be9718 - 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
(This used to be commit f24e341e7e)
1996-08-23 10:17:30 +00:00
Samba Release Account
ea1a09af13 preparing for release of 1.9.16p1
(This used to be commit 6df471f663)
1996-08-22 16:10:42 +00:00
Andrew Tridgell
69a458ba2c - fix client for pathworks 4 access
- fix "connection already connected" bug in open_socket_out()
(This used to be commit fcce452557)
1996-08-22 16:09:27 +00:00
Samba Release Account
135d4f5739 preparing for release of 1.9.16
(This used to be commit 7e26006cc3)
1996-08-22 06:35:29 +00:00
Andrew Tridgell
9155889092 - add timeouts to connect() for password server connections. This
makes multiple password servers practical.
(This used to be commit 5c3e8326cc)
1996-08-22 06:32:03 +00:00
Samba Release Account
27b2510f15 preparing for release of 1.9.16alpha26
(This used to be commit 03aaf9a705)
1996-08-21 14:16:34 +00:00
Andrew Tridgell
3d088fd65e - 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.
(This used to be commit 78f62c83be)
1996-08-21 14:15:09 +00:00
Andrew Tridgell
a782ffb5ed handle sigpipe better for server security
(This used to be commit d87fdb3ee9)
1996-08-21 12:36:01 +00:00
Samba Release Account
4e67124eaa preparing for release of 1.9.16alpha25
(This used to be commit eece931f67)
1996-08-21 08:53:53 +00:00
Andrew Tridgell
66a13075a4 fix compiler warning
(This used to be commit 5a6425c3cb)
1996-08-21 08:33:47 +00:00
Andrew Tridgell
044b403a9a - bit a bit manipulation bug in find_name_search()
- add the * and __SAMBA__ names to all subnets

- sort the name status reply list and remove duplicate entries.
(This used to be commit 04353a9479)
1996-08-21 08:30:29 +00:00
Samba Release Account
da0761ac0d 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.
(This used to be commit 6636c7b5b8)
1996-08-21 08:11:03 +00:00
Samba Release Account
dd7aec877a preparing for release of 1.9.16alpha24
(This used to be commit feca8d27ec)
1996-08-21 06:10:24 +00:00
Andrew Tridgell
b5a64bb740 - 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.
(This used to be commit eb84f2f342)
1996-08-21 06:09:00 +00:00
Samba Release Account
cb6708c978 preparing for release of 1.9.16alpha23
(This used to be commit 50eb07559f)
1996-08-20 16:43:59 +00:00
Andrew Tridgell
c26d87ea5b give names more time when refreshing
(This used to be commit ee7d8f7570)
1996-08-20 16:43:11 +00:00
Samba Release Account
9a52c24a19 preparing for release of 1.9.16alpha22
(This used to be commit e1d5205595)
1996-08-20 16:13:58 +00:00
Andrew Tridgell
1073bd6541 - removed ServerComment and instead set the comment string in nmbd
using the "server string" option. This replaces the -C option to nmbd
(This used to be commit 9e0fab2ee6)
1996-08-20 16:09:41 +00:00
Andrew Tridgell
dafaf627c2 - add NMB_REG_REFRESH capability to initiate_netbios_packet(). I think
this is why SELF names were getting expired.
(This used to be commit 2d0ec53c50)
1996-08-20 15:58:31 +00:00
Andrew Tridgell
748d65a4ac - 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.
(This used to be commit 2960c3908c)
1996-08-20 15:45:16 +00:00
Samba Release Account
cbfdcb4941 preparing for release of 1.9.16alpha21
(This used to be commit 07be656d3e)
1996-08-19 13:56:26 +00:00
Andrew Tridgell
241ecbe741 fix a bug in the new chaining code
(This used to be commit 50ed940451)
1996-08-19 13:54:58 +00:00
Samba Release Account
e04c08565c preparing for release of 1.9.16alpha20
(This used to be commit ced17fd3cb)
1996-08-19 11:28:02 +00:00
Andrew Tridgell
0c33046a0a - 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
(This used to be commit e9eac6cd49)
1996-08-19 11:17:29 +00:00
Samba Release Account
18fab46a82 i wondered why there was a cvs clash on namedbname.c
- redid tridge's fprintf for storing wins.dat, and yet again removed the
unsigned long changing it to a unint32.

lkcl
(This used to be commit bb57170695)
1996-08-17 15:47:49 +00:00
Samba Release Account
db70768da6 preparing for release of 1.9.16alpha19
(This used to be commit 6e87add16f)
1996-08-17 15:18:56 +00:00
Samba Release Account
1aedda6160 - fixed wins.dat reloading (it wasn't happening!)
- made nb_flags an unsigned 16 bit int in nameserv.h

- nmbd was calling add_my_subnets() with an uninitialised parameter group.
  removed it.

lkcl
(This used to be commit 3d55e54156)
1996-08-17 15:14:24 +00:00
Andrew Tridgell
efb8113d00 - 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
(This used to be commit 917160dee6)
1996-08-17 14:27:12 +00:00
Samba Release Account
663e659d80 - removed reference to my_workgroup() accidentally put back in nameserv.c
(This used to be commit 8401ec875b)
1996-08-17 13:47:52 +00:00
Samba Release Account
118c43e4dd - 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!
(This used to be commit 960aad39ac)
1996-08-17 13:26:58 +00:00
Samba Release Account
82d718317c - started on support for 'Internet Group names' - type 0x1c NetBIOS names
- 0x1d name query to a WINS server should always return FAIL (see WINS
  server help on nt/as)
(This used to be commit a7330127a2)
1996-08-17 13:17:45 +00:00
Andrew Tridgell
28177ca73b - 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
(This used to be commit ec3d539630)
1996-08-17 11:37:44 +00:00
Samba Release Account
6afac1c3a6 preparing for release of 1.9.16alpha18
(This used to be commit 15c1c84850)
1996-08-16 13:15:55 +00:00
Andrew Tridgell
5dd45b8ae5 fixed installscripts.sh so it no longer creates ] and [ directories
every time its run!
(This used to be commit f84199aad6)
1996-08-16 13:09:59 +00:00
Andrew Tridgell
f63d4c830a - 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
(This used to be commit be2b679403)
1996-08-16 13:03:26 +00:00
Andrew Tridgell
8508c953b1 added support for the Bull Operating System (BOS)
(This used to be commit 46277e64a1)
1996-08-16 07:39:46 +00:00
Andrew Tridgell
47673b32ed - added FAST_SHARE_MODES code
- added some named pipe code from Jim
(This used to be commit c94866e9e4)
1996-08-15 15:11:34 +00:00
Andrew Tridgell
ebc96b7309 changed "unsigned long" to "uint32" in several places (for IP
addresses) to keep 64 bit machines happy.
(This used to be commit b4aaec504a)
1996-08-14 15:02:28 +00:00
Andrew Tridgell
6475a91574 fixed an obvious bug that meant that DosPrintQEnum could never
work. Now we'll see if it works after this fix ...
(This used to be commit 9735d7e8e2)
1996-08-14 15:01:09 +00:00
Andrew Tridgell
d2be32ca09 disabled SETFS (which was only enabled for Linux) until we resolve a
couple of bug reports that may be caused by it.

Andrew
(This used to be commit 424814bed7)
1996-08-14 15:00:00 +00:00
Samba Release Account
fcbd379d34 preparing for release of 1.9.16alpha17
(This used to be commit 16f10b333d)
1996-08-13 12:36:58 +00:00
Andrew Tridgell
cd41e6629e minor cleanups
(This used to be commit f1dc2b9317)
1996-08-13 12:35:28 +00:00
Andrew Tridgell
4faf376bd6 - add the 0x1c name for all interfaces if we are a logon server
(This used to be commit c66ad071b7)
1996-08-13 11:13:11 +00:00
Andrew Tridgell
7ef19ee4bc don't allow newlines in printer status messages
(This used to be commit d84f5402fd)
1996-08-13 09:00:11 +00:00
Andrew Tridgell
396311075c - 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
(This used to be commit aa6f8b04d1)
1996-08-13 08:57:55 +00:00
Andrew Tridgell
5e94d5aa22 minor fix to write_data() for EOF handling
(This used to be commit 3a7c2d9dfa)
1996-08-12 12:15:03 +00:00
Samba Release Account
02b98a8965 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
(This used to be commit 2b9475cc5f)
1996-08-09 18:05:34 +00:00
Samba Release Account
6d3eb881e2 preparing for release of 1.9.16alpha16
(This used to be commit 6567bac5d1)
1996-08-06 09:52:41 +00:00
Samba Release Account
d2e0d9d7e3 preparing for release of 1.9.16alpha14
(This used to be commit 32f495cf22)
1996-08-05 18:23:10 +00:00
Samba Release Account
e4e73d7e5f 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
(This used to be commit 12c50bac4e)
1996-08-05 18:19:41 +00:00
Samba Release Account
bd7fa650bd updating documentation to reflect code a little bit.
lkcl
(This used to be commit 2193c1ee4e)
1996-08-05 18:18:58 +00:00
Samba Release Account
cfc0d5f5b3 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.
(This used to be commit b5fb0293b0)
1996-08-05 17:45:47 +00:00
Samba Release Account
26c4a63580 preparing for release of 1.9.16alpha15
(This used to be commit 043898aa85)
1996-08-03 00:25:05 +00:00
Samba Release Account
fa7361b621 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
(This used to be commit 70d3d3bbf0)
1996-08-01 19:25:01 +00:00
Samba Release Account
3ffb30e8be 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
(This used to be commit 6e932e4bae)
1996-08-01 17:49:40 +00:00
Samba Release Account
9bf446124b preparing for release of 1.9.16alpha13
(This used to be commit 801fe1066e)
1996-07-30 15:48:22 +00:00
Andrew Tridgell
2b4b7b4e1a 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.
(This used to be commit a7c7d7afe2)
1996-07-30 15:47:30 +00:00
Andrew Tridgell
6b680bb89c minor cleanups
(This used to be commit 7c8fd43b4e)
1996-07-24 06:14:51 +00:00
Andrew Tridgell
1924f08d84 the client now loads the smb.conf config file so it can get the
interfaces info, and the workgroup right.
(This used to be commit fabd4230f1)
1996-07-24 06:14:23 +00:00
Andrew Tridgell
234b8c6022 removed the remote interfaces stuff.
(This used to be commit 51e5a1a546)
1996-07-22 14:32:38 +00:00
Andrew Tridgell
1c2ab212d9 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
:-)
(This used to be commit 9e411f2c90)
1996-07-22 14:30:58 +00:00
Andrew Tridgell
a1ab08fdb5 added a bunch of comments to Lukes docs.
(This used to be commit e6282da558)
1996-07-22 12:06:27 +00:00
Andrew Tridgell
4bfbee68f7 minor debug output fix
(This used to be commit c1415349ac)
1996-07-22 12:04:56 +00:00
Andrew Tridgell
124beb45f8 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.
(This used to be commit 6fa3468c9b)
1996-07-22 12:00:39 +00:00
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