samba.git
26 years agoThis commit was manufactured by cvs2svn to create tag samba-1.9.18alpha9
cvs2svn Import User [Thu, 30 Oct 1997 01:13:35 +0000 (01:13 +0000)]
This commit was manufactured by cvs2svn to create tag
'release-1-9-18alpha9'.

26 years agopreparing for release of 1.9.18alpha9
Samba Release Account [Thu, 30 Oct 1997 01:13:34 +0000 (01:13 +0000)]
preparing for release of 1.9.18alpha9

26 years agoupdated documentation as chmodding files /tmp/lsarpc and /tmp/netlogon
Luke Leighton [Thu, 30 Oct 1997 01:11:26 +0000 (01:11 +0000)]
updated documentation as chmodding files /tmp/lsarpc and /tmp/netlogon
is not needed any more.

26 years agoremoved mechanism that created actual files NETLOGON, lsarpc and the like,
Luke Leighton [Thu, 30 Oct 1997 01:05:13 +0000 (01:05 +0000)]
removed mechanism that created actual files NETLOGON, lsarpc and the like,
which are pipes on the IPC$ connection.

created mechanism to record pipe names in a separate pipes_struct.  it
is planned to expand this, to return sensible things like interface
structures, and policy handles (RPC_IFACE and LSA_POL_HND).  and the like.

26 years agoupdate
Luke Leighton [Wed, 29 Oct 1997 23:00:35 +0000 (23:00 +0000)]
update

26 years agopreparing for release of 1.9.18alpha8
Samba Release Account [Wed, 29 Oct 1997 21:20:34 +0000 (21:20 +0000)]
preparing for release of 1.9.18alpha8

26 years agobyteorder.h :
Luke Leighton [Wed, 29 Oct 1997 20:23:01 +0000 (20:23 +0000)]
byteorder.h :

have another go at reporting stuff the right way round (on SPARCs)

srvparse.c :

copyright messages

26 years agozero data parameter being passed to smb_io_rpc_hdr(), which couldn't cope.
Luke Leighton [Wed, 29 Oct 1997 20:08:09 +0000 (20:08 +0000)]
zero data parameter being passed to smb_io_rpc_hdr(), which couldn't cope.

26 years agotypecast in calls to print_asc() wrong
Luke Leighton [Wed, 29 Oct 1997 19:58:20 +0000 (19:58 +0000)]
typecast in calls to print_asc() wrong

26 years agoipc.c ntclientpipe.c:
Luke Leighton [Wed, 29 Oct 1997 19:05:34 +0000 (19:05 +0000)]
ipc.c ntclientpipe.c:

response to Bind Acknowledgment needs a lookup table for the PIPE string
(secondary address in RPC_HDR_BA structure).

smbparse.c util.c :

interesting problem, i think caused by us typecasting a uint16* buffer
to char*.  found on a SPARC.

26 years agopreparing for release of 1.9.18alpha7
Samba Release Account [Wed, 29 Oct 1997 15:38:31 +0000 (15:38 +0000)]
preparing for release of 1.9.18alpha7

26 years agoupdated to current version number.
Samba Release Account [Wed, 29 Oct 1997 15:37:05 +0000 (15:37 +0000)]
updated to current version number.

26 years agocalled dump_data() from show_msg().
Luke Leighton [Wed, 29 Oct 1997 15:35:53 +0000 (15:35 +0000)]
called dump_data() from show_msg().

26 years agoipc.c :
Luke Leighton [Wed, 29 Oct 1997 14:34:17 +0000 (14:34 +0000)]
ipc.c :

bind ack should contain \PIPE\pipename not just pipename.

ntclientpipe.c :

sanity in bind ack: pipe name checks; transfer syntax checks; reason checks.

26 years agosplit ntclient.c down into appropriate modules.
Luke Leighton [Wed, 29 Oct 1997 13:24:42 +0000 (13:24 +0000)]
split ntclient.c down into appropriate modules.

26 years agodamn. We need root privilages to do semaphore operations even if we
Andrew Tridgell [Wed, 29 Oct 1997 02:59:22 +0000 (02:59 +0000)]
damn. We need root privilages to do semaphore operations even if we
have done the semget() as root.  The problem is that become_root() and
unbecome_root() are so slow!

I've provided two options. The default is to set the semaphores (but
_not_ the shared memory) world writeable so that a become_root() isn't
needed. Otherwise you can define SECURE_SEMAPHORES and pay the
performance penalty.

26 years ago- don't allow locking to initialise twice
Andrew Tridgell [Wed, 29 Oct 1997 02:18:08 +0000 (02:18 +0000)]
- don't allow locking to initialise twice
- check that it is initialised before de-initialising it!

26 years agoclean up the hash entry code a bit. Got rid of lp_shmem_hash_size()
Andrew Tridgell [Wed, 29 Oct 1997 01:59:54 +0000 (01:59 +0000)]
clean up the hash entry code a bit. Got rid of lp_shmem_hash_size()
and made it private to the 2 shmem implementations. Added new
shmops->hash_size() function.

Added code to handle the IPC system limits by looping decreasing the
size of the resources (semaphores and shared memory) that we request
until we get under the system limits, which can be quite low on some
systems!

Added checks that the creator of the IPC objects is root. Otherwise we
would be open to a security hole where someone pre-creates the shared
memory segment and attaches.

26 years agoadded frag field to make_rpc_hdr() function
Luke Leighton [Wed, 29 Oct 1997 01:05:46 +0000 (01:05 +0000)]
added frag field to make_rpc_hdr() function

26 years agobyteorder.h :
Luke Leighton [Wed, 29 Oct 1997 00:04:14 +0000 (00:04 +0000)]
byteorder.h :

added mode for printing debug array data as chars not uint8/16/32s.
only really useful for (uint8) strings or (uint16) unicode strings

lsaparse.c smbparse.c smb.h :

rpc bind and rpc bind ack structures and parsing and creation functions.

ipc.c pipes.c pipenetlog.c pipentlsa.c pipesrvsvc.c :

using rpc bind / bind ack parsing routines instead of incorrect use of
api_LsarpcTNP1 function.

ntclient.c :

creation of do_rpc_bind() function.

THAT'S IT, FOLKS!

26 years agoUtility code to produce printer definition files from MS files.
Jeremy Allison [Tue, 28 Oct 1997 23:58:31 +0000 (23:58 +0000)]
Utility code to produce printer definition files from MS files.
Part of code to support Windows 95 automated printer driver installs.
Written by Jean-Francois Micouleau <Jean-Francois.Micouleau@utc.fr>.

26 years agoAdded "printer driver location", "printer driver file" parameters.
Jeremy Allison [Tue, 28 Oct 1997 19:54:49 +0000 (19:54 +0000)]
Added "printer driver location", "printer driver file" parameters.
Jeremy.

26 years agoAdding PRINTER_DRIVER.txt docs.
Jeremy Allison [Tue, 28 Oct 1997 19:35:24 +0000 (19:35 +0000)]
Adding PRINTER_DRIVER.txt docs.

26 years agoAdding Windows 95 printer driver code donated by Jean-Francois.Micouleau@utc.fr.
Jeremy Allison [Tue, 28 Oct 1997 19:32:59 +0000 (19:32 +0000)]
Adding Windows 95 printer driver code donated by Jean-Francois.Micouleau@utc.fr.
New program, make_printerdef, plus two new parameters :

[global] "printer driver file"
[local] "printer driver location"

Jeremy.

26 years agomention that Perl is required for build scripts
Herb Lewis [Tue, 28 Oct 1997 19:21:26 +0000 (19:21 +0000)]
mention that Perl is required for build scripts

26 years agoremoving Makefile and adding perl script to generate it form source tree
Herb Lewis [Tue, 28 Oct 1997 19:20:07 +0000 (19:20 +0000)]
removing Makefile and adding perl script to generate it form source tree

26 years agotired of updating Makefile - use perl script to generate it now
Herb Lewis [Tue, 28 Oct 1997 19:18:52 +0000 (19:18 +0000)]
tired of updating Makefile - use perl script to generate it now

26 years agoAdding printer drivers patch from Jean-Francois Micouleau
Jeremy Allison [Tue, 28 Oct 1997 18:15:48 +0000 (18:15 +0000)]
Adding printer drivers patch from Jean-Francois Micouleau
<Jean-Francois.Micouleau@utc.fr>. We can expand on this after
we have tested it out.
Jeremy.

26 years agosmb.h smbparse.c pipeutil.c :
Luke Leighton [Tue, 28 Oct 1997 17:54:10 +0000 (17:54 +0000)]
smb.h smbparse.c pipeutil.c :

added bind and bind ack structures and parsing functions.  restructured
rpc header stuff.

ntclient.c pipenetlog.c pipentlsa.c pipesrvsvc.c :

having to deal with restructuring above.

26 years agoenable sysv ipc and fast share modes on OSF1
Andrew Tridgell [Tue, 28 Oct 1997 15:07:01 +0000 (15:07 +0000)]
enable sysv ipc and fast share modes on OSF1

26 years agoneed includes.h to compile on some systems (eg. sunos4)
Andrew Tridgell [Tue, 28 Oct 1997 15:02:15 +0000 (15:02 +0000)]
need includes.h to compile on some systems (eg. sunos4)

26 years agofix for broken sunos4 includes (doesn't have SHM_R)
Andrew Tridgell [Tue, 28 Oct 1997 14:59:06 +0000 (14:59 +0000)]
fix for broken sunos4 includes (doesn't have SHM_R)

26 years agofix cast
Andrew Tridgell [Tue, 28 Oct 1997 14:55:47 +0000 (14:55 +0000)]
fix cast

26 years agodefine semun for broken solaris sysvipc
Andrew Tridgell [Tue, 28 Oct 1997 14:55:22 +0000 (14:55 +0000)]
define semun for broken solaris sysvipc

26 years agolower the default hash size if SEMMSL isn't defined
Andrew Tridgell [Tue, 28 Oct 1997 14:40:31 +0000 (14:40 +0000)]
lower the default hash size if SEMMSL isn't defined

26 years agodefine USE_SYSV_IPC on sunos4
Andrew Tridgell [Tue, 28 Oct 1997 14:25:26 +0000 (14:25 +0000)]
define USE_SYSV_IPC on sunos4

26 years agodefine USE_SYSV_IPC on a bunch more systems.
Andrew Tridgell [Tue, 28 Oct 1997 14:22:50 +0000 (14:22 +0000)]
define USE_SYSV_IPC on a bunch more systems.

Needs some testing though.

26 years agoSYSV IPC implementation of fast share modes.
Andrew Tridgell [Tue, 28 Oct 1997 14:19:54 +0000 (14:19 +0000)]
SYSV IPC implementation of fast share modes.

It will try sysv IPC first, then if that fails it will try mmap(),
then after that it will try share files.

I have defined USE_SYSV_IPC for Linux, Solaris and HPUX at the
moment. Probably a lot more could have it defined. In fact, the vast
majority of systems support it. Need autoconf again :-)

It should actually be faster than the mmap() version, and doesn't need
any lock files. This means the problem of the share mem file being on
a NFS drive will be gone.

26 years agorefuse pathworks type R connect (patch from Stephen Tweedie)
Andrew Tridgell [Tue, 28 Oct 1997 06:07:07 +0000 (06:07 +0000)]
refuse pathworks type R connect (patch from Stephen Tweedie)

26 years agoadded LSA_Q_CLOSE and LSA_R_CLOSE (also to smb.h). implemented in smbclient.
Luke Leighton [Mon, 27 Oct 1997 19:00:38 +0000 (19:00 +0000)]
added LSA_Q_CLOSE and LSA_R_CLOSE (also to smb.h).  implemented in smbclient.
updated Query Info Policy to report domain name and domain sid for info levels
3 and 5.
fixed bug in dom_sid_to_string (idauths decoded wrong).  fixed bug in DOM_SID:
subauths are 32 bit not 16.

26 years agoFixed bug where we are a WINS server but not a domain master
Jeremy Allison [Mon, 27 Oct 1997 18:28:06 +0000 (18:28 +0000)]
Fixed bug where we are a WINS server but not a domain master
browser. We were doing a name query instead of a name status.
Jeremy.

26 years agoFixed ntclient.c so it would compile.
Jeremy Allison [Mon, 27 Oct 1997 18:07:36 +0000 (18:07 +0000)]
Fixed ntclient.c so it would compile.
Jeremy.

26 years agopreparing for release of 1.9.18alpha6
Samba Release Account [Mon, 27 Oct 1997 17:18:51 +0000 (17:18 +0000)]
preparing for release of 1.9.18alpha6

26 years agospelling mistake
Samba Release Account [Mon, 27 Oct 1997 17:18:35 +0000 (17:18 +0000)]
spelling mistake

26 years agoupdated to indicate reported success with NT 3.51 as well as NT 4.0
Luke Leighton [Mon, 27 Oct 1997 17:12:57 +0000 (17:12 +0000)]
updated to indicate reported success with NT 3.51 as well as NT 4.0

26 years agoupdated header to 1.9.18alpha6
Samba Release Account [Mon, 27 Oct 1997 17:09:46 +0000 (17:09 +0000)]
updated header to 1.9.18alpha6

26 years agoadded LSA Query Info Policy.
Luke Leighton [Mon, 27 Oct 1997 17:04:15 +0000 (17:04 +0000)]
added LSA Query Info Policy.
fixed a problem with byte ordering (doing an SIVAL of the setup parameters
which was _also_ being done in the creation of the SMB header.  oops).

26 years agochecks against file handle in api_fd_reply(). i don't know what error
Luke Leighton [Mon, 27 Oct 1997 16:14:29 +0000 (16:14 +0000)]
checks against file handle in api_fd_reply().  i don't know what error
message should be returned, so i just let it fall through to sending an
"api_unsupported"

26 years agodocumented LSA Open Policy Query.
Luke Leighton [Mon, 27 Oct 1997 15:10:17 +0000 (15:10 +0000)]
documented LSA Open Policy Query.

26 years agoadded LSA Open Policy query and response processing to smbclient
Luke Leighton [Mon, 27 Oct 1997 15:09:23 +0000 (15:09 +0000)]
added LSA Open Policy query and response processing to smbclient

26 years agochange the default file permissions on the SHARE_MEM_FILE* to
Andrew Tridgell [Mon, 27 Oct 1997 14:27:17 +0000 (14:27 +0000)]
change the default file permissions on the SHARE_MEM_FILE* to
0644. smbstatus now gets only read permission on the share files and
does no locking.

also get rid of some unnecessary umask(0) calls. smbd always runs with
umask(0)

26 years agoalso disable read prediction in 1.9.18
Andrew Tridgell [Mon, 27 Oct 1997 13:38:07 +0000 (13:38 +0000)]
also disable read prediction in 1.9.18

26 years agoFixed 2 oplock bugs:
Andrew Tridgell [Mon, 27 Oct 1997 12:02:34 +0000 (12:02 +0000)]
Fixed 2 oplock bugs:

1) the oplock macros in smb.h used | where they should have used
&. This means that smbd thought that all clients were always
requesting oplocks. This would have _really_ confused smbclient
and smbfs when they started receiving async oplock break requests when
they don't even know what an oplock is!

2) an oplock break request from a client can be embedded in a normal
lockingX request, and will be if the client has batched any lock
requests internally. The smbd code assumed that all oplock break
requests had num_locks==num_ulocks==0 which is not true. The only
thing special about a oplock break request with
num_locks==num_ulocks==0 is that no reply is sent. Otherwise it is
processed as a normal locking request in addition to the oplock break
processing.

These two fixes get the MS mail system in Win98 working on a Samba
1.9.18 network drive.

Andrew

26 years agoadded mention of compile-time experimentational NT Domain code.
Luke Leighton [Mon, 27 Oct 1997 11:11:41 +0000 (11:11 +0000)]
added mention of compile-time experimentational NT Domain code.

26 years agohooray. hooray some more. hooray a lot. got the client-side working.
Luke Leighton [Sun, 26 Oct 1997 18:42:47 +0000 (18:42 +0000)]
hooray.  hooray some more.  hooray a lot.  got the client-side working.

Q/R LSA_REQ_CHAL; Q/R LSA_AUTH2; Q/R LSA_SAMLOGON; Q/R LSA_SAMLOGOFF.
the last (non-essential right now) bit is the LSA_SRV_PWSET.

the next stage is to do LSA_OPENPOLICY; add the pipe binds (missing right
now); then we can test against an NT Server.

26 years agoadded -U option to nmblookup. This is similar to -B except that it
Andrew Tridgell [Sun, 26 Oct 1997 07:50:28 +0000 (07:50 +0000)]
added -U option to nmblookup. This is similar to -B except that it
forces the client to send a unicast instead of a broadcast netbios
packet. This is useful for diagnostics.

26 years agofix some casting errors in smbencrypt and some multiply-defined errors
Andrew Tridgell [Sun, 26 Oct 1997 07:45:36 +0000 (07:45 +0000)]
fix some casting errors in smbencrypt and some multiply-defined errors
in clientutil.c (Luke, you can't just copy a global variable
declaration from one file to another, you need to declare one of them
extern)

26 years agoThe browse synchronisation code in nmbsync.c now uses the clientgen.c
Andrew Tridgell [Sun, 26 Oct 1997 07:32:02 +0000 (07:32 +0000)]
The browse synchronisation code in nmbsync.c now uses the clientgen.c
code, which means we don't have to link with a fake getpass routine
and we don't have a whole pile of global variables that really have
nothing to do with nmbd and were there to keep the client code happy.

The code should function identically to what it did before (hopefully
it was correct)

The only thing that now uses the horrible clientutil.c code is
smbclient.

26 years agopreparing for release of 1.9.18alpha5
Samba Release Account [Sat, 25 Oct 1997 19:13:07 +0000 (19:13 +0000)]
preparing for release of 1.9.18alpha5

26 years agoupdated to describe smbclient work recently done.
Luke Leighton [Sat, 25 Oct 1997 18:13:04 +0000 (18:13 +0000)]
updated to describe smbclient work recently done.

26 years agolatest version
Luke Leighton [Sat, 25 Oct 1997 17:59:01 +0000 (17:59 +0000)]
latest version

26 years agooops!
Luke Leighton [Sat, 25 Oct 1997 17:58:53 +0000 (17:58 +0000)]
oops!

26 years agoadded correct client-side credential generation / checking to the LSA SAM
Luke Leighton [Sat, 25 Oct 1997 17:38:37 +0000 (17:38 +0000)]
added correct client-side credential generation / checking to the LSA SAM
Logon query.  i think i even got the client-side checking of the response
credentials right!

26 years agogot the SAM logon request generated, and received a SAM logon response back.
Luke Leighton [Sat, 25 Oct 1997 15:49:27 +0000 (15:49 +0000)]
got the SAM logon request generated, and received a SAM logon response back.
YEAH!

need to add:

- client-side credential calculation
- client-side parsing of the SAM logon response.

26 years agosam logon query creation functions. written twice because i deleted it.
Luke Leighton [Sat, 25 Oct 1997 13:15:52 +0000 (13:15 +0000)]
sam logon query creation functions.  written twice because i deleted it.

26 years agoMakefile :
Luke Leighton [Sat, 25 Oct 1997 10:58:18 +0000 (10:58 +0000)]
Makefile :

adding bits for new nt domain code

byteorder.h :

trying to get macros right, and not to crash on SUNOS5...

client.c :

added #ifdef NTDOMAIN, and created do_nt_login() function.  don't
want to have to recompile client.c unless absolutely necessary.

credentials.c :

moved deal_with_creds() [possibly inappropriately] into credentials.c

ipc.c reply.c server.c uid.c :

attempting to make (un)become_root() functions calleable from smbclient.
this is a little tricky: smbclient might have to be another setuid
root program, immediately setuid'ing to non-root, so that we can
reset-uid to root to get at the smbpasswd file.  or, have a secure
pipe mechanism to smbd to grab smbpasswd entries.  or the like.

smbdes.c smbencrypt.c :

created a function to generate lm and nt owf hashes.

lsaparse.c ntclient.c smbparse.c :

added nt client LSA_AUTH2 code.  it works, too!

pipenetlog.c pipentlsa.c pipesrvsvc.c :

simplification.  code-shuffling.  getting that damn offset right
for the opcode in RPC_HDR.

smb.h :

changed dcinfo xxx_creds to DOM_CRED structures instead of DOM_CHAL.
we might need to store the server times as well.

proto.h :

the usual.

26 years agoupdate SGI build files to latest source
Herb Lewis [Fri, 24 Oct 1997 18:41:08 +0000 (18:41 +0000)]
update SGI build files to latest source

26 years agopreparing for release of 1.9.18alpha4
Samba Release Account [Fri, 24 Oct 1997 14:40:37 +0000 (14:40 +0000)]
preparing for release of 1.9.18alpha4

26 years agopreparing for release of samba-1.9.18alpha4
Samba Release Account [Fri, 24 Oct 1997 14:39:28 +0000 (14:39 +0000)]
preparing for release of samba-1.9.18alpha4

26 years agoupdated to reflect the current state of play:
Luke Leighton [Fri, 24 Oct 1997 14:36:10 +0000 (14:36 +0000)]
updated to reflect the current state of play:

- jeremy's nmbd restructure (wins client / wins server stuff)
- which parameters are documented in smb.conf and which aren't
- mentioning the new smbclient work-in-progress

26 years agodefault server_name if NIS server is unavailable should be the local
Luke Leighton [Fri, 24 Oct 1997 13:58:21 +0000 (13:58 +0000)]
default server_name if NIS server is unavailable should be the local
machine, not a NULL string.

26 years agonmblib.c :
Luke Leighton [Fri, 24 Oct 1997 13:51:17 +0000 (13:51 +0000)]
nmblib.c :

adding some debug info

pipenetlog.c pipentlsa.c pipesrvsvc.c :

using unistrn2 instead of unistr2 in the SAM logon username.
wrong offset for command in request (use "reserved" field
not cancel_count.  AGH i'll get there)

26 years agonterr.c :
Luke Leighton [Fri, 24 Oct 1997 13:15:34 +0000 (13:15 +0000)]
nterr.c :

added a structure that wraps nt errors as strings and enums, so we
can do a smb_nt_error() function.

Makefile ntclient.c :

added ntclient.c, broken out nt domain stuff into a separate file.
getting fed up of compile-times and size of client.c.

fixed the do_lsa_req_chal() function.  made it read the response,
and return the challenge credentials received from the server.

next stop: do_lsa_auth_2().

client.c :

removed nt domain logon functions into a separate file.

pipenetlog.c pipentlsa.c pipesrvsvc.c smbparse.c :

i'd broken the offsets of the RPC_HDR while trying to sort out the
nt client code.  fixed it again.  added some robustness stuff.

util.c :

the unistrn2() function was null-terminating the string at one
character too many.

26 years agoBig change to make nmbd code more readable/understandable.
Jeremy Allison [Thu, 23 Oct 1997 22:30:57 +0000 (22:30 +0000)]
Big change to make nmbd code more readable/understandable.

Main change is removal of find_name_search() confusion.
This has been replaced with find_name_on_subnet() which
makes it explicit what is being searched.

Also changed wins_subnet to be wins_client_subnet in
preparation for splitting the wins subnet into client
and server pieces.

This is a big nmbd change and I'd appreciate any
bug reports.

Specific changes follow :

asyncdns.c:
     Removed wins entry from add_netbios_entry(). This is now
     explicit in the subnet_record parameter.

interface.c:
     iface_bcast(), iface_nmask(), iface_ip() return the
     default interface if none can be found. Made this
     behavior explicit - some code in nmbd incorrectly
     depended upon this (reply_name_status() for instance).

nameannounce.c:
     find_name_search changes to find_name_on_subnet.

namebrowse.c:
     wins_subnet renamed to wins_client_subnet.

namedbname.c:
     find_name_search removed. find_name_on_subnet added.
     add_netbios_entry - wins parameter removed.

namedbsubnet.c:
     find_req_subnet removed - not explicit enough.

nameelect.c:
     wins_subnet renamed to wins_client_subnet.

namepacket.c:
     listening() simplified.

nameresp.c:
     wins_subnet renamed to wins_client_subnet.

nameserv.c:
     find_name_search moved to find_name_on_subnet.

nameserv.h:
     FIND_XXX  -> changed to FIND_SELF_NAME, FIND_ANY_NAME.

nameservreply.c:
     find_name_search moved to find_name_on_subnet.
     Debug entries changed.

nameservresp.c:
     wins_subnet renamed to wins_client_subnet.

namework.c:
     wins_subnet renamed to wins_client_subnet.

nmbd.c:
     wins parameter removed from add_netbios_entry.

nmbsync:
     wins_subnet renamed to wins_client_subnet.

proto.h: The usual.

server.c:
     remove accepted fd from fd_set.

Jeremy (jallison@whistle.com)

26 years agorenamed static cli_setup_pkt() to static cli_setup_packet() because it
Luke Leighton [Thu, 23 Oct 1997 19:27:53 +0000 (19:27 +0000)]
renamed static cli_setup_pkt() to static cli_setup_packet() because it
clashed with the currently-used cli_setup_pkt() in clientutil.c

26 years agocommas in the wrong places...
Luke Leighton [Thu, 23 Oct 1997 19:24:58 +0000 (19:24 +0000)]
commas in the wrong places...

26 years agomissed nmbsync.c when adding setup count and setup pointer arguments to
Luke Leighton [Thu, 23 Oct 1997 17:54:21 +0000 (17:54 +0000)]
missed nmbsync.c when adding setup count and setup pointer arguments to
cli_call_api().  sorting this for jeremy.

there is a discrepancy between the client.c list_servers() and the nmbsync.c
add_info() calls to cli_call_api() - one has an mdrcount of 1024, the other
of zero.

i don't know what difference this makes.

26 years agogeneral sorting out, from crashes generated by do_lsa_req_chal() in client.c
Luke Leighton [Thu, 23 Oct 1997 16:17:07 +0000 (16:17 +0000)]
general sorting out, from crashes generated by do_lsa_req_chal() in client.c

trying to set up the data parameters etc and not understanding what's going on.

in api_netlogTNP, added smb_io_rpc_hdr() call to decode the header received
(and in this instance, generated by do_lsa_req_chal()).  and then noticed
that it's two bytes out.  but i don't know how to do "byte parameters"
and it's not the same format as the LSA_REQCHAL received from nt workstations.

agh!

26 years agomissed one of the files (lsarpc) in the touch and chmod instructions.
Luke Leighton [Thu, 23 Oct 1997 14:36:10 +0000 (14:36 +0000)]
missed one of the files (lsarpc) in the touch and chmod instructions.

26 years agoplaying about, trying to SMBopenX a \PIPE\NETLOGON (should be a SMBopen)
Luke Leighton [Thu, 23 Oct 1997 13:38:46 +0000 (13:38 +0000)]
playing about, trying to SMBopenX a \PIPE\NETLOGON (should be a SMBopen)
and then send a LSA_REQ_CHAL down it.

26 years agoclient.c :
Luke Leighton [Wed, 22 Oct 1997 18:37:43 +0000 (18:37 +0000)]
client.c :

send to \PIPE\ not \PIPE\NETLOGON.

ipc.c :

fstring name not being bzero'd caused problems when calling named_pipe().

26 years agoMakefile client.c :
Luke Leighton [Wed, 22 Oct 1997 17:51:02 +0000 (17:51 +0000)]
Makefile client.c :

adding start of undocumented options to do NT domain logons, client-side.
starting with LSA_REQCHAL.

the code here happily crashes smbd: i'll investigate this further... :-)

smbparse.c pipeutil.c lsaparse.c :

moved some of the common make_xxxx() functions out of pipeutil.c
so that the make_xxxx and (smb/lsa)_io_xxxx functions now sit
together.  makes sense, really...

added a make_q_req_chal() function.

restructured make_rpc_reply() and called it make_rpc_hdr().  created
functions create_rpc_reply() and create_rpc_response().

pipenetlog.c pipentlsa.c pipesrvsvc.c

calling new create_rpc_reply() function instead of old make_rpc_reply().

proto.h :

usual.

smb.h:

added enum for RPC_PACKET_TYPE

26 years agoMakefile client.c clientutil.c clitar.c nmbsync.c :
Luke Leighton [Wed, 22 Oct 1997 14:28:19 +0000 (14:28 +0000)]
Makefile client.c clientutil.c clitar.c nmbsync.c :

redid the split that i did a year ago, taking the functions in client.c
out into clientutil.c.  guess what?  we could now do encrypted password
NetServerEnum2 calls in nmbd, if we wanted to.

i can now use cli_call_api() to send to different pipes.  i hope.

pipenetlog.c:

allow adding to users group _and_ to admin group.  if adding to
guest group, don't allow adding to users or admin as well.

smb.h :

added some pipe #defines (\PIPE\NETLOGON \PIPE\srvsvc ...)

proto.h :

usual.

26 years agoloadparm.c :
Luke Leighton [Wed, 22 Oct 1997 11:31:37 +0000 (11:31 +0000)]
loadparm.c :

added "domain other sids" parameter

pipenetlog.c :

using "domain other sids" parameter in SAM Logon response.
using new name_to_rid() function for r_uid and r_gid.

pipentlsa.c :

minor mods to do with new name_to_rid() function.

pipesrvsvc.c :

in the "net share enum" response, allocate some more space for the buffer.
there can be only 32 share entries in the response anyway.  this needs
to be dealt with.

pipeutil.c :

modified name_to_rid() function to use new parameters "domain admin users"
and "domain guest users", but will otherwise do unix uid + 1000.

moved make_dom_gids() here.

proto.h:

the usual.

smb.h smbparse.c :

renamed sid_no to sid_rev_num in DOM_SID, and gid to r_gid in DOM_GID.

util.c :

moved make_dom_gids() from here.
created char *unistrn2(uint16* uni_buffer, int max_len)

26 years agoshared memory code cleanups (partly preparing for a possible sysV
Andrew Tridgell [Wed, 22 Oct 1997 11:15:14 +0000 (11:15 +0000)]
shared memory code cleanups (partly preparing for a possible sysV
shared memory implementation)

26 years agoImplemented asynchronous DNS lookups in nmbd.
Andrew Tridgell [Wed, 22 Oct 1997 11:02:00 +0000 (11:02 +0000)]
Implemented asynchronous DNS lookups in nmbd.

I realised this afternoon just how easy it is to add this, so I
thought I'd implement it while the idea was fresh.

nmbd forks at startup and uses a pipe to talk to its child. The child
does the DNS lookups and the file descriptor of the child is added to
the main select loop.

While I was doing this I discovered a bug in nmbd that explains why
the dns proxy option has been so expensive. The DNS cache entries in
the WINS list were never being checked, which means we always did a
DNS lookup even if we have done it before and it is in cache. I'm sure
this used to work (I tested the DNS cache when I added it) so someone
broke it :-(

Anyway, the async DNS gets rid of the problem completely. I'll commit
just the fix to the DNS cache bug to the 1.9.17 tree.

You can disable async DNS by adding -DSYNC_DNS to the compile flags.

26 years agoupdated tel no and email address for my entry.
Luke Leighton [Wed, 22 Oct 1997 10:13:03 +0000 (10:13 +0000)]
updated tel no and email address for my entry.

26 years agodon't send any statistics in the node status reply
Andrew Tridgell [Wed, 22 Oct 1997 03:16:35 +0000 (03:16 +0000)]
don't send any statistics in the node status reply

26 years agopreparing for release of 1.9.18alpha3
Samba Release Account [Tue, 21 Oct 1997 22:56:28 +0000 (22:56 +0000)]
preparing for release of 1.9.18alpha3

26 years agoWHATSNEW.txt: Updated for alpha3.
Jeremy Allison [Tue, 21 Oct 1997 22:51:21 +0000 (22:51 +0000)]
WHATSNEW.txt: Updated for alpha3.
server.c: int16 -> uint16 fix for port comparisons in oplock code.
          Needed for Solaris.
version.h: Updated to alpha3.
Jeremy (jallison@whistle.com)

26 years agoThe ubi_* modules are under LGPL, not standard GPL. This README explains
Christopher R. Hertel [Tue, 21 Oct 1997 21:43:42 +0000 (21:43 +0000)]
The ubi_* modules are under LGPL, not standard GPL.  This README explains
that.

26 years agopreparing for release of 1.9.18alpha2
Samba Release Account [Tue, 21 Oct 1997 21:17:26 +0000 (21:17 +0000)]
preparing for release of 1.9.18alpha2

26 years agoWHATSNEW.txt: Preparing for 1.9.18alpha2 release.
Jeremy Allison [Tue, 21 Oct 1997 19:55:34 +0000 (19:55 +0000)]
WHATSNEW.txt: Preparing for 1.9.18alpha2 release.
smb.conf.5: Added 'bind interfaces only' parameter.
version.h: Updated to 1.9.18alpha2.
Jeremy (jallison@whistle.com)

26 years agochgpasswd.c:
Jeremy Allison [Tue, 21 Oct 1997 18:27:55 +0000 (18:27 +0000)]
chgpasswd.c:
includes.h: SCO changes.
server.c: Added code in open_sockets to allow 'bind interfaces only' to
          work as documented.
Jeremy (jallison@whistle.com)

26 years agoloadparm.c :
Luke Leighton [Tue, 21 Oct 1997 18:25:14 +0000 (18:25 +0000)]
loadparm.c :

added "domain admin users" parameter
added "domain guest users" parameter

these two complement the "domain groups" parameter.  the "domain groups"
parameter should be for your own groups, and well-known aliases.

util.c :

added ability to do "domain groups = power_users admin_users backup_ops"
which are well-known RID aliases, not well-known RID groups.

pipenetlog.c :

combine the "domain admin users"; "domain guest users" and "domain groups"
parameters to give an array of RID groups to include in the SAM Logon
response.

ipc.c smb.h :

moved REALLOC() into smb.h
added RID #defines.

proto.h:

usual.

26 years agodamn, I spelt EACCES wrong.
Andrew Tridgell [Tue, 21 Oct 1997 13:15:20 +0000 (13:15 +0000)]
damn, I spelt EACCES wrong.

actually it's wrong in the linux man page for utime ...

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

26 years agodon't check lp_alternate_permissions() in the new utime workaround
Andrew Tridgell [Tue, 21 Oct 1997 12:55:49 +0000 (12:55 +0000)]
don't check lp_alternate_permissions() in the new utime workaround
code. lp_alternate_permissions() is intended only to affect the
display of file permissions, not what you can actually do with the
files.

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

code cleanup in reply_lanman2()

26 years agoUpdating an entry.Paul
Samba Release Account [Tue, 21 Oct 1997 11:50:14 +0000 (11:50 +0000)]
Updating an entry.Paul