samba.git
24 years agoAdded DNS Proxy, Printing, [netlogon] share modes = no.
John Terpstra [Mon, 20 Oct 1997 13:18:16 +0000 (13:18 +0000)]
Added DNS Proxy, Printing, [netlogon] share modes = no.

24 years agoupdated briefly to mention NT domain support as working, but experimental.
Luke Leighton [Mon, 20 Oct 1997 13:00:55 +0000 (13:00 +0000)]
updated briefly to mention NT domain support as working, but experimental.

24 years agoremoved home_share from user_info structure.
Luke Leighton [Mon, 20 Oct 1997 12:13:04 +0000 (12:13 +0000)]
removed home_share from user_info structure.

24 years agoutil.c password.c :
Luke Leighton [Mon, 20 Oct 1997 12:10:58 +0000 (12:10 +0000)]
util.c password.c :

added automount_server() function which, if -DAUTOMOUNT is in use,
returns the server name of the NIS auto.map entry.  otherwise,
it returns local_server.

added use of automount_server() for a new substitution %N for NIS
home server.  this defaults, via automount_server(), to the same
functionality as %L if -DAUTOMOUNT is not used.

removed vuser->home_share.  moved code that grabbed the servername
into the separate function automount_server().

loadparm.c :

created "logon drive" (default of "")
created "logon home"  (default of "\\%N\%U")
changed default of "logon path" from NULL to "\\%N\%U\profile".

ipc.c pipenetlog.c :

use lp_logon_drive(), lp_logon_home() and lp_logon_path() in their
now easier-to-use form (don't have to check if *lp_logon_path() and
manually substitute a default of \\%L\%U and do a standard_sub_basic()
on the result, because the default automatically does this.

24 years agoFixed Upper/Lower case typos.
John Terpstra [Mon, 20 Oct 1997 10:30:15 +0000 (10:30 +0000)]
Fixed Upper/Lower case typos.

24 years agoa major share modes reorganisation.
Andrew Tridgell [Mon, 20 Oct 1997 08:46:00 +0000 (08:46 +0000)]
a major share modes reorganisation.

The shares modes code is now split into separate files. The shared
memory implementation is in locking_shm.c. The slow implementation is
in locking_slow.c

It is all controlled by a struct share_ops structure that has function
pointers to the implementation of all the functions needed by a share
modes implementation. An initialisation function sets up this
structure. This will make adding new implementations easy and clean.

This also allowed me to get rid of the ugly code in smbstatus. Now
status.c links to the locking code and calls methods in share_ops.

I also renamed some things and generally organised things in a much
cleaner fashion. Defines and structures specific to each
implementation have been moved to the appropriate file and out of
smb.h.

24 years agocasting cleanups
Andrew Tridgell [Mon, 20 Oct 1997 02:50:12 +0000 (02:50 +0000)]
casting cleanups

24 years agoI am removing these from the source code in preparation for an
Andrew Tridgell [Mon, 20 Oct 1997 01:10:45 +0000 (01:10 +0000)]
I am removing these from the source code in preparation for an
upcoming 1.9.18alpha release. We can't release with this code in there
as it currently stands as it might breach ITAR export restrictions in
the US.

I've discussed ways around this with Jeremy and we can put the code
back in with appropriate modifications once it is needed.

Note that this code isn't actually used in Samba yet, so removing it
has no effect.

If anyone wants the code then look in ~samba-bugs/arcfour/ or grab it
from the CVS attic.

24 years agomove calls to smbhash() inside smbdes.c (for legal reasons)
Andrew Tridgell [Mon, 20 Oct 1997 01:00:08 +0000 (01:00 +0000)]
move calls to smbhash() inside smbdes.c (for legal reasons)

24 years agoupdate the timestamp on config files in our linked list when we notice
Andrew Tridgell [Sun, 19 Oct 1997 23:22:03 +0000 (23:22 +0000)]
update the timestamp on config files in our linked list when we notice
they have changed, otherwise we keep reading them again and again

24 years agodebugging the srvsvc Net Share Enum. some padding issues; some string length
Luke Leighton [Sun, 19 Oct 1997 17:54:13 +0000 (17:54 +0000)]
debugging the srvsvc Net Share Enum.  some padding issues; some string length
issues.  it works!

24 years agocreating NetShareEnum parsing / reply creation. compiles, but untested.
Luke Leighton [Sun, 19 Oct 1997 17:01:06 +0000 (17:01 +0000)]
creating NetShareEnum parsing / reply creation.  compiles, but untested.

24 years agoMakefile :
Luke Leighton [Sun, 19 Oct 1997 15:33:25 +0000 (15:33 +0000)]
Makefile :

added srvparse.o and pipesrvsvc.o

smb.h :

mods to the Net Share Enum stuff

srvparse.c :

Net Share Enum parsing support.  more srvsvc pipe parsing to go here...

pipenetlog.c util.c:

modified standard_sub_basic() so that you can set a global boolean
and use a different string for the %U username substitution.

proto.h:

the usual.

24 years agoadded the following structures:
Luke Leighton [Sun, 19 Oct 1997 14:36:27 +0000 (14:36 +0000)]
added the following structures:

SH_INFO_1
SH_INFO_1_STR
SHARE_INFO_1_CTR
SRV_Q_NET_SHARE_ENUM
SRV_R_NET_SHARE_ENUM

the share info1 container can handle a maximum of 32 shares.  the share info1
string structures contain two unicode strings, with 1024 uint16 characters
_each_.  we're going to _have_ to dynamically allocate the unicode strings,
else we'll run out of stack space.  rapidly.

24 years agoAdded comment submitted by Frank Varnavas.
John Terpstra [Sun, 19 Oct 1997 12:28:00 +0000 (12:28 +0000)]
Added comment submitted by Frank Varnavas.

24 years agopipes.c pipesrvsvc.c :
Luke Leighton [Sun, 19 Oct 1997 12:24:23 +0000 (12:24 +0000)]
pipes.c pipesrvsvc.c :

moved stub srvsvc pipe function into separate file, in preparation for
further work.

24 years agoadd a section on encryption and change the formatting a bit
Andrew Tridgell [Sun, 19 Oct 1997 05:16:54 +0000 (05:16 +0000)]
add a section on encryption and change the formatting a bit

24 years agoput the NT_STATUS_ALLOTTED_SPACE_EXCEEDED error in instead of 0x99.
Luke Leighton [Sat, 18 Oct 1997 15:01:01 +0000 (15:01 +0000)]
put the NT_STATUS_ALLOTTED_SPACE_EXCEEDED error in instead of 0x99.
whatever that means.

24 years agoFixed small typo.
John Terpstra [Sat, 18 Oct 1997 05:28:34 +0000 (05:28 +0000)]
Fixed small typo.

24 years agoAfter talking with Andrew added "interfaces only" parameter that
Jeremy Allison [Sat, 18 Oct 1997 00:22:04 +0000 (00:22 +0000)]
After talking with Andrew added "interfaces only" parameter that
turns off the filtering on the broadcast socket by default.
Jeremy (jallison@whistle.com)

24 years ago.cvsignore: Added make_smbcodepage
Jeremy Allison [Fri, 17 Oct 1997 23:08:07 +0000 (23:08 +0000)]
.cvsignore: Added make_smbcodepage
interface.c: Added is_local_net().
locking.c: Added Fix for zero length share files from Gerald Werner <wernerg@mfldclin.edu>
           plus a race condition fix for the fix.
nameannounce.c: Made function static.
namedbresp.c: extern int ClientDGRAM removed - not used.
namedbserver.c: extern int ClientDGRAM removed - not used.
namedbsubnet.c: Added code to make sockets per subnet.
namepacket.c: Added code to read from all sockets & filter.
nameresp.c: extern int ClientDGRAM removed - not used.
nameserv.c: Indentation tidyup :-).
nameserv.h: Added sockets to struct subnet.
nameservresp.c: Improved debug message.
nmbd.c: Changed to terminte on listen_for_packets exiting.
nmbsync.c: extern int ClientDGRAM & ClientNMB removed - not used.
proto.h: The usual.
util.c: Fixed debug message.
Jeremy (jallison@whistle.com)

24 years agoadd a note about running testparm after modifying smb.conf
Andrew Tridgell [Fri, 17 Oct 1997 22:40:45 +0000 (22:40 +0000)]
add a note about running testparm after modifying smb.conf

24 years agoput the new example config file in here as well
Andrew Tridgell [Fri, 17 Oct 1997 22:34:28 +0000 (22:34 +0000)]
put the new example config file in here as well

24 years agoSimply moved the #include for ubi_dLinkList.h from within dir.c to
Christopher R. Hertel [Fri, 17 Oct 1997 21:06:20 +0000 (21:06 +0000)]
Simply moved the #include for ubi_dLinkList.h from within dir.c to
includes.h.  More consistent with current practice.

24 years agomake_unihdr() was setting the length to 1/2 the required value.
Luke Leighton [Fri, 17 Oct 1997 17:59:38 +0000 (17:59 +0000)]
make_unihdr() was setting the length to 1/2 the required value.

24 years agopipenetlog.c lsaparse.c smb.h :
Luke Leighton [Fri, 17 Oct 1997 16:46:56 +0000 (16:46 +0000)]
pipenetlog.c lsaparse.c smb.h :

SAM logon sorting.  too many buffer pointers.  added in the missing
switch value (value of 3).  dealing with the buffer pointers to the
user info structure in a slightly different way.

24 years agosmbparse.c smb.h :
Luke Leighton [Fri, 17 Oct 1997 13:43:01 +0000 (13:43 +0000)]
smbparse.c smb.h :

uni_max_len and uni_str_len are the other way round, in UNIHDR.

util.c :

increased the show_msg() data size from 256 bytes to 512 bytes:
the LSA SAM Logon response can be about 500 bytes long.

pipenetlog.c :

forgot to set the authoritative field to 1.

24 years agoset the wrong info level (0x0C00 0000 instead of 0xC000 0000) so that
Luke Leighton [Fri, 17 Oct 1997 11:54:30 +0000 (11:54 +0000)]
set the wrong info level (0x0C00 0000 instead of 0xC000 0000) so that
nt got confused and thought that the server password had been set instead
of refused.  this is for the SRV_PWSET response.

24 years agoremove a spurious error message from nmbd. The message was:
Andrew Tridgell [Fri, 17 Oct 1997 03:09:03 +0000 (03:09 +0000)]
remove a spurious error message from nmbd. The message was:

WINS server did not respond to name registration!

this messages should only be produced when we are trying to register
our own names, not when we are the one with the name database and we
are doing a NAME_REGISTER_CHALLENGE on behalf of another host (for
secured wins registration)

24 years agofix the handling of negative name query responses and the handling of
Andrew Tridgell [Fri, 17 Oct 1997 02:56:23 +0000 (02:56 +0000)]
fix the handling of negative name query responses and the handling of
packets with no answer section in general.

The fix has 2 parts:

1) set ans_name to the name we queried if nmb->answers == NULL

2) check for nmb->answers == NULL in several other places where we
currently check for nmb->answers->data

While doing this, I noticed there are lots of places in our nmbd code
where we make assumptions about the packets being well formed. Someone
could easily implement a denial of service attack on nmbd by sending a
packet that causes a null pointer dereference. Does anyone feel like
going through the code and adding checks? Probably the best solution
is to have a single function that "validates" a packet, making sure
that all the required fields are there. This will be a bit tricky as
what fields are required varies a lot between packets. A first pass
would be a function that prints "SUSPECT PACKET" when it hits a packet
that it suspects does not have a required field (or the field is badly
formatted), then we could use this on a live system to find any cases
we've missed.

Any takers?

24 years agodocument -a "append log" option
Andrew Tridgell [Fri, 17 Oct 1997 01:47:10 +0000 (01:47 +0000)]
document -a "append log" option

24 years agoadded -a "append log" option
Andrew Tridgell [Fri, 17 Oct 1997 01:46:16 +0000 (01:46 +0000)]
added -a "append log" option

24 years agosmb.h :
Luke Leighton [Thu, 16 Oct 1997 16:01:25 +0000 (16:01 +0000)]
smb.h :

id_info_1 has a pointer at the front of it.  so does return credentials,
and so does the client credentials.  these are all from the sam logon.
auth_level is 16 bytes not 32 and is actually called a switch_level.

smbparse.c :

smb_io_unihdr() - uni_max_len and uni_str_len are 16 bytes not 32.
this may have a knock-on effect on smb_in_unihdr2() but we'll see...

24 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.

24 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.

24 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

24 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

24 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)

24 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.

24 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.

24 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.

24 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.

24 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.

24 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)

24 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.

24 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.

24 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.

24 years agothe usual proto.h update
Andrew Tridgell [Wed, 15 Oct 1997 09:18:39 +0000 (09:18 +0000)]
the usual proto.h update

24 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

24 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

24 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

24 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.

24 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

24 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.

24 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.

24 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.

24 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.

24 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.

24 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!

24 years agocredentials, query info reply.
Luke Leighton [Tue, 14 Oct 1997 17:01:43 +0000 (17:01 +0000)]
credentials, query info reply.

24 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.

24 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, ....)

24 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.

24 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)

24 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...

24 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.

24 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...

24 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.

24 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.

24 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.

24 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.

24 years agodebug info added
Luke Leighton [Mon, 13 Oct 1997 13:35:37 +0000 (13:35 +0000)]
debug info added

24 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).

24 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!

24 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.

24 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.

24 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.

24 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

24 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.

24 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.

24 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.

24 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)

24 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)

24 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.

24 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!

24 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.

24 years agoupdated Sunsite UK. (Paul)
Samba Release Account [Sat, 11 Oct 1997 03:53:53 +0000 (03:53 +0000)]
updated Sunsite UK. (Paul)

24 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.

24 years agothe usual
Luke Leighton [Fri, 10 Oct 1997 19:49:17 +0000 (19:49 +0000)]
the usual

24 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.

24 years agoadded lsa_reply_srv_pwset()
Luke Leighton [Fri, 10 Oct 1997 18:03:30 +0000 (18:03 +0000)]
added lsa_reply_srv_pwset()

24 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.

24 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 -)-----

24 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.

24 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!)

24 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.

24 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

24 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.

24 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)

24 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)