samba.git
23 years agoFixed bug found by John Blair where trim_string wasn't
Jeremy Allison [Tue, 20 Oct 1998 20:08:35 +0000 (20:08 +0000)]
Fixed bug found by John Blair where trim_string wasn't
correctly trimming trailing multibyte code page strings.
Jeremy.

23 years agosome quite important bug-fixes i missed because i transferred the wrong
Luke Leighton [Tue, 20 Oct 1998 18:27:49 +0000 (18:27 +0000)]
some quite important bug-fixes i missed because i transferred the wrong
smb.tgz file from my portable.

particularly the call to mem_data followed by a realloc of that data in
cli_pipe.c's rpc_read() function.

smbd responses now use p->rdata_i which is a faked-up pointer into
p->rdata's response data.  rdata can be very long; rdata_i is limited
to point to no more than max_tsize - 0x18 in length.  this will make
it an almost trivial task to add the encrypted rpc headers after
rdata_i, and mem_buf_copy will cope admirably with rhdr chained to
rdata_i chained to auth_verifier etc etc...

23 years agocalls to prs_grow() on array structures so that data construction doesn't
Luke Leighton [Tue, 20 Oct 1998 16:24:57 +0000 (16:24 +0000)]
calls to prs_grow() on array structures so that data construction doesn't
over-run buffers

23 years agooops, I ot the return type of putenv() wrong
Andrew Tridgell [Tue, 20 Oct 1998 06:52:39 +0000 (06:52 +0000)]
oops, I ot the return type of putenv() wrong

23 years agouse putenv() more portably
Andrew Tridgell [Tue, 20 Oct 1998 06:51:21 +0000 (06:51 +0000)]
use putenv() more portably

23 years agofixed a connection bug in torture test
Andrew Tridgell [Tue, 20 Oct 1998 06:46:25 +0000 (06:46 +0000)]
fixed a connection bug in torture test

23 years agoremoved setenv(), replaced with smbw_setenv()
Andrew Tridgell [Tue, 20 Oct 1998 06:45:18 +0000 (06:45 +0000)]
removed setenv(), replaced with smbw_setenv()

23 years agonew prorotypes
Andrew Tridgell [Tue, 20 Oct 1998 06:43:59 +0000 (06:43 +0000)]
new prorotypes

23 years agofixes for solaris
Andrew Tridgell [Tue, 20 Oct 1998 06:43:36 +0000 (06:43 +0000)]
fixes for solaris

23 years agosmbd/nttrans.c smbd/trans2.c: First fixes for NT5.0beta2. That redirector
Jeremy Allison [Tue, 20 Oct 1998 03:17:43 +0000 (03:17 +0000)]
smbd/nttrans.c smbd/trans2.c: First fixes for NT5.0beta2. That redirector
                              has some *horrible* bugs !
smbwrapper/shared.c smbwrapper/smbsh.c smbwrapper/smbw.c: Fixed gcc warnings.
Jeremy.

23 years agoadd -Bshareable for *bsd*
Andrew Tridgell [Tue, 20 Oct 1998 03:10:58 +0000 (03:10 +0000)]
add -Bshareable for *bsd*

23 years agoremoved my badly-done attempt at handling compilers that don't handle
Andrew Tridgell [Tue, 20 Oct 1998 03:10:29 +0000 (03:10 +0000)]
removed my badly-done attempt at handling compilers that don't handle
-c and -o at the same time.

my shell script code wasn't portable

23 years agooops
Luke Leighton [Mon, 19 Oct 1998 20:10:33 +0000 (20:10 +0000)]
oops

23 years agooutput password change messages instead of debug message.
Luke Leighton [Mon, 19 Oct 1998 17:50:19 +0000 (17:50 +0000)]
output password change messages instead of debug message.

23 years ago- dce/rpc code
Luke Leighton [Mon, 19 Oct 1998 17:32:10 +0000 (17:32 +0000)]
- dce/rpc code

- removed debug info in struni2 and unistr2 (security risk)

- rpc_pipe function was getting pointer to data then calling realloc *dur*

- password check function, the start of "credential checking",
  user, wks, domain, pass as the credentials (not just user,pass which
  is incorrect in a domain context)

- cli_write needs to return ssize_t not size_t, because total can be -1
  if the write fails.

- fixed signed / unsigned warnings (how come i don't get those any more
  when i compile with gcc???)

- nt password change added in smbd.  yes, jeremy, i verified that the
  SMBtrans2 version still works.

23 years agoadded command line options to smbsh
Andrew Tridgell [Mon, 19 Oct 1998 02:49:48 +0000 (02:49 +0000)]
added command line options to smbsh

23 years agoimproved session reestablishment
Andrew Tridgell [Mon, 19 Oct 1998 02:48:57 +0000 (02:48 +0000)]
improved session reestablishment

23 years agoprototype new functions
Andrew Tridgell [Mon, 19 Oct 1998 01:05:49 +0000 (01:05 +0000)]
prototype new functions

23 years agoreturn the resolved IP on a cli_connect() call so it can be cached
Andrew Tridgell [Mon, 19 Oct 1998 01:05:11 +0000 (01:05 +0000)]
return the resolved IP on a cli_connect() call so it can be cached

23 years agoremoved an incorrect comment
Andrew Tridgell [Mon, 19 Oct 1998 01:03:52 +0000 (01:03 +0000)]
removed an incorrect comment

23 years ago- don't use env variables for passwords and usernames (yeah!)
Andrew Tridgell [Mon, 19 Oct 1998 01:03:00 +0000 (01:03 +0000)]
- don't use env variables for passwords and usernames (yeah!)
- added a shared variable area based on a unlinked open file, and
  implement a general get/set interface to it
- cache hostname lookups and master ip lookups in shared variable area

23 years ago- added smbrapper/shared.o
Andrew Tridgell [Mon, 19 Oct 1998 01:00:33 +0000 (01:00 +0000)]
- added smbrapper/shared.o
- added suport for C compilers that don't handle -c and -o at once

23 years agoFixed sys_lseek and seek_file calls so all returns
Jeremy Allison [Sun, 18 Oct 1998 22:06:35 +0000 (22:06 +0000)]
Fixed sys_lseek and seek_file calls so all returns
are *checked* :-).
Jeremy.

23 years agoredid proto.h
Andrew Tridgell [Sun, 18 Oct 1998 19:45:05 +0000 (19:45 +0000)]
redid proto.h

23 years agocheck for lp_nt_pipe_support() in open calls
Andrew Tridgell [Sun, 18 Oct 1998 19:30:26 +0000 (19:30 +0000)]
check for lp_nt_pipe_support() in open calls

23 years agoadd an option to enable/disable nt pipes
Andrew Tridgell [Sun, 18 Oct 1998 19:29:19 +0000 (19:29 +0000)]
add an option to enable/disable nt pipes

23 years agoSmall tidyups for gcc in 'preen' mode....
Jeremy Allison [Sat, 17 Oct 1998 17:41:13 +0000 (17:41 +0000)]
Small tidyups for gcc in 'preen' mode....
Jeremy.

23 years agoAdded man page for nmblookup(1)
Eloy Paris [Sat, 17 Oct 1998 03:01:07 +0000 (03:01 +0000)]
Added man page for nmblookup(1)

23 years agooops.
Luke Leighton [Fri, 16 Oct 1998 23:42:09 +0000 (23:42 +0000)]
oops.

23 years agodce/rpc
Luke Leighton [Fri, 16 Oct 1998 23:40:59 +0000 (23:40 +0000)]
dce/rpc

23 years agoadded maxfid test
Andrew Tridgell [Fri, 16 Oct 1998 23:08:10 +0000 (23:08 +0000)]
added maxfid test

23 years agochanged some debug levels
Andrew Tridgell [Fri, 16 Oct 1998 23:05:19 +0000 (23:05 +0000)]
changed some debug levels

23 years agostrtoul removed, strtol used instead
Luke Leighton [Fri, 16 Oct 1998 22:01:57 +0000 (22:01 +0000)]
strtoul removed, strtol used instead

23 years agostrtoul replace with strtol
Luke Leighton [Fri, 16 Oct 1998 21:46:07 +0000 (21:46 +0000)]
strtoul replace with strtol

23 years ago!pass -> pass != NULL is wrong: !pass -> pass == NULL is correct. oops.
Luke Leighton [Fri, 16 Oct 1998 21:41:42 +0000 (21:41 +0000)]
!pass -> pass != NULL is wrong: !pass -> pass == NULL is correct.  oops.

23 years agomade pass_check_smb() available for dce/rpc use.
Luke Leighton [Fri, 16 Oct 1998 21:36:19 +0000 (21:36 +0000)]
made pass_check_smb() available for dce/rpc use.

23 years agocli_nt_session_open() encrypt arg removed
Luke Leighton [Fri, 16 Oct 1998 20:18:46 +0000 (20:18 +0000)]
cli_nt_session_open() encrypt arg removed

23 years agosetup_groups() - code clarification. no functional change.
Luke Leighton [Fri, 16 Oct 1998 20:13:26 +0000 (20:13 +0000)]
setup_groups() - code clarification.  no functional change.

23 years agooops.
Luke Leighton [Fri, 16 Oct 1998 20:08:56 +0000 (20:08 +0000)]
oops.

23 years agorpc client mods (ntlmssp flags)
Luke Leighton [Fri, 16 Oct 1998 20:07:02 +0000 (20:07 +0000)]
rpc client mods (ntlmssp flags)

23 years agoonly do the MAC extensions if we are a NTFS filesystem
Andrew Tridgell [Fri, 16 Oct 1998 17:40:58 +0000 (17:40 +0000)]
only do the MAC extensions if we are a NTFS filesystem

23 years ago- use large buffers for netshareenum
Andrew Tridgell [Fri, 16 Oct 1998 17:40:01 +0000 (17:40 +0000)]
- use large buffers for netshareenum
- handle errmoredata a bit better
- fix dev type from tconx for smbw

23 years agouse the username GUEST if no other username is available
Andrew Tridgell [Fri, 16 Oct 1998 17:05:19 +0000 (17:05 +0000)]
use the username GUEST if no other username is available

23 years agoRe-added code to tell the user how many open files they
Jeremy Allison [Fri, 16 Oct 1998 06:16:10 +0000 (06:16 +0000)]
Re-added code to tell the user how many open files they
have. Needed for server diagnosis purposes...
Jeremy.

23 years agorpcclient ntlogin test
Luke Leighton [Fri, 16 Oct 1998 00:59:22 +0000 (00:59 +0000)]
rpcclient ntlogin test

23 years agotrans2.h: Added Thursby MAC extension.
Jeremy Allison [Fri, 16 Oct 1998 00:54:16 +0000 (00:54 +0000)]
trans2.h: Added Thursby MAC extension.
smbd/trans2.c: Added Thursby MAX extension.
libsmb/clientgen.c: Fixed smbtorture lock code.
Jeremy.

23 years agotrust password
Luke Leighton [Fri, 16 Oct 1998 00:07:25 +0000 (00:07 +0000)]
trust password

23 years agorpcclient interactive login (with trust account changing if you are root)
Luke Leighton [Thu, 15 Oct 1998 23:51:07 +0000 (23:51 +0000)]
rpcclient interactive login (with trust account changing if you are root)
cli_session_setup handles null sessions correctly

23 years agogetpwnam() failing is a serious error (corrupt smbpasswd database)
Luke Leighton [Thu, 15 Oct 1998 21:28:04 +0000 (21:28 +0000)]
getpwnam() failing is a serious error (corrupt smbpasswd database)

23 years agoFixed crypt problems on IRIX with prototype.
Jeremy Allison [Thu, 15 Oct 1998 19:30:12 +0000 (19:30 +0000)]
Fixed crypt problems on IRIX with prototype.
Jeremy.

23 years agobug-fixing against:
Luke Leighton [Thu, 15 Oct 1998 05:47:29 +0000 (05:47 +0000)]
bug-fixing against:

AS/U:
      it returns dce/rpc "first" and "last" bits _clear_ in a bind/ack
      response, when they should be set in a (small) packet.  they also,
      in the bind/ack do not set a secondary address string at all, so
      we can't check against that...

Win95:
      client-side dce/rpc code is a bit odd.  it does a "WaitNamedPipeState"
      and has slightly different pipe-naming (\PIPE\LANMAN is joined by
      \PIPE\SRVSVC, \PIPE\WINREG etc whereas nt just has \PIPE\LANMAN
      and \PIPE\).

Win95-USRMGR.EXE:
      added LsaOpenPolicy (renamed existing to LsaOpenPolicy2).
      added SamrConnect (renamed existing to SamrConnect2).

23 years agosecond implementation of crc32, used with permission of francesco ferrara
Luke Leighton [Thu, 15 Oct 1998 05:35:57 +0000 (05:35 +0000)]
second implementation of crc32, used with permission of francesco ferrara
<francesco@aerre.it>.  thanks!
http://www.aerre.it/francesco

23 years agoconfig: Fix crypt prototype on RedHat Linux.
Jeremy Allison [Thu, 15 Oct 1998 00:55:17 +0000 (00:55 +0000)]
config: Fix crypt prototype on RedHat Linux.
include/includes.h: Fix crypt prototype on RedHat Linux.
smbd/fileio.c: Fix mmap bug found by WinCE client.
smbd/ipc.c: Fix WinCE wierdness with pipes being opened as \server\pipe\lanman
smbd/password.c: Fix encrypted null passwords.
Jeremy.

23 years agoset recursion desired for bcast name query
Andrew Tridgell [Wed, 14 Oct 1998 16:45:24 +0000 (16:45 +0000)]
set recursion desired for bcast name query

23 years agoremoved lkcl
Luke Leighton [Wed, 14 Oct 1998 16:42:45 +0000 (16:42 +0000)]
removed lkcl

23 years ago16 changed to 8 by mistake in samoemhash.
Luke Leighton [Wed, 14 Oct 1998 16:12:45 +0000 (16:12 +0000)]
16 changed to 8 by mistake in samoemhash.

23 years agotridge, i had to put a #ifdef _STAT_VER_LINUX_OLD round a bit of code
Luke Leighton [Wed, 14 Oct 1998 07:16:00 +0000 (07:16 +0000)]
tridge, i had to put a #ifdef _STAT_VER_LINUX_OLD round a bit of code
that didn't have _STAT_VER_LINUX_OLD defined.  maybe you want to sort
this out properly...

23 years agomore warnings...
Luke Leighton [Wed, 14 Oct 1998 07:08:43 +0000 (07:08 +0000)]
more warnings...

23 years agounused variable in pipe_smb_write_X
Luke Leighton [Wed, 14 Oct 1998 07:02:12 +0000 (07:02 +0000)]
unused variable in pipe_smb_write_X

23 years agowarnings spotted by ./configure.developer options
Luke Leighton [Wed, 14 Oct 1998 07:00:00 +0000 (07:00 +0000)]
warnings spotted by ./configure.developer options

23 years agoscript that defines some useful developer compiler options (gcc)
Luke Leighton [Wed, 14 Oct 1998 06:38:40 +0000 (06:38 +0000)]
script that defines some useful developer compiler options (gcc)
and then runs ./configure.

dunno what rpcclient's doing in this commit, but i'm tired, so who cares.

23 years agodce/rpc
Luke Leighton [Wed, 14 Oct 1998 06:29:20 +0000 (06:29 +0000)]
dce/rpc

23 years agouse level 0 for DEBUG() of malformed password entry in smbpasswd
Andrew Tridgell [Tue, 13 Oct 1998 14:14:09 +0000 (14:14 +0000)]
use level 0 for DEBUG() of malformed password entry in smbpasswd

23 years agosmbsh launch program is now in C
Andrew Tridgell [Tue, 13 Oct 1998 08:27:28 +0000 (08:27 +0000)]
smbsh launch program is now in C

23 years agomade smbsh a standard binary
Andrew Tridgell [Tue, 13 Oct 1998 08:26:48 +0000 (08:26 +0000)]
made smbsh a standard binary

23 years agoTry to make smbprint a better behaved citizen.
Richard Sharpe [Sun, 11 Oct 1998 21:42:49 +0000 (21:42 +0000)]
Try to make smbprint a better behaved citizen.

Removed a -x on the first line that causes lots of output to the console
and added a command line parameter handling flag for the tranlate case.

The problem is that smbprint is being overwritten/replaced when you upgrade
a RedHat rpm.  If you had modified smbprint to include translation, you
loose it, and you have to go and repatch etc.

Now, we have a -t flag on smbprint, so we should have fewer problems in
this regard.

Untested as yet, but soon will be ...

23 years agodce/rpc
Luke Leighton [Sat, 10 Oct 1998 00:58:12 +0000 (00:58 +0000)]
dce/rpc

23 years agodce/rpc
Luke Leighton [Sat, 10 Oct 1998 00:46:28 +0000 (00:46 +0000)]
dce/rpc

23 years agodce/rpc
Luke Leighton [Fri, 9 Oct 1998 23:31:50 +0000 (23:31 +0000)]
dce/rpc

23 years agosigned / unsigned issues spotted by herb
Luke Leighton [Fri, 9 Oct 1998 20:31:52 +0000 (20:31 +0000)]
signed / unsigned issues spotted by herb

23 years agodce/rpc.
Luke Leighton [Fri, 9 Oct 1998 20:17:11 +0000 (20:17 +0000)]
dce/rpc.

23 years agobasic client-side ntcreateX function (hard-wired values except filename)
Luke Leighton [Fri, 9 Oct 1998 19:34:57 +0000 (19:34 +0000)]
basic client-side ntcreateX function (hard-wired values except filename)

23 years agodce/rpc
Luke Leighton [Fri, 9 Oct 1998 19:05:19 +0000 (19:05 +0000)]
dce/rpc

23 years agoanders blomdell spotted an unititialised fstring causing strlen to go
Luke Leighton [Fri, 9 Oct 1998 14:02:59 +0000 (14:02 +0000)]
anders blomdell spotted an unititialised fstring causing strlen to go
awry (ascii_p16)

23 years agoAdded code to convert empty file names to "." so we avoid
Richard Sharpe [Fri, 9 Oct 1998 10:03:19 +0000 (10:03 +0000)]
Added code to convert empty file names to "." so we avoid
searching the cache, but only if we are not on a print share.

This code is known to work on at least one site!

23 years agoAdd a DEBUG to unix_convert
Richard Sharpe [Fri, 9 Oct 1998 06:47:22 +0000 (06:47 +0000)]
Add a DEBUG to unix_convert

23 years agodce/rpc
Luke Leighton [Thu, 8 Oct 1998 23:57:46 +0000 (23:57 +0000)]
dce/rpc

23 years agopreparing for release of 2.0.0 alpha 11
Samba Release Account [Thu, 8 Oct 1998 22:49:33 +0000 (22:49 +0000)]
preparing for release of 2.0.0 alpha 11

23 years agofixed bug pointed out by Herb.
Andrew Tridgell [Thu, 8 Oct 1998 22:48:46 +0000 (22:48 +0000)]
fixed bug pointed out by Herb.

23 years agopreparing for release of 2.0.0 alpha 10
Samba Release Account [Thu, 8 Oct 1998 22:12:49 +0000 (22:12 +0000)]
preparing for release of 2.0.0 alpha 10

23 years agofixed a bug in the readline support
Andrew Tridgell [Thu, 8 Oct 1998 22:12:13 +0000 (22:12 +0000)]
fixed a bug in the readline support

23 years agoreally fixed the warning this time :)
Andrew Tridgell [Thu, 8 Oct 1998 21:58:24 +0000 (21:58 +0000)]
really fixed the warning this time :)

23 years agofixed a warning
Andrew Tridgell [Thu, 8 Oct 1998 21:54:26 +0000 (21:54 +0000)]
fixed a warning

23 years agoadd missing targets that were added to makefile
Herb Lewis [Thu, 8 Oct 1998 20:43:29 +0000 (20:43 +0000)]
add missing targets that were added to makefile

23 years agoadded "permission obtained from John Erickson <jerickson@ddj.com> ...."
Luke Leighton [Thu, 8 Oct 1998 14:11:19 +0000 (14:11 +0000)]
added "permission obtained from John Erickson <jerickson@ddj.com> ...."

23 years ago- don't generate 0 params in torture
Andrew Tridgell [Thu, 8 Oct 1998 06:49:00 +0000 (06:49 +0000)]
- don't generate 0 params in torture
- handle 0 params in ipc.c

23 years ago- fixed a bunch of warnings and minor errors
Andrew Tridgell [Thu, 8 Oct 1998 06:21:33 +0000 (06:21 +0000)]
- fixed a bunch of warnings and minor errors
- got smbtorture to compile
- removed %D from some of lukes code - Luke, what is %D? it ain't
  portable anyway

23 years agoadd "smbtorture" alias for building smbtorture
Andrew Tridgell [Thu, 8 Oct 1998 06:19:29 +0000 (06:19 +0000)]
add "smbtorture" alias for building smbtorture

23 years agoremoved extra comma (some compilers don't like it).
Andrew Tridgell [Thu, 8 Oct 1998 04:57:59 +0000 (04:57 +0000)]
removed extra comma (some compilers don't like it).

Luke, I fixed this yesterday as well! grumble.

23 years agoauto-detect the right flag for the compiler to produce PIC code
Andrew Tridgell [Thu, 8 Oct 1998 04:52:11 +0000 (04:52 +0000)]
auto-detect the right flag for the compiler to produce PIC code

23 years agouse 1 second resolution calls if possible
Andrew Tridgell [Thu, 8 Oct 1998 02:28:21 +0000 (02:28 +0000)]
use 1 second resolution calls if possible

23 years agofixed a problem with fchdir() that broke "cvs -d" in smbsh
Andrew Tridgell [Thu, 8 Oct 1998 01:23:33 +0000 (01:23 +0000)]
fixed a problem with fchdir() that broke "cvs -d" in smbsh

23 years agoadded some comments
Andrew Tridgell [Thu, 8 Oct 1998 00:23:08 +0000 (00:23 +0000)]
added some comments

23 years agoremoved lukes acl check in configure (not needed)
Andrew Tridgell [Thu, 8 Oct 1998 00:02:43 +0000 (00:02 +0000)]
removed lukes acl check in configure (not needed)

23 years agodon't prototype the acl() functions
Andrew Tridgell [Wed, 7 Oct 1998 23:57:02 +0000 (23:57 +0000)]
don't prototype the acl() functions

23 years agodce/rpc
Luke Leighton [Wed, 7 Oct 1998 21:42:24 +0000 (21:42 +0000)]
dce/rpc

23 years agoadded aclent_t autoconf test (defines as an int if it doesn't exist).
Luke Leighton [Wed, 7 Oct 1998 16:49:32 +0000 (16:49 +0000)]
added aclent_t autoconf test (defines as an int if it doesn't exist).
this is to stop a compilation error caused by make proto putting
functions that are wrapped in #if HAVE_ACLxxx code.

maybe a better fix would be to have mkproto.awk exclude any functions
wrapped in #if HAVEs that don't exist.

23 years agoreturn False _and_ a break in a switch statement.
Luke Leighton [Wed, 7 Oct 1998 16:45:44 +0000 (16:45 +0000)]
return False _and_ a break in a switch statement.

23 years agomake proto required
Luke Leighton [Wed, 7 Oct 1998 15:24:48 +0000 (15:24 +0000)]
make proto required

23 years agodce/rpc
Luke Leighton [Wed, 7 Oct 1998 15:22:49 +0000 (15:22 +0000)]
dce/rpc