1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

1303 Commits

Author SHA1 Message Date
Herb Lewis
49ce0cab3c make it look for only the proper lines to uncomment.
(This used to be commit c963ec8cc4bd311023ca4ad00ded4502989b7faa)
1998-04-13 23:39:43 +00:00
Jeremy Allison
3f5d0ae6b2 Fixed aggregate initializer problem for gcc.
Jeremy.
(This used to be commit e74428e4287cbc1557cc79d4930371cfaf3256d4)
1998-04-13 23:27:22 +00:00
Christopher R. Hertel
d5e040247e Changes include:
proto.h:  The unusual.  ;)
reply.c:  I changes some function names, and updated reply.c to match.
          See mangle.c below for more.
server.c: Changed function names and parameters in file mangle.c, so
          changed server.c calls to match.  See mangle.c below for more.

mangle.c:

  I replaced the caching mechanism used for caching reverse mangled name
  maps.  The old method was a large array of 256-byte strings.  Movement
  in the stack (including push and pop) was done by memcpy()ing whole
  chunks of memory around.

  The new system uses the ubi_Cache module which, in turn, uses a splay
  tree.  Entries are dynamically allocated using a minimum amount of
  memory.  Searches are non-linear, which should speed things up a bit,
  too.  Overall, this should save memory and be faster.

  Other changes:  I streamlined the is_mangled() test and made other
  speed enhancements including replacing some static functions with
  macros.  Added comments, etc.

Note:  Per an E'mail conversation with Andrew, the 'mangled stack'
       parameter in smb.conf doesn't do anything anymore.  The cache is
       now set for 16K bytes maximum memory usage.  The mangle stack
       parameter is silently ignored.  This can easily be changed, but
       I'd rather introduce a 'mangled cache memory' parameter and
       remove 'mangled stack'.

Remaining problems:
       While testing the module, I noticed that something is calling
       name_map_mangle() twice.  The result is that names which contain
       illegal characters are getting mangled twice.

       Also, the entire module works by overwriting the input string.
       This has a variety of nasty side effects.

Summary:

  There's a lot still to be done, but the changes I have in place *should*
  work in exactly the same way (except for the mangle stack parameter).
  The rest of the bugs and other issues are separate.

Chris -)-----
(This used to be commit 8759bec11ba483b2292b0e513b85c98ed5e3e2d4)
1998-04-13 22:45:52 +00:00
Jeremy Allison
cac6a060af Changes to allow Samba to be compiled with -Wstrict-prototypes
with gcc. (Not a big change although it looks like it :-).

Jeremy.
(This used to be commit cd2613c57261456485fe4eeecfda209ada70de8e)
1998-04-13 19:24:06 +00:00
John Terpstra
47ec2e09b7 Contributed software for Linux autofs support.
(This used to be commit 883be3907778ee160872b0a0a023fc34e636774f)
1998-04-13 12:31:10 +00:00
Andrew Tridgell
e40b24249b fixed a memory leak in close_file(). Each time a file was opened
we leaked memory equal to the length of the filename.
(This used to be commit 30a347de74f7f8e2646b1853a9e5914320cee58d)
1998-04-13 11:12:44 +00:00
John Terpstra
f724cdbcdf As it says.
(This used to be commit adf4b3ffd78dd99e593b4d9f34389d436b90fa72)
1998-04-13 10:30:50 +00:00
John Terpstra
3f1d618775 Added additional comments from Bruce Wood
(This used to be commit cd1e7eb8b13ed84dce740de92ef8620280430476)
1998-04-12 06:24:27 +00:00
Andrew Tridgell
9a3537e068 minor reformatting of debug messages (so people don't think there is a
. on the end of their host names)
(This used to be commit dd3fe9fb471a803747957a898693a5890d71e176)
1998-04-12 02:54:31 +00:00
Andrew Tridgell
fc9065b360 some hacks to the torture code
(This used to be commit 02786747ee6774f617d95b08a5c5912bf86e7586)
1998-04-12 02:53:17 +00:00
Andrew Tridgell
77da897307 support O_SYNC at open time in files (previously we only supported it
on individual writes)
(This used to be commit ce017a233ba5c68e340e0d31634f9bd93118b20a)
1998-04-12 02:52:13 +00:00
Andrew Tridgell
b5f599daf7 if the resolve order is blank then assume "host"
(This used to be commit d361a06fa14b899cf1bd697a9524b5a32f7bf204)
1998-04-12 02:50:43 +00:00
Andrew Tridgell
5f7e1d2aa5 support O_SYNC in opens for smbtorture
(This used to be commit 000b871839e12065fc514f857ba205590a95b040)
1998-04-12 02:48:52 +00:00
John Terpstra
c032a9e8a5 Corrected the spelling of my Surname. Added several postscripts.
Extended info on Win95 logins to Windows NT.
(This used to be commit 237f80b128def6d9ec903cfebe12eec82913964f)
1998-04-11 15:15:29 +00:00
Luke Leighton
9e5870d92f created from a really useful discussion about Win95 / NT profiles.
Contributors:	Bruce Cook <BC3-AU@bigfoot.com>
		Copyright (C) 1998 Bruce Cook

		John Terpestra <samba-bugs@samba.anu.edu.au>
		Copyright (C) 1998 John H. Terpestra

		Wolfgang Ratzka <ratzka@hrz.uni-marburg.de>
		Copyright (C) 1998 Wolfgang Ratzka
(This used to be commit 2d7d013e0ca8fc2e97eb8299e3d847c57c40ed1c)
1998-04-11 14:00:37 +00:00
Richard Sharpe
c0c2353b77 Fix heaps of warnings when compiling with gcc under Digital UNIX. Include route.h
and mbuf.h at a strategic point ... Wierd stuff really, because the Digital
compiler does not complain either way, but GCC does.
(This used to be commit 241fde3c713c91961b6bcb97ecb046ac2f3bb00b)
1998-04-11 13:02:11 +00:00
John Terpstra
7744a23bb7 Updated to include possible cause of failed TESTS 3/6 as bad broadcast address.
(This used to be commit 031f5b183e57b26a3401440cc3d8156c9771da2e)
1998-04-11 11:09:12 +00:00
Richard Sharpe
9b5b34a721 Oops, fogot proto.h. It needs to be updated for changes to client.c
(This used to be commit c95097501a621a87c51d59407cce754be055558a)
1998-04-11 08:14:53 +00:00
Richard Sharpe
52b759beea smbclient.1 updated to reflect the new functionality and to document functionality
that has been available for a long time. More updates needed ... people tend to forget
the man pages when adding functionality.
(This used to be commit 587624e1ebc668900600c0ac7f272e6f1b92685b)
1998-04-11 08:00:49 +00:00
Richard Sharpe
e0c21df69a Changes to client.c support the need for directories to be processed by whatever
action is passed to do_dir.

Changes to clitar.c as requested by Canon Information Systems Research Australia:

1. Support restoring long file names
2. Write directory entries to TAR files as first part of setting directory create
   times
3. Ensure zero length files get correct mtime
4. Allow DOS and UNIX pathnames in command line parameters.
(This used to be commit 0c228f0b33950c8d38de0529e88a38848742a50d)
1998-04-11 07:52:13 +00:00
Jeremy Allison
e300c0346f includes.h: Moved HPUX undefine of SEMMSL to where it actually does something.
ipc.c: Added Luke's debug statement.
locking_slow.c: Added FTRUNCATE_NEEDS_ROOT code for broken systems that
need it (not sure what these are yet).

membuffer.c ntdomain.h proto.h
lib/rpc/include/rpc_dce.h lib/rpc/include/rpc_srvsvc.h
lib/rpc/parse/parse_prs.c lib/rpc/parse/parse_rpc.c
lib/rpc/server/srv_pipe_hnd.c lib/rpc/server/srv_util.c:
   Re-merge of Luke's NTDOM changes 'cos he's a lazy git with
   carpel tunnel syndrome :-).

Jeremy.
(This used to be commit 52e3966fbcf7b5fbdbc7cbe9ac0b453ab5bf3217)
1998-04-10 18:21:16 +00:00
Jeremy Allison
31ae9c7013 Fix for [homes] problem with security=share. We were still relying
on a valid vuid to get the connecting username - this is *never* true
(anymore) with security=share.
Jeremy.
(This used to be commit 5d6f63a7e665ee19bd4508b2b40d497e9851b248)
1998-04-10 01:19:18 +00:00
Jeremy Allison
af80d8e98f Makefile, loadparm.c, server.c, smb.h, util.c: Patch from
stn@techfak.uni-kiel.de (Stefan Nehlsen) to get homes from
the NIS+ map.
smbpasswd.c: Tidy up of cli_state structure.
Jeremy.
(This used to be commit fc2295e0f5729585fdb3ee47edb290851d4071c5)
1998-04-09 20:48:48 +00:00
Christopher R. Hertel
9907a58ca6 I removed a static string that was in there because I planned to do
something with it some day.  It was causing gcc to cough up warnings
(not serious ones, mind you).  Don't worry... It will be back!
Chris -)-----
(This used to be commit 46445421c5cbfb9597eccd2c9d222528e14ed768)
1998-04-09 20:36:14 +00:00
John Terpstra
d1cc06083d Added const cast to struct args to get rid of compile time warning.
(This used to be commit 5d956abb4f4ed22671dfb1c7cb51489ab280463f)
1998-04-09 14:13:20 +00:00
Jeremy Allison
7c57040da1 Removed unneeded proto symbol.
Jeremy.
(This used to be commit 6ed3de711858fde6fa8085e9439aae3bbf6ecda1)
1998-04-09 00:42:23 +00:00
Jeremy Allison
d228f3d8d9 Missed compile error when compiling with KANJI=true.
Jeremy.
(This used to be commit c92bd807429627f18b54acc14a8a323a547bd01a)
1998-04-09 00:30:38 +00:00
Jeremy Allison
3339f170c2 Added codepage 936 (simplified Chineses).
In doing so I realized that much code was being
duplicated between Hangul, Big5 and Simplified
Chinese - so I re-arranged kanji.[ch] to go
through generic functions for all multibyte
characters that can be identified by a single
code range (not Kanji - but all the others).

Jeremy.
(This used to be commit b6c965c396eb3d4f0e6dfd863e70b28390c59f66)
1998-04-09 00:07:17 +00:00
Jeremy Allison
1af95effe9 Fix to stop Windows 95 spinning on print queue requests when it
gets an error message it doesn't understand.
Jeremy.
(This used to be commit 838e2fe2f76b20f34309c2322e3bd60817fef1fd)
1998-04-08 19:12:22 +00:00
Jeremy Allison
db55744684 Added check for getpwnam returning NULL.
Jeremy.
(This used to be commit 81cbfaacb11747830354f4a58be441015fe19ba8)
1998-04-07 17:44:02 +00:00
Luke Leighton
0f8acce8eb want all of data in show_msg at log levels > 50.
(This used to be commit 2245f4908ee3d33fd05f0a19abda89053cbfceb9)
1998-04-07 15:59:05 +00:00
Jeremy Allison
724cab4d08 loadparm.c: Cause IPC$ comment to be evaluated at runtime, rather than
load time (patch from "Marty Leisner" <leisner@sdsp.mc.xerox.com>.
server.c: Patch from Josef Hinteregger <joehtg@joehtg.co.at> - string
could be overwritten when find_service() called recursively.
Jeremy.
(This used to be commit cf15b3bd74a262e7af3d739a83ef7b43df4935e5)
1998-04-06 18:14:56 +00:00
Jeremy Allison
f9c698b5eb Fix from Josef Hinteregger <joehtg@joehtg.co.at> for using
character set = iso8859-1 with the new multibyte char code.
Was always using sj_to_sj conversion in error.
Jeremy.
(This used to be commit e6a083451f8785fa1c00314a958007fe96fcc039)
1998-04-03 01:04:34 +00:00
Jeremy Allison
fd6dacbcdb We were missing a case switch in announcement processing - we
were loggin a become backup request with debug log level of 0
- thus producing lots of annoying error messages.

Now handle this explicitly.
Jeremy.
(This used to be commit 0f4914b870b0dfa876ac47d29f3a1b3736a3d698)
1998-04-02 19:12:11 +00:00
Jeremy Allison
77e4dd2478 Changed code to check NT password *first* - if it exists.
The NT password is a higher quality password, and should
always be looked at before the LM password, if available
(sorry, Luke, just a minor change, the other changes you
made were fine :-).
Jeremy.
(This used to be commit c1367bf5336485ceafd7125f608dc923ecebd32d)
1998-04-02 01:07:53 +00:00
Jeremy Allison
612cbb6a60 Patch from Chris Maltby <chris@softway.com.au>. His comments follow:
+ improvement to smbtar to allow exclusion/inclusion of system and
    hidden files, and to generate a listing of what has been archived
    in a format useful for automated backup systems.

  + add the "Softq" spooling system to samba's printing capabilities.

  + I have "fixed" the intrusion of US style dates into samba reporting
    as well. The format yyyy/mm/dd is not only uunambiguous, but also
    has the benefit of making lexicographic sorts work correctly.

Jeremy.
(This used to be commit f9dacd1d8b89fccad859c0c6bc7a492823eb4b06)
1998-04-02 01:01:24 +00:00
Jeremy Allison
d99d6f0d2e Updated Eastern European translation table from dan@feld.cvut.cz.
Jeremy.
(This used to be commit 84d858782eca2077cd0ce089b156938fa122cf93)
1998-04-02 00:45:43 +00:00
Luke Leighton
92e2ecc3b5 cli_login.c :
start to create the calls needed for client-side of "network" logins,
	which will be used for domain version of pass-through authentication.
	unfortunately, none of this code is called in the main branch, because
	smbclient BRANCH_NTDOM code isn't in use, yet!

srv_netlog.c :

	fixed a problem with static net_login_network() which was being
	stubborn: the if() statement looked horrendous, so i split it into
	two if() statements, one to deal with the lm password; the other to
	deal with the nt password.

	the smb_password_check() functions should _not_ be called here, in
	case we decide to disable lm hashes for security reasons, just like
	nt does.

	so, we now get a response to the SAM_LOGON "network" call, but the
	connection is still dropped.  a trace is needed from an nt server,
	which is why i started on the client-side code.  see above, which
	is why i'm calling it a day :-)
(This used to be commit 2c29a7d9cf2d8b35e4b6e37e5d24caa91af3a9be)
1998-04-01 21:31:06 +00:00
Jeremy Allison
c6db9717f6 Rolling back machine password change code - this doesn't work (yet).
Jeremy.
(This used to be commit 66affb3dc301d71565d789c06f105da3bb1d65b3)
1998-04-01 19:12:35 +00:00
Jeremy Allison
10fe54befa includes.h: Added semaphore fix for HPUX10.x
server.c trans2.c: Added oplock deadlock bug fix.
lib/rpc/server/srv_netlog.c: Made code that changes machine account password the default.
Jeremy.
(This used to be commit 3b56fbc11e9d1cb7d4930d9782238c2610cac30d)
1998-03-31 20:55:14 +00:00
Andrew Tridgell
5efec4e1b3 the default for old style accounts should be workstation trust
account, not server trust account.
(This used to be commit f2d1e39a66155497880dc0b26200a85adfe7af68)
1998-03-31 01:39:46 +00:00
Jeremy Allison
2a0b0873e3 Fixed compile-time error introduced by log message change.
Added support for 32bit error messages needed for NTDOM code (was
in NTDOM branch, somehow missed during the merge).
Jeremy.
(This used to be commit 188fb28d7be5d466c86a7464f951d08941d0021f)
1998-03-30 22:45:10 +00:00
Jeremy Allison
852dc76c60 Added extra remote password changing error codes from lmerr.h on NT.
Jeremy.
(This used to be commit 38391b51cd9e1e9fc7e4b77335ed2c7f6befc8c6)
1998-03-30 20:12:12 +00:00
John Terpstra
6f1fc787de Added remote machine and address to debug message in make_connection() function.
contributor: <ado@flower.nci.nih.gov>
(This used to be commit 7775b0f2aa43ee58f1a4f13004451235cfa157ef)
1998-03-29 05:34:03 +00:00
Jeremy Allison
a4156f9b50 chgpasswd.c, ipc.c, loadparm.c: Added boolean "unix password sync"
parameter which allows the new change password code to change the
unix password also. Defaults to OFF.
includes.h: Added termios.h to FreeBSD to allow password changing.
namequery.c: Fixed missing name parameters to debug statements.
Jeremy.
(This used to be commit 4ac50c0f0aa5af084ddad89b1f9baf6c2c1ddcb8)
1998-03-27 19:59:14 +00:00
Jeremy Allison
f52bb48748 Fix for client generated core-dump bug where offset to readraw
was so large that when used with -DUSE_MMAP it caused the unsigned
subtraction to wrap aound and become positive - thus causing
a silly memcpy offset. Thanks to "Michael St. Laurent" <rowl@earthlink.net>
for giving me the core dump that allowed me to track this one
down.
Jeremy.
(This used to be commit c9e066037ab222472085c4a0ecc8a39b337ad2aa)
1998-03-27 02:39:26 +00:00
Jeremy Allison
6cd35ce945 client.c: Fixed problem where debug level on command line was overridden by smb.conf.
smbpasswd.c: Removed bugs I put in yesterday (thanks Luke :-) and added error
message reporting for remote password changing.
Jeremy.
(This used to be commit 6a3394a285a250d1029cdd545dd0bf832284555a)
1998-03-26 19:11:31 +00:00
Jeremy Allison
039761b05c Added the ability to differentiate between workstation and server
accounts when adding machine account types.
Jeremy.
(This used to be commit a402b5070f72d7a6948cc9885228efae16f6617d)
1998-03-26 02:22:08 +00:00
Jeremy Allison
1edcbd31fc smbpass.c: Made unknown accounts ending in '$' server accounts, not
workstation.
smbpasswd.c: Added code to count down from last machine account
to add correct uid when adding a machine account.
Jeremy.
(This used to be commit 0601a41993d6ea4fb2a186b7ca55b2f3a6f6a53d)
1998-03-26 02:14:40 +00:00
Jeremy Allison
2dc1712d31 nameconf.c is a stray .c file that shouldn't be in the
distribution. It's a left over.
Jeremy.
(This used to be commit f6bf7baebe4dc0813627c4d34b36820dccae94b2)
1998-03-25 20:24:26 +00:00