amitay/samba.git
26 years agoThis commit was manufactured by cvs2svn to create tag release-1-9-17p4 samba-1.9.17p4
cvs2svn Import User [Tue, 21 Oct 1997 16:43:44 +0000 (16:43 +0000)]
This commit was manufactured by cvs2svn to create tag
'release-1-9-17p4'.

26 years agopreparing for release of 1.9.17p4
Samba Release Account [Tue, 21 Oct 1997 16:43:43 +0000 (16:43 +0000)]
preparing for release of 1.9.17p4

26 years agoUpdated for p4 release.
Jeremy Allison [Tue, 21 Oct 1997 16:34:56 +0000 (16:34 +0000)]
Updated for p4 release.
Jeremy.

26 years agofor 1.9.17 as well
Andrew Tridgell [Tue, 21 Oct 1997 13:16:56 +0000 (13:16 +0000)]
for 1.9.17 as well

26 years agocheck for EPERM or EACCESS in file_utime()
Andrew Tridgell [Tue, 21 Oct 1997 13:06:59 +0000 (13:06 +0000)]
check for EPERM or EACCESS in file_utime()

only use lp_alternate_permissions() for display purposes

26 years agoRemoved references to samba.canberra, replacing with samba.anu
Paul Blackman [Tue, 21 Oct 1997 12:38:07 +0000 (12:38 +0000)]
Removed references to samba.canberra, replacing with samba.anu
Added mirror sites.

26 years agoUpdate 1.9.17 branch with faq docs from 1.9.18
Paul Blackman [Tue, 21 Oct 1997 12:22:11 +0000 (12:22 +0000)]
Update 1.9.17 branch with faq docs from 1.9.18
I don't think I've clobbered anything I shouldn't have.

26 years agoUpdated Support entry.
Paul Blackman [Tue, 21 Oct 1997 12:09:34 +0000 (12:09 +0000)]
Updated Support entry.
Hmm.. I thought I removed samba.faq in this branch before.

26 years agofix the order of become_uid() and become_gid() in become_root(). This
Andrew Tridgell [Tue, 21 Oct 1997 11:57:13 +0000 (11:57 +0000)]
fix the order of become_uid() and become_gid() in become_root(). This
was a harmless bug but left log entries

26 years agoadd the generic client code to 1.9.17
Andrew Tridgell [Tue, 21 Oct 1997 10:46:01 +0000 (10:46 +0000)]
add the generic client code to 1.9.17

26 years agoadd a note on how to map usernames with spaces in them
Andrew Tridgell [Tue, 21 Oct 1997 10:31:44 +0000 (10:31 +0000)]
add a note on how to map usernames with spaces in them

26 years agoupdate the password server docs
Andrew Tridgell [Tue, 21 Oct 1997 10:12:28 +0000 (10:12 +0000)]
update the password server docs

26 years agoadd the new password server code to the 1.9.17 tree. This needed to be
Andrew Tridgell [Tue, 21 Oct 1997 10:09:30 +0000 (10:09 +0000)]
add the new password server code to the 1.9.17 tree. This needed to be
fixed as the previous code could provide a security hole if the NT
server was misconfigured

26 years agoThis commit was manufactured by cvs2svn to create branch
cvs2svn Import User [Tue, 21 Oct 1997 09:12:42 +0000 (09:12 +0000)]
This commit was manufactured by cvs2svn to create branch
'BRANCH_1_9_17'.

26 years agoThis is a set of generic SMB client routines. I needed this in a hurry
Andrew Tridgell [Tue, 21 Oct 1997 09:12:41 +0000 (09:12 +0000)]
This is a set of generic SMB client routines. I needed this in a hurry
to fix the password server code, so I didn't use SMBlib. This code is
fairly generic and uses a "struct cli_state" to hold the client
state.

26 years agoget rid of the KEEP_PASSWORD_SERVER_OPEN define
Andrew Tridgell [Tue, 21 Oct 1997 09:11:19 +0000 (09:11 +0000)]
get rid of the KEEP_PASSWORD_SERVER_OPEN define

26 years agoadd some debug info
Andrew Tridgell [Tue, 21 Oct 1997 09:09:55 +0000 (09:09 +0000)]
add some debug info

26 years agoWHATSNEW.txt: Updated in preparation for p4.
Jeremy Allison [Mon, 20 Oct 1997 21:50:59 +0000 (21:50 +0000)]
WHATSNEW.txt: Updated in preparation for p4.
Support.txt: One more consultant.
smb.conf: dos filetimes added.
loadparm.c: dos filetimes added.
proto.h: The usual.
reply.c: dos filetimes added.
server.c: dos filetimes added.
time.c: dos filetimes added.
trans2.c: dos filetimes added.
Jeremy (jallison@whistle.com)

26 years agoAdding make_smbcodepage.1 man page.
Jeremy Allison [Mon, 20 Oct 1997 20:34:55 +0000 (20:34 +0000)]
Adding make_smbcodepage.1 man page.
Updated smb.conf with dos filetimes.
Jeremy (jallison@whistle.com)

26 years agoloadparm.c: Changed 'interfaces only' parameter to 'bind interfaces only'. Added
Jeremy Allison [Mon, 20 Oct 1997 18:52:04 +0000 (18:52 +0000)]
loadparm.c: Changed 'interfaces only' parameter to 'bind interfaces only'. Added
            'dos filetimes' parameter for UTIME fix.
locking_shm.c: Fixed typo (sorry Andrew :-).
namepacket.c: Changed lp_interfaces_only() to lp_bind_interfaces_only().
proto.h: The usual.
reply.c: Made filetime calls use new file_utime call (wrapper for sys_utime).
server.c: Made filetime calls use new file_utime call (wrapper for sys_utime).
system.c: Added Andrew's sanity checks to times in sys_utime().
time.c: Moved set_filetime() to server.c. Made null_mtime() global.
trans2.c: Made filetime calls use new file_utime call (wrapper for sys_utime).
Jeremy (jallison@whistle.com)

26 years agoadded "domain groups" parameter, allowing you to specify the groups that
Luke Leighton [Mon, 20 Oct 1997 16:25:19 +0000 (16:25 +0000)]
added "domain groups" parameter, allowing you to specify the groups that
the user belongs to.

it would be nice to know exactly what the domain groups _are_....

26 years agoadded description of parameters:
Luke Leighton [Mon, 20 Oct 1997 16:24:14 +0000 (16:24 +0000)]
added description of parameters:

domain sid
domain groups
logon drive
logon path

26 years agoadded copyright to headers.
Luke Leighton [Mon, 20 Oct 1997 14:46:05 +0000 (14:46 +0000)]
added copyright to headers.

26 years agoNTDOMAIN.txt:
Luke Leighton [Mon, 20 Oct 1997 14:43:00 +0000 (14:43 +0000)]
NTDOMAIN.txt:

describes how to set up samba as an NT PDC.  it includes debugging
assisting info.  it is expected that this document turn into a
user's document, rather than a debugger's document.

cifsntdomain.txt :

this is the "NT Domain Authentication (draft)" white paper, current
version.  if anyone think it's a bad idea to put a copy of this in
here, i'm quite happy to remove it.

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

26 years agoUpdated with DNS Proxy, Printing and [netlogon] share modes = no
John Terpstra [Mon, 20 Oct 1997 13:14:20 +0000 (13:14 +0000)]
Updated with DNS Proxy, Printing and [netlogon] share modes = no

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

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

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

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

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

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

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

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

26 years agoupdate the timestamp on config files in our linked list when we notice
Andrew Tridgell [Sun, 19 Oct 1997 23:24:53 +0000 (23:24 +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

26 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

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

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

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

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

26 years agoAdded Frank Varnavas comments.
John Terpstra [Sun, 19 Oct 1997 12:38:46 +0000 (12:38 +0000)]
Added Frank Varnavas comments.

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

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

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

26 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

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

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

26 years agoFixed small typo.
John Terpstra [Sat, 18 Oct 1997 05:27:20 +0000 (05:27 +0000)]
Fixed small typo.

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

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

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

26 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

26 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

26 years agoA lot of changes to the example smb.conf file. As I discussed with
Andrew Tridgell [Fri, 17 Oct 1997 22:32:45 +0000 (22:32 +0000)]
A lot of changes to the example smb.conf file. As I discussed with
John, I really didn't like having "dangerous" options in here.

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

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

26 years agolocking.c: Fix for zero length share files from Gerald Werner <wernerg@mfldclin.edu>
Jeremy Allison [Fri, 17 Oct 1997 17:05:12 +0000 (17:05 +0000)]
locking.c: Fix for zero length share files from Gerald Werner <wernerg@mfldclin.edu>
           plus a mod to remove a race condition.
nameservresp.c: Improved debug message.
proto.h: The usuual.
Jeremy (jallison@whistle.com)

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

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

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

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

26 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?

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

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

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

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.

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.

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

26 years agoadd ERRDOS/67 ERRnosuchshare to the client.c list of error strings
Andrew Tridgell [Thu, 16 Oct 1997 07:54:52 +0000 (07:54 +0000)]
add ERRDOS/67 ERRnosuchshare to the client.c list of error strings

26 years agoAdded PAM patches submitted by <johnsonm@redhat.com>
John Terpstra [Thu, 16 Oct 1997 05:43:57 +0000 (05:43 +0000)]
Added PAM patches submitted by <johnsonm@redhat.com>
Checked over. OK.

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

26 years agofixed quote problem in 1.9.17 as well
Andrew Tridgell [Thu, 16 Oct 1997 03:57:40 +0000 (03:57 +0000)]
fixed quote problem in 1.9.17 as well

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)

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.

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.

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.

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.

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.

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)

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.

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.

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.

26 years agoadded the "freeze on logout" fixes to the 1.9.17 tree
Andrew Tridgell [Wed, 15 Oct 1997 09:39:54 +0000 (09:39 +0000)]
added the "freeze on logout" fixes to the 1.9.17 tree

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

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

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

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

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.

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

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.

26 years agopreparing for release of 1.9.17p3
Samba Release Account [Wed, 15 Oct 1997 01:38:13 +0000 (01:38 +0000)]
preparing for release of 1.9.17p3

26 years agoUpdated for 1.9.17p3 release.
Samba Release Account [Wed, 15 Oct 1997 01:34:56 +0000 (01:34 +0000)]
Updated for 1.9.17p3 release.
Jeremy (jallison@whistle,com):

26 years agoAdded #ifdef'ed code with BIND_LOCAL_OUTPUT_SOCKET that causes
Samba Release Account [Wed, 15 Oct 1997 01:34:04 +0000 (01:34 +0000)]
Added #ifdef'ed code with BIND_LOCAL_OUTPUT_SOCKET that causes
optput sockets to be bound to the same local address as input
ones are.
Jeremy (jallison@whistle.com)

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.

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.

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.

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.

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!

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

26 years agodocs/DIAGNOSIS.txt:
John Terpstra [Tue, 14 Oct 1997 13:18:07 +0000 (13:18 +0000)]
docs/DIAGNOSIS.txt:
Added comments up front about "your server is being unfriendly"
and need to check IP name resolution.