Tim Potter [Sat, 24 Oct 1998 06:23:02 +0000 (06:23 +0000)]
Fix for -fpic rules (.c.po and .c.po32) when using --enable-maintainer-mode.
John Terpstra [Sat, 24 Oct 1998 02:49:09 +0000 (02:49 +0000)]
Unlink zero length files that did NOT exist at the point of origin on a do_get() call.
Luke Leighton [Fri, 23 Oct 1998 21:45:16 +0000 (21:45 +0000)]
added domain and local group structures. names may have to be 256 chars
long not 128 (fstring) length.
Jeremy Allison [Fri, 23 Oct 1998 17:25:14 +0000 (17:25 +0000)]
Handle the case where multiple smbd have the file open, some of whom
don't have the ALLOW_DELETE_ON_CLOSE share flag enabled. Told you
this was fiddly code :-).
Jeremy.
Luke Leighton [Fri, 23 Oct 1998 17:22:21 +0000 (17:22 +0000)]
set netlogon negotiation flags to 0x1ff, not to what the client requests.
this is 0x4000 01ff on NT4 SP4, and 0x0000 01ff on pre-NT4 SP4.
Luke Leighton [Fri, 23 Oct 1998 15:21:37 +0000 (15:21 +0000)]
possible bug in change oem password code: replaced E_P16 and E_md4hash
with a call to nt_lm_owf_gen. if this still doesn't get the NT hash
generated correctly then there may instead be a bug in mod_smbpwd_entry().
John Terpstra [Fri, 23 Oct 1998 14:21:55 +0000 (14:21 +0000)]
Updated paths.
Jeremy Allison [Fri, 23 Oct 1998 03:52:28 +0000 (03:52 +0000)]
Make the new code conditional on lp_share_modes() just like the code in open_file_shared().
Jeremy.
Jeremy Allison [Fri, 23 Oct 1998 03:44:57 +0000 (03:44 +0000)]
Fixed debug reporting in the changed code.
Jeremy.
Jeremy Allison [Fri, 23 Oct 1998 03:41:11 +0000 (03:41 +0000)]
Fixed bug in previous commit where I was overwriting share_mode from
one fsp with that of another. Not good :-).
Jeremy.
Jeremy Allison [Fri, 23 Oct 1998 03:34:50 +0000 (03:34 +0000)]
Reasonably large change to give us *exactly* correct NT delete on close semantics.
This was trickier than it looks :-). Check out the new DELETE_ON_CLOSE
flag in the share modes and the new code that iterates through all open
files on the same device and inode in files.c and trans2.c
Also changed the code that modifies share mode entries to take
generic function pointers rather than doing a specific thing so
this sort of change should be easier in the future.
Jeremy.
Andrew Tridgell [Fri, 23 Oct 1998 01:51:31 +0000 (01:51 +0000)]
don't enable smbsh/smbwrapper on systems where we can't work out how
to generate PIC code
Andrew Tridgell [Fri, 23 Oct 1998 01:29:38 +0000 (01:29 +0000)]
don't use SMBW_PWD_ENV any more
Andrew Tridgell [Fri, 23 Oct 1998 01:27:23 +0000 (01:27 +0000)]
fixed problems with PWD - we no longer use the PWD env variable
instead the shared variable area is used.
this fixes problems with /bin/sh under solaris
Andrew Tridgell [Fri, 23 Oct 1998 01:26:46 +0000 (01:26 +0000)]
make the shared variable stuff slightly more sophisticated
Jeremy Allison [Fri, 23 Oct 1998 00:58:28 +0000 (00:58 +0000)]
include/smb.h: Added #defines for lots of things - makes our code a *lot* easier to read.
lib/util.c: Fixed Luke's set_first_token() function - should return void.
smbd/close.c: Move delete_on_close into file_fd_struct structure.
smbd/ipc.c: Changed local_machine back to fstring.
smbd/nttrans.c: Use defines for mapping share modes.
smbd/open.c: Move delete_on_close into file_fd_struct structure, added code for ALLOW_SHARE_DELETE.
smbd/reply.c: Use defines for mapping share modes.
smbd/trans2.c: Move delete_on_close into file_fd_struct structure.
Jeremy.
Luke Leighton [Thu, 22 Oct 1998 23:05:55 +0000 (23:05 +0000)]
torture debug.
Luke Leighton [Thu, 22 Oct 1998 22:54:00 +0000 (22:54 +0000)]
enumeration tests (files, sessions, shares, connections).
hey, you can see how many connections succeed while the rpctorture
command is running!
Christopher R. Hertel [Thu, 22 Oct 1998 22:51:45 +0000 (22:51 +0000)]
Okay, this is really silly but removing one space from one debug statement
meant that one hex dump would fit within 80 characters in lynx after HTML
conversion.
Luke Leighton [Thu, 22 Oct 1998 22:19:08 +0000 (22:19 +0000)]
rpctorture command
Jeremy Allison [Thu, 22 Oct 1998 19:15:24 +0000 (19:15 +0000)]
Removed previously #ifdef 0 'ed code.
Jeremy.
Jeremy Allison [Thu, 22 Oct 1998 19:09:50 +0000 (19:09 +0000)]
Tidied up Support.txt to be up to date with latest consultant
change requests. Start of the big docs update .....
Jeremy.
Jeremy Allison [Thu, 22 Oct 1998 18:51:16 +0000 (18:51 +0000)]
server/srv_samr.c smbd/ipc.c: Changed global_myworkgroup back to fstring
(as it is everywhere else).
smbwrapper/smbsh.c: For IRIX n32 binaries, set _RLDN32_LIST not _RLD32_LIST.
Exec users preferred shell is SHELL environment variable is set.
tests/fcntl_lock.c: Added sys/types.h for systems that need this.
Jeremy.
Luke Leighton [Thu, 22 Oct 1998 18:15:23 +0000 (18:15 +0000)]
bug fix in lsa_trans_names.
well-known aliases S-1-5-20 is actually S-1-5-0x20 but sid_to_string does
decimal not hexadecimal oops.
Christopher R. Hertel [Thu, 22 Oct 1998 18:07:39 +0000 (18:07 +0000)]
Minor change.
The debug_browse_data() function does a hex dump of a browser packet. The
last line is often not a full 16 bytes, which would miss-align the hex
output. I've added the padding needed to align the hex output.
Chris -)-----
Luke Leighton [Thu, 22 Oct 1998 17:26:44 +0000 (17:26 +0000)]
extern fstring global_myworkgroup should be a pstring
Jeremy Allison [Thu, 22 Oct 1998 16:55:03 +0000 (16:55 +0000)]
libsmb/smbdes.c: #ifdef'ed out code prior to removal.
rpc_client/cli_pipe.c: Inlined code removed from smbdes.c
rpc_server/srv_samr.c: Fixed unused variable warning.
rpc_server/srv_util.c: Inlined code removed from smbdes.c
Luke - the above changes are the first part of the changes
you and I discussed as being neccessary at the CIFS conference.
*PLEASE REVIEW THESE CHANGES* - make sure I haven't broken
any of the authenticated DCE/RPC code.
smbd/nttrans.c: Fixed to allow NT5.0beta2 to use Samba shares
with NT SMB support.
smbd/open.c: Fixed mkdir when called from nttrans calls.
smbd/server.c: Set correct size for strcpy of global_myworkgroup.
Jeremy.
Christopher R. Hertel [Thu, 22 Oct 1998 00:30:41 +0000 (00:30 +0000)]
Another cosmetic change.
When dumping the wins.dat, this module will also write the database
contents to the log file (don't do this if you have a large wins.dat!).
The output was in a sort of tabular format, except that the asctime()
function was used and it always terminates its output with a newline.
I did a bit of fussing, removed the '\n' character, and did my best to
line up the other columns. If the output format of asctime() is
different on different systems, then the columns won't line up, but
the output will still look better than it did before.
Chris -)-----
Luke Leighton [Wed, 21 Oct 1998 22:36:26 +0000 (22:36 +0000)]
domain aliases added a bit better: does local aliases if you query
for sid S-1-5-20 and does (nothing at the moment) if you query for
your own sid.
Luke Leighton [Wed, 21 Oct 1998 21:11:16 +0000 (21:11 +0000)]
the next dialog: user-groups. it's not very sensible what appears, but hey:
it appears!
Christopher R. Hertel [Wed, 21 Oct 1998 19:00:44 +0000 (19:00 +0000)]
I received a bug report from Massimo Campostrini in Pisa. There are a pair
of "front-end" functions with the same bug each.
Fixed.
Luke Leighton [Wed, 21 Oct 1998 18:06:46 +0000 (18:06 +0000)]
added "start index" skipping into querydispinfo.
Christopher R. Hertel [Wed, 21 Oct 1998 17:26:54 +0000 (17:26 +0000)]
Changed the debug calls to use the newer debug macros. This allowed me to
break up some very long lines in both the code and the output. The change
is mostly cosmetic, but should improve log file readability.
Jeremy Allison [Wed, 21 Oct 1998 16:58:34 +0000 (16:58 +0000)]
Fixed mainly signed/unsigned issues found by SGI cc in -fullwarn mode.
smbd/chgpasswd.c: Fixed (my) stupid bug where I was returning stack based variables. Doh !
smbd/trans2.c: Allows SETFILEINFO as well as QFILEINFO on directory handles.
Jeremy.
Luke Leighton [Wed, 21 Oct 1998 16:54:23 +0000 (16:54 +0000)]
oops!
Luke Leighton [Wed, 21 Oct 1998 16:28:44 +0000 (16:28 +0000)]
signed / unsigned issues
Luke Leighton [Wed, 21 Oct 1998 01:35:01 +0000 (01:35 +0000)]
fixing smbd encrypted rpcs (data lens, alloc hints, sequence nums argh).
put unicode strings after SAMLOGON query regardless of whether it's
an NT mailslot or a non-NT mailslot, after having observed this behaviour
out of NT machines.
Andrew Tridgell [Wed, 21 Oct 1998 00:31:14 +0000 (00:31 +0000)]
at the interop Isaac (at least I _think_ it was Isaac) said that if a
MS client doesn't respond to a oplock break request then we might try
resending the request.
This morning Sues Win95 machine had this problem (thus forcing me to
do something about it!). When starting winword her box refused to
answer an oplock break request. I have added code to resend the oplock
break request up to 3 times at 10 second intervals before killing the
socket.
of course, as soon as I did this her box started to behave again so I
haven't been able to tell if this fix actually works, but it can't be
worse than dropping the socket immediately.
Luke Leighton [Tue, 20 Oct 1998 22:37:44 +0000 (22:37 +0000)]
signed / unsigned warnings (found by herb).
how do i switch on these warnings in gcc?????
Luke Leighton [Tue, 20 Oct 1998 22:25:52 +0000 (22:25 +0000)]
dce/rpc. bug-fix in ipc.c (introduced today :)
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.
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...
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
Andrew Tridgell [Tue, 20 Oct 1998 06:52:39 +0000 (06:52 +0000)]
oops, I ot the return type of putenv() wrong
Andrew Tridgell [Tue, 20 Oct 1998 06:51:21 +0000 (06:51 +0000)]
use putenv() more portably
Andrew Tridgell [Tue, 20 Oct 1998 06:46:25 +0000 (06:46 +0000)]
fixed a connection bug in torture test
Andrew Tridgell [Tue, 20 Oct 1998 06:45:18 +0000 (06:45 +0000)]
removed setenv(), replaced with smbw_setenv()
Andrew Tridgell [Tue, 20 Oct 1998 06:43:59 +0000 (06:43 +0000)]
new prorotypes
Andrew Tridgell [Tue, 20 Oct 1998 06:43:36 +0000 (06:43 +0000)]
fixes for solaris
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.
Andrew Tridgell [Tue, 20 Oct 1998 03:10:58 +0000 (03:10 +0000)]
add -Bshareable for *bsd*
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
Luke Leighton [Mon, 19 Oct 1998 20:10:33 +0000 (20:10 +0000)]
oops
Luke Leighton [Mon, 19 Oct 1998 17:50:19 +0000 (17:50 +0000)]
output password change messages instead of debug message.
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.
Andrew Tridgell [Mon, 19 Oct 1998 02:49:48 +0000 (02:49 +0000)]
added command line options to smbsh
Andrew Tridgell [Mon, 19 Oct 1998 02:48:57 +0000 (02:48 +0000)]
improved session reestablishment
Andrew Tridgell [Mon, 19 Oct 1998 01:05:49 +0000 (01:05 +0000)]
prototype new functions
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
Andrew Tridgell [Mon, 19 Oct 1998 01:03:52 +0000 (01:03 +0000)]
removed an incorrect comment
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
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
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.
Andrew Tridgell [Sun, 18 Oct 1998 19:45:05 +0000 (19:45 +0000)]
redid proto.h
Andrew Tridgell [Sun, 18 Oct 1998 19:30:26 +0000 (19:30 +0000)]
check for lp_nt_pipe_support() in open calls
Andrew Tridgell [Sun, 18 Oct 1998 19:29:19 +0000 (19:29 +0000)]
add an option to enable/disable nt pipes
Jeremy Allison [Sat, 17 Oct 1998 17:41:13 +0000 (17:41 +0000)]
Small tidyups for gcc in 'preen' mode....
Jeremy.
Eloy Paris [Sat, 17 Oct 1998 03:01:07 +0000 (03:01 +0000)]
Added man page for nmblookup(1)
Luke Leighton [Fri, 16 Oct 1998 23:42:09 +0000 (23:42 +0000)]
oops.
Luke Leighton [Fri, 16 Oct 1998 23:40:59 +0000 (23:40 +0000)]
dce/rpc
Andrew Tridgell [Fri, 16 Oct 1998 23:08:10 +0000 (23:08 +0000)]
added maxfid test
Andrew Tridgell [Fri, 16 Oct 1998 23:05:19 +0000 (23:05 +0000)]
changed some debug levels
Luke Leighton [Fri, 16 Oct 1998 22:01:57 +0000 (22:01 +0000)]
strtoul removed, strtol used instead
Luke Leighton [Fri, 16 Oct 1998 21:46:07 +0000 (21:46 +0000)]
strtoul replace with strtol
Luke Leighton [Fri, 16 Oct 1998 21:41:42 +0000 (21:41 +0000)]
!pass -> pass != NULL is wrong: !pass -> pass == NULL is correct. oops.
Luke Leighton [Fri, 16 Oct 1998 21:36:19 +0000 (21:36 +0000)]
made pass_check_smb() available for dce/rpc use.
Luke Leighton [Fri, 16 Oct 1998 20:18:46 +0000 (20:18 +0000)]
cli_nt_session_open() encrypt arg removed
Luke Leighton [Fri, 16 Oct 1998 20:13:26 +0000 (20:13 +0000)]
setup_groups() - code clarification. no functional change.
Luke Leighton [Fri, 16 Oct 1998 20:08:56 +0000 (20:08 +0000)]
oops.
Luke Leighton [Fri, 16 Oct 1998 20:07:02 +0000 (20:07 +0000)]
rpc client mods (ntlmssp flags)
Andrew Tridgell [Fri, 16 Oct 1998 17:40:58 +0000 (17:40 +0000)]
only do the MAC extensions if we are a NTFS filesystem
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
Andrew Tridgell [Fri, 16 Oct 1998 17:05:19 +0000 (17:05 +0000)]
use the username GUEST if no other username is available
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.
Luke Leighton [Fri, 16 Oct 1998 00:59:22 +0000 (00:59 +0000)]
rpcclient ntlogin test
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.
Luke Leighton [Fri, 16 Oct 1998 00:07:25 +0000 (00:07 +0000)]
trust password
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
Luke Leighton [Thu, 15 Oct 1998 21:28:04 +0000 (21:28 +0000)]
getpwnam() failing is a serious error (corrupt smbpasswd database)
Jeremy Allison [Thu, 15 Oct 1998 19:30:12 +0000 (19:30 +0000)]
Fixed crypt problems on IRIX with prototype.
Jeremy.
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).
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
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.
Andrew Tridgell [Wed, 14 Oct 1998 16:45:24 +0000 (16:45 +0000)]
set recursion desired for bcast name query
Luke Leighton [Wed, 14 Oct 1998 16:42:45 +0000 (16:42 +0000)]
removed lkcl
Luke Leighton [Wed, 14 Oct 1998 16:12:45 +0000 (16:12 +0000)]
16 changed to 8 by mistake in samoemhash.
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...
Luke Leighton [Wed, 14 Oct 1998 07:08:43 +0000 (07:08 +0000)]
more warnings...
Luke Leighton [Wed, 14 Oct 1998 07:02:12 +0000 (07:02 +0000)]
unused variable in pipe_smb_write_X
Luke Leighton [Wed, 14 Oct 1998 07:00:00 +0000 (07:00 +0000)]
warnings spotted by ./configure.developer options