1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

452 Commits

Author SHA1 Message Date
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 28b3c6db8a81b41b448a4f3cd98e9cd2c4b5fb2e)
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 de38a0b34fcd65fa3024300f978aa30eb86d854f)
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 bf1c79f7fd7f9beec4f9f4e58337cadceeb1cb38)
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 f75e7ab927deebcf67626329f6233b87a779fbf3)
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 38526569608f6eb5f098efee7013037873d140bf)
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 1dc37c83506a434840a04c49e423cd9d2223fab4)
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 927d1875f0c09fe7b2e1c1bc4b1af2c0b8de0f7c)
1997-08-12 23:02:45 +00:00
Samba Release Account
9170cfd4b6 spelling.
lkcl
(This used to be commit 7e326450cf5aeee704df9fb5e298b0fc353dfb8b)
1997-08-11 18:06:44 +00:00
Samba Release Account
11361141e5 updating comments.
lkcl
(This used to be commit 50a9a235fd252e2f6873d3f05f614b6aef937087)
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 e025ffa0aacb577619cc35f0b9e5c5a862f4429f)
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 e6334c14d539129ddf6609b6cae6145cffa0d9fc)
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 7e5f1681bd538c3a1b576cff1d86fa8167704525)
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 a2dd5c5a551547e83c707e63c0696c7724035501)
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 a2ce1c0cb1331551ff728dcfe3260fab4cd827e5)
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 9fbca2594ba775450d5dca13cbce257b4362ca66)
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 632bf0dab06bccd082a9fc64a62ff7c99982d2b6)
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 4135fdb32327b394e586173bb2d51b7b676b409e)
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 760fe30353de66e8e6571f8ff4ec1064261b5428)
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 4fad0a63aa6712775610f7d341ba243e6353ce3b)
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 d21a166277776f6750b7bcc3c4f9073cce17eacb)
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 5a668ff7ba83433b5eaa9f7d03a42573ee26caf9)
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 83448e7a1176b68ed90532a69b4408cd579db8d8)
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 4aac8449ae1f4e9d214071e8b254ce8b391496a4)
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 9afa36f7874cfd527aa6ef1e7965c1d35d46ab1f)
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 271d12b5ddc372500feea8fec5678191ba4ebcf8)
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 e723dd3deec00a91568c5aa546374409ce7ba379)
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 937f0fbf87c4b66a947215ee13a69d1e19e4ff77)
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 aabb18953b5d026af3548610aa1ffd6ea2fd72e5)
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 2a28a6e5e461aca7fe6c19cd01d287010056cffb)
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 256afb764828b0a6dad5529d62501bc9ea2807ee)
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 d38ac4f3a2fb47d3e2ca7d5f788130064502c6eb)
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 b47121624c8824d3e1d8992cb950ebad52ba5c58)
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 9fda8a6fefd66a1c9f239e0dd41888af3555a22b)
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 c881dff3bfaa370b5eb4324217796d186572a9e3)
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 dcb1a74cf11de0c02c640e4d683ac81a814db624)
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 ff455e405998a1a01320ffc21c81587cd34e9853)
1997-07-12 14:41:26 +00:00
John Terpstra
7c723f75fd JHT ==> Just tidying up for Release.
(This used to be commit 4e9b7c92f79e1b7bf68103fe378449178b86e315)
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 ee9f57bab25e5ee07fb2d384b8c416576401a6ab)
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 87d17af0087fb0eced7628239b73e2c6cae774a9)
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 c80111cdf54218f23b230dc91bd6d814e6a4afcc)
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 9385ae1005f13c8ed51f1319e3949b5c8571e62d)
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 e095e339e62471a0b172918d2d3213f8a34b2108)
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 60af320a436c3a26230fd7ac71856e67ef64e819)
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 350dfc57dd3001ba27519000a2ab9dd541a66ac7)
1997-07-06 12:06:23 +00:00
Samba Release Account
c9914c98f0 preparing for release of 1.9.17alpha4
(This used to be commit ef5ccde4760a5545c5dedf4721cb28cbe0163661)
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 26635733a746dee2435da7ce228def5f2f292bba)
1997-07-03 20:45:06 +00:00
Samba Release Account
4a2cc7bb2b preparing for release of 1.9.17alpha4
(This used to be commit 16f6bf700f99357c7467d52b65de42ecff533636)
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 e72a8513bccf77177f6fb6002057fee608947a32)
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 885b42b44752249c85bb924c9ceefa5b710225da)
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 1f0ecfe4fc612b214480f8b8462764964556ed5c)
1997-07-02 22:37:44 +00:00