1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

907 Commits

Author SHA1 Message Date
Luke Leighton
739a730637 Makefile:
simply adding pipes.o to SMBDOBJ3.

rpc_pipes/pipe_hnd.c :

	created pipe handles module.

pipes.c server.c :

	use of pipe_hnd functions in SMBopenX and SMBclose, on the IPC$ pipe.
(This used to be commit ada256b5e3b9fb0db988e3be7d47943e7c19b3fb)
1997-10-30 17:08:42 +00:00
Luke Leighton
f1093ad693 Makefiles for libraries. the dependencies aren't quite right, and i
don't know how to sort them.

make proto in each library directory.  over-ride the make proto for ubiqx,
so that it doesn't happen, but throws up a warning instead.
(This used to be commit 93df2c62cc32191e88c0c4e615ac6077ec2b07c3)
1997-10-30 15:42:40 +00:00
Andrew Tridgell
397e1d64d7 Chris will be pleased to know that mkproto.awk no longer runs on the
ubiqx files :-)
(This used to be commit 13d90255928711c05d8e147081afa309b8abf1af)
1997-10-30 08:50:18 +00:00
Andrew Tridgell
628d7993d5 moved ubi_ modules back into the ubiqx directory.
I've added a very simple (and portable) method for having separate
source directories.

This should also help when we add directories for the various ports. A
unix directory would make sense.
(This used to be commit dc8998b1d3c119665538eb5e0b133a47f89fed19)
1997-10-30 08:44:29 +00:00
Samba Release Account
6f3623285e preparing for release of 1.9.18alpha9
(This used to be commit 9212c93beefa83be349b250fe98b65e07d842038)
1997-10-30 01:13:34 +00:00
Luke Leighton
15e1347530 updated documentation as chmodding files /tmp/lsarpc and /tmp/netlogon
is not needed any more.
(This used to be commit be649198e61b2c2eed7b4a221bbd0bdbab074823)
1997-10-30 01:11:26 +00:00
Luke Leighton
a275e5d4e1 removed mechanism that created actual files NETLOGON, lsarpc and the like,
which are pipes on the IPC$ connection.

created mechanism to record pipe names in a separate pipes_struct.  it
is planned to expand this, to return sensible things like interface
structures, and policy handles (RPC_IFACE and LSA_POL_HND).  and the like.
(This used to be commit 33cce5fac0e2f818a19a6c4e6a797ef44f3b5c75)
1997-10-30 01:05:13 +00:00
Luke Leighton
cbafcc4d03 update
(This used to be commit 9dd2fcae78042a2777f068d4a574605397402aad)
1997-10-29 23:00:35 +00:00
Samba Release Account
4da6236108 preparing for release of 1.9.18alpha8
(This used to be commit 48548526e8bef3cdc6f5d202bb6c7849e7862e48)
1997-10-29 21:20:34 +00:00
Luke Leighton
21fda98dc9 byteorder.h :
have another go at reporting stuff the right way round (on SPARCs)

srvparse.c :

	copyright messages
(This used to be commit 4b54d22d59d3f6719e7ce8bbbf3e40da31cd270e)
1997-10-29 20:23:01 +00:00
Luke Leighton
1337b61703 zero data parameter being passed to smb_io_rpc_hdr(), which couldn't cope.
(This used to be commit c0137cd8fe1362beef9ce879cc558869bdf2edfa)
1997-10-29 20:08:09 +00:00
Luke Leighton
77cc0d6bac typecast in calls to print_asc() wrong
(This used to be commit 4088683ee046783678d4f748ddb03b5907d00506)
1997-10-29 19:58:20 +00:00
Luke Leighton
520878fd1f ipc.c ntclientpipe.c:
response to Bind Acknowledgment needs a lookup table for the PIPE string
	(secondary address in RPC_HDR_BA structure).

smbparse.c util.c :

	interesting problem, i think caused by us typecasting a uint16* buffer
	to char*.  found on a SPARC.
(This used to be commit 420408ee83902faa6cf871f26e93ad5efb483727)
1997-10-29 19:05:34 +00:00
Samba Release Account
26f5e4f25c preparing for release of 1.9.18alpha7
(This used to be commit dceace804ea3efa8de6ab31fb44acdc10d46ed73)
1997-10-29 15:38:31 +00:00
Samba Release Account
651a62ec37 updated to current version number.
(This used to be commit 8eae5cc0fd2ccee1e34cdec5164d53f8afb9c668)
1997-10-29 15:37:05 +00:00
Luke Leighton
ebafb1e288 called dump_data() from show_msg().
(This used to be commit 89664898e2457de2986d515f6f476993ee1bbea2)
1997-10-29 15:35:53 +00:00
Luke Leighton
0db5b8fdc9 ipc.c :
bind ack should contain \PIPE\pipename not just pipename.

ntclientpipe.c :

	sanity in bind ack: pipe name checks; transfer syntax checks; reason checks.
(This used to be commit c2e2197e9d87795bda0198247c7bb132fe586fc1)
1997-10-29 14:34:17 +00:00
Luke Leighton
a2cbf43a6d split ntclient.c down into appropriate modules.
(This used to be commit 50d7e4d6f6b5d770742ee83523d6146cf51f8259)
1997-10-29 13:24:42 +00:00
Andrew Tridgell
87ea4b93ec damn. We need root privilages to do semaphore operations even if we
have done the semget() as root.  The problem is that become_root() and
unbecome_root() are so slow!

I've provided two options. The default is to set the semaphores (but
_not_ the shared memory) world writeable so that a become_root() isn't
needed. Otherwise you can define SECURE_SEMAPHORES and pay the
performance penalty.
(This used to be commit 2bbd8d2cbc5cf1901859a181bc9ec29822995e51)
1997-10-29 02:59:22 +00:00
Andrew Tridgell
cb6941a193 - don't allow locking to initialise twice
- check that it is initialised before de-initialising it!
(This used to be commit 68ad7b91999216e5721207b5a79c3a66be7cf420)
1997-10-29 02:18:08 +00:00
Andrew Tridgell
4fd96fddd2 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)
1997-10-29 01:59:54 +00:00
Luke Leighton
b925b3d20c added frag field to make_rpc_hdr() function
(This used to be commit 6b0e51929495582bc48a4d5fba24aa7c1f7caaf6)
1997-10-29 01:05:46 +00:00
Luke Leighton
fe0a702322 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)
1997-10-29 00:04:14 +00:00
Jeremy Allison
ecb952f913 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)
1997-10-28 23:58:31 +00:00
Jeremy Allison
db12131fcd Added "printer driver location", "printer driver file" parameters.
Jeremy.
(This used to be commit c739de26c286ad1c6e19896c7e9757bc584c7fc2)
1997-10-28 19:54:49 +00:00
Jeremy Allison
0f848f6414 Adding PRINTER_DRIVER.txt docs.
(This used to be commit 02fc5e756dfb71ad213aacf388563608fbaf7309)
1997-10-28 19:35:24 +00:00
Jeremy Allison
8f0316bdbc 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)
1997-10-28 19:32:59 +00:00
Herb Lewis
3c214a8fa1 mention that Perl is required for build scripts
(This used to be commit 9e51c248af8e7845b4ab477893fb07ab7840b7a2)
1997-10-28 19:21:26 +00:00
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