kai/samba.git
25 years agomkman - add argument for making html versions of man pages
Herb Lewis [Thu, 30 Apr 1998 16:00:18 +0000 (16:00 +0000)]
mkman - add argument for making html versions of man pages
idb.pl - minor fixups for sorting of output file.

25 years agoAdded patch from Bruce Tenison <btenison@dibbs.net> to allow encrypted
Jeremy Allison [Thu, 30 Apr 1998 01:39:22 +0000 (01:39 +0000)]
Added patch from Bruce Tenison <btenison@dibbs.net> to allow encrypted
passwords to be stored over time, allowing a smbpasswd file migration.
Adds new parameter "update encrypted".
Will also add to 1.9.18 branch.
Docs update to follow.
Jeremy.

25 years agoMakefile: Added files to smbpasswd.c.
Jeremy Allison [Wed, 29 Apr 1998 22:27:26 +0000 (22:27 +0000)]
Makefile: Added files to smbpasswd.c.
loadparm.c: Patch from tim@quiknet.com for static string problems.
server.c: Setup global_myname.
smbpass.c: Fix up locking. Add machine_password_delete() call.
smbpasswd.c: Added provisional code to add to a domain.
lib/rpc/client/cli_login.c: Fixed incorrect cred_hash3 call when setting machine password.
lib/rpc/server/srv_netlog.c: Fixed incorrect cred_hash3 call when setting machine password.
Jeremy.

25 years agoclientgen.c: Fixed null session setup bug.
Jeremy Allison [Wed, 29 Apr 1998 19:22:01 +0000 (19:22 +0000)]
clientgen.c: Fixed null session setup bug.
password.c: Stopped cli_nt_logout call (we don't have it correct yet).
            Added Luke object-orientation fix :-).
smb.h: Added clnt_name_slash to cli_state.
lib/rpc/client/cli_login.c: Changed global_myname to clnt_name_slash where needed.
lib/rpc/client/cli_netlogon.c: Fixed debug messages, don't check creds on error.
lib/rpc/client/cli_pipe.c: Fixed debug messages, Added Luke object-orientation fix.
lib/rpc/parse/parse_misc.c: Fixed STRING2 linearization bug that was adding 1.
Jeremy.

25 years agoadd clean option
Herb Lewis [Wed, 29 Apr 1998 13:45:27 +0000 (13:45 +0000)]
add clean option

25 years agopassword.c:
Luke Leighton [Wed, 29 Apr 1998 11:00:12 +0000 (11:00 +0000)]
password.c:

added become_root / unbecome_root around the get machine account password.

smbpass.c:

cleaning up code.

- turning if (BOOL_expr == False) into if (BOOL_expr)
  what if you test if (BOOL_expr == True) and someone defines
  True to be -1 on one system and 1 on another?  or if you get
  inconsistent return results between developers

- removed if ((FILE*) == 0) and made this if ((FILE*) == NULL) -
  cannot assume that NULL is zero integer.  plus there are typecast
  issues to deal with

- removed return (ret == 0) ? True : False and made this return ret == 0
  rely on the compiler to return correct BOOL value: not all developers
  will return True or False #defines: stick with BOOL test (non-zero).

- removed if (ret == False) replaced with if (!ret)

- bug where instead of if (sizeof(pstring)-len-len-6 < 0) it had a
  boolean test if (pstring-len-len-6).

- removed "." after debugging of filenames: the "." - a fullstop -
  looked like it was part of the filename, making things difficult
  to sort out.

still to be resolved: the global_myname isn't set up, such that the
machine account password file is named "TEST3..mac".

25 years agoThis is the checkin that adds the security=domain functionality.
Jeremy Allison [Wed, 29 Apr 1998 00:02:57 +0000 (00:02 +0000)]
This is the checkin that adds the security=domain functionality.

WARNING - so far this has only been tested against a Samba PDC
(still waiting for IS to add me the machine accounts :-).

Still missing is the code in smbpasswd that will add a machine
account password and change it on the domain controller, but
this is not hard, and I will check it in soon.

Jeremy.

25 years agofix problem with output file not being properly sorted
Herb Lewis [Tue, 28 Apr 1998 18:58:20 +0000 (18:58 +0000)]
fix problem with output file not being properly sorted

25 years agoFixed checked in code that didn't compile.
Jeremy Allison [Tue, 28 Apr 1998 16:43:02 +0000 (16:43 +0000)]
Fixed checked in code that didn't compile.
Jeremy.

25 years agoadded NetShareEnum from Bartlomej Czardybon <czar@silesia.pik-net.pl>
Luke Leighton [Tue, 28 Apr 1998 09:53:42 +0000 (09:53 +0000)]
added NetShareEnum from Bartlomej Czardybon <czar@silesia.pik-net.pl>

25 years agoFirst version that compiles. Much more to do.....
Jeremy Allison [Tue, 28 Apr 1998 01:24:40 +0000 (01:24 +0000)]
First version that compiles. Much more to do.....
Jeremy.

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

Volker

25 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.

25 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.

25 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.

25 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.

25 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.

25 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.

25 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.

25 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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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

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.

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

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.

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.