ira/wip.git
25 years agoset netlogon negotiation flags to 0x1ff, not to what the client requests.
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.
(This used to be commit 59cf9c00d91f9706d58c3d3000842eccb9d272fc)

25 years agopossible bug in change oem password code: replaced E_P16 and E_md4hash
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().
(This used to be commit 1c8c644210870fef7ea3eddf411b01a98f991fcc)

25 years agoUpdated paths.
John Terpstra [Fri, 23 Oct 1998 14:21:55 +0000 (14:21 +0000)]
Updated paths.
(This used to be commit 21e56ce707963507fe301b4feaad62964196aa46)

25 years agoMake the new code conditional on lp_share_modes() just like the code in open_file_sha...
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.
(This used to be commit 8de02620ea8f45f6a700617911947467e7be46e1)

25 years agoFixed debug reporting in the changed code.
Jeremy Allison [Fri, 23 Oct 1998 03:44:57 +0000 (03:44 +0000)]
Fixed debug reporting in the changed code.
Jeremy.
(This used to be commit d815e2d7a65c95ae71372b4fc8fe82f0202386dc)

25 years agoFixed bug in previous commit where I was overwriting share_mode from
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.
(This used to be commit 269bca2b3bbf5cae9fdf05d0405bfd80272da5d1)

25 years agoReasonably large change to give us *exactly* correct NT delete on close semantics.
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.
(This used to be commit 5e6a7cd99d29d1cf068fc517272559c1cf47ea3a)

25 years agodon't enable smbsh/smbwrapper on systems where we can't work out how
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
(This used to be commit a66c56d70e7e663f3a19cbfcc2e704653d8fc9b2)

25 years agodon't use SMBW_PWD_ENV any more
Andrew Tridgell [Fri, 23 Oct 1998 01:29:38 +0000 (01:29 +0000)]
don't use SMBW_PWD_ENV any more
(This used to be commit 252fe1e7014b2bf79a3abfa52fb77db9129074c7)

25 years agofixed problems with PWD - we no longer use the PWD env variable
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
(This used to be commit 4eb7b5c6a81447755dfa1be27479027333ed6f26)

25 years agomake the shared variable stuff slightly more sophisticated
Andrew Tridgell [Fri, 23 Oct 1998 01:26:46 +0000 (01:26 +0000)]
make the shared variable stuff slightly more sophisticated
(This used to be commit 636182f18346af457f905cd784e68ae5d4f75d0e)

25 years agoinclude/smb.h: Added #defines for lots of things - makes our code a *lot* easier...
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.
(This used to be commit 8e1ce307bd6a9056b4a95fe6f52ff42dc6e03a08)

25 years agotorture debug.
Luke Leighton [Thu, 22 Oct 1998 23:05:55 +0000 (23:05 +0000)]
torture debug.
(This used to be commit 97609596647dea39c061bdf972411a86f7294521)

25 years agoenumeration tests (files, sessions, shares, connections).
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!
(This used to be commit c1bf8f109932a3387fa7b8b4265a3eda52d3e0a3)

25 years agoOkay, this is really silly but removing one space from one debug statement
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.
(This used to be commit c391f076f29cff917fd51d58598e1ad11048e824)

25 years agorpctorture command
Luke Leighton [Thu, 22 Oct 1998 22:19:08 +0000 (22:19 +0000)]
rpctorture command
(This used to be commit b4ae65e2d0582274d67d02ea190f6d3d83b48594)

25 years agoRemoved previously #ifdef 0 'ed code.
Jeremy Allison [Thu, 22 Oct 1998 19:15:24 +0000 (19:15 +0000)]
Removed previously #ifdef 0 'ed code.
Jeremy.
(This used to be commit 7feaa13d02f84760d6857115ed253570f41911bb)

25 years agoTidied up Support.txt to be up to date with latest consultant
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.
(This used to be commit 246cd46c4ed0c6918d6179411476b61eba48eede)

25 years agoserver/srv_samr.c smbd/ipc.c: Changed global_myworkgroup back to fstring
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.
(This used to be commit 50413d0d819d4f13e760ca8439c5bdde0898d63e)

25 years agobug fix in lsa_trans_names.
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.
(This used to be commit 4d830e243650729344a2d1b238075e787802ff8b)

25 years agoMinor change.
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 -)-----
(This used to be commit 9f9b30abab118f0a2e007beddd79de38a2d5ea29)

25 years agoextern fstring global_myworkgroup should be a pstring
Luke Leighton [Thu, 22 Oct 1998 17:26:44 +0000 (17:26 +0000)]
extern fstring global_myworkgroup should be a pstring
(This used to be commit 89f6e05ce4cc21fd2e3c0e416e49383f7b56d1ea)

25 years agolibsmb/smbdes.c: #ifdef'ed out code prior to removal.
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.
(This used to be commit d891421d16ff80998dee429227bd391455f9d1a1)

25 years agoAnother cosmetic change.
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 -)-----
(This used to be commit 57295113feefcde77b429c661878444cd078b21f)

25 years agodomain aliases added a bit better: does local aliases if you query
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.
(This used to be commit da40f26f4b2f7ce286076b4e39dffd76aa2ef8e6)

25 years agothe next dialog: user-groups. it's not very sensible what appears, but hey:
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!
(This used to be commit 399035098f212e976cc0000a215e0705ebe78c05)

25 years agoI received a bug report from Massimo Campostrini in Pisa. There are a pair
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.
(This used to be commit 487a2e13b7913e512fa01e736daaccc3858eb689)

25 years agoadded "start index" skipping into querydispinfo.
Luke Leighton [Wed, 21 Oct 1998 18:06:46 +0000 (18:06 +0000)]
added "start index" skipping into querydispinfo.
(This used to be commit 3e6519da22628ea41025711718ec23b082ef02d0)

25 years agoChanged the debug calls to use the newer debug macros. This allowed me to
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.
(This used to be commit fc4e0148ebf8ea45e4410224218c0c987965d36c)

25 years agoFixed mainly signed/unsigned issues found by SGI cc in -fullwarn mode.
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.
(This used to be commit 0b44d27d0b5cc3948a6c2d78370ccddf1a84cd80)

25 years agooops!
Luke Leighton [Wed, 21 Oct 1998 16:54:23 +0000 (16:54 +0000)]
oops!
(This used to be commit 500e5536bee8ea8e58d5991bfab2cff923068926)

25 years agosigned / unsigned issues
Luke Leighton [Wed, 21 Oct 1998 16:28:44 +0000 (16:28 +0000)]
signed / unsigned issues
(This used to be commit bd2fc6bb85739cb8e7ed2254e2a553486daed054)

25 years agofixing smbd encrypted rpcs (data lens, alloc hints, sequence nums argh).
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.
(This used to be commit c101113ec20ed0ba633e78e4ee45596cdccaf1b5)

25 years agoat the interop Isaac (at least I _think_ it was Isaac) said that if a
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.
(This used to be commit a1c4d8351b9171416693e6d7a9045bdce9217edb)

25 years agosigned / unsigned warnings (found by herb).
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?????
(This used to be commit 39db385a0c47c11adb6bf3bac89c4bb76f675049)

25 years agodce/rpc. bug-fix in ipc.c (introduced today :)
Luke Leighton [Tue, 20 Oct 1998 22:25:52 +0000 (22:25 +0000)]
dce/rpc.  bug-fix in ipc.c (introduced today :)
(This used to be commit 48ff3e2429964404c8bf33ef625791147913a3c0)

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

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

25 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
(This used to be commit 06cc6eaa50fa4b673d527e91740f9d2d2b16d367)

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

25 years agouse putenv() more portably
Andrew Tridgell [Tue, 20 Oct 1998 06:51:21 +0000 (06:51 +0000)]
use putenv() more portably
(This used to be commit dc08f1a5c92e86c41dc03f6a4d10d5779f3d9c34)

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

25 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()
(This used to be commit 72bce217ef474f056d8f6675667ec78d1772ff37)

25 years agonew prorotypes
Andrew Tridgell [Tue, 20 Oct 1998 06:43:59 +0000 (06:43 +0000)]
new prorotypes
(This used to be commit facd8d74e0cd0998ca5347ac5be14a6027460699)

25 years agofixes for solaris
Andrew Tridgell [Tue, 20 Oct 1998 06:43:36 +0000 (06:43 +0000)]
fixes for solaris
(This used to be commit 235a8463b56107d97ee5523eed41967e8ccf27b6)

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

25 years agoadd -Bshareable for *bsd*
Andrew Tridgell [Tue, 20 Oct 1998 03:10:58 +0000 (03:10 +0000)]
add -Bshareable for *bsd*
(This used to be commit c511a619750152db03897ea682713bbc98f71c6b)

25 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
(This used to be commit 759c72822b9b1e8c50b378378f3a45f1e7604ade)

25 years agooops
Luke Leighton [Mon, 19 Oct 1998 20:10:33 +0000 (20:10 +0000)]
oops
(This used to be commit 7f8dfedfc0933713ab7d6de0763f8776e5805e27)

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

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

25 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
(This used to be commit 9b249c075e53e6cf75399d60a6371648c03104fa)

25 years agoimproved session reestablishment
Andrew Tridgell [Mon, 19 Oct 1998 02:48:57 +0000 (02:48 +0000)]
improved session reestablishment
(This used to be commit 5f96328d32e76785474ffd5cd73f8ddefc46d4f5)

25 years agoprototype new functions
Andrew Tridgell [Mon, 19 Oct 1998 01:05:49 +0000 (01:05 +0000)]
prototype new functions
(This used to be commit ae6e3d8f3820ee09988948ec0c1fa2214acd9b62)

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

25 years agoremoved an incorrect comment
Andrew Tridgell [Mon, 19 Oct 1998 01:03:52 +0000 (01:03 +0000)]
removed an incorrect comment
(This used to be commit 5abdb70e2a5cda2df444dfe5a9cdcb751be75ca8)

25 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
(This used to be commit 279cbe69efd75450113d2da0da5e67b29f3702b1)

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

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

25 years agoredid proto.h
Andrew Tridgell [Sun, 18 Oct 1998 19:45:05 +0000 (19:45 +0000)]
redid proto.h
(This used to be commit 20880966aafb2dbcdfbf979505a2d64a269dd9a8)

25 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
(This used to be commit 44d901b3e040a520c4ad9089e68c566c78acacca)

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

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

25 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)
(This used to be commit 69c7b8e2af225f3711d601a136ad3dbc9aaa476e)

25 years agooops.
Luke Leighton [Fri, 16 Oct 1998 23:42:09 +0000 (23:42 +0000)]
oops.
(This used to be commit fc1b7b9e75b029ffa93263766fe297d043c6d1df)

25 years agodce/rpc
Luke Leighton [Fri, 16 Oct 1998 23:40:59 +0000 (23:40 +0000)]
dce/rpc
(This used to be commit 29434f496c18e816d864060d68f357aea6ef5de8)

25 years agoadded maxfid test
Andrew Tridgell [Fri, 16 Oct 1998 23:08:10 +0000 (23:08 +0000)]
added maxfid test
(This used to be commit 710027a88a62565fbbe9eb5787e924d019906841)

25 years agochanged some debug levels
Andrew Tridgell [Fri, 16 Oct 1998 23:05:19 +0000 (23:05 +0000)]
changed some debug levels
(This used to be commit 121e321a12c5da5cb44ca1baece7e25c3ab7f943)

25 years agostrtoul removed, strtol used instead
Luke Leighton [Fri, 16 Oct 1998 22:01:57 +0000 (22:01 +0000)]
strtoul removed, strtol used instead
(This used to be commit d717d58c115fc5cf687af098100cf5adc0265afc)

25 years agostrtoul replace with strtol
Luke Leighton [Fri, 16 Oct 1998 21:46:07 +0000 (21:46 +0000)]
strtoul replace with strtol
(This used to be commit 4ebd2c5140e782ec43d9f7700bd588dfa52a16c7)

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

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

25 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
(This used to be commit 63def717992695ed4a4933c2605abe26086fb8c7)

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

25 years agooops.
Luke Leighton [Fri, 16 Oct 1998 20:08:56 +0000 (20:08 +0000)]
oops.
(This used to be commit ff9e919b713f077e811b702db6ec20897a11d5a0)

25 years agorpc client mods (ntlmssp flags)
Luke Leighton [Fri, 16 Oct 1998 20:07:02 +0000 (20:07 +0000)]
rpc client mods (ntlmssp flags)
(This used to be commit 16256f86bf451535c7955b8f51a9b88fc33a8e4d)

25 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
(This used to be commit 91d224735d1a4ef26d75d87e3b35d8d156b8998b)

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

25 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
(This used to be commit 59d99ad76cb2aa0f24467ed0df12d5ad50abff18)

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

25 years agorpcclient ntlogin test
Luke Leighton [Fri, 16 Oct 1998 00:59:22 +0000 (00:59 +0000)]
rpcclient ntlogin test
(This used to be commit f69cf05ff56dffb313304964d5bf5e5aee2f40a7)

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

25 years agotrust password
Luke Leighton [Fri, 16 Oct 1998 00:07:25 +0000 (00:07 +0000)]
trust password
(This used to be commit fa86770d56fd4a3e280ee4f5685e29dee2a713fb)

25 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
(This used to be commit 60c0f22a4e84703467006dfe1971384a6294a9aa)

25 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)
(This used to be commit 18e628ac1516cbd9773608cb5a9f4b784cf4dd9e)

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

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

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

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

25 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
(This used to be commit 53805112f1a301f77cda93b68e6fa3054895f20f)

25 years agoremoved lkcl
Luke Leighton [Wed, 14 Oct 1998 16:42:45 +0000 (16:42 +0000)]
removed lkcl
(This used to be commit 8ff4df1f0e528eb96a11c0de48b01f5745d08737)

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

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

25 years agomore warnings...
Luke Leighton [Wed, 14 Oct 1998 07:08:43 +0000 (07:08 +0000)]
more warnings...
(This used to be commit 8b9c0bad889d4f26987d87c54b4d8bf102af1744)

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

25 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
(This used to be commit 29434bf195b438f4ab41a10ac5ce03f9c2d2ac2f)

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

25 years agodce/rpc
Luke Leighton [Wed, 14 Oct 1998 06:29:20 +0000 (06:29 +0000)]
dce/rpc
(This used to be commit 69f5f9f88935de1f63ffc9aa19c0629b395e66e6)

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

25 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
(This used to be commit 784b1590c8c305d6876a14fcaa6fc17b9daac6d0)