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

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

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

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

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

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

23 years agoAdding PRINTER_DRIVER.txt docs.
Jeremy Allison [Tue, 28 Oct 1997 19:35:24 +0000 (19:35 +0000)]
Adding PRINTER_DRIVER.txt docs.
(This used to be commit 02fc5e756dfb71ad213aacf388563608fbaf7309)

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

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

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

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

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

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

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

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

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

23 years agofix cast
Andrew Tridgell [Tue, 28 Oct 1997 14:55:47 +0000 (14:55 +0000)]
fix cast
(This used to be commit af13f5e1788b6f81cfcdaeb85dc709458e3d4816)

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

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

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

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

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)