samba.git
26 years agoAdded SuSE packaging files.
Volker Lendecke [Mon, 27 Apr 1998 09:11:28 +0000 (09:11 +0000)]
Added SuSE packaging files.

Volker
(This used to be commit 201330a729db1a45a069ecb5188059a0a84cea52)

26 years agoThis looks like a big change but really isn't.
Jeremy Allison [Sat, 25 Apr 1998 01:12:08 +0000 (01:12 +0000)]
This looks like a big change but really isn't.
It is changing the global variables "myname" and "myworkgroup"
to "global_myname" and "global_myworkgroup" respectively.

This is to make it very explicit when we are messing
with a global (don't ask - it makes the domain client
code much clearer :-).

Jeremy.
(This used to be commit 866406bfe399cf757c8275093dacd5ce4843afa0)

26 years agoABOUT time. dce/rpc long packet format now works, server-side.
Luke Leighton [Fri, 24 Apr 1998 21:01:08 +0000 (21:01 +0000)]
ABOUT time.  dce/rpc long packet format now works, server-side.
turns out that [it can be deduced that] microsoft ignores the SMBreadX
offset, and goes by the SMBreadX length only.  this makes for a lot simpler
code, in both client and server.
(This used to be commit a8b641c027c8cce179455ac1f6fd0322a8ab017d)

26 years agocli_pipe.c: Corrected cli_api_pipe() calls.
Jeremy Allison [Fri, 24 Apr 1998 00:34:21 +0000 (00:34 +0000)]
cli_pipe.c: Corrected cli_api_pipe() calls.
Jeremy.
(This used to be commit 2571ba0213c0630a96657fd6591e19adce1d9304)

26 years agoMakefile: Added nterr.c into the mix.
Jeremy Allison [Thu, 23 Apr 1998 22:59:19 +0000 (22:59 +0000)]
Makefile: Added nterr.c into the mix.
clientgen.c: Added nt_error as an entry in the struct client_state.
password.c: Open the netlogon pipe.
smb.h: Added nt_error as an entry in the struct client_state.
lib/rpc/parse/parse_net.c: Added comments on net logon.
lib/rpc/server/srv_netlog.c: Added comments on net logon.
Jeremy.
(This used to be commit 899a9f0dce50c73e03c8da2ebe920957491c8ad7)

26 years agoThese don't compile yet - but they are the core code in what
Jeremy Allison [Thu, 23 Apr 1998 22:45:53 +0000 (22:45 +0000)]
These don't compile yet - but they are the core code in what
will be DOMAIN_CLIENT called code.
Jeremy.
(This used to be commit ad81735fa1ce02937f6aae3d6518c1cd6156b090)

26 years agoWe will need this new nterr.c for the DOMAIN_CLIENT code.
Jeremy Allison [Thu, 23 Apr 1998 22:08:39 +0000 (22:08 +0000)]
We will need this new nterr.c for the DOMAIN_CLIENT code.
Jeremy.
(This used to be commit 932b22cd495b9ce1ba03e5b91a50b314167255d7)

26 years agoclientgen.c: Added rap error codes to cli_error, moved from smbpasswd.c
Jeremy Allison [Thu, 23 Apr 1998 20:12:17 +0000 (20:12 +0000)]
clientgen.c: Added rap error codes to cli_error, moved from smbpasswd.c
password.c: Changed global cli -> pw_cli, removed strtok (bad strtok, bad :-)
use in security=server, started to extend security=domain code.
smbpasswd.c: Removed rap error code functions.
Jeremy.
(This used to be commit 0f00b8fce1a5cad7f8c212568fa33f09986e5bd6)

26 years agogenrand.c: Changed SMB_PASSWD_FILE to lp_smb_passwd_file().
Jeremy Allison [Thu, 23 Apr 1998 18:54:57 +0000 (18:54 +0000)]
genrand.c: Changed SMB_PASSWD_FILE to lp_smb_passwd_file().
password.c: Started the initial code for domain_client_validate(). All
            bracketed with #ifdef DOMAIN_CLIENT for now.
reply.c: Call to domain_client_validate(). All
            bracketed with #ifdef DOMAIN_CLIENT for now.
smbpass.c: New code to get/set machine passwords. Tidied up nesting
           of lock calls.
Jeremy.
(This used to be commit 89fe059a6816f32d2cc5c4c04c4089b60590e7e6)

26 years agoFixed bug found by Gerald Carter <cartegw@Eng.Auburn.EDU> where
Jeremy Allison [Wed, 22 Apr 1998 17:59:44 +0000 (17:59 +0000)]
Fixed bug found by Gerald Carter <cartegw@Eng.Auburn.EDU> where
global myname was being overwritten incorrectly.
Jeremy.
(This used to be commit a3e7cf1b8a2fc950d41f5f2d5318cf88874165cd)

26 years agogenrand.c: Improved generation of random values, more secure.
Jeremy Allison [Wed, 22 Apr 1998 00:56:38 +0000 (00:56 +0000)]
genrand.c: Improved generation of random values, more secure.
loadparm.c: Started add of 'security=domain' code.
password.c: Fix for security=server NT bugs.
reply.c: Started add of 'security=domain' code.
server.c: Started add of 'security=domain' code.
smb.h: Started add of 'security=domain' code.
Jeremy.
(This used to be commit e6bda112ebe0d41f54c4249b5c2e1f24011347e1)

26 years agomany systems don't have /etc/shadow but do have another system for
Andrew Tridgell [Tue, 21 Apr 1998 07:26:15 +0000 (07:26 +0000)]
many systems don't have /etc/shadow but do have another system for
making encrypted passwords secret. For example, with secure NIS+ only
root can get the encrypted password.

hash in the encrypted password of "root" to provide a nice source of
secret on such systems. On systems that don't have this (ie. any user
can get roots encrypted password) then the security is so slack that
it probably doesn't matter what we do to generate the secret.
(This used to be commit 3271e4c29fdc15a1ae61dec94517e484c2457411)

26 years agoimproved the secret buffer generation a bit. It now uses /etc/shadow
Andrew Tridgell [Tue, 21 Apr 1998 07:17:35 +0000 (07:17 +0000)]
improved the secret buffer generation a bit. It now uses /etc/shadow
and smbpasswd if possible, and doesn't put it all through a 32 bit
bottleneck.
(This used to be commit 356ec24840da98f9e0b49b8eecb56aeec5ed848e)

26 years agoput server-side long dce/rpc code in main branch.
Luke Leighton [Tue, 21 Apr 1998 02:36:37 +0000 (02:36 +0000)]
put server-side long dce/rpc code in main branch.
(This used to be commit 2e1a08b28c1c0c9ea988a09067cd149926f25c69)

26 years agoAdded cli_ulogoff() calls to all the exit code paths in security=server.
Jeremy Allison [Tue, 21 Apr 1998 02:27:12 +0000 (02:27 +0000)]
Added cli_ulogoff() calls to all the exit code paths in security=server.
Jeremy.
(This used to be commit 78d87a5bfdfc6d3f4428591d30294fe7d05d0f91)

26 years agoclientgen.c: Added cli_ulogoff() call.
Jeremy Allison [Tue, 21 Apr 1998 02:23:24 +0000 (02:23 +0000)]
clientgen.c: Added cli_ulogoff() call.
password.c: Added call to cli_ulogoff on successfull sessionsetup.
Jeremy.
(This used to be commit 77882f002b2a8203aad419e485fc885303d999a0)

26 years agogenrand.c: Improved filename based random seed generation.
Jeremy Allison [Mon, 20 Apr 1998 23:57:29 +0000 (23:57 +0000)]
genrand.c: Improved filename based random seed generation.
lib/rpc/server/srv_netlog.c: Changed to use generate_random_buffer().
Jeremy.
(This used to be commit 093d060a06d75c6ee5b1329d524334f4db97cba6)

26 years agoAdded 'passwd chat debug' parameter to allow admins to debug their
Jeremy Allison [Mon, 20 Apr 1998 23:07:28 +0000 (23:07 +0000)]
Added 'passwd chat debug' parameter to allow admins to debug their
Samba passwd chat scripts.
Jeremy.
(This used to be commit 5a995f4f75ffb0d55d6ceaa63a1209d230001991)

26 years agoMakefile: Added genrand.o
Jeremy Allison [Mon, 20 Apr 1998 22:43:54 +0000 (22:43 +0000)]
Makefile: Added genrand.o
clientgen.c: Changed to fill change password buffer with random stuff.
password.c: Changed to get challenge from genrand.c
server.c: Added #ifdef around O_SYNC.
version.h: Changed to 1.9.19prealpha.
genrand.c:

   New code to generate (hopefully) good random numbers for
use in crypto challenges/session keys etc.

PLEASE REVIEW THIS CODE AND SUGGEST IMPROVEMENTS !!!!!!

Jeremy.
(This used to be commit 608e98546392fd0aac9b33f4feac43615dbb4405)

26 years agoFixed bug that John found in WINS server code. When nmbd as a WINS
Jeremy Allison [Mon, 20 Apr 1998 20:32:50 +0000 (20:32 +0000)]
Fixed bug that John found in WINS server code. When nmbd as a WINS
server is sending out a name_query after a WACK, it needs to send
a packet with recursion_desired = 0 (yes Luke, you were right all
along :-). If it doesn't then if it's talking to itself then the
query packet ends up back in the WINS server instead of in the client
side code.
Makefile: Changed proto generation to stop including NMBDOBJ twice.
nmbd_namequery.c nmbd_packets.c nmbd_winsserver.c: Added extra
query_name_from_wins_server() code.

Jeremy.
(This used to be commit c5ca05c29546053a771f4ea3ef850efb3be970ea)

26 years agoincludes.h: Added John's redhat fix for QSORT_CAST.
Jeremy Allison [Sat, 18 Apr 1998 02:00:39 +0000 (02:00 +0000)]
includes.h: Added John's redhat fix for QSORT_CAST.
smbpass.c: Added lock depth code so calls to pw_file_lock() can be nested.
           Fixed codedump problems in add_smbpwd_entry().
smbpasswd.c: Removed all the code that manipulated the password file
             directly. Now *all* smbpasswd file changes are done through
             the interfaces defined in smbpass.c This should make
             the life of people adding alternate backend databases
             *much* easier.
lib/rpc/server/srv_netlog.c: Removed debug messages used to debug
                             machine password changing.
Jeremy.
(This used to be commit c9f61be08f3691a6421734d8b026a295d9cbd6ba)

26 years agoclientgen.c: Changes 'cli_xxx_' calls to use the following
Jeremy Allison [Fri, 17 Apr 1998 22:44:01 +0000 (22:44 +0000)]
clientgen.c: Changes 'cli_xxx_' calls to use the following
regularized parameter syntax:

   setup, setup_count, max_setup_count,
   params, params_count, max_params_count,
   data, data_count, max_data_count,

(and if a reply is needed)

   *reply_params, *reply_data_len
   *reply_data, *reply_data_len

This allows the pointers and the lengths
that relate to these pointers to be next
to each other in the parameter list. This
makes seeing what you are passing to these
functions much easier to see.

Getting ready for adding the lib/rpc/client
functions needed to do security=domain.

torture.c: Fixed it so it uses / rather than \\
internally for the //machine/share syntax.

Jeremy.
(This used to be commit 38350ea8b949d0908497490898ff04df7591ccac)

26 years agoChanging of machine passwords now works !!!!!!
Jeremy Allison [Fri, 17 Apr 1998 19:29:51 +0000 (19:29 +0000)]
Changing of machine passwords now works !!!!!!
smbdes.c: Added cred_hash3.
smbpasswd.c: Fixes for adding a machine account (needs more work).
lib/rpc/server/srv_netlog.c: Turn on the machine password changing
code by default (calls cred_hash3).
Jeremy.
(This used to be commit 50aa513b969c6e41911aeee8207b065f93af0beb)

26 years agoJust changed the date.
Christopher R. Hertel [Fri, 17 Apr 1998 15:22:33 +0000 (15:22 +0000)]
Just changed the date.
(This used to be commit f430e4b0fa949d3010210fb9ab894b082388d032)

26 years agoreply.c: Fix bugs where debug statements were accessing the fd_ptr struct
Jeremy Allison [Thu, 16 Apr 1998 19:23:10 +0000 (19:23 +0000)]
reply.c: Fix bugs where debug statements were accessing the fd_ptr struct
internals after Andrews' code had memset it to zero (this was causing core
dumps).
charcnv.c: Fixes for ISO8859-2 from Petr Hubeny <psh@capitol.cz>.
Jeremy.
(This used to be commit df8783ca76d543d200c743f515a185cfea2880df)

26 years agoMinor change to the wording. It used to say "files with the prefix 'ubi_'"
Christopher R. Hertel [Thu, 16 Apr 1998 15:48:07 +0000 (15:48 +0000)]
Minor change to the wording.  It used to say "files with the prefix 'ubi_'"
or some such.  Some future files won't have the ubi_ prefix.  -)----- Chris
(This used to be commit 955a9f9199b468b72c4b828fed5b2903d0a5273a)

26 years agoipc.c: Fix for printer queue spinning with Win95.
Jeremy Allison [Wed, 15 Apr 1998 20:00:41 +0000 (20:00 +0000)]
ipc.c: Fix for printer queue spinning with Win95.
nmbd.c: Fix for always overwriting log despite append setting.
smb.h: Addition of last time password changed entry to account info.
smbpass.c: Changes to support last time changed field in smbpasswd file.
smbpasswd.c: Changes to support last time changed field in smbpasswd file.
util.c: Fix for always overwriting log despite append setting.
Jeremy.
(This used to be commit eb4fe9ecdf539209efab07dc992447ea7370cf93)

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 -)-----
(This used to be commit 7ba2195cc1914fbdfdd30eff207ea55ffc3aeb02)

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.
(This used to be commit 1161cfb7f2b0d5a6d3e2b524a14a6f325ce70efb)

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.
(This used to be commit c963ec8cc4bd311023ca4ad00ded4502989b7faa)

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.
(This used to be commit e74428e4287cbc1557cc79d4930371cfaf3256d4)

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 -)-----
(This used to be commit 8759bec11ba483b2292b0e513b85c98ed5e3e2d4)

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.
(This used to be commit cd2613c57261456485fe4eeecfda209ada70de8e)

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.
(This used to be commit 883be3907778ee160872b0a0a023fc34e636774f)

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.
(This used to be commit 30a347de74f7f8e2646b1853a9e5914320cee58d)

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

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
(This used to be commit cd1e7eb8b13ed84dce740de92ef8620280430476)

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)
(This used to be commit dd3fe9fb471a803747957a898693a5890d71e176)

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
(This used to be commit 02786747ee6774f617d95b08a5c5912bf86e7586)

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)
(This used to be commit ce017a233ba5c68e340e0d31634f9bd93118b20a)

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"
(This used to be commit d361a06fa14b899cf1bd697a9524b5a32f7bf204)

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
(This used to be commit 000b871839e12065fc514f857ba205590a95b040)

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.
(This used to be commit 237f80b128def6d9ec903cfebe12eec82913964f)

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
(This used to be commit 2d7d013e0ca8fc2e97eb8299e3d847c57c40ed1c)

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.
(This used to be commit 241fde3c713c91961b6bcb97ecb046ac2f3bb00b)

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.
(This used to be commit 031f5b183e57b26a3401440cc3d8156c9771da2e)

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
(This used to be commit c95097501a621a87c51d59407cce754be055558a)

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.
(This used to be commit 587624e1ebc668900600c0ac7f272e6f1b92685b)

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.
(This used to be commit 0c228f0b33950c8d38de0529e88a38848742a50d)

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.
(This used to be commit 52e3966fbcf7b5fbdbc7cbe9ac0b453ab5bf3217)

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.
(This used to be commit 5d6f63a7e665ee19bd4508b2b40d497e9851b248)

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.
(This used to be commit fc2295e0f5729585fdb3ee47edb290851d4071c5)

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 -)-----
(This used to be commit 46445421c5cbfb9597eccd2c9d222528e14ed768)

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.
(This used to be commit 5d956abb4f4ed22671dfb1c7cb51489ab280463f)

26 years agoRemoved unneeded proto symbol.
Jeremy Allison [Thu, 9 Apr 1998 00:42:23 +0000 (00:42 +0000)]
Removed unneeded proto symbol.
Jeremy.
(This used to be commit 6ed3de711858fde6fa8085e9439aae3bbf6ecda1)

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.
(This used to be commit c92bd807429627f18b54acc14a8a323a547bd01a)

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.
(This used to be commit b6c965c396eb3d4f0e6dfd863e70b28390c59f66)

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.
(This used to be commit 838e2fe2f76b20f34309c2322e3bd60817fef1fd)

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.
(This used to be commit 81cbfaacb11747830354f4a58be441015fe19ba8)

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.
(This used to be commit 2245f4908ee3d33fd05f0a19abda89053cbfceb9)

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.
(This used to be commit cf15b3bd74a262e7af3d739a83ef7b43df4935e5)

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.
(This used to be commit e6a083451f8785fa1c00314a958007fe96fcc039)

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.
(This used to be commit 0f4914b870b0dfa876ac47d29f3a1b3736a3d698)

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.
(This used to be commit c1367bf5336485ceafd7125f608dc923ecebd32d)

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.
(This used to be commit f9dacd1d8b89fccad859c0c6bc7a492823eb4b06)

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.
(This used to be commit 84d858782eca2077cd0ce089b156938fa122cf93)

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 :-)
(This used to be commit 2c29a7d9cf2d8b35e4b6e37e5d24caa91af3a9be)

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.
(This used to be commit 66affb3dc301d71565d789c06f105da3bb1d65b3)

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.
(This used to be commit 3b56fbc11e9d1cb7d4930d9782238c2610cac30d)

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.
(This used to be commit f2d1e39a66155497880dc0b26200a85adfe7af68)

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.
(This used to be commit 188fb28d7be5d466c86a7464f951d08941d0021f)

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.
(This used to be commit 38391b51cd9e1e9fc7e4b77335ed2c7f6befc8c6)

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>
(This used to be commit 7775b0f2aa43ee58f1a4f13004451235cfa157ef)

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.
(This used to be commit 4ac50c0f0aa5af084ddad89b1f9baf6c2c1ddcb8)

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.
(This used to be commit c9e066037ab222472085c4a0ecc8a39b337ad2aa)

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.
(This used to be commit 6a3394a285a250d1029cdd545dd0bf832284555a)

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.
(This used to be commit a402b5070f72d7a6948cc9885228efae16f6617d)

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.
(This used to be commit 0601a41993d6ea4fb2a186b7ca55b2f3a6f6a53d)

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.
(This used to be commit f6bf7baebe4dc0813627c4d34b36820dccae94b2)

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.
(This used to be commit 8d686f3b6b9008aad8c80bf2b1781a9c3359cc3f)

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
(This used to be commit b14551d316c0d41daeaecbae3e30993e9fc1cca6)

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.
(This used to be commit abcc9705af3738bcba7dd23250703e5e8fd375d8)

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.
(This used to be commit a31aa09173db30c39f59d4ee5761075b0e00dd71)

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
(This used to be commit 6cba6919ebf65691d2fb6a880da038a6dff9f6b1)

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.
(This used to be commit 607c64fadbf8c33459444466630f676800cba5ee)

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.
(This used to be commit c66966ff00b0968f765e62b679279b7417988df9)

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.
(This used to be commit 6eca266fe5a3368ab207bdf8729421b57f47f22e)

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.
(This used to be commit 051ec104feaa48b9d147cc5479857c10915bdd26)

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.
(This used to be commit 7f749708383b8b36c3f23a5fbc5cbdf39bc8e555)

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.
(This used to be commit 94d5b33559af82776b710083fc30040160bc7ebe)

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
(This used to be commit a947d9ceba9a00dc71e9cd7f8103e3559a931427)

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
(This used to be commit 45553771f90087a12db0153524146d42155d1d3f)

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
(This used to be commit 4e424d0ba652bf9c5dfd3c44216b6145538cf821)

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
(This used to be commit b916d225afd8137a04d48f376b549f1ae57d767e)

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.
(This used to be commit 3dfe0b135dd91864a81a5fadddc9151ac8812c6e)

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.
(This used to be commit 7cc7a65dec917071d5df04b711acaf8824f13dd6)

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.
(This used to be commit 20770b6f1c25288e90d3e0d215afa7f0809ce124)

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

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.
(This used to be commit 112cf61cb6c24b7ea6d2d9a3cf96f68bf1c44560)

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.
(This used to be commit 4c04e1d2aea64ba0b53846c04235669eef0b28ca)