jra/samba/.git
26 years agothe logon script example should use %U.bat not %u.bat
Andrew Tridgell [Sun, 30 Nov 1997 05:46:33 +0000 (05:46 +0000)]
the logon script example should use %U.bat not %u.bat
(This used to be commit e57275dd193d648458293b25f0cc3c7179f26536)

26 years agoclientgen.c: Added cli_mv() (used in a recent torture test).
Jeremy Allison [Sun, 30 Nov 1997 02:58:34 +0000 (02:58 +0000)]
clientgen.c: Added cli_mv() (used in a recent torture test).
reply.c: Changed reply_open_and_X to split out the oplock
request bits from core and extended and if an oplock was granted only set
the corresponding bit on reply.
server.c: Added code to dynamically allocate i/o buffers in oplock_break
(prevents recursion problems) , also made reset of sent_oplock_break
explicit.
Jeremy.
(This used to be commit 16e55ee2b8be9a4210d8cf87691cdf42373759d2)

26 years agodon't display locks for dead processes in smbstatus
Andrew Tridgell [Sat, 29 Nov 1997 13:35:09 +0000 (13:35 +0000)]
don't display locks for dead processes in smbstatus
(This used to be commit c7df484ef6d746fb1f5b53007ee04fa54e5f2223)

26 years agouse -1 not 0xffffffff in SIVALS() macros
Andrew Tridgell [Sat, 29 Nov 1997 13:29:13 +0000 (13:29 +0000)]
use -1 not 0xffffffff in SIVALS() macros

use the same process_exists() code on all systems (it's probably
faster anyway)
(This used to be commit 901b95aa77ac1ecc45823c23fb4e1d9da8dc8318)

26 years agoadded a sent_oplock_break element to Files[] as a paranoia check so we
Andrew Tridgell [Sat, 29 Nov 1997 02:40:31 +0000 (02:40 +0000)]
added a sent_oplock_break element to Files[] as a paranoia check so we
can't sent a oplock break twice on the same file.

changed some debug levels in the oplock code to level 0 so we can
track down a bug

zero the returned Files[] entry in find_free_file()

don't try to overcome client bugs in the handling of non-encrypted
passwords if in server level security mode

added paranoid null termination of password buffers

slight change to my ajt_panic() routine
(This used to be commit e360c79c9cec681c4609783019749773d3e79386)

26 years agopass the mailslot name to process_logon_packet()
Andrew Tridgell [Fri, 28 Nov 1997 05:52:31 +0000 (05:52 +0000)]
pass the mailslot name to process_logon_packet()

- fixed process_logon_packet() to always send the reply to/from the
correct netbios name (it should match the query)

- only do a NT style QUERYFORPDC if the query came in on a
NT_LOGON_MAILSLOT

Luke, can you check to see if these changes work in your branch with
NT logons?
(This used to be commit e89611985b35155770648c8f16ddd19acfb5ee13)

26 years agoget_entries is an int not a bool
Andrew Tridgell [Fri, 28 Nov 1997 05:48:48 +0000 (05:48 +0000)]
get_entries is an int not a bool
(This used to be commit 84215c9b91f3c5130b172a3bbc83c7ddd66c5cb8)

26 years agopreparing for release of 1.9.18alpha12
Samba Release Account [Fri, 28 Nov 1997 03:46:03 +0000 (03:46 +0000)]
preparing for release of 1.9.18alpha12
(This used to be commit 9cac33a13dc7c4890628436b80f6cbd8361deab2)

26 years agothere was a bug in my oplock bugfix :-)
Andrew Tridgell [Fri, 28 Nov 1997 03:39:04 +0000 (03:39 +0000)]
there was a bug in my oplock bugfix :-)

It's fixed properly now :-)
(This used to be commit a6a04b5c6cd35e4b5f4dd4522775961e6315c658)

26 years agofixed a very nasty oplock bug. We could send oplock break requests on
Andrew Tridgell [Fri, 28 Nov 1997 03:30:24 +0000 (03:30 +0000)]
fixed a very nasty oplock bug. We could send oplock break requests on
files that aren't open if the file happened to close while the oplock
was in transit. We would end up sending a oplock break request on
another random file (actually the open file that happened to have the
highest fnum). Then we wouldn't get a response, so smbd would keep
sending and would actually flood the net with an infinite number of
oplock break requests!
(This used to be commit 0da20e0aecbf3e59bdc649c489a18832403dc9b2)

26 years agooh no! my favourite hack is broken. You can't do:
Andrew Tridgell [Wed, 26 Nov 1997 23:43:06 +0000 (23:43 +0000)]
oh no! my favourite hack is broken. You can't do:

[%U]
path = %H

to get a new homes area. I wonder when it broke?

Anyway, I've fixed it. We can all rest easy now, knowing that you
really can produce an incomprehensible smb.conf and get it to work.
(This used to be commit 2245da4ad6674aa373e3057c661f5bc0315e191f)

26 years agoget rid of stat command (it is a hangover from an old experiment)
Andrew Tridgell [Tue, 25 Nov 1997 12:20:55 +0000 (12:20 +0000)]
get rid of stat command (it is a hangover from an old experiment)
(This used to be commit 8ced76c4c71c67c54bf0deedff5a7adfca04e4f3)

26 years agoRemind them to read the man page about needing to be root.
Dan Shearer [Mon, 24 Nov 1997 19:10:40 +0000 (19:10 +0000)]
Remind them to read the man page about needing to be root.
(This used to be commit 9ccd76e64d396c5c7f1da7346196476ca9a21eb8)

26 years agoadded cli_rmdir and cli_mkdir
Andrew Tridgell [Mon, 24 Nov 1997 13:44:52 +0000 (13:44 +0000)]
added cli_rmdir and cli_mkdir

added test in smbtorture for the server updating the directory modify
time when a file is added to a directory

cleanup in smbtorture so no garbage files are left on the server
(This used to be commit 3a5e07f1e994396853e6340e8ef3f4d12bb0243e)

26 years agoadded a SMB_QUERY_FILE_ALL_INFO test into smbtorture
Andrew Tridgell [Sun, 23 Nov 1997 07:26:42 +0000 (07:26 +0000)]
added a SMB_QUERY_FILE_ALL_INFO test into smbtorture

W95 doesn't seem to support this call.
(This used to be commit 162947c6e672580216c6223a44d25b874f0487ab)

26 years agoadded some QPATHINFO and QFILEINFO tests into smbtorture.
Andrew Tridgell [Sun, 23 Nov 1997 05:55:44 +0000 (05:55 +0000)]
added some QPATHINFO and QFILEINFO tests into smbtorture.

This tests for things like midnight access times, sticky create times
and word reversed INFO_STANDARD returns
(This used to be commit 89141de14edf9e46ab279d2a74a9b026716a0ba8)

26 years agotest SMBsetatr as well
Andrew Tridgell [Sun, 23 Nov 1997 03:09:59 +0000 (03:09 +0000)]
test SMBsetatr as well
(This used to be commit 2f29c24ba721e417828efca57011ed45892191a5)

26 years agominor wsmbconf and cgi changes
Andrew Tridgell [Sun, 23 Nov 1997 02:42:22 +0000 (02:42 +0000)]
minor wsmbconf and cgi changes
(This used to be commit bca9c49e6f24c2ee79cbb9b6ebf69d6647146fc1)

26 years agoadded a test for the NT SMBgetatr bug in smbtorture
Andrew Tridgell [Sun, 23 Nov 1997 02:41:22 +0000 (02:41 +0000)]
added a test for the NT SMBgetatr bug in smbtorture

added support for choosing the protocol level in smbtorture (-m option)

use -1 for null date in cli_close()

get the attributes right in cli_open()
(This used to be commit d64d40a6ec57a4a999ae1f39175bcfd86ccb196e)

26 years agothis new cgi code includes the ability to act as a mini web server,
Andrew Tridgell [Sat, 22 Nov 1997 07:51:23 +0000 (07:51 +0000)]
this new cgi code includes the ability to act as a mini web server,
allowing people to use web configuration of Samba without installing a
web server
(This used to be commit b4e05c360e77cbf27a95920b613bfe6bc874ea1b)

26 years agofixed some typecasts of (char *) to (unsigned char *)
Andrew Tridgell [Sat, 22 Nov 1997 07:17:32 +0000 (07:17 +0000)]
fixed some typecasts of (char *) to (unsigned char *)
(This used to be commit c98ba8c748bd852ff609cec5510cd5a013f51fd2)

26 years agothe usual :-)
Andrew Tridgell [Sat, 22 Nov 1997 07:10:22 +0000 (07:10 +0000)]
the usual :-)
(This used to be commit d6467d44b14f4bc683b839d520b4df38719bf2c0)

26 years agoadded true enumerated types in loadparm.c. Now we don't need all those
Andrew Tridgell [Sat, 22 Nov 1997 07:09:12 +0000 (07:09 +0000)]
added true enumerated types in loadparm.c. Now we don't need all those
"interpret_security" and similar functions. This also means that
testparm produces string values for these enumerated types rather than
an integer. This was done to make the web interface much cleaner.

While I was doing this I found a couple of very nasty bugs in the
parm_table code. Someone had added a handle_character_set() function
that treated the char** pointer for a P_STRING as an integer! This
would have caused memory corruption for anyone using the "character
set" option. The loadparm code is delicate - please be careful about
using it's more esoteric features!

I've also removed the "coding system" global and made it a
P_STRING. The integer value was never used anywhere in Samba.
(This used to be commit bac6b0daa288e879330e3d585582122bb93a1ffb)

26 years agoJust fixed a *serious* bug in nameelect.c to do with local
Jeremy Allison [Fri, 21 Nov 1997 21:06:40 +0000 (21:06 +0000)]
Just fixed a *serious* bug in nameelect.c to do with local
master browsers. Once we have become a local master, we would
*NEVER* stop announcing ourselves as such. This has serious
implications for the new nmbd code.
Jeremy.
(This used to be commit 8e8d239d9e112bf1eb32f4ec1657ff505a34d934)

26 years agoAdded in mods for new smb.conf "remote browse sync" option as posted to
John Terpstra [Fri, 21 Nov 1997 14:01:23 +0000 (14:01 +0000)]
Added in mods for new smb.conf "remote browse sync" option as posted to
the samba-1.9.17 tree moments ago.
(This used to be commit 2ee25cd117a116d0304960780d6c197f39d25a3d)

26 years agouse LocTimeDiff() not TimeDiff() to ensure that longdate conversion is
Andrew Tridgell [Fri, 21 Nov 1997 04:57:37 +0000 (04:57 +0000)]
use LocTimeDiff() not TimeDiff() to ensure that longdate conversion is
consistent (this is really just a cosmetic change)
(This used to be commit 30b84bb68bfbfb022decc36c1b4869a39a06e556)

26 years agoadded some debug lines to the rename code
Andrew Tridgell [Thu, 20 Nov 1997 01:36:36 +0000 (01:36 +0000)]
added some debug lines to the rename code
(This used to be commit ee3042eefb47bbdbefc83ab3f0f407c7dea4d8a0)

26 years agochanged nmblookup to only set recursion_desired in queries if the -R
Andrew Tridgell [Wed, 19 Nov 1997 23:50:02 +0000 (23:50 +0000)]
changed nmblookup to only set recursion_desired in queries if the -R
option is used.
(This used to be commit 4561b8242e12c63401d008e7fdb2442457bd366d)

26 years agofixed typo
Andrew Tridgell [Wed, 19 Nov 1997 04:12:37 +0000 (04:12 +0000)]
fixed typo
(This used to be commit 02721a9f1be6aed11a68b70c910056f054c64f67)

26 years agoipc.c: Changed reply_trans to use receive_next_smb() to cope
Jeremy Allison [Tue, 18 Nov 1997 23:30:49 +0000 (23:30 +0000)]
ipc.c: Changed reply_trans to use receive_next_smb() to cope
       with local message processing.
reply.c: Added check to reply_lockingX for chain after oplock break.
server.c: Added receive_next_smb().
trans2.c: Changed reply_trans2 to use receive_next_smb() to cope
       with local message processing.
(This used to be commit f4ae644e13f2c4479dfc94c77c0a8295edf54086)

26 years agodon't do the 255.255.255.255 mapping for group names if the name type
Andrew Tridgell [Tue, 18 Nov 1997 04:12:54 +0000 (04:12 +0000)]
don't do the 255.255.255.255 mapping for group names if the name type
is 0x1c. This allows remote logon servers when using a Samba WINS server.

I did some experiments with a real NT WINS server and this behaviour
is much closer to being correct. It will only be totally correct when
we add proper group name support.
(This used to be commit c43b7e29baea84e18b07f2d8bfdb2628b86fd59c)

26 years agoloadparm.c : Added "veto oplock files" parameter.
Jeremy Allison [Mon, 17 Nov 1997 19:16:38 +0000 (19:16 +0000)]
loadparm.c : Added "veto oplock files" parameter.
make_printerdef.c: Fixed warning.
quotas.c: Fixed irix root errors.
server.c: Fixed oplock reference count bug.
smb.h: Added IS_VETO_OPLOCK_PATH().
Jeremy.
(This used to be commit c28487df63e29bc0f8d2ece876a07a2a076d4c73)

26 years agoadded code to test the cli_NetServerEnum() function in clientgen.c
Andrew Tridgell [Tue, 11 Nov 1997 02:51:20 +0000 (02:51 +0000)]
added code to test the cli_NetServerEnum() function in clientgen.c
(This used to be commit 4933ba49b55a9a438b006c977c7ab6f5960065a3)

26 years agofixed a bug which caused nmbd to core dump. The problem was incorrect
Andrew Tridgell [Tue, 11 Nov 1997 02:38:54 +0000 (02:38 +0000)]
fixed a bug which caused nmbd to core dump.  The problem was incorrect
parameters to cli_NetServerEnum()
(This used to be commit 628d5895aa8a6add1a76bcf2561d01881b7c8c63)

26 years agoLeft global_oplock_break set while request to break oplock is
Jeremy Allison [Tue, 11 Nov 1997 01:19:32 +0000 (01:19 +0000)]
Left global_oplock_break set while request to break oplock is
outstanding to client. Done to allay Andrews' fears about
readbraw crossing on the wire :-).
Jeremy.
(This used to be commit 2fe8a730d9eeadca22ed1424014181e193ce3d52)

26 years agoauto-create the locks directory on startup
Andrew Tridgell [Tue, 11 Nov 1997 00:48:42 +0000 (00:48 +0000)]
auto-create the locks directory on startup
(This used to be commit a0ab8fe54c27d9f25266c5abfd60458827500dfd)

26 years agoRemoved pwd_validate.c as no longer in main branch.
Jeremy Allison [Mon, 10 Nov 1997 19:38:17 +0000 (19:38 +0000)]
Removed pwd_validate.c as no longer in main branch.
Jeremy
(This used to be commit 5a4a936b2c1eb6659980c69f6d05b45b14e63735)

26 years agoRolled back tree state to 11:59pm 8th November 1997 EST to
Jeremy Allison [Mon, 10 Nov 1997 19:23:17 +0000 (19:23 +0000)]
Rolled back tree state to 11:59pm 8th November 1997 EST to
remove problems.
Jeremy
(This used to be commit 4a36ac236c2ad634f05efcd0179875d09988614a)

26 years agobyteorder.h :
Luke Leighton [Sun, 9 Nov 1997 20:42:47 +0000 (20:42 +0000)]
byteorder.h :

typecasting for the debug messages of the data dump.  hm.

#ifdef NTDOMAIN

ntclient.c rpc_pipes/lsaparse.c rpc_pipes/ntclientnet.c rpc_pipes/smbparse.c :

adding "Net Server Password Set" functionality to smbclient.

#endif
(This used to be commit ad43183d2dd62a808c9fba03f81562362d4de713)

26 years agoattempting to mark up 32 bit error codes, needed for NT domains.
Luke Leighton [Sun, 9 Nov 1997 17:30:10 +0000 (17:30 +0000)]
attempting to mark up 32 bit error codes, needed for NT domains.
separated out smb server-mode password validation into a separate file.
added called and calling netbios names to client gen state: referenced
section in rfc1002.txt.
created workstation trust account checking code in ntclient.c

there might be a bug in reply_session_setup_andX.  i indented and added { }
around single-line if statements: the lm password checking code now doesn't
look right (around the GUEST_SESSSETUP bits).  *no code semantics have been
changed by the indentation process*.
(This used to be commit f27966957fa7f16d337a4a58719239d036deab4c)

26 years agomod_smbpasswd() was junking the smbpasswd file...
Luke Leighton [Sat, 8 Nov 1997 14:23:49 +0000 (14:23 +0000)]
mod_smbpasswd() was junking the smbpasswd file...
uninitialised variable warnings.
(This used to be commit 1b0bd98bb3bfd3d8cd02e8983e825199e839ec05)

26 years agoa few more tests added, including one that tests whether the server
Andrew Tridgell [Sat, 8 Nov 1997 05:33:45 +0000 (05:33 +0000)]
a few more tests added, including one that tests whether the server
understand the full range of byte offsets in locking requests. Samba
doesn't (due to the 31 bit limitation in fcntl locking)
(This used to be commit af1f408a05a42a7ec5c2f4cc5b67c08b3c6cf61f)

26 years agoadded two more sets of tests to the smbtorture test. The tests I added
Andrew Tridgell [Sat, 8 Nov 1997 04:02:05 +0000 (04:02 +0000)]
added two more sets of tests to the smbtorture test. The tests I added
are ones that I know Samba fails. They are:

  1) correct support for retaining locks over a close (ie. the server
     must not use posix semantics)
  2) support for lock timeouts
  3) the server supports multiple locking contexts on the one SMB
  connection, distinguished by PID.
  4) the server correctly fails overlapping locks made by the same PID (this
     goes against POSIX behaviour, which is why it is tricky to implement)
  5) the server denies unlock requests by an incorrect client PID

I've been discussing with Jeremy ways that we can re-implement the
locking code to handle these correctly. This test code will be useful
to see that we have got it right.
(This used to be commit 097781e2992f12c545170c82ada2f4023a9784f5)

26 years agolocal time discrepancies between the date on my computer and the date on
Luke Leighton [Fri, 7 Nov 1997 03:37:18 +0000 (03:37 +0000)]
local time discrepancies between the date on my computer and the date on
chris' computer (probably about four minutes) meant that chris' commits
didn't get downloaded when i did a cvs update.

therefore, i did a cvs update; make proto; cvs commit, and still got problems.

so, five minutes later, i do a cvs update, and _then_ chris' server.c and
mangle.c mods get downloaded, and i have to do another make proto.

this particular problem has hit us *really* badly in the past, because i
was taking files home (onto a portable that i hadn't reset the time on
since i went to the states) and then recopying them back onto the computer
here.  if i do this, i do a touch *.c *.h; cvs -t update.  *then* a cvs commit.
(This used to be commit edb9c52948159baa48d9decd253a401737bd5363)

26 years agoipc.c :
Luke Leighton [Fri, 7 Nov 1997 03:28:43 +0000 (03:28 +0000)]
ipc.c :

added a #define around the alignment thing: it's a way to stop
NetMonitor from decoding your packets!!!!

proto.h :

usual.

reply.c :

added what i believe to be the correct error messages for getting
correct domain joining.

smb.h :

some guesses at good names of the SAMR_XXXX functions.  sorting
out the SAMR_LOOKUP_RIDS function.  this is *not* the same as
the LSA_LOOKUP_RIDS function, unless paul accidentally put it
on the ntlsa pipe by mistake, instead of the samr pipe :-)

rpc_pipes/lsa_hnd.c rpc_pipes/pipe_hnd.c :

moved creation and allocation of unique policy handles into this module.

rpc_pipes/pipesamr.c rpc_pipes/samrparse.c rpc_pipes/smbparse.c :

SAMR_LOOKUP_RIDS is beginning to look _suspiciously_ like the
LSA_LOOKUP_RIDS function.  but i know that there are subtle
discrepancies.
(This used to be commit 6bc07b0b4193e28b13a675fece8d9d6b365a7eb0)

26 years agoModified Files:
Christopher R. Hertel [Fri, 7 Nov 1997 03:06:24 +0000 (03:06 +0000)]
Modified Files:
mangle.c server.c proto.h

mangle.c
  I am planning to replace the mangled_stack array with a proper stack,
  but found many style inconsistencies (no, really).  As you might expect,
  I have standardized on my own preferences.  ;)

  I also found a potential problem in create_mangled_stack (which I've
  renamed as reset_mangled_stack).  If the stack size were passed into
  the function as 0 or less, there was the possibility that the array
  would have been freed twice.  I doubt that this ever happens, but I
  don't like to leave holes.

  Of course, the fix will be irrelevent once I replace the array with
  a linked-list-based stack.

server.c
  Changed the call to create_mangled_stack() to a call to reset_mangled_stack().

proto.h
  Regenerated to match the above changes.  (A real comment!  How unusual!)
(This used to be commit 34d1b3e4fa7a1158f3a3c5c47adf0417c7144095)

26 years agoipc.c: Changing back arbitrary alignment change until I know *why*
Jeremy Allison [Thu, 6 Nov 1997 23:34:51 +0000 (23:34 +0000)]
ipc.c: Changing back arbitrary alignment change until I know *why*
luke changed it.
proto.h: The usual.
uid.c: Fix crash bug when attaching with smbclient -mCORE. A vuid
pointer was being used when it was null.
Jeremy.
(This used to be commit ff94f97cf2b0f62cbbddbfd3d126df7f4d649334)

26 years agofollowing a cvs error, i am rewriting this monster-commit. with bad grace.
Luke Leighton [Thu, 6 Nov 1997 23:03:58 +0000 (23:03 +0000)]
following a cvs error, i am rewriting this monster-commit.  with bad grace.

Modified Files:
---------------

Makefile:

adding extra files

ipc.c :

send_trans_reply() - alignment issue.  this makes the alignment
the same as that in NT.  this should be looked at by people who
understand the SMB stuff better than i.

api_fd_commands[] - added samr and wkssvc pipes.

loadparm.c :

lp_domain_controller() changed to mean "samba is a domain controller".
it's a "yes/no" parameter, now.  no, it isn't used _anywhere_.

namedbwork.c nameelect.c :

if "domain controller = yes" then add SV_TYPE_DOMAIN_CTRL to the
host _and_ workgroup announcements.  yes, you must do both: nt does.

namelogon.c :

important NETLOGON bug in SAMLOGON request parsing, which may be
the source of some people's problems with logging on to the Samba PDC.

password.c :

get_smbpwnam() renamed to get_smbpwd_entry().

pipes.c :

added samr and wkssvc pipes.

proto.h :

usual.  can we actually _remove_ proto.h from the cvs tree, and
have it as one of the Makefile dependencies, or something?

reply.c :

get_smbpwnam() renamed to get_smbpwd_entry() - also changed response
error code when logging in from a WORKSTATION$ account.  yes, paul
is right: we need to know when to return the right error code, and why.

server.c :

added call to reset_chain_pnum().

#ifdef NTDOMAIN added call to init_lsa_policy_hnd() #endif.  jeremy,
you'd be proud: i did a compile without NTDOMAIN, and caught a link
error for this function.

smb.h :

defines and structures for samr and wkssvc pipes.

smbpass.c :

modified get_smbpwnam() to get_smbpwd_entry() and it now takes
two arguments.  one for the name; if this is null, it looks up
by smb_userid instead.

oh, by the way, smb_userids are actually domain relative ids
(RIDs).  concatenate a RID with the domain SID, and you have
an internet globally unique way of identifying a user.

we're using RIDs in the wrong way....

added mod_smbpwnam() function.  this was based on code in smbpasswd.c

rpc_pipes/lsaparse.c :

added enum trusted domain parsing.  this is incomplete: i need
a packet trace to write it properly.

rpc_pipes/pipe_hnd.c :

added reset_chain_pnum() function.

rpc_pipes/pipenetlog.c :

get_smbpwnam() function renamed to get_smbpwd_entry().

arcfour() issues.

removed capability of get_md4pw() function to automatically add
workstation accounts.  this should either be done using
smbpasswd -add MACHINE$, or by using \PIPE\samr.

rpc_pipes/pipe_util.c :

create_pol_hnd() - creates a unique LSA Policy Handle.  overkill
function: uses a 64 bit sequence number; current unix time and
the smbd pid.

rpc_pipes/smbparse.c :

arcfour() issues.

smb_io_unistr2() should advance by uni_str_len not uni_max_len.

smb_io_smb_hdr_rb() - request bind uses uint16 for the context
id, and uint8 for the num_syntaxes.  oops, i put these both as
uint32s.

Added Files:
------------

rpc_pipes/lsa_hnd.c :

on the samr pipe, allocate and associate an LSA Policy Handle
with a SID.  you receive queries with the LSA Policy Handle,
and have to turn this back into a SID in order to answer the
query...

rpc_pipes/pipesamr.c rpc_pipes/samrparse.c

\PIPE\samr processing.  samr i presume is the SAM Replication pipe.

rpc_pipes/pipewkssvc.c rpc_pipes/wksparse.c

\PIPE\wkssvc processing.  the Workstation Service pipe?

holy cow.
(This used to be commit 1bd084b3e690eb26a1006d616075e53d711ecd2f)

26 years agolocal.h: Added OPLOCK_BREAK_TIMEOUT_FUDGEFACTOR.
Jeremy Allison [Thu, 6 Nov 1997 19:11:16 +0000 (19:11 +0000)]
local.h: Added OPLOCK_BREAK_TIMEOUT_FUDGEFACTOR.
proto.h: The usual.
server.c: Added timestring() messages to oplock logs. Added fix
          to allow file open processing to continue is an oplock
          break message times out.
Jeremy.
(This used to be commit c45369217169fac261b32db71469c007db4b4a03)

26 years agochange from %D to %m/%d/%Y in timestring(). This doesn't really matter
Andrew Tridgell [Thu, 6 Nov 1997 13:45:50 +0000 (13:45 +0000)]
change from %D to %m/%d/%Y in timestring(). This doesn't really matter
as it is only for logging but it will prevent people from writing in
to say that we are not y2k compliant after running auto-diagnostic
tests.
(This used to be commit b4e55cd4765085fc2465c6ff757094e05eabc51e)

26 years agono asm/signal.h for linux as this is not portable
Andrew Tridgell [Thu, 6 Nov 1997 06:50:21 +0000 (06:50 +0000)]
no asm/signal.h for linux as this is not portable

add auto username from LOGNAME for smbtorture

proto fix in ufc.c
(This used to be commit f13dbdf307ccffc15a74e2ffa72da666e53a72b6)

26 years agoChange to always register the WORKGROUP<1e> name as does Win95.
Jeremy Allison [Wed, 5 Nov 1997 22:09:15 +0000 (22:09 +0000)]
Change to always register the WORKGROUP<1e> name as does Win95.
Jeremy.
(This used to be commit 313fdcd3e99e0fa2bd44b30545cf32e36cd13119)

26 years agoadd NO_SEMUN for HP
Andrew Tridgell [Wed, 5 Nov 1997 12:21:45 +0000 (12:21 +0000)]
add NO_SEMUN for HP

I really wish you could say

#ifndef "struct foo_struct"

in C :-)
(This used to be commit acffb39f1aea9816ece41d66e9369375e9aa7df4)

26 years agosmb.h :
Luke Leighton [Tue, 4 Nov 1997 20:27:08 +0000 (20:27 +0000)]
smb.h :

LSA_OPENSECRET and three other unknown #defines are commented as not
being the real defines for these!!!

rpc_pipes/pipenetlog.c :

USE_ARCFOUR for Server Password Set.  and then ignore the password (agh!)
this will *fail* to do logins, by the way.  i need to add a routine
to update the smb password (next job).
(This used to be commit b9d26344cc9b64ef3578931d099d52eab080fdd3)

26 years agoRolling back the files
Jeremy Allison [Mon, 3 Nov 1997 19:24:45 +0000 (19:24 +0000)]
Rolling back the files
loadparm.c : to equivalent to version 1.67
reply.c : to equivalent to version 1.69
server.c : to equivalent to version 1.122
util.c : to equivalent to version 1.98

to remove the incorrect changes.

proto.h: The usual.

rpc_pipes/smbparse.c : Backeting stuff that SHOULD NOT BE IN THE
                       none-NTDOMAIN build !

Jeremy.
(This used to be commit 6064c9d80fd9fcc3ceec528494ba5e2591610098)

26 years agoadded code that _uses_ arcfour. arcfour itself, or anything remotely
Luke Leighton [Mon, 3 Nov 1997 15:47:03 +0000 (15:47 +0000)]
added code that _uses_ arcfour.  arcfour itself, or anything remotely
like it, has *not* been added.

this is the client and server side of the SAM Logon NT and LM OWF password
obfuscation (rc4 with the long-term session key).
(This used to be commit 4cf4dd696714492f8e51661cab4736d66ab2916b)

26 years agopreparing for release of 1.9.18alpha11
Samba Release Account [Sun, 2 Nov 1997 20:47:35 +0000 (20:47 +0000)]
preparing for release of 1.9.18alpha11
(This used to be commit cadd772df72aa13018ea6e909ed0d7e294f24b5e)

26 years agoChristian Lademann's contribution: new capabilities in smb.conf.
Luke Leighton [Sun, 2 Nov 1997 20:35:20 +0000 (20:35 +0000)]
Christian Lademann's contribution:  new capabilities in smb.conf.

'<' and '|' characters indicate read file and execute command respectively,
and feed the output into the parameter (!!!).

'<$' and '|$' means run standard_sub_basic() on them.

this is going to be fun to document in smb.conf.5....

also, Christian created a new "online" service parameter.  services can
be taken "off-line"....
(This used to be commit 15f44d28916cdc1432bffdbb999c7cf7efd8fb86)

26 years agoupdated
Luke Leighton [Sun, 2 Nov 1997 19:59:20 +0000 (19:59 +0000)]
updated
(This used to be commit f39fe3b62dd869f218bd8a2c66de7b91c0044192)

26 years agoupdated
Luke Leighton [Sun, 2 Nov 1997 19:47:48 +0000 (19:47 +0000)]
updated
(This used to be commit 34325448542e307198635a15d5ff3bc895c24413)

26 years agodocumented "domain hosts allow/deny" parameters
Luke Leighton [Sun, 2 Nov 1997 19:40:07 +0000 (19:40 +0000)]
documented "domain hosts allow/deny" parameters
(This used to be commit adf3119245148d517913efb549e8b88d5ba66b39)

26 years agoloadparm.c :
Luke Leighton [Sun, 2 Nov 1997 19:27:26 +0000 (19:27 +0000)]
loadparm.c :

added "domain hosts allow" and "domain hosts deny".  these are to be
used to specify which workstations can log in to a samba PDC from.
it is also used to check whether to add an initial machine password
into the smbpasswd database or not

smbpass.c :

added capability to add a machine password to the smbpasswd database.
***** the default uid is zero *****

rpc_pipes/pipenetlog.c :

use of "domain hosts allow/deny" parameters to allow login access.

proto.h :

usual.
(This used to be commit 2e7d3410306640aa6402e0506430a53988cc583e)

26 years agofix some uchar/char conflicts
Andrew Tridgell [Sun, 2 Nov 1997 04:11:05 +0000 (04:11 +0000)]
fix some uchar/char conflicts
(This used to be commit c164681dfe2ad9623a59f01eea914bf27d4801e5)

26 years agoconvert the credentials code back to uchar[8] from uint32[2]
Andrew Tridgell [Sun, 2 Nov 1997 04:01:57 +0000 (04:01 +0000)]
convert the credentials code back to uchar[8] from uint32[2]

This should fix the byte order problems (maybe!)
(This used to be commit 21878e7d8628d05786c3c76f2943e31df1096577)

26 years agogot rid of redundent rpc_pipes/rpc_proto.h
Andrew Tridgell [Sun, 2 Nov 1997 03:10:42 +0000 (03:10 +0000)]
got rid of redundent rpc_pipes/rpc_proto.h
(This used to be commit 1a454f818841bf016ff04fd70cd73a5964d56f2e)

26 years agofix comments
Andrew Tridgell [Sun, 2 Nov 1997 01:33:28 +0000 (01:33 +0000)]
fix comments
(This used to be commit b3fd976b6c5c8342d04d87a7523864b09918d260)

26 years agoto avoid any possibility of the pipe getting full and blocking we now
Andrew Tridgell [Sun, 2 Nov 1997 01:25:50 +0000 (01:25 +0000)]
to avoid any possibility of the pipe getting full and blocking we now
only allow one query in the async dns pipe at a time. The others are
queued in the parent.
(This used to be commit f1004dd52adb29d088f0725e2c940ed44d3a764f)

26 years agodon't print the progress so often - it slows down the client too much
Andrew Tridgell [Sat, 1 Nov 1997 23:43:12 +0000 (23:43 +0000)]
don't print the progress so often - it slows down the client too much
(This used to be commit cc6e7706635ba4bf044ebd5a525113c1b2fd93e3)

26 years agominor async DNS cleanups
Andrew Tridgell [Sat, 1 Nov 1997 23:42:28 +0000 (23:42 +0000)]
minor async DNS cleanups

- start it earlier
- set DEBUGLEVEL to -1 to prevent any debug calls in child
- exit with _exit() to prevent logfile corruption
(This used to be commit 21dd073a2003fa4707c1577a6b07bcef30eb6a50)

26 years agopreparing for release of 1.9.18alpha10
Samba Release Account [Sat, 1 Nov 1997 19:36:04 +0000 (19:36 +0000)]
preparing for release of 1.9.18alpha10
(This used to be commit fa251b7eba48c9ef2d8d3d798ce5b99c8508c243)

26 years agomention of GLPL for the rpc_pipe/ directory
Luke Leighton [Sat, 1 Nov 1997 19:35:18 +0000 (19:35 +0000)]
mention of GLPL for the rpc_pipe/ directory
(This used to be commit f49eb1e03780f7c5e6355517b8f6134c571be246)

26 years agoupdated version number.
Luke Leighton [Sat, 1 Nov 1997 19:32:40 +0000 (19:32 +0000)]
updated version number.
(This used to be commit 4de4571855d8c9695035beaa3353bdd9c9a0eb78)

26 years agoadded instructions advising people to set up 1.9.18alpha as a Win95 Domain
Luke Leighton [Sat, 1 Nov 1997 19:31:44 +0000 (19:31 +0000)]
added instructions advising people to set up 1.9.18alpha as a Win95 Domain
Logon server, with encrypted passwords *prior* to trying out the NT Domain
Logons.
(This used to be commit f39608ec065503920aafed9655178ce36e67f1f9)

26 years agoclient.c clientutil.c proto.h
Luke Leighton [Sat, 1 Nov 1997 19:20:29 +0000 (19:20 +0000)]
client.c clientutil.c proto.h
rpc_pipes/ntclientlsa.c rpc_pipes/ntclientnet.c
rpc_pipes/ntclientpipe.c :

added extra argument to cli_call_api() to allow specifying the length of
the \PIPE\ name.  it appears that, like when the name of the pipe is NULL
and OS-2 requires two extra bytes _after_ the NULL name, that NT requires
two bytes after the NULL-terminated name "\PIPE\".  these two bytes vary,
but values seen so far are: 0x72 0x70; 0x63 0x65; 0x44 0x65; 0x4E 0x00.

there appears not to be much logic to this.  purpose unknown.

ntclient.c:

put Set Named Pipe Handle State call directly after SMBopenX call.
(This used to be commit 54c245be152e5fa8f5b535c93f8d11c5f591e23f)

26 years agoupdating to latest version
Luke Leighton [Sat, 1 Nov 1997 19:14:10 +0000 (19:14 +0000)]
updating to latest version
(This used to be commit 4525c3b6e57bcc7b878eb4194e21603f33e9d7ea)

26 years agoset O_CREAT on lock file
Andrew Tridgell [Sat, 1 Nov 1997 13:28:21 +0000 (13:28 +0000)]
set O_CREAT on lock file
(This used to be commit 32fecea63b892e0a15c398cfc65d53c4ece74d86)

26 years agoa simple SMB torture tester. This will allow us to evaluate locking
Andrew Tridgell [Sat, 1 Nov 1997 13:22:16 +0000 (13:22 +0000)]
a simple SMB torture tester. This will allow us to evaluate locking
techniques more accurately.
(This used to be commit 054e3b2ae3a8cfb98fde72becef9b05de34d2ba7)

26 years agochange a debug level
Andrew Tridgell [Sat, 1 Nov 1997 08:13:54 +0000 (08:13 +0000)]
change a debug level
(This used to be commit d8b896a90fb693187a11456e46971c873e9f0d60)

26 years agodon't use SEM_UNDO because of ridiculously small undo limits on some
Andrew Tridgell [Sat, 1 Nov 1997 08:13:42 +0000 (08:13 +0000)]
don't use SEM_UNDO because of ridiculously small undo limits on some
OSes. Instead add explicit checks for dead locks at startup.
(This used to be commit 79858d610c37675b9dc56a949723053ac9b67620)

26 years agosome locking code cleanups
Andrew Tridgell [Sat, 1 Nov 1997 07:33:55 +0000 (07:33 +0000)]
some locking code cleanups
(This used to be commit 6d77311d6cecabafb86c02e26b30724425ef6208)

26 years agore-initialise the timezone on each new connection. This means you
Andrew Tridgell [Sat, 1 Nov 1997 07:22:18 +0000 (07:22 +0000)]
re-initialise the timezone on each new connection. This means you
don't need to restart smbd after a DST change.
(This used to be commit 2a50d5d5ed4ca7d2b546d7337ec88c527ec82689)

26 years agoUpdate file for automatically generating a release
Herb Lewis [Fri, 31 Oct 1997 17:33:04 +0000 (17:33 +0000)]
Update file for automatically generating a release
(This used to be commit 01df21c22d567a0cc6d69a03fd3246dcfd92217d)

26 years agochange from * to ^ in hashing of device/inode. Using * meant that if
Andrew Tridgell [Fri, 31 Oct 1997 05:56:07 +0000 (05:56 +0000)]
change from * to ^ in hashing of device/inode. Using * meant that if
the device number happened to divide the number of hash buckets we
would only use a small fraction of the hash buckets, which would slow
things down.
(This used to be commit 623ffd701f2f966875d396d8b2df74f0cf874cda)

26 years agodefine NO_SEMUN for svr4
Andrew Tridgell [Fri, 31 Oct 1997 05:54:36 +0000 (05:54 +0000)]
define NO_SEMUN for svr4
(This used to be commit a43fa71a5fa740ae8757989c4177f21d8193de94)

26 years agoOSF1 doesn't define union semun either.
Andrew Tridgell [Fri, 31 Oct 1997 04:51:29 +0000 (04:51 +0000)]
OSF1 doesn't define union semun either.
(This used to be commit af7700aa2e3c736f86ae3217a424dfb0910f5f45)

26 years agopm_process() never closed the file (a memory and file descriptor leak)
Andrew Tridgell [Fri, 31 Oct 1997 04:27:55 +0000 (04:27 +0000)]
pm_process() never closed the file (a memory and file descriptor leak)
(This used to be commit 0d9b0d0fffc2b11fe4897b8b99f321fc7d9a143c)

26 years agono Makefile needed here either
Andrew Tridgell [Fri, 31 Oct 1997 02:50:37 +0000 (02:50 +0000)]
no Makefile needed here either
(This used to be commit 4d9cd22c9e885a3b1535ab4d80f0622121abc7a6)

26 years agothis is now in the rpc_pipes directory
Andrew Tridgell [Fri, 31 Oct 1997 02:48:40 +0000 (02:48 +0000)]
this is now in the rpc_pipes directory
(This used to be commit 642ef3c78ad6d1c75ac127ff2169a9081a1c1454)

26 years agoremoving the files that are now in rpc_pipes
Andrew Tridgell [Fri, 31 Oct 1997 02:46:26 +0000 (02:46 +0000)]
removing the files that are now in rpc_pipes

For future reference, if you want to move files about then don't do it
this way. The history info is lost.

Instead contact me first and tell me what you want moved and why. Then
I'll decide if we can do it while retaining the history info.
(This used to be commit 0e244f9e7c6b7fd7367e9b79bf4bedcbc80d336a)

26 years ago- cleanup some warnings
Andrew Tridgell [Fri, 31 Oct 1997 02:40:55 +0000 (02:40 +0000)]
- cleanup some warnings

- redo the prototypes
(This used to be commit 31dcb51e05914d49d81a3faef354aaf0ab9fa63f)

26 years agoblanked out these files, so that if someone does make proto, they don't
Luke Leighton [Thu, 30 Oct 1997 22:33:59 +0000 (22:33 +0000)]
blanked out these files, so that if someone does make proto, they don't
interfere with the files in the rpc_pipes/ directory.

andrew doesn't want to lose any cvs history by moving files around, so
he's going to look into that tomorrow.
(This used to be commit 5858cb97f565bb1d6337f3bc350b1f8cdfd4555b)

26 years agoadded a client-side "set named pipe handle state" function. not known
Luke Leighton [Thu, 30 Oct 1997 22:21:49 +0000 (22:21 +0000)]
added a client-side "set named pipe handle state" function.  not known
exactly when you call this (before or after a bind).  can sort that out
later.
(This used to be commit a64ba16db615f83739c147a521ccff3f7c42987b)

26 years agostoring pipe name state (from set named pipe handle state call) in the
Luke Leighton [Thu, 30 Oct 1997 21:51:15 +0000 (21:51 +0000)]
storing pipe name state (from set named pipe handle state call) in the
pipes array.
(This used to be commit 5335d5cdc4659f4676958f0399e2de29a117c133)

26 years agoModified Files:
Christopher R. Hertel [Thu, 30 Oct 1997 18:05:56 +0000 (18:05 +0000)]
Modified Files:
        ubiqx/Makefile ubiqx/README.UBI

Added new modules to the Makefile.  Changed the text of the README to
reflect the directory change.

Added Files:
        ubiqx/ubi_AVLtree.c ubiqx/ubi_AVLtree.h
        ubiqx/ubi_BinTree.c ubiqx/ubi_BinTree.h
        ubiqx/ubi_SplayTree.c ubiqx/ubi_SplayTree.h
        ubiqx/ubi_StackQueue.c ubiqx/ubi_StackQueue.h
        ubiqx/ubi_sLinkList.c ubiqx/ubi_sLinkList.h

This is the remainder of the toolkit.  A quick rundown:
  sLinkList  = A simple singly-linked list.
  StackQueue = Implements both a stack and a queue.
  dLinkList  = (Not added 'cause it's already there.)  A doubly-linked list.

  BinTree    = Base level binary tree module.  (No height balancing, just
               the basics.)
  AVLtree    = Descendant type of BinTree.  Implements a height-balanced
               (AVL) binary tree.
  SplayTree  = Descendant type of BinTree.  Implements a splay-balanced
               binary tree.

Renamed Files:
        ubiqx/COPYING.LGPL ==> ubiqx/COPYING.LIB

This matches the naming that GNU suggests.
(This used to be commit c6205dd45e455a4a228a3411b95fa569e0ea00e1)

26 years agoGLPL notice on the rpc_pipes/ directory
Luke Leighton [Thu, 30 Oct 1997 17:27:06 +0000 (17:27 +0000)]
GLPL notice on the rpc_pipes/ directory
(This used to be commit 808a0b1be700eaf074c113f45bb5febf02d41112)

26 years agoMakefile:
Luke Leighton [Thu, 30 Oct 1997 17:08:42 +0000 (17:08 +0000)]
Makefile:

simply adding pipes.o to SMBDOBJ3.

rpc_pipes/pipe_hnd.c :

created pipe handles module.

pipes.c server.c :

use of pipe_hnd functions in SMBopenX and SMBclose, on the IPC$ pipe.
(This used to be commit ada256b5e3b9fb0db988e3be7d47943e7c19b3fb)

26 years agoMakefiles for libraries. the dependencies aren't quite right, and i
Luke Leighton [Thu, 30 Oct 1997 15:42:40 +0000 (15:42 +0000)]
Makefiles for libraries.  the dependencies aren't quite right, and i
don't know how to sort them.

make proto in each library directory.  over-ride the make proto for ubiqx,
so that it doesn't happen, but throws up a warning instead.
(This used to be commit 93df2c62cc32191e88c0c4e615ac6077ec2b07c3)

26 years agoChris will be pleased to know that mkproto.awk no longer runs on the
Andrew Tridgell [Thu, 30 Oct 1997 08:50:18 +0000 (08:50 +0000)]
Chris will be pleased to know that mkproto.awk no longer runs on the
ubiqx files :-)
(This used to be commit 13d90255928711c05d8e147081afa309b8abf1af)

26 years agomoved ubi_ modules back into the ubiqx directory.
Andrew Tridgell [Thu, 30 Oct 1997 08:44:29 +0000 (08:44 +0000)]
moved ubi_ modules back into the ubiqx directory.

I've added a very simple (and portable) method for having separate
source directories.

This should also help when we add directories for the various ports. A
unix directory would make sense.
(This used to be commit dc8998b1d3c119665538eb5e0b133a47f89fed19)

26 years agopreparing for release of 1.9.18alpha9
Samba Release Account [Thu, 30 Oct 1997 01:13:34 +0000 (01:13 +0000)]
preparing for release of 1.9.18alpha9
(This used to be commit 9212c93beefa83be349b250fe98b65e07d842038)