tprouty/samba.git
26 years agoFixed some typecast and function pointer problems pointed out by a
Christopher R. Hertel [Tue, 14 Apr 1998 14:43:38 +0000 (14:43 +0000)]
Fixed some typecast and function pointer problems pointed out by a
programmer in Finland.

Chris -)-----

26 years agoModified interfaces to getting smb password entries from
Jeremy Allison [Tue, 14 Apr 1998 00:41:59 +0000 (00:41 +0000)]
Modified interfaces to getting smb password entries from
get_smbpwd_entry (now an internal function to smbpass.c)
to a more UNIX-like :

getsmbpwnam() - get entry by name.
getsmbpwuid() - get entry by uid.

Changed the type returned by the smbpasswd enumeration
functions to be a void * so that people don't come to
depend on it being a FILE *.

These abstractions should make it much easier to
replace the smbpasswd file with a better backend
in future.

Other files changed are to match the above changes.

Jeremy.

26 years agomake it look for only the proper lines to uncomment.
Herb Lewis [Mon, 13 Apr 1998 23:39:43 +0000 (23:39 +0000)]
make it look for only the proper lines to uncomment.

26 years agoFixed aggregate initializer problem for gcc.
Jeremy Allison [Mon, 13 Apr 1998 23:27:22 +0000 (23:27 +0000)]
Fixed aggregate initializer problem for gcc.
Jeremy.

26 years agoChanges include:
Christopher R. Hertel [Mon, 13 Apr 1998 22:45:52 +0000 (22:45 +0000)]
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 -)-----

26 years agoChanges to allow Samba to be compiled with -Wstrict-prototypes
Jeremy Allison [Mon, 13 Apr 1998 19:24:06 +0000 (19:24 +0000)]
Changes to allow Samba to be compiled with -Wstrict-prototypes
with gcc. (Not a big change although it looks like it :-).

Jeremy.

26 years agoContributed software for Linux autofs support.
John Terpstra [Mon, 13 Apr 1998 12:31:10 +0000 (12:31 +0000)]
Contributed software for Linux autofs support.

26 years agofixed a memory leak in close_file(). Each time a file was opened
Andrew Tridgell [Mon, 13 Apr 1998 11:12:44 +0000 (11:12 +0000)]
fixed a memory leak in close_file(). Each time a file was opened
we leaked memory equal to the length of the filename.

26 years agoAs it says.
John Terpstra [Mon, 13 Apr 1998 10:30:50 +0000 (10:30 +0000)]
As it says.

26 years agoAdded additional comments from Bruce Wood
John Terpstra [Sun, 12 Apr 1998 06:24:27 +0000 (06:24 +0000)]
Added additional comments from Bruce Wood

26 years agominor reformatting of debug messages (so people don't think there is a
Andrew Tridgell [Sun, 12 Apr 1998 02:54:31 +0000 (02:54 +0000)]
minor reformatting of debug messages (so people don't think there is a
. on the end of their host names)

26 years agosome hacks to the torture code
Andrew Tridgell [Sun, 12 Apr 1998 02:53:17 +0000 (02:53 +0000)]
some hacks to the torture code

26 years agosupport O_SYNC at open time in files (previously we only supported it
Andrew Tridgell [Sun, 12 Apr 1998 02:52:13 +0000 (02:52 +0000)]
support O_SYNC at open time in files (previously we only supported it
on individual writes)

26 years agoif the resolve order is blank then assume "host"
Andrew Tridgell [Sun, 12 Apr 1998 02:50:43 +0000 (02:50 +0000)]
if the resolve order is blank then assume "host"

26 years agosupport O_SYNC in opens for smbtorture
Andrew Tridgell [Sun, 12 Apr 1998 02:48:52 +0000 (02:48 +0000)]
support O_SYNC in opens for smbtorture

26 years agoCorrected the spelling of my Surname. Added several postscripts.
John Terpstra [Sat, 11 Apr 1998 15:15:29 +0000 (15:15 +0000)]
Corrected the spelling of my Surname. Added several postscripts.
Extended info on Win95 logins to Windows NT.

26 years agocreated from a really useful discussion about Win95 / NT profiles.
Luke Leighton [Sat, 11 Apr 1998 14:00:37 +0000 (14:00 +0000)]
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

26 years agoFix heaps of warnings when compiling with gcc under Digital UNIX. Include route.h
Richard Sharpe [Sat, 11 Apr 1998 13:02:11 +0000 (13:02 +0000)]
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.

26 years agoUpdated to include possible cause of failed TESTS 3/6 as bad broadcast address.
John Terpstra [Sat, 11 Apr 1998 11:09:12 +0000 (11:09 +0000)]
Updated to include possible cause of failed TESTS 3/6 as bad broadcast address.

26 years agoOops, fogot proto.h. It needs to be updated for changes to client.c
Richard Sharpe [Sat, 11 Apr 1998 08:14:53 +0000 (08:14 +0000)]
Oops, fogot proto.h. It needs to be updated for changes to client.c

26 years agosmbclient.1 updated to reflect the new functionality and to document functionality
Richard Sharpe [Sat, 11 Apr 1998 08:00:49 +0000 (08:00 +0000)]
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.

26 years agoChanges to client.c support the need for directories to be processed by whatever
Richard Sharpe [Sat, 11 Apr 1998 07:52:13 +0000 (07:52 +0000)]
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.

26 years agoincludes.h: Moved HPUX undefine of SEMMSL to where it actually does something.
Jeremy Allison [Fri, 10 Apr 1998 18:21:16 +0000 (18:21 +0000)]
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.

26 years agoFix for [homes] problem with security=share. We were still relying
Jeremy Allison [Fri, 10 Apr 1998 01:19:18 +0000 (01:19 +0000)]
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.

26 years agoMakefile, loadparm.c, server.c, smb.h, util.c: Patch from
Jeremy Allison [Thu, 9 Apr 1998 20:48:48 +0000 (20:48 +0000)]
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.

26 years agoI removed a static string that was in there because I planned to do
Christopher R. Hertel [Thu, 9 Apr 1998 20:36:14 +0000 (20:36 +0000)]
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 -)-----

26 years agoAdded const cast to struct args to get rid of compile time warning.
John Terpstra [Thu, 9 Apr 1998 14:13:20 +0000 (14:13 +0000)]
Added const cast to struct args to get rid of compile time warning.

26 years agoRemoved unneeded proto symbol.
Jeremy Allison [Thu, 9 Apr 1998 00:42:23 +0000 (00:42 +0000)]
Removed unneeded proto symbol.
Jeremy.

26 years agoMissed compile error when compiling with KANJI=true.
Jeremy Allison [Thu, 9 Apr 1998 00:30:38 +0000 (00:30 +0000)]
Missed compile error when compiling with KANJI=true.
Jeremy.

26 years agoAdded codepage 936 (simplified Chineses).
Jeremy Allison [Thu, 9 Apr 1998 00:07:17 +0000 (00:07 +0000)]
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.

26 years agoFix to stop Windows 95 spinning on print queue requests when it
Jeremy Allison [Wed, 8 Apr 1998 19:12:22 +0000 (19:12 +0000)]
Fix to stop Windows 95 spinning on print queue requests when it
gets an error message it doesn't understand.
Jeremy.

26 years agoAdded check for getpwnam returning NULL.
Jeremy Allison [Tue, 7 Apr 1998 17:44:02 +0000 (17:44 +0000)]
Added check for getpwnam returning NULL.
Jeremy.

26 years agowant all of data in show_msg at log levels > 50.
Luke Leighton [Tue, 7 Apr 1998 15:59:05 +0000 (15:59 +0000)]
want all of data in show_msg at log levels > 50.

26 years agoloadparm.c: Cause IPC$ comment to be evaluated at runtime, rather than
Jeremy Allison [Mon, 6 Apr 1998 18:14:56 +0000 (18:14 +0000)]
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.

26 years agoFix from Josef Hinteregger <joehtg@joehtg.co.at> for using
Jeremy Allison [Fri, 3 Apr 1998 01:04:34 +0000 (01:04 +0000)]
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.

26 years agoWe were missing a case switch in announcement processing - we
Jeremy Allison [Thu, 2 Apr 1998 19:12:11 +0000 (19:12 +0000)]
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.

26 years agoChanged code to check NT password *first* - if it exists.
Jeremy Allison [Thu, 2 Apr 1998 01:07:53 +0000 (01:07 +0000)]
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.

26 years agoPatch from Chris Maltby <chris@softway.com.au>. His comments follow:
Jeremy Allison [Thu, 2 Apr 1998 01:01:24 +0000 (01:01 +0000)]
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.

26 years agoUpdated Eastern European translation table from dan@feld.cvut.cz.
Jeremy Allison [Thu, 2 Apr 1998 00:45:43 +0000 (00:45 +0000)]
Updated Eastern European translation table from dan@feld.cvut.cz.
Jeremy.

26 years agocli_login.c :
Luke Leighton [Wed, 1 Apr 1998 21:31:06 +0000 (21:31 +0000)]
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 :-)

26 years agoRolling back machine password change code - this doesn't work (yet).
Jeremy Allison [Wed, 1 Apr 1998 19:12:35 +0000 (19:12 +0000)]
Rolling back machine password change code - this doesn't work (yet).
Jeremy.

26 years agoincludes.h: Added semaphore fix for HPUX10.x
Jeremy Allison [Tue, 31 Mar 1998 20:55:14 +0000 (20:55 +0000)]
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.

26 years agothe default for old style accounts should be workstation trust
Andrew Tridgell [Tue, 31 Mar 1998 01:39:46 +0000 (01:39 +0000)]
the default for old style accounts should be workstation trust
account, not server trust account.

26 years agoFixed compile-time error introduced by log message change.
Jeremy Allison [Mon, 30 Mar 1998 22:45:10 +0000 (22:45 +0000)]
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.

26 years agoAdded extra remote password changing error codes from lmerr.h on NT.
Jeremy Allison [Mon, 30 Mar 1998 20:12:12 +0000 (20:12 +0000)]
Added extra remote password changing error codes from lmerr.h on NT.
Jeremy.

26 years agoAdded remote machine and address to debug message in make_connection() function.
John Terpstra [Sun, 29 Mar 1998 05:34:03 +0000 (05:34 +0000)]
Added remote machine and address to debug message in make_connection() function.
contributor: <ado@flower.nci.nih.gov>

26 years agochgpasswd.c, ipc.c, loadparm.c: Added boolean "unix password sync"
Jeremy Allison [Fri, 27 Mar 1998 19:59:14 +0000 (19:59 +0000)]
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.

26 years agoFix for client generated core-dump bug where offset to readraw
Jeremy Allison [Fri, 27 Mar 1998 02:39:26 +0000 (02:39 +0000)]
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.

26 years agoclient.c: Fixed problem where debug level on command line was overridden by smb.conf.
Jeremy Allison [Thu, 26 Mar 1998 19:11:31 +0000 (19:11 +0000)]
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.

26 years agoAdded the ability to differentiate between workstation and server
Jeremy Allison [Thu, 26 Mar 1998 02:22:08 +0000 (02:22 +0000)]
Added the ability to differentiate between workstation and server
accounts when adding machine account types.
Jeremy.

26 years agosmbpass.c: Made unknown accounts ending in '$' server accounts, not
Jeremy Allison [Thu, 26 Mar 1998 02:14:40 +0000 (02:14 +0000)]
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.

26 years agonameconf.c is a stray .c file that shouldn't be in the
Jeremy Allison [Wed, 25 Mar 1998 20:24:26 +0000 (20:24 +0000)]
nameconf.c is a stray .c file that shouldn't be in the
distribution. It's a left over.
Jeremy.

26 years agoFix for is_in_path from "Steven Hartland" <steven_hartland@pa.press.net> -
Jeremy Allison [Wed, 25 Mar 1998 20:10:58 +0000 (20:10 +0000)]
Fix for is_in_path from "Steven Hartland" <steven_hartland@pa.press.net> -
hide files was not working.
Jeremy.

26 years agono longer make smbpasswd setuid root
Herb Lewis [Wed, 25 Mar 1998 17:53:00 +0000 (17:53 +0000)]
no longer make smbpasswd setuid root

26 years agoJust fiddled with the README.UBI file.
Christopher R. Hertel [Wed, 25 Mar 1998 15:10:28 +0000 (15:10 +0000)]
Just fiddled with the README.UBI file.

26 years agoRFC1002 says we must put compressed name pointers in the following
Jeremy Allison [Wed, 25 Mar 1998 01:27:27 +0000 (01:27 +0000)]
RFC1002 says we must put compressed name pointers in the following
outgoing packets :

NMB_NAME_REG_OPCODE, NMB_NAME_RELEASE_OPCODE, NMB_NAME_REFRESH_OPCODE,
NMB_NAME_MULTIHOMED_REG_OPCODE.

A WINS server written by Shadow Software was rejecting our packets
as we weren't using name pointers in those requests (talk about
picky :-).

Jeremy.

26 years agoadded check for one more error case
Herb Lewis [Wed, 25 Mar 1998 00:20:52 +0000 (00:20 +0000)]
added check for one more error case

26 years agoAdded writing of '[XXX]' account control bits into gcos
Jeremy Allison [Tue, 24 Mar 1998 21:44:49 +0000 (21:44 +0000)]
Added writing of '[XXX]' account control bits into gcos
field when adding a user via smbpasswd.
Jeremy.

26 years agoUpdated smbpasswd to allow root to add machine accounts, and allow
Jeremy Allison [Tue, 24 Mar 1998 21:04:36 +0000 (21:04 +0000)]
Updated smbpasswd to allow root to add machine accounts, and allow
root to disable users and set them to "NO PASSWORD".
Not quite finished with machine account stuff yet, but everything
compiles.
Jeremy.

26 years agoFixed 'unused variable' warnings found with gcc -Wall -Werror.
Jeremy Allison [Tue, 24 Mar 1998 19:56:24 +0000 (19:56 +0000)]
Fixed 'unused variable' warnings found with gcc -Wall -Werror.
Jeremy.

26 years agoypserver not available: AUTOMOUNT server and path don't work.
Samba Release Account [Tue, 24 Mar 1998 19:21:27 +0000 (19:21 +0000)]
ypserver not available: AUTOMOUNT server and path don't work.
fix: set default values to local server / path _before_ attempting to
find the ypserver's auto.home entry.

26 years agoclientgen.c ipc.c smbpasswd.c: Fixes for warnings (from Herb).
Jeremy Allison [Tue, 24 Mar 1998 00:37:53 +0000 (00:37 +0000)]
clientgen.c ipc.c smbpasswd.c: Fixes for warnings (from Herb).
quotas.c: Linux quota fix.
util.c: Ensure smb_read_error is zero in all calls that can set it.
lib/rpc/include/rpc_misc.h lib/rpc/include/rpc_netlogon.h
lib/rpc/parse/parse_misc.c lib/rpc/parse/parse_net.c
lib/rpc/server/srv_netlog.c : Modify Luke's code to call
SamOEMhash().

Jeremy.

26 years agoUpdating note thanks to comments from Franky Liederkerke.
John Terpstra [Mon, 23 Mar 1998 22:23:01 +0000 (22:23 +0000)]
Updating note thanks to comments from Franky Liederkerke.

26 years agoa pointless commit to check on a problem Luke reported with CVS
Andrew Tridgell [Mon, 23 Mar 1998 01:17:51 +0000 (01:17 +0000)]
a pointless commit to check on a problem Luke reported with CVS

26 years ago- added a check for broken RH5 include files. With the standard RH5
Andrew Tridgell [Sun, 22 Mar 1998 01:31:50 +0000 (01:31 +0000)]
- added a check for broken RH5 include files. With the standard RH5
includes (ie. unpatched RH5) Samba gets file corruption because of the
incorrect definition of the shmid_ds structure. Updating your RH5
installation of glibc-devel fixes this.

- don't try to fcntl_lock() a read-only fd in shmem.c

- allow level 0 debug messages to get through in smbstatus

26 years agoGetting ready for first Red Hat Linux RPMs for 1.9.19 pre-alpha release
John Terpstra [Sat, 21 Mar 1998 03:03:59 +0000 (03:03 +0000)]
Getting ready for first Red Hat Linux RPMs for 1.9.19 pre-alpha release

26 years agoadded comments about printcap name
Herb Lewis [Fri, 20 Mar 1998 16:07:08 +0000 (16:07 +0000)]
added comments about printcap name

26 years agoAdded MAXPRINTERLEN define in smb.h setting printer share name length to maximumof...
John Terpstra [Fri, 20 Mar 1998 13:37:46 +0000 (13:37 +0000)]
Added MAXPRINTERLEN define in smb.h setting printer share name length to maximumof 15 characters. IF this needs to be limited to 8 characters again please do
it in smb.h.

26 years agoFinally made OS/2 WP fix the default.
Jeremy Allison [Thu, 19 Mar 1998 21:44:30 +0000 (21:44 +0000)]
Finally made OS/2 WP fix the default.
Jeremy.

26 years agoAdding the same changes to HEAD as were added to BRANCH_1_9_18.
Jeremy Allison [Thu, 19 Mar 1998 20:06:47 +0000 (20:06 +0000)]
Adding the same changes to HEAD as were added to BRANCH_1_9_18.

Changed smbpasswd to be client-server for a normal user, rather
than accessing the private/smbpasswd file directly (it still accesses
this file directly when run as root, so root can add users/change a
users password without knowing the old password).

A shakeout of this change is that smbpasswd can now be used to
change a users password on a remote NT machine (yep - you heard
that one right - we can now change a NT password from UNIX !!!!!).

Jeremy.

26 years agoAdded SamOEMChangePassword functionality.
Jeremy Allison [Wed, 18 Mar 1998 19:07:53 +0000 (19:07 +0000)]
Added SamOEMChangePassword functionality.
Jeremy.

26 years agodon't set the Expires header on any page generated from a POST. This
Andrew Tridgell [Wed, 18 Mar 1998 07:51:57 +0000 (07:51 +0000)]
don't set the Expires header on any page generated from a POST. This
stops the "POST data has expired" problem when using the back button
in netscape.

26 years agomoved the refresh script to the end of the page so that silly things
Andrew Tridgell [Wed, 18 Mar 1998 07:44:27 +0000 (07:44 +0000)]
moved the refresh script to the end of the page so that silly things
like a refresh of 0 actually work.

26 years agochanged the method used for auto-reload on the status page to use
Andrew Tridgell [Wed, 18 Mar 1998 07:33:11 +0000 (07:33 +0000)]
changed the method used for auto-reload on the status page to use
JavaScript. This avoids the nasty inetd problem.

26 years agooops, I got the sense of the show_defaults parameter to lp_dump()
Andrew Tridgell [Tue, 17 Mar 1998 14:46:17 +0000 (14:46 +0000)]
oops, I got the sense of the show_defaults parameter to lp_dump()
wrong.

26 years agowhen CGI_LOGGING is on log the host name and IP
Andrew Tridgell [Tue, 17 Mar 1998 12:37:06 +0000 (12:37 +0000)]
when CGI_LOGGING is on log the host name and IP

this is just so I can snoop on who is looking at the demo :-)

26 years agothis isn't a big commit, it just looks like it :-)
Andrew Tridgell [Tue, 17 Mar 1998 12:31:43 +0000 (12:31 +0000)]
this isn't a big commit, it just looks like it :-)

I needed the client_name() and client_addr() functions in swat so I
could tell who was connecting from where. The problem was that these
functions didn't take a file descriptor parameter they just used
the global "Client".

So I needed to change all calls to pass a parameter ... lots of files.

26 years ago- added "Full View"/"Normal View" on the "view config" page
Andrew Tridgell [Tue, 17 Mar 1998 11:44:16 +0000 (11:44 +0000)]
- added "Full View"/"Normal View" on the "view config" page

- added the ability to auto-refresh the status page. There is a
  problem with this (it can kill inetd!). Hopefully we can fix that.

26 years agofix typos
Herb Lewis [Tue, 17 Mar 1998 01:09:14 +0000 (01:09 +0000)]
fix typos

26 years agoFixes for the static data bugs & incorrect use of strtok
Jeremy Allison [Tue, 17 Mar 1998 00:57:46 +0000 (00:57 +0000)]
Fixes for the static data bugs & incorrect use of strtok
that Andrew pointed out.
Jeremy.

26 years agoshow full path in ps by setting it in argv[0]
Andrew Tridgell [Tue, 17 Mar 1998 00:32:34 +0000 (00:32 +0000)]
show full path in ps by setting it in argv[0]

26 years agofixed call to execl() to get argv[0] right (thanks to Herb)
Andrew Tridgell [Tue, 17 Mar 1998 00:04:18 +0000 (00:04 +0000)]
fixed call to execl() to get argv[0] right (thanks to Herb)

26 years agochanged the default MAXSTATUS from 1000 to 100000
Andrew Tridgell [Tue, 17 Mar 1998 00:02:19 +0000 (00:02 +0000)]
changed the default MAXSTATUS from 1000 to 100000

This number limits the number of simultaneous connections to the
server. The 1000 limit is from a looong time ago when I couldn't
imagine anyone wanting to have 1000 simultaneous clients. Now I hear
that people are testing with such numbers.

I wonder when I'll change it from 100k ?

26 years agoadd swat to build package
Herb Lewis [Mon, 16 Mar 1998 23:11:48 +0000 (23:11 +0000)]
add swat to build package
fix minor bug in findsmb

26 years agoAdding the same change as was added to 1.9.18 branch to add the
Jeremy Allison [Mon, 16 Mar 1998 20:59:47 +0000 (20:59 +0000)]
Adding the same change as was added to 1.9.18 branch to add the
"name resolve order" parameter.

source/Makefile: Re-ordered link for name resolve order code.
source/clientgen.c:
source/clientutil.c: Added calls to resolve_name().
source/includes.h: Added HPUX zombie fix.
source/loadparm.c: Added new name resolve order parameter.
source/namequery.c: Re-wrote to include parsing of lmhosts file, new resolve_name()
                    function requested by John.
source/nmbd.c: Tell resolve_name not to do WINS lookups if we are the WINS server.
source/nmbd_lmhosts.c: Call lmhosts parsing functions in namequery.c
source/password.c: Call resolve_name() to lookup security=server name.

source/reply.c:
source/time.c:
source/trans2.c: "fake directory create times" fix from Jim Hague - hague@research.canon.com.au.
source/util.c: Removed isalnum() test in Get_Hostname() that seems to cause
               problems on many systems.

Jeremy.

26 years agoLint was complaining about the following typedef in smb.h:
Christopher R. Hertel [Mon, 16 Mar 1998 20:07:22 +0000 (20:07 +0000)]
Lint was complaining about the following typedef in smb.h:

typedef enum
{
  P_LOCAL,P_GLOBAL,P_SEPARATOR,P_NONE,
} parm_class;

I removed the trailing comma.  Chris -)-----

26 years agoAdding mention of %p substitution.
Jeremy Allison [Mon, 16 Mar 1998 18:43:34 +0000 (18:43 +0000)]
Adding mention of %p substitution.
Jeremy.

26 years agoincludes.h: Addition of NetBSD 1.3 fix, fix for HPUX 9.x, 10.x zombie
Jeremy Allison [Mon, 16 Mar 1998 18:31:09 +0000 (18:31 +0000)]
includes.h: Addition of NetBSD 1.3 fix, fix for HPUX 9.x, 10.x zombie
problem.
password.c: Fix for Thursby to stop Dave clients failing in share
mode security (this was their bug - they were interpreting the uid
field in share mode which is explicitly denied by the spec but
it's easier for us to fix it than them :-).

Jeremy.

26 years agochanged the default "keepalive" value to 300 seconds.
Andrew Tridgell [Mon, 16 Mar 1998 07:23:51 +0000 (07:23 +0000)]
changed the default "keepalive" value to 300 seconds.

This is more important now that oplocks are being used.

26 years agochanged the date formatting
Andrew Tridgell [Sun, 15 Mar 1998 06:43:15 +0000 (06:43 +0000)]
changed the date formatting

26 years agoupdated the images
Andrew Tridgell [Sun, 15 Mar 1998 03:46:13 +0000 (03:46 +0000)]
updated the images

26 years ago- claim the null connection after the session request to mak sure we
Andrew Tridgell [Sun, 15 Mar 1998 03:06:50 +0000 (03:06 +0000)]
- claim the null connection after the session request to mak sure we
  have the netbios name

- fix another kill connection bug

26 years agosafer killing of connections - it ensures the process is still a valid
Andrew Tridgell [Sun, 15 Mar 1998 02:47:22 +0000 (02:47 +0000)]
safer killing of connections - it ensures the process is still a valid
smbd when killing

26 years ago- added the ability to kill off individual connections from SWAT (from
Andrew Tridgell [Sun, 15 Mar 1998 02:37:52 +0000 (02:37 +0000)]
- added the ability to kill off individual connections from SWAT (from
  the status page)
- split the claim_connection() code into its own file
- fixed the claim_connection() code to lock the file when manipulating
  it
- always claim a null connection at startup
- fixed a bug in the pidfile code

26 years agoinstall jpeg files
Andrew Tridgell [Sun, 15 Mar 1998 00:03:38 +0000 (00:03 +0000)]
install jpeg files

26 years agoa smaller background
Andrew Tridgell [Sun, 15 Mar 1998 00:01:34 +0000 (00:01 +0000)]
a smaller background

26 years agoadded a background image based on Pauls SAMBA logo but manipulated a
Andrew Tridgell [Sat, 14 Mar 1998 23:55:27 +0000 (23:55 +0000)]
added a background image based on Pauls SAMBA logo but manipulated a
little with GIMP

26 years agoupdated blurb some more
Andrew Tridgell [Sat, 14 Mar 1998 13:37:47 +0000 (13:37 +0000)]
updated blurb some more

26 years agoupdated blurb
Andrew Tridgell [Sat, 14 Mar 1998 13:16:01 +0000 (13:16 +0000)]
updated blurb

26 years agoput in the longer welcome blurb
Andrew Tridgell [Sat, 14 Mar 1998 13:11:57 +0000 (13:11 +0000)]
put in the longer welcome blurb