1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

879 Commits

Author SHA1 Message Date
Herb Lewis
f0da0c5858 removing Makefile and adding perl script to generate it form source tree
(This used to be commit eb95385f65bb36528649e205f617a03dc8db2d97)
1997-10-28 19:20:07 +00:00
Herb Lewis
86f4709cdc tired of updating Makefile - use perl script to generate it now
(This used to be commit ce65e1f4cc91db533c26c3ccdba6d4dd3286d22b)
1997-10-28 19:18:52 +00:00
Jeremy Allison
1260eff4e1 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)
1997-10-28 18:15:48 +00:00
Luke Leighton
d8e79427c9 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)
1997-10-28 17:54:10 +00:00
Andrew Tridgell
79f670128f enable sysv ipc and fast share modes on OSF1
(This used to be commit 3480524e15aba50dd459ac5979eabb8974898e35)
1997-10-28 15:07:01 +00:00
Andrew Tridgell
f320197654 need includes.h to compile on some systems (eg. sunos4)
(This used to be commit 7d80e25bb422d841aad81c2b3d76039bba6c9f79)
1997-10-28 15:02:15 +00:00
Andrew Tridgell
9c717c285a fix for broken sunos4 includes (doesn't have SHM_R)
(This used to be commit 6ca96782ace2258707f49d204726a00baef9d941)
1997-10-28 14:59:06 +00:00
Andrew Tridgell
c79e0abdd7 fix cast
(This used to be commit af13f5e1788b6f81cfcdaeb85dc709458e3d4816)
1997-10-28 14:55:47 +00:00
Andrew Tridgell
d6739a10d0 define semun for broken solaris sysvipc
(This used to be commit 4db076e08bec525ee908a391b22fdc12cc66bc27)
1997-10-28 14:55:22 +00:00
Andrew Tridgell
e75de8adc6 lower the default hash size if SEMMSL isn't defined
(This used to be commit 9f0be847fdbcf0f8bbd69de6cdf277ae0440bcda)
1997-10-28 14:40:31 +00:00
Andrew Tridgell
ba4d965fc0 define USE_SYSV_IPC on sunos4
(This used to be commit 6388da22eb95c8bfd3f17f5645bdaa16cfca0c6b)
1997-10-28 14:25:26 +00:00
Andrew Tridgell
e06da92b37 define USE_SYSV_IPC on a bunch more systems.
Needs some testing though.
(This used to be commit 8f2366e57d29458f2bb63d9a0033de5c730a1b94)
1997-10-28 14:22:50 +00:00
Andrew Tridgell
c9fa24b7a8 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)
1997-10-28 14:19:54 +00:00
Andrew Tridgell
7c20ee083f refuse pathworks type R connect (patch from Stephen Tweedie)
(This used to be commit c63fee2b282c8b53f87e63995384602b66a805a6)
1997-10-28 06:07:07 +00:00
Luke Leighton
aee261e784 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)
1997-10-27 19:00:38 +00:00
Jeremy Allison
6fc83d5c36 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)
1997-10-27 18:28:06 +00:00
Jeremy Allison
a030c93878 Fixed ntclient.c so it would compile.
Jeremy.
(This used to be commit 598e98e5612250966696826a98de35356f8f03d8)
1997-10-27 18:07:36 +00:00
Samba Release Account
e6ee5fc2d9 preparing for release of 1.9.18alpha6
(This used to be commit 28ef0df30efd4011e6a782dc02474b6d4082d6de)
1997-10-27 17:18:51 +00:00
Samba Release Account
2391c5a9a1 spelling mistake
(This used to be commit 81374d30661fb3ad0271e7d2db9eecb7beb3d42b)
1997-10-27 17:18:35 +00:00
Luke Leighton
2a8169fbb6 updated to indicate reported success with NT 3.51 as well as NT 4.0
(This used to be commit 69777caec171c1eafdc6a4958a931efa06a9beab)
1997-10-27 17:12:57 +00:00
Samba Release Account
44b6fa7150 updated header to 1.9.18alpha6
(This used to be commit d4bf6deb5adea982913507ad5089929521274485)
1997-10-27 17:09:46 +00:00
Luke Leighton
13291ce01d 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)
1997-10-27 17:04:15 +00:00
Luke Leighton
f868196c1d 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)
1997-10-27 16:14:29 +00:00
Luke Leighton
d94a4a630d documented LSA Open Policy Query.
(This used to be commit f5c24c8d9c397d5a7a3f9d0f5dbfd204485f2662)
1997-10-27 15:10:17 +00:00
Luke Leighton
8586dda29b added LSA Open Policy query and response processing to smbclient
(This used to be commit 16cc27852bf54999db4b0a3665b0743d9fe0e74a)
1997-10-27 15:09:23 +00:00
Andrew Tridgell
71d648cdb4 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)
1997-10-27 14:27:17 +00:00
Andrew Tridgell
464dc54336 also disable read prediction in 1.9.18
(This used to be commit 0f15558efb26b7215540a588dfe8733e9346d407)
1997-10-27 13:38:07 +00:00
Andrew Tridgell
8047228db4 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)
1997-10-27 12:02:34 +00:00
Luke Leighton
d80700156e added mention of compile-time experimentational NT Domain code.
(This used to be commit 800a7218bcdf3ce57af0ce0428f96d42edc1d188)
1997-10-27 11:11:41 +00:00
Luke Leighton
95b3b1473f 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)
1997-10-26 18:42:47 +00:00
Andrew Tridgell
2058763455 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)
1997-10-26 07:50:28 +00:00
Andrew Tridgell
f8c059517a 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)
1997-10-26 07:45:36 +00:00
Andrew Tridgell
a342ff5bf4 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)
1997-10-26 07:32:02 +00:00
Samba Release Account
326da272da preparing for release of 1.9.18alpha5
(This used to be commit 1b17455066098104b9b0907a58195328c6467d71)
1997-10-25 19:13:07 +00:00
Luke Leighton
5f985d721d updated to describe smbclient work recently done.
(This used to be commit afa790f14cc11b7be110d767e2395a819cf8ceb4)
1997-10-25 18:13:04 +00:00
Luke Leighton
b3701731b9 latest version
(This used to be commit 48c4eec98defc2ade02fe7be1539367a53cbee98)
1997-10-25 17:59:01 +00:00
Luke Leighton
11ff512ed6 oops!
(This used to be commit 2119624010e599359f4829cce6800bb0c55d281e)
1997-10-25 17:58:53 +00:00
Luke Leighton
7e56b5a173 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)
1997-10-25 17:38:37 +00:00
Luke Leighton
5493293442 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)
1997-10-25 15:49:27 +00:00
Luke Leighton
027630f9ff sam logon query creation functions. written twice because i deleted it.
(This used to be commit 9eee8c2007bf4f7756f6d645a61055101d280316)
1997-10-25 13:15:52 +00:00
Luke Leighton
390c1f3c4d 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)
1997-10-25 10:58:18 +00:00
Herb Lewis
3a25722080 update SGI build files to latest source
(This used to be commit f492bd51a61cbe6dd4f1971491b760fc7ebd2554)
1997-10-24 18:41:08 +00:00
Samba Release Account
1bdf2d8fa5 preparing for release of 1.9.18alpha4
(This used to be commit bf5b060bd9d210efe95b3529dfba98c5c49716e0)
1997-10-24 14:40:37 +00:00
Samba Release Account
78095482be preparing for release of samba-1.9.18alpha4
(This used to be commit e24465890a2fd87fce4f88b97f7ad84a4cc34d7b)
1997-10-24 14:39:28 +00:00
Luke Leighton
96d6187091 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)
1997-10-24 14:36:10 +00:00
Luke Leighton
a60ad7bef3 default server_name if NIS server is unavailable should be the local
machine, not a NULL string.
(This used to be commit 5b15b17fc6da0e2b496822638edf566dedf3efde)
1997-10-24 13:58:21 +00:00
Luke Leighton
be0f2e14b5 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)
1997-10-24 13:51:17 +00:00
Luke Leighton
a12f047533 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)
1997-10-24 13:15:34 +00:00
Jeremy Allison
abb255cfe6 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)
1997-10-23 22:30:57 +00:00
Luke Leighton
5557ab3c00 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)
1997-10-23 19:27:53 +00:00