kai/samba.git
26 years agodealing with some stack overflow bug somewhere around the use of
Luke Leighton [Thu, 16 Oct 1997 13:38:16 +0000 (13:38 +0000)]
dealing with some stack overflow bug somewhere around the use of
deal_with_credentials() by moving important code to the beginning
of the function :-) :-) :-).

the new seed (old_cred + time + 1) was getting corrupted.
(This used to be commit dab35ce5d61d53bce6ede44e56d9393645c0d67e)

26 years agoinside the auth 2 response bits, i wasn't storing the received client
Luke Leighton [Thu, 16 Oct 1997 12:59:40 +0000 (12:59 +0000)]
inside the auth 2 response bits, i wasn't storing the received client
credentials for the calculation of the next credentials: i was storing
the auth 2 calculated credentials.

oops.
(This used to be commit eb81fae874383f77ad72c0f7686b8c49e645b0b8)

26 years agoadd ERRDOS/67 ERRnosuchshare to the client.c list of error strings
Andrew Tridgell [Thu, 16 Oct 1997 08:01:00 +0000 (08:01 +0000)]
add ERRDOS/67 ERRnosuchshare to the client.c list of error strings
(This used to be commit 1cccd7c519b8a706567477629bee70f7b7267b5c)

26 years agoAdded Michael Johnsons' PAM modifications <johnsonm@redhat.com>
John Terpstra [Thu, 16 Oct 1997 05:33:24 +0000 (05:33 +0000)]
Added Michael Johnsons' PAM modifications <johnsonm@redhat.com>
This patch has been checked over. JHT
(This used to be commit c84a043f89ccba001597962cd03e2f2a634c4b08)

26 years agofixed the problem that browsing breaks if you put quote marks around
Andrew Tridgell [Thu, 16 Oct 1997 03:53:07 +0000 (03:53 +0000)]
fixed the problem that browsing breaks if you put quote marks around
the server string option.

I fixed it by adding: trim_string(ret, "\"", "\"") to lp_string()
which means that it removes leading and trailing quotes from _all_
strings in smb.conf. I think this is what we want as I can't actually
think of any case where quoted strings are needed.

I suspect that this fix will actually fix browsing at quite a few
sites. It's not uncommon to see people putting "" marks around the
workgroup name or other essential strings.

The real reason it was causing browsing to fail is that the browse.dat
file uses " to delimit fields, which means that it wasn't being parsed
correctly. It would be nice to use a proper database format in
browse.dat sometime. In fact, we really need a generic database type
subsystem in Samba to replace the mish-mash we currrently use
(browse.dat, wins.dat, smbpasswd etc)
(This used to be commit ac50a88e1181bd4954f03e5450dedce87ed781ad)

26 years agoMoved the LGPL from the ubiqx directory into the samba root directory
Christopher R. Hertel [Thu, 16 Oct 1997 01:13:09 +0000 (01:13 +0000)]
Moved the LGPL from the ubiqx directory into the samba root directory
and renamed it COPYING.LGPL.  This is because the ubi_* files are under
LGPL, not regular GPL.
Removed the last few things from the ubiqx directory and deleted it.
(This used to be commit 31d50db98bbb3b64400d432e386056f7963b7d8d)

26 years agoDon't need it any more.
Christopher R. Hertel [Thu, 16 Oct 1997 01:06:12 +0000 (01:06 +0000)]
Don't need it any more.
(This used to be commit 905b2b9562a8c82696d38024ec42aa38ca990277)

26 years agoMade changes to the dir cache functions:
Christopher R. Hertel [Thu, 16 Oct 1997 01:03:18 +0000 (01:03 +0000)]
Made changes to the dir cache functions:
- They now use the ubi_dLinkList linked list code.
  This is not a big gain, I suppose.  It would be significant if there
  were lots of doubly-linked lists in the code and I replaced them all.
  The only other advantage is that the code is more modular, which
  appeals to my own sense of order, if no one elses.  :-}
- I allocate space for the entry structure and the strings in one go,
  instead of using malloc() and separate strdup() calls.  This should
  be more efficient, and allows for a single call to free() to free the
  whole thing.
These are very minor changes, but they do serve to make me more familiar
with the code overall.
(This used to be commit 1dafef88871338f06dbcbbb67ce3bbbb460d7bb6)

26 years agoThis code manages a simple doubly-linked list.
Christopher R. Hertel [Thu, 16 Oct 1997 00:55:11 +0000 (00:55 +0000)]
This code manages a simple doubly-linked list.
(This used to be commit a88ae60fc33e3598f46dfc38e930e261d5e06888)

26 years agoI got fed up trying to put the tree and list stuff into a subdirectory,
Christopher R. Hertel [Thu, 16 Oct 1997 00:46:21 +0000 (00:46 +0000)]
I got fed up trying to put the tree and list stuff into a subdirectory,
so I've started to move them into the main directory.
(This used to be commit 4691a94d3c657321d29231f062aed714dfe4ac26)

26 years agoipc.c: Adding Andrews become_root code to the main branch.
Jeremy Allison [Wed, 15 Oct 1997 21:53:59 +0000 (21:53 +0000)]
ipc.c: Adding Andrews become_root code to the main branch.
locking.c: Adding Andrews become_root code to the main branch.
pipes.c: Fixing the close_file issue.
proto.h: The usual.
reply.c: Move smb_pass into NTDOMAIN defined code. Fixing the close_file issue.
server.c: Fixing the close_file issue.
trans2.c: Fixing the close_file issue.
uid.c: Adding Andrews become_root code to the main branch.
Jeremy (jallison@whistle.com)
(This used to be commit 16fd4337f79ce33f91050c96c4a566221c5d9126)

26 years agosmb.h smbparse.c pipenetlog.c :
Luke Leighton [Wed, 15 Oct 1997 19:16:38 +0000 (19:16 +0000)]
smb.h smbparse.c pipenetlog.c :

whoops, the SAM Logon structure was wrong.  updated this, and
cifsntdomain.txt.  more debug info in pipenetlog.c.  the crash
is somewhere around deal_with_credentials().

byteorder.h :

put in uint8, uint16 and uint32 typecasts around debug info, because
sign extending was resulting in ffffffe8 being displayed instead of e8.

credentials.c :

some debugging info, because i'm tracking a coredump.  without gdb.
nothing like making things difficult.

reply.c :

whoops, missed this (important) bit from paul's code, which tells
the NT workstation that the MACHINE$ entry doesn't already exist,
and we're going to create a default entry with a password "machine"
right now.

proto.h:

the usual.
(This used to be commit ed606bc7d4e6fb1091e527ea70a3e950d50a1db4)

26 years agoAdded ubi_sLinkList module which manages simple singly-linked lists.
Christopher R. Hertel [Wed, 15 Oct 1997 17:59:58 +0000 (17:59 +0000)]
Added ubi_sLinkList module which manages simple singly-linked lists.
(This used to be commit e55a3dc94a824b61a7123b080705be2271268ee4)

26 years agoadded srvsvc basic pipe, straight from paul's code. does NETSHAREENUM
Luke Leighton [Wed, 15 Oct 1997 16:51:03 +0000 (16:51 +0000)]
added srvsvc basic pipe, straight from paul's code.  does NETSHAREENUM
and NETSERVERGETINFO.
(This used to be commit 96b17b829fc787c15cd366eca604c09d68b5b900)

26 years agothe usual proto.h update
Andrew Tridgell [Wed, 15 Oct 1997 09:18:39 +0000 (09:18 +0000)]
the usual proto.h update
(This used to be commit bdf3155418be02e2fe4daa1d2538f236be414e98)

26 years agoadd the port number to a debug statement
Andrew Tridgell [Wed, 15 Oct 1997 09:17:21 +0000 (09:17 +0000)]
add the port number to a debug statement
(This used to be commit 97d06dd05e952a134be26ec5998ec4b8d38991dd)

26 years agoadded loopback_ip. This is used to detect packets from ourselves
Andrew Tridgell [Wed, 15 Oct 1997 09:16:30 +0000 (09:16 +0000)]
added loopback_ip. This is used to detect packets from ourselves
(This used to be commit eb76fea411c5c3aa96b7158d02b49ed42ec7ba70)

26 years agofixed the freeze on logout bug. The fix has several parts:
Andrew Tridgell [Wed, 15 Oct 1997 09:15:45 +0000 (09:15 +0000)]
fixed the freeze on logout bug. The fix has several parts:

1) add a new parameter to queue_netbios_packet(), the "reply_id", this
is the id that should be used when sending a further response to the
packet (such as a response after we get back a reply to a name query
after senidnga  WACK). reply_id is 0 (meaning unused) in most cases.

2) fix the id used in the reply in add_name_respond() from
response_name_query_register()

3) remember to remove the response record at the end of
response_name_query_register()

4) get the right IP address (it was 0.0.0.0) in
response_name_query_register()

5) add a new field reply_id to struct response_record
(This used to be commit e1e86c1a160c8302004ea58e4f0f5874dd179dae)

26 years agofixed a stack overflow bug in api_lsa_req_chal()
Andrew Tridgell [Wed, 15 Oct 1997 04:51:23 +0000 (04:51 +0000)]
fixed a stack overflow bug in api_lsa_req_chal()

changed the order of arguments to smbhash() in credentials.c. Luke,
when you changed from E1() to smbhash() you didn't notice that the
arguments are in a different order. This is why your new code was
failing.

NT logon still fails, but now gets to SAMLOGON. It shouldn't take much
to get it working now.
(This used to be commit 708edc348f0fb81d9c918e4bf857f339a13a3781)

26 years agoforce the salt to be a maximum of 2 characters long in calls
Andrew Tridgell [Wed, 15 Oct 1997 04:04:38 +0000 (04:04 +0000)]
force the salt to be a maximum of 2 characters long in calls
to crypt()

This might solve some password problems, particulary on HPUX
(This used to be commit 45f4ae4327a8836cad22bbf64f1effba6a6eb7f5)

26 years agoThese are the ubiqx modules, as included with the Samba distribution.
Christopher R. Hertel [Wed, 15 Oct 1997 03:11:46 +0000 (03:11 +0000)]
These are the ubiqx modules, as included with the Samba distribution.
Updated the linked list module, which has new and changed macros.
(This used to be commit 2181d929d1757aa523e7afaf0e8c232a51e68d30)

26 years agoFirst draft of a README file to explain the origins of the "ubiqx" code.
Christopher R. Hertel [Wed, 15 Oct 1997 01:16:37 +0000 (01:16 +0000)]
First draft of a README file to explain the origins of the "ubiqx" code.
(This used to be commit df3bafd0c488760b1909329c899102d92a2fe16b)

26 years agoAdded a very small piece of documentation to describe the binary tree
Christopher R. Hertel [Tue, 14 Oct 1997 19:32:30 +0000 (19:32 +0000)]
Added a very small piece of documentation to describe the binary tree
modules.
(This used to be commit 781be1daac75092666c1753f21871f2923a6f775)

26 years agopipentlsa.c :
Luke Leighton [Tue, 14 Oct 1997 19:31:07 +0000 (19:31 +0000)]
pipentlsa.c :

lsa close odd bug.

smbparse.c :

smb_io_dom_sid() _does_ need 4-byte alignment before it.
(This used to be commit 93879ac8a533ad8cc175275cf1fc9a8f152f4b5a)

26 years agoAdded a copy of the LGPL to the samba/ubiqx/ directory.
Christopher R. Hertel [Tue, 14 Oct 1997 19:30:07 +0000 (19:30 +0000)]
Added a copy of the LGPL to the samba/ubiqx/ directory.
(This used to be commit 28de393878872081bac3a0b3ca82d915eae56701)

26 years agobyteorder.h:
Luke Leighton [Tue, 14 Oct 1997 18:37:55 +0000 (18:37 +0000)]
byteorder.h:

created a RW_PIVAL macro which was missing.

smbparse.c:

smb_io_dom_sid() was storing its sub-authorities as uint16s instead
of uint32s.  used the DBG_RW_PIVAL macro instead of DBG_RW_PSVAL.

pipentlsa.c:

not sure.  something to do with the Query Info reply.

pipeutil.c:

make_rpc_reply() had the packed representation field set to 0x0100 0000
instead of 0x1000 0000, which had the interesting result of turning all
uint32 and uint16 field byte ordering the other way round!
(This used to be commit eafd6e9e797c5badb07059d7eddabd6a8947c830)

26 years agocredentials, query info reply.
Luke Leighton [Tue, 14 Oct 1997 17:01:43 +0000 (17:01 +0000)]
credentials, query info reply.
(This used to be commit 9b095887df204393090d7da9a47508685ddd5163)

26 years agodocs/DIAGNOSIS.txt:
John Terpstra [Tue, 14 Oct 1997 13:12:01 +0000 (13:12 +0000)]
docs/DIAGNOSIS.txt:
Added comment right up front about "your server is being unfriendly"
type error messages.

source/Makefile:
Added compile options for RedHat Linux 5.0 series.
(This used to be commit 1f9eb492023de95f8f7cabc2c4cafcf2170d43a8)

26 years agochanged *(uint32*)(clnt_cred) to SIVAL(clnt_cred, ....)
Luke Leighton [Tue, 14 Oct 1997 10:17:12 +0000 (10:17 +0000)]
changed *(uint32*)(clnt_cred) to SIVAL(clnt_cred, ....)
(This used to be commit 0056b154435e9d2a3fd2be37f7c3afd9e3fbfd87)

26 years agoBroke my own rule about checking in uncompiled source :-(.
Jeremy Allison [Tue, 14 Oct 1997 00:36:57 +0000 (00:36 +0000)]
Broke my own rule about checking in uncompiled source :-(.
Jeremy.
(This used to be commit 9fd056c91196746e09f220a15171f3c97791dcce)

26 years agoAdded fixes for become_user braindamage.
Jeremy Allison [Tue, 14 Oct 1997 00:16:37 +0000 (00:16 +0000)]
Added fixes for become_user braindamage.
Jeremy (jallison@whistle.com)
(This used to be commit 08afa51f5c80f3da983781774378bc1646c431d7)

26 years agoanother alignment of client challenge: this one in lsa_io_q_auth_2().
Luke Leighton [Mon, 13 Oct 1997 19:37:43 +0000 (19:37 +0000)]
another alignment of client challenge: this one in lsa_io_q_auth_2().
there are going to be a few of these...
(This used to be commit 3db1fe79c300f17d087c85c7e768a8d11c0f7661)

26 years agolsa_io_r_req_chal() - challenge is not 4-byte aligned after the unicode
Luke Leighton [Mon, 13 Oct 1997 18:11:20 +0000 (18:11 +0000)]
lsa_io_r_req_chal() - challenge is not 4-byte aligned after the unicode
                      strings.
(This used to be commit 717bcd6e3457f355583b4508d1f4edc9a52650df)

26 years agoput a check around become_user(). doesn't authenticate the user, but doesn't
Luke Leighton [Mon, 13 Oct 1997 17:11:07 +0000 (17:11 +0000)]
put a check around become_user().  doesn't authenticate the user, but doesn't
quit the whole pipe, either...
(This used to be commit 14f0c2ddb05a690e671efad8c47da9ff1e39c8ce)

26 years agoresolving some of the confusion over credentials.
Luke Leighton [Mon, 13 Oct 1997 16:32:43 +0000 (16:32 +0000)]
resolving some of the confusion over credentials.
(This used to be commit 9d1f45ca6bbdeeef448ccb55e1275c6f9ec59820)

26 years agosplit pipes.c down into util, netlog and ntlsa.
Luke Leighton [Mon, 13 Oct 1997 15:55:54 +0000 (15:55 +0000)]
split pipes.c down into util, netlog and ntlsa.
(This used to be commit 8fe02c239d70497af449ed0cdf1a32de10021ba1)

26 years agodebugging... no idea what i'm doing.
Luke Leighton [Mon, 13 Oct 1997 14:19:17 +0000 (14:19 +0000)]
debugging... no idea what i'm doing.
(This used to be commit d7a9a02e0a9e1e791810c24bcfcbd39a6bd7dac5)

26 years agoreverted a change made by Luke at his request.
Andrew Tridgell [Mon, 13 Oct 1997 13:49:50 +0000 (13:49 +0000)]
reverted a change made by Luke at his request.

Luke, when you don't know what has been changed in the CVS tree I
highly recommend you point your browser at:

http://samba.anu.edu.au/cgi-bin/cvsweb/samba/source

If you click on a filename you can then see all the commits and
changes that have been made to it over time. You can also download any
version of the file or find the differences between any two versions.

All of this is not dependent on the state of your local CVS sandbox,
so it can be used to find out the "true" state of the tree at any
time.

If you suspect some sort of CVS problem (like a change getting
reverted) then please use the above URL to work out what has
happened. You should be able to see exactly who made what changes and
when.
(This used to be commit 3fc48246ee0d89ad2f10f050d2d68af53446129f)

26 years agodebug info added
Luke Leighton [Mon, 13 Oct 1997 13:35:37 +0000 (13:35 +0000)]
debug info added
(This used to be commit a3f96555b47265b8cd4d1f735af58375e2591d56)

26 years agoJHT ==> Getting ready for 1.9.18alpha1.
John Terpstra [Mon, 13 Oct 1997 13:00:59 +0000 (13:00 +0000)]
JHT ==> Getting ready for 1.9.18alpha1.
examples/smb.conf.default:
added line "share modes = no" to netlogon share parameter list

packaging/redhat:
updated RedHat RPM build files.
added smbadduser script (modified for RHL).
(This used to be commit 69fad04198bfcbaaadcebd6c81efdb3612af5bc8)

26 years agochecked in a file with a compile error. oops!
Luke Leighton [Mon, 13 Oct 1997 12:55:07 +0000 (12:55 +0000)]
checked in a file with a compile error.  oops!
(This used to be commit 28d96c7e6de19a28346d406ccc6fc8b00305903b)

26 years agobyteorder.h :
Luke Leighton [Mon, 13 Oct 1997 12:21:56 +0000 (12:21 +0000)]
byteorder.h :

debugging output wasn't (still isn't) perfect.

credentials.c lsaparse.c smbparse.c :

added DEBUG strings.

pipes.c :

lost some changes, to do with setup of RPC headers.  arg.
(This used to be commit 9fdd697d17b68293bb95fd68f44c24f0f5b97f5f)

26 years agoJHT ==> Removed linefeed that caused problems.
John Terpstra [Mon, 13 Oct 1997 12:13:11 +0000 (12:13 +0000)]
JHT ==> Removed linefeed that caused problems.
(This used to be commit 534b4c6d371eff6fdbcbcf5fafa3b79d3116b544)

26 years agoalign_offset() adjusted pointer to wrong location. oops.
Luke Leighton [Mon, 13 Oct 1997 11:15:46 +0000 (11:15 +0000)]
align_offset() adjusted pointer to wrong location.  oops.
(This used to be commit ba28678e3f673cd10d936f59ff0df6a852aca793)

26 years agoupdated the "comment =" entry a bit
Andrew Tridgell [Mon, 13 Oct 1997 00:03:37 +0000 (00:03 +0000)]
updated the "comment =" entry a bit

updated the fake oplocks entry a bit
(This used to be commit 60bb523c8a67065d0ede732e1c153f37a8a865b6)

26 years agogetting somewhere.
Luke Leighton [Sun, 12 Oct 1997 19:02:55 +0000 (19:02 +0000)]
getting somewhere.

ipc.c :

removed srvsvc pipe reference: have to do that.

pipes.c lsaparse.c smbparse.c :

more debugging info.  looks a bit like netmon output.
(This used to be commit e02aa88e25ae6d4da7953aaff04ff2ae9a656d05)

26 years agoupdated rpc header reply: callid wrong; alloc hint a uint32 not a uint16.
Luke Leighton [Sun, 12 Oct 1997 17:07:35 +0000 (17:07 +0000)]
updated rpc header reply: callid wrong; alloc hint a uint32 not a uint16.
still doesn't get rid of the netlogon trans2 request with zero data.
(This used to be commit 0cf67955f09d99c452bfc3fdde00dcea98e21db1)

26 years agoipc.c:
Luke Leighton [Sun, 12 Oct 1997 14:17:55 +0000 (14:17 +0000)]
ipc.c:

debugging info.  found that data = NULL because of short packet length
indicated from the ntlsaRPC pipe _royally_ stuffs NT's packet handling.
maybe this should go down as a service denial bug to the ntbugtraq list.

pipes.c lsaparse.c smbparse.c :

added more debug stuff.  added length of header to data_len in MSRPC
fragment_length field (0x18 bytes short) which caused the above bug
from NT 4.0.  oops.
(This used to be commit a6f8de6815e0b85bb23b302980730501ac0b87e5)

26 years agoadded debugging macros (suitable eventually for use in tcpdump, hopefully)
Luke Leighton [Sun, 12 Oct 1997 11:46:42 +0000 (11:46 +0000)]
added debugging macros (suitable eventually for use in tcpdump, hopefully)
(This used to be commit 946d73cf838976b905550288cac3aea7c43959f6)

26 years agoAdded Finland ftp mirror (PR#175) (Paul)
Samba Release Account [Sun, 12 Oct 1997 04:40:48 +0000 (04:40 +0000)]
Added Finland ftp mirror (PR#175) (Paul)
(This used to be commit b1ba290f2ee8c4317e0daf7b6ae18caa82331cc2)

26 years agoremove { and } from the list of illegal characters in filenames. The
Andrew Tridgell [Sun, 12 Oct 1997 03:48:47 +0000 (03:48 +0000)]
remove { and } from the list of illegal characters in filenames. The
CIFS3 spec does not list them as illegal.

This allows things like the control panel icon to be placed on a Samba
drive.
(This used to be commit d2ac9e6fb6e76778154c58217237251d7bb0e98c)

26 years agoJHT ==> Luke, your forgot to change the modified date!
John Terpstra [Sat, 11 Oct 1997 16:03:21 +0000 (16:03 +0000)]
JHT ==> Luke, your forgot to change the modified date!
(This used to be commit 1e2fe7c0db0386cb6a007b11ceae53d04e9b8658)

26 years agonamelogon.c :
Luke Leighton [Sat, 11 Oct 1997 15:10:57 +0000 (15:10 +0000)]
namelogon.c :

added NTLOGON.  (fixed the case 0:)

namepacket.c:

call to NTLOGON mailslot

nameserv.h

defines for NETLOGON and NTLOGON mailslot

util.c:

added andrew's dump_data() function.
(This used to be commit 1eaad1c99463dcd42eb8ff4ea5686ad9ec6fc42e)

26 years agoupdated Sunsite UK. (Paul)
Samba Release Account [Sat, 11 Oct 1997 03:53:53 +0000 (03:53 +0000)]
updated Sunsite UK. (Paul)
(This used to be commit 15a987b9b84293e0c921388b63519e0cf320601f)

26 years agoUpdated mirrors, combined Sources and Sources&Binaries as our binaries
Samba Release Account [Sat, 11 Oct 1997 02:50:55 +0000 (02:50 +0000)]
Updated mirrors, combined Sources and Sources&Binaries as our binaries
are now with our sources.
Have requested that mirror sites remove the old 'binaries' tree.
Paul.
(This used to be commit 453a543f2ab6b18d505ea6bfc749dc127ab602cf)

26 years agothe usual
Luke Leighton [Fri, 10 Oct 1997 19:49:17 +0000 (19:49 +0000)]
the usual
(This used to be commit 2ade5b2706b884fbca2a5794912280a58bc41a08)

26 years agoadded api_lsa_sam_logon() and api_sam_logoff(). that's it. lots of
Luke Leighton [Fri, 10 Oct 1997 19:48:51 +0000 (19:48 +0000)]
added api_lsa_sam_logon() and api_sam_logoff().  that's it.  lots of
run-time debugging, now.
(This used to be commit 75f32987d8599d10b294dc4e0c0160eecda7296b)

26 years agoadded lsa_reply_srv_pwset()
Luke Leighton [Fri, 10 Oct 1997 18:03:30 +0000 (18:03 +0000)]
added lsa_reply_srv_pwset()
(This used to be commit 0d043cfef289ee82287bb6014a164ba83ca87f30)

26 years agoipc.c :
Luke Leighton [Fri, 10 Oct 1997 16:40:23 +0000 (16:40 +0000)]
ipc.c :

#if NTDOMAIN
call to api_netlogRPC
#endif

lsaparse.c :

renamed lsa_io_q_auth2 to lsa_io_q_auth_2.

pipes.c :

added api_lsa_reply_auth_2() and api_netlogRPC.

proto.h :

the usual.
(This used to be commit e2e1979b6215080593728942d414a273505877df)

26 years agoI have to admit that I'm not very good at writing Makefiles.
Christopher R. Hertel [Fri, 10 Oct 1997 16:12:27 +0000 (16:12 +0000)]
I have to admit that I'm not very good at writing Makefiles.
This one will simply create an object file from each of the .c files
in the directory.  These could be linked into a static library, but
I'm not sure that this is worthwhile.  If anyone wants to improved on
what I've got here, please do!  crh -)-----
(This used to be commit 5e521438292472c816527d4ee7c6dff7e3c217ea)

26 years agoMakefile:
Luke Leighton [Fri, 10 Oct 1997 14:48:05 +0000 (14:48 +0000)]
Makefile:

added credentials.c to smbd

credentials.c:

using credential structures instead of char*

password.c uid.c server.c:

added sid and attr to user_struct.

smbdes.c:

smbhash and str_to_key make public instead of private.

pipes.c smb.h:

lsa structures, sub-functions.

proto.h:

usual.
(This used to be commit 87a0a944855a673d693d934e446bdc231b1c7f02)

26 years agoThis is the ubiqx binary tree and linked list library.
Christopher R. Hertel [Fri, 10 Oct 1997 14:46:43 +0000 (14:46 +0000)]
This is the ubiqx binary tree and linked list library.
This library is being included as part of the Samba distribution.
(Hurray!)
(This used to be commit 3590a783338defa4ff1385b2d5bb095c5051ac82)

26 years agoAfter generating some discussion, listening to the opinions, and thinking
Christopher R. Hertel [Fri, 10 Oct 1997 14:13:48 +0000 (14:13 +0000)]
After generating some discussion, listening to the opinions, and thinking
about it for a while, I've decided to move the tree & list code into a
separate subdirectory.
(This used to be commit 6fffcff57d20690546a545ddd95a5d3d2c329715)

26 years agoAfter generating some discussion, listening to the opinions, and thinking
Christopher R. Hertel [Fri, 10 Oct 1997 14:12:22 +0000 (14:12 +0000)]
After generating some discussion, listening to the opinions, and thinking
it over, I've decided to move the tree & list code into a subdirectory.
CRH
(This used to be commit d8d063d29b52697070efb182d573d519e13c2e53)

26 years agocorrected paragraph giving the impression that samba can be a domain master
Luke Leighton [Fri, 10 Oct 1997 11:52:09 +0000 (11:52 +0000)]
corrected paragraph giving the impression that samba can be a domain master
for multiple workgroups.
(This used to be commit 37a8a5c4c69f051fa1b60f85db1f0ea6360bbba2)

26 years agofixed the log wrapping bug.
Andrew Tridgell [Fri, 10 Oct 1997 02:32:01 +0000 (02:32 +0000)]
fixed the log wrapping bug.

This is a very nasty bug that I think explains quite a few
intermittent problems people have been having with Samba.

It may be worth checking on other cases where errno can be overwritten
by seemingly innocuous things (in this case a DEBUG() line)
(This used to be commit 1448f528b60402170257c1cdf6831cc40b4c86c9)

26 years agonmblookup.c: Added -A ability to do status on ip address.
Jeremy Allison [Fri, 10 Oct 1997 01:32:26 +0000 (01:32 +0000)]
nmblookup.c: Added -A ability to do status on ip address.
smb.h: Added defines we will need for NT SMB calls.
trans2.c: Fixed SMB_QUERY_FILE_ALT_NAME_INFO return - this is only
for short name returns (and only used when you negotiate NT SMB calls
to boot !).
Jeremy (jallison@whistle.com)
(This used to be commit 53915bd160eda8c099482ddcef74d1d7606e752b)

26 years agoAdded in oplock info.
Jeremy Allison [Thu, 9 Oct 1997 20:30:29 +0000 (20:30 +0000)]
Added in oplock info.
Jeremy (jallison@whistle.com)
(This used to be commit 229b6c409240a8dca9172702b8fefb31aa3b13a1)

26 years agoAdded definition of oplocks parameter.
Jeremy Allison [Thu, 9 Oct 1997 18:48:12 +0000 (18:48 +0000)]
Added definition of oplocks parameter.
Jeremy (jallison@whistle.com)
(This used to be commit f9df5ac008e368af86addee058f75c7e79ca74ce)

26 years agolocal.h: Fix spelling mistake :-).
Jeremy Allison [Thu, 9 Oct 1997 18:40:52 +0000 (18:40 +0000)]
local.h: Fix spelling mistake :-).
namedbsubnet.c: Stop registering 1x name unless we can be a local master.
reply.c: Remove ERRbaddirectory code.
server.c: Remove abort() - use exit_server() instead.
trans2.c: Remove ERRbaddirectory code.
Jeremy (jallison@whistle.com)
(This used to be commit 76247228896d39312ba896fa229076be3271e2e4)

26 years agoadded #ifdef NTDOMAIN. added call to api_ntLsarpc instead of api_Lsarpc
Luke Leighton [Thu, 9 Oct 1997 16:14:53 +0000 (16:14 +0000)]
added #ifdef NTDOMAIN.  added call to api_ntLsarpc instead of api_Lsarpc
in ipc.c iff NTDOMAIN is defined.
(This used to be commit 7bc4c4c27bf18ce3f632d230dc919ea341b5abb0)

26 years agomoved the array macros outside of the CAREFUL_ALIGNMENT define.
Luke Leighton [Thu, 9 Oct 1997 15:51:43 +0000 (15:51 +0000)]
moved the array macros outside of the CAREFUL_ALIGNMENT define.
(This used to be commit d9fcf11aa04ff04dcbccd628322240f8324ae51d)

26 years agopipes.c:
Luke Leighton [Thu, 9 Oct 1997 15:48:40 +0000 (15:48 +0000)]
pipes.c:

added api_ntlsarpcTNP() function.  hooray!

smb.h:

added LSA #defines needed by above function.
(This used to be commit 5437f666987918516032cf8a5dada107e5d14d25)

26 years agocredentials.c:
Luke Leighton [Thu, 9 Oct 1997 14:40:46 +0000 (14:40 +0000)]
credentials.c:

use UTIME structure (defined and commented in smb.h to be time, secs,
                         since 01jan1970)

pipes.c:

another sub-function.

util.c:

added char *unistr2(uint16 *buff) function.  same as unistr except
    it takes uint16* instead of char*.

smbparse.c smb.h:

more structure sorting.

proto.h:

the usual.
(This used to be commit 72a86f514f0c92b69499718e63f5dd73ebece56e)

26 years agoJHT ===> Added smbadduser contributed by Mike Zakharoff.
John Terpstra [Thu, 9 Oct 1997 11:24:39 +0000 (11:24 +0000)]
JHT ===> Added smbadduser contributed by Mike Zakharoff.
(This used to be commit 135d054e831cd0f5962acc05d03b38360b73827e)

26 years agoan implementation of the NT domain credentials protocol
Andrew Tridgell [Thu, 9 Oct 1997 10:01:12 +0000 (10:01 +0000)]
an implementation of the NT domain credentials protocol
(This used to be commit dd6ac9b1eea3b0ace27fbd014b5ad4625c1fdf94)

26 years agobracket some macros
Andrew Tridgell [Thu, 9 Oct 1997 06:36:04 +0000 (06:36 +0000)]
bracket some macros

change MAX_PASSWORD_LENGTH to MAX_PASS_LEN to prevent conflict on some
systems

add #ifdef around soft link dependent code (for systems that don't
have soft links)
(This used to be commit e10ba4b97a219e87b62d32834bf15ed2e323ed2e)

26 years agoThis is my library of lists and trees. My hope is to replace all of the
Christopher R. Hertel [Thu, 9 Oct 1997 04:09:56 +0000 (04:09 +0000)]
This is my library of lists and trees.  My hope is to replace all of the
hard coded linked lists that are currently used in Samba with calls to
these modules.  This should make the code simpler, smaller, and (I hope)
faster.  The tree code, in particular, should speed up processing where
large lists are involved.

Chris -)-----
(This used to be commit e789179dfda669bd768720cb3732cf56a49027b5)

26 years agoPut in fix for read-prediction extending files bug. Hard to test, can't
Jeremy Allison [Wed, 8 Oct 1997 22:23:47 +0000 (22:23 +0000)]
Put in fix for read-prediction extending files bug. Hard to test, can't
get read-prediction to happen :-).
Jeremy (jallison@whistle.com)
(This used to be commit fa69b3dda47d56e0c3ce1f4f284eac89d4b4bf56)

26 years agoadded a dummy function (space in front so make proto doesn't pick it up)
Luke Leighton [Wed, 8 Oct 1997 21:36:42 +0000 (21:36 +0000)]
added a dummy function (space in front so make proto doesn't pick it up)
to call the unused static functions in pipes.c.  avoids need to move
#if UNDEFINED_NTDOMAIN about, to stop compiler warnings while code is
being developed, but might be released as-is.
(This used to be commit d7f41e3815babce58fa9901f076c2918666abaf9)

26 years agoMakefile: Split definitions for SGI4,5,6.
Jeremy Allison [Wed, 8 Oct 1997 20:34:13 +0000 (20:34 +0000)]
Makefile: Split definitions for SGI4,5,6.
includes.h: Split definitions for SGI4,5,6.
pipes.c: Moved Luke's #ifdef to remove warnings.
quotas.c: Two changes for FreeBSD and SGI.
server.c: Quota changes for large filesystems.
Jeremy (jallison@whistle.com)
(This used to be commit b8ff5543b9fa45095caa9f24aeb22a1dcc1cd308)

26 years agoadded api_lsa_lookup_sids() function
Luke Leighton [Wed, 8 Oct 1997 18:36:34 +0000 (18:36 +0000)]
added api_lsa_lookup_sids() function
(This used to be commit 35dd48740d8f733e7725813322b094b4679b31c5)

26 years agoloadparm.c proto.h:
Luke Leighton [Wed, 8 Oct 1997 17:12:07 +0000 (17:12 +0000)]
loadparm.c proto.h:

added lp_domainsid()

lsaparse.c smb.h:

debugging structures and parsing functions

pipes.c:

finally got to the functions that will go into the RPC switch statement.
(This used to be commit d15aed8a9c58a7cc90befaee2d5a2752708f9327)

26 years agoupdating lsaparse.c and smbparse.c in line with changes to pipes.c and smb.h
Luke Leighton [Wed, 8 Oct 1997 11:47:46 +0000 (11:47 +0000)]
updating lsaparse.c and smbparse.c in line with changes to pipes.c and smb.h
from yesterday.
(This used to be commit 0b7049fae25957851a7f33d2bd500d8ecefc1ad5)

26 years agoipc.c: Added ERROR_MORE_DATA error if client buffer too small.
Jeremy Allison [Wed, 8 Oct 1997 00:21:39 +0000 (00:21 +0000)]
ipc.c: Added ERROR_MORE_DATA error if client buffer too small.
server.c: Allow admin_user on read only shares. I think this is
safe but it needs looking at.
Jeremy (jallison@whistle.com)
(This used to be commit cc50955a2760f1de7e80b91408a7c0806f6eb44c)

26 years agoI rewrote the name_mangle() and name_len().
Christopher R. Hertel [Tue, 7 Oct 1997 22:04:05 +0000 (22:04 +0000)]
I rewrote the name_mangle() and name_len().
The interface is the same, but I've simplified the code a bit and added
a few comments.  I tested the changes and the output is the same as that
produced by the original (at least, it was in all of my tests).  CRH
(This used to be commit 707d0ec388c0045938f367e1d17919bfc8637fea)

26 years agolocking.c: Added fix for race condition in slow share mode code.
Jeremy Allison [Tue, 7 Oct 1997 18:46:19 +0000 (18:46 +0000)]
locking.c: Added fix for race condition in slow share mode code.
lsaparse.c: #ifdef'ed out code so this will compile - LUKE PLEASE CHECK THIS.
pipes.c: #ifdef'ed out code so this will compile - LUKE PLEASE CHECK THIS.
server.c: Fixed last known oplock race condition.
smb.h: Re-removed USE_OPLOCK defines - someone checked in an old version.
smbparse.c: #ifdef'ed out code so this will compile - LUKE PLEASE CHECK THIS.
Jeremy (jallison@whistle.com)
(This used to be commit 1e1366ddc5542283a37debdf830ca139bbade1b0)

26 years agopipes.c:
Luke Leighton [Tue, 7 Oct 1997 18:18:10 +0000 (18:18 +0000)]
pipes.c:

more static unused functions in pipes.c for the LSA RPC stream.

smb.h:

corrections and altercations over the documentation

lsaparse.c:

reflecting alterations in LSA structures...
(This used to be commit bef12478d212a950578843d6d4dece1f153bfd25)

26 years agoJHT ==> Fixing blocksize argument. Patch by: Llyod Whiteman
John Terpstra [Tue, 7 Oct 1997 16:01:08 +0000 (16:01 +0000)]
JHT ==> Fixing blocksize argument. Patch by: Llyod Whiteman
<lwhitman@stm2.nrl.navy.mil>
(This used to be commit 67c1e87e8fda724da6dd3663641639167dd33a16)

26 years agopipes.c:
Luke Leighton [Tue, 7 Oct 1997 14:58:07 +0000 (14:58 +0000)]
pipes.c:

some routines to create LSA RPC packets.  none of them are used.

lsaparse.c:
smbparse.c:
smb.h:

more tidy-up.
(This used to be commit b37e21273e81b875876e8e8ddf6804714044ffd8)

26 years agoincrease the debug level in the "added interface" debug line
Andrew Tridgell [Tue, 7 Oct 1997 14:36:22 +0000 (14:36 +0000)]
increase the debug level in the "added interface" debug line
(This used to be commit b12b3626fd9ccc9cdf2111937b3ee344da361b1f)

26 years agoget rid of SIGCLD_IGNORE for HPUX. A user reported it causing lots
Andrew Tridgell [Tue, 7 Oct 1997 11:14:27 +0000 (11:14 +0000)]
get rid of SIGCLD_IGNORE for HPUX. A user reported it causing lots
of defunct smbd processes.

Andrew
(This used to be commit bf1f8b1567cb46e3e73ae8dbb26f6228cf519c1f)

26 years agoMore references to samba.canberra
Samba Release Account [Tue, 7 Oct 1997 04:56:02 +0000 (04:56 +0000)]
More references to samba.canberra
Mental note: always commit from root directory. :^o
Paul.
(This used to be commit 5a38eaac75a6bede2d946f69cf664d7ca3989b55)

26 years agoOops forgot to run the sgml converters that one last time.
Samba Release Account [Tue, 7 Oct 1997 04:50:53 +0000 (04:50 +0000)]
Oops forgot to run the sgml converters that one last time.
All done.
Paul.
(This used to be commit 9a81cb171c178a85ecd045afafbce7d4b481344e)

26 years agoRemoved samba.faq from the docs directory, it was out of date. All FAQs in
Samba Release Account [Tue, 7 Oct 1997 04:47:23 +0000 (04:47 +0000)]
Removed samba.faq from the docs directory, it was out of date. All FAQs in
docs/faq.

Replaced all reference to samba.canberra.edu.au/pub/samba/samba.html
with samba.anu.edu.au/samba/

Replaced references to ictinus@lake.canberra.edu.au
with ictinus@samba.anu.edu.au

Added 3 new mirrors, Greece, Poland, Romania
Paul.
(This used to be commit d808df8191cdf21b011e773e6e99b0c65524253c)

26 years agoFinally ! Found & fixed crash bug with logging message when deleting
Jeremy Allison [Mon, 6 Oct 1997 19:50:51 +0000 (19:50 +0000)]
Finally ! Found & fixed crash bug with logging message when deleting
invalid share mode entries. Thanks to berg@wienrg.aut.alcatel.at (Dietmar Berg)
for the stack backtrace.
Jeremy (jallison@whistle.com)
(This used to be commit db4c2cb50e11d252ff3ba0e0973767e909dd33bd)

26 years agoclient.c: Changed shadowed variable.
Jeremy Allison [Mon, 6 Oct 1997 17:52:25 +0000 (17:52 +0000)]
client.c: Changed shadowed variable.
locking.c: Removed USE_OPLOCKS - now the default.
params.c: Removed unused variable.
proto.h: Updated.
reply.c: Removed USE_OPLOCKS - now the default.
server.c: Removed USE_OPLOCKS - now the default.
smb.h: Removed USE_OPLOCKS - now the default.
smbparse.c: Changed shadowed variable.
status.c: Removed USE_OPLOCKS - now the default.
util.c: Removed USE_OPLOCKS - now the default.
Jeremy (jallison@whistle.com)
(This used to be commit b93509846d6291771787af457500eec8984ee6bd)

26 years agolsaparse.c smb.h: added 32 bit "return status" to the response structures.
Luke Leighton [Mon, 6 Oct 1997 14:52:26 +0000 (14:52 +0000)]
lsaparse.c smb.h: added 32 bit "return status" to the response structures.
(This used to be commit 5bc75c6c626251dc8ba04ff4a83e81b92d93d2d6)

26 years agoMakefile: added lsaparse.c and smbparse.c
Luke Leighton [Mon, 6 Oct 1997 13:30:54 +0000 (13:30 +0000)]
Makefile:                      added lsaparse.c and smbparse.c
lsaparse.c, smbparse.c, smb.h: more functions / structures.
proto.h:                       the usual.
(This used to be commit a1c718728c46ebf8916af8985b4dae4d099f4ec2)

26 years agoupdating lsa and smb parsing routines and structures.
Luke Leighton [Sun, 5 Oct 1997 14:17:53 +0000 (14:17 +0000)]
updating lsa and smb parsing routines and structures.
(This used to be commit 2f722fe289051558dbe77aeb0a830bb3ded10a83)