kai/samba.git
23 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.
(This used to be commit cc8fe0f0629eea9acc39e30d8d76d5890a5b6978)

23 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)
(This used to be commit c63fee2b282c8b53f87e63995384602b66a805a6)

23 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.
(This used to be commit 2f3cca23e2465ca6a3a31fda005af1fd74f6af92)

23 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.
(This used to be commit 4021a1bf553a20b518595f621f828d8279d05303)

23 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.
(This used to be commit 598e98e5612250966696826a98de35356f8f03d8)

23 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
(This used to be commit 28ef0df30efd4011e6a782dc02474b6d4082d6de)

23 years agospelling mistake
Samba Release Account [Mon, 27 Oct 1997 17:18:35 +0000 (17:18 +0000)]
spelling mistake
(This used to be commit 81374d30661fb3ad0271e7d2db9eecb7beb3d42b)

23 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
(This used to be commit 69777caec171c1eafdc6a4958a931efa06a9beab)

23 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
(This used to be commit d4bf6deb5adea982913507ad5089929521274485)

23 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).
(This used to be commit 541fb82895008cc30477019cdcafed9fdbbeac43)

23 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"
(This used to be commit 85d132da6756da0904fe894ea617b84e38e610ff)

23 years agodocumented LSA Open Policy Query.
Luke Leighton [Mon, 27 Oct 1997 15:10:17 +0000 (15:10 +0000)]
documented LSA Open Policy Query.
(This used to be commit f5c24c8d9c397d5a7a3f9d0f5dbfd204485f2662)

23 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
(This used to be commit 16cc27852bf54999db4b0a3665b0743d9fe0e74a)

23 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)
(This used to be commit c6ac10170dbba57dfebc54c50d79cb29d13bb442)

23 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
(This used to be commit 0f15558efb26b7215540a588dfe8733e9346d407)

23 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
(This used to be commit ed71534df56d0296280dbde1859597fb42002088)

23 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.
(This used to be commit 800a7218bcdf3ce57af0ce0428f96d42edc1d188)

23 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.
(This used to be commit 0a549e62fbf11a3ff1f1de663176e30006553e08)

23 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.
(This used to be commit 57e0fac61414c032df35c8a4c0ba4d3a9f55c5b8)

23 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)
(This used to be commit 944ecbcbd47afcc20e2e408a06d57c7b8d0d86a8)

23 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.
(This used to be commit 4bf5c03b18f88b566f3ac12cc4b3a9c5c96fd35d)

23 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
(This used to be commit 1b17455066098104b9b0907a58195328c6467d71)

23 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.
(This used to be commit afa790f14cc11b7be110d767e2395a819cf8ceb4)

23 years agolatest version
Luke Leighton [Sat, 25 Oct 1997 17:59:01 +0000 (17:59 +0000)]
latest version
(This used to be commit 48c4eec98defc2ade02fe7be1539367a53cbee98)

23 years agooops!
Luke Leighton [Sat, 25 Oct 1997 17:58:53 +0000 (17:58 +0000)]
oops!
(This used to be commit 2119624010e599359f4829cce6800bb0c55d281e)

23 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!
(This used to be commit f14c111835e18e361468cc6a1666a02654afe743)

23 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.
(This used to be commit 349677de3f06bb0892862de0e11172adeffda18a)

23 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.
(This used to be commit 9eee8c2007bf4f7756f6d645a61055101d280316)

23 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.
(This used to be commit 82436a3d99d4bdce249ce9ff27fd2ca4b2447e07)

23 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
(This used to be commit f492bd51a61cbe6dd4f1971491b760fc7ebd2554)

23 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
(This used to be commit bf5b060bd9d210efe95b3529dfba98c5c49716e0)

23 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
(This used to be commit e24465890a2fd87fce4f88b97f7ad84a4cc34d7b)

23 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
(This used to be commit 814543b36ecc8099790272e5dfe69b15e07c8fc5)

23 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.
(This used to be commit 5b15b17fc6da0e2b496822638edf566dedf3efde)

23 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)
(This used to be commit 6d301d2cfd25b18ba18685d926d7a5bc08695b6d)

23 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.
(This used to be commit 39cec7f698c4461aee05cfbb213879fbd486117d)

23 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)
(This used to be commit 2c97b33fc0b5ef181dbf51a50cb61074935165bf)

23 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
(This used to be commit 25560cf40b997e400d16fa0c1380e5bc29c015a5)

23 years agocommas in the wrong places...
Luke Leighton [Thu, 23 Oct 1997 19:24:58 +0000 (19:24 +0000)]
commas in the wrong places...
(This used to be commit 0ca7a64515065c0d8c47b38ee996901bd5e00020)

23 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.
(This used to be commit d8c265c515985414962bb5187c9f92d016281dcc)

23 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!
(This used to be commit 0cc8ce43e1d54b44237bb525f4cf6b77e7ca3ced)

23 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.
(This used to be commit c100b39be9bd28498d6fda55eb2ed90af85cd3f6)

23 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.
(This used to be commit 473f21071fad603865358821b83df6b58c9a06a5)

23 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().
(This used to be commit 2393c49b0509b8ce021f0acfba135219cd753cf9)

23 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
(This used to be commit b88ee3e16c6b671069f53ca2e9c5694ec8b1c030)

23 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.
(This used to be commit 6ee065ce6e099acfc7e83ad399ef6e60b4c625c1)

23 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)
(This used to be commit ec60e48d7982240b7755d246b2f1e8989467f66f)

23 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)
(This used to be commit 8d1993c71a5d5d32636f62ba9b9a9009ec74d730)

23 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.
(This used to be commit 178e27de0791c1ff3268cb456ed5c5efc9ac2a01)

23 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.
(This used to be commit da4b2bf466cfca31009e02f9b33227c0c4a048b2)

23 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
(This used to be commit a5f52340a49bb2c4f2cdfa7b3c8b45cc5b0e9ec6)

23 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
(This used to be commit e4f6ec8c0e2c1ea055cdc811b19feccbc808fd0b)

23 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)
(This used to be commit 2d9645e99ba30a5cce4372ff80d1bd26c516ac34)

23 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.
(This used to be commit bc2834c2cc7bda0c1e780d160a73c8b71bfe467f)

23 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
(This used to be commit 27dbb81dd3ca44b45238d63f2ff3e8da429f9845)

23 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)
(This used to be commit 7221e19d5ef4a242ce29d3148957c3e481456934)

23 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)
(This used to be commit 46ac5928d9069af1dc60e9724f38e228dd578937)

23 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.
(This used to be commit f2554f231d1f59f30224adcc02b2b3ca4c24e0dd)

23 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 ...
(This used to be commit 267b56de10a20c25faee69cf4b6b6c02887ebe9c)

23 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()
(This used to be commit afd7592ffd74fbc77f4b177b007291df95f418ef)

23 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.
(This used to be commit 454802d5922bf2b2c6df1f084e183611937ee5fb)

23 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()
(This used to be commit 8e90e1ef276c4cc362e32985c2845fc4c5108273)

23 years agoUpdating an entry.Paul
Samba Release Account [Tue, 21 Oct 1997 11:50:14 +0000 (11:50 +0000)]
Updating an entry.Paul
(This used to be commit 1b056ddd9a787de902639b2ed85fe3953a750562)

23 years agoadd a note on how to map usernames with spaces in them
Andrew Tridgell [Tue, 21 Oct 1997 10:30:07 +0000 (10:30 +0000)]
add a note on how to map usernames with spaces in them
(This used to be commit 708399e23461f2cce869038ab99d5e5bb54e4a62)

23 years agoadded a note about which netbios name is use in server level security
Andrew Tridgell [Tue, 21 Oct 1997 09:43:03 +0000 (09:43 +0000)]
added a note about which netbios name is use in server level security
(This used to be commit f02672439554159ee49412731978286865418588)

23 years agoprototype updates
Andrew Tridgell [Tue, 21 Oct 1997 09:39:45 +0000 (09:39 +0000)]
prototype updates
(This used to be commit 2b976cb7ecf50c118bd15923f6500bb8d2e058b7)

23 years agosome cleanups in the clientutil.c code.
Andrew Tridgell [Tue, 21 Oct 1997 09:39:08 +0000 (09:39 +0000)]
some cleanups in the clientutil.c code.

I'm actually hoping to remove this module completely once we convert
nmbd to using the new (much cleaner) clientgen.c

smbclient now also reports if it connects as a guest user
(This used to be commit 3af8d855facfc436cb4b64fa58aca8c056a5348e)

23 years agorewrote the password server code using the new clientgen.c client
Andrew Tridgell [Tue, 21 Oct 1997 09:34:33 +0000 (09:34 +0000)]
rewrote the password server code using the new clientgen.c client
interface

The new code uses a source netbios name equal to the Samba servers
name, not the client name. It also uses NetWkstaUserLogon to do a full
network logon. This means it will honour the servers logon
restrictions (such as login times etc).
(This used to be commit 11de90f972f6d83974425e80014f54e15d495413)

23 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.
(This used to be commit 3a0b5f06f42efdb522f1c5d3d9a4b4afabe03b40)

23 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
(This used to be commit ed484d4501e855f467ce2b3cfa63855acfe5e516)

23 years agoadd some debug info
Andrew Tridgell [Tue, 21 Oct 1997 09:09:55 +0000 (09:09 +0000)]
add some debug info
(This used to be commit b22fa0d7e3d1158112e03f93a22232e719fe6003)

23 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)
(This used to be commit c4a4a9016ea5654c5d945a935e60d4f1f3b073e5)

23 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)
(This used to be commit 41a1d81c112a82ad2ae1b3c4ee81051f133ce1ed)

23 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_....
(This used to be commit c6e37d8db0cd89a84a54a0cedfeacf50fb3f7a4c)

23 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
(This used to be commit 6d67eddcdffd26b0fa7f97ed3fa08ec002566367)

23 years agoadded copyright to headers.
Luke Leighton [Mon, 20 Oct 1997 14:46:05 +0000 (14:46 +0000)]
added copyright to headers.
(This used to be commit 38287a59ae1d4053d4cd2f53a141a5c826c21efd)

23 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.
(This used to be commit 8964b0ad56804b119d39ed3a72a6cf0fb578a22e)

23 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.
(This used to be commit 7b3340c78dd9654d6f8e04196be6cd9e826daaf6)

23 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.
(This used to be commit 9dc6fa1869b5be3c3032b6f7a1b3195292927040)

23 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.
(This used to be commit c59b8cee4721eeeb79f07f48ac17492530d4cdb1)

23 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.
(This used to be commit c6c28a4c3c9010ff9d5eac4bad091189a786d5a0)

23 years agoFixed Upper/Lower case typos.
John Terpstra [Mon, 20 Oct 1997 10:30:15 +0000 (10:30 +0000)]
Fixed Upper/Lower case typos.
(This used to be commit 53a8a6ced58429886fef019a56c9059e0dcb6622)

23 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.
(This used to be commit 65ab9adaa0d356b8041ed8a507ea52117f2a284e)

23 years agocasting cleanups
Andrew Tridgell [Mon, 20 Oct 1997 02:50:12 +0000 (02:50 +0000)]
casting cleanups
(This used to be commit ab849a97821c9e1f199eea8ea2ec477687bed947)

23 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.
(This used to be commit 426cd6b2ded4725186a9262f13a327d8cf94364b)

23 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)
(This used to be commit 9dfab27da3634539e99eb48c85dd5a64212e7005)

23 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
(This used to be commit 38c07fa932488542dbb687f8e0eca192d5f38a8e)

23 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!
(This used to be commit 80523a3e83191c9e0b930fc71bd502a94a6f1b19)

23 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.
(This used to be commit 0a191ee5047b2c81c7adb0554c39ec43d8690230)

23 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.
(This used to be commit 22b86b6499b2680d16cb4180a736b4e750147409)

23 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.
(This used to be commit e8bedb18bf249d2f06834b0f151ea22df86e2602)

23 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.
(This used to be commit 7d8c0b60f19fb503619e3bdcde7aaa144e56dcd4)

23 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.
(This used to be commit 2f2d18cc9474e1b40765a67242659be7c63a9936)

23 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
(This used to be commit cdf4aa565302df07b0232c52506ab77be968f80d)

23 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.
(This used to be commit ce54f3a7a965b0a9f888dc45d6f4633609d5ca08)

23 years agoFixed small typo.
John Terpstra [Sat, 18 Oct 1997 05:28:34 +0000 (05:28 +0000)]
Fixed small typo.
(This used to be commit 2b15116a9ab48381445a6b7fb4352f71bf8860c0)

23 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)
(This used to be commit db9aad07481f48c0fe2108d4ab0b2bc9b632816c)

23 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)
(This used to be commit 6904c2de080b2a9702800e9e4126386ced20569d)

23 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
(This used to be commit 92e7092af1daf9349ca9fb00cd27c0ddc21b37d9)

23 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
(This used to be commit b75580a6bd5a5607f6901915ae0f5357015bd274)