1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00
Commit Graph

902 Commits

Author SHA1 Message Date
Luke Leighton
be649198e6 updated documentation as chmodding files /tmp/lsarpc and /tmp/netlogon
is not needed any more.
0001-01-01 00:00:00 +00:00
Luke Leighton
33cce5fac0 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.
0001-01-01 00:00:00 +00:00
Luke Leighton
9dd2fcae78 update 0001-01-01 00:00:00 +00:00
Samba Release Account
48548526e8 preparing for release of 1.9.18alpha8 0001-01-01 00:00:00 +00:00
Luke Leighton
4b54d22d59 byteorder.h :
have another go at reporting stuff the right way round (on SPARCs)

srvparse.c :

	copyright messages
0001-01-01 00:00:00 +00:00
Luke Leighton
c0137cd8fe zero data parameter being passed to smb_io_rpc_hdr(), which couldn't cope. 0001-01-01 00:00:00 +00:00
Luke Leighton
4088683ee0 typecast in calls to print_asc() wrong 0001-01-01 00:00:00 +00:00
Luke Leighton
420408ee83 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.
0001-01-01 00:00:00 +00:00
Samba Release Account
dceace804e preparing for release of 1.9.18alpha7 0001-01-01 00:00:00 +00:00
Samba Release Account
8eae5cc0fd updated to current version number. 0001-01-01 00:00:00 +00:00
Luke Leighton
89664898e2 called dump_data() from show_msg(). 0001-01-01 00:00:00 +00:00
Luke Leighton
c2e2197e9d 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.
0001-01-01 00:00:00 +00:00
Luke Leighton
50d7e4d6f6 split ntclient.c down into appropriate modules. 0001-01-01 00:00:00 +00:00
Andrew Tridgell
2bbd8d2cbc 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.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
68ad7b9199 - don't allow locking to initialise twice
- check that it is initialised before de-initialising it!
0001-01-01 00:00:00 +00:00
Andrew Tridgell
6b6f624b63 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.
0001-01-01 00:00:00 +00:00
Luke Leighton
6b0e519294 added frag field to make_rpc_hdr() function 0001-01-01 00:00:00 +00:00
Luke Leighton
21c89e2f17 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!
0001-01-01 00:00:00 +00:00
Jeremy Allison
6e9f817414 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>.
0001-01-01 00:00:00 +00:00
Jeremy Allison
c739de26c2 Added "printer driver location", "printer driver file" parameters.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
02fc5e756d Adding PRINTER_DRIVER.txt docs. 0001-01-01 00:00:00 +00:00
Jeremy Allison
9a5b42e6b3 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.
0001-01-01 00:00:00 +00:00
Herb Lewis
9e51c248af mention that Perl is required for build scripts 0001-01-01 00:00:00 +00:00
Herb Lewis
eb95385f65 removing Makefile and adding perl script to generate it form source tree 0001-01-01 00:00:00 +00:00
Herb Lewis
ce65e1f4cc tired of updating Makefile - use perl script to generate it now 0001-01-01 00:00:00 +00:00
Jeremy Allison
fb81a77a63 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.
0001-01-01 00:00:00 +00:00
Luke Leighton
9f2c4f1fee 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.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
3480524e15 enable sysv ipc and fast share modes on OSF1 0001-01-01 00:00:00 +00:00
Andrew Tridgell
7d80e25bb4 need includes.h to compile on some systems (eg. sunos4) 0001-01-01 00:00:00 +00:00
Andrew Tridgell
6ca96782ac fix for broken sunos4 includes (doesn't have SHM_R) 0001-01-01 00:00:00 +00:00
Andrew Tridgell
af13f5e178 fix cast 0001-01-01 00:00:00 +00:00
Andrew Tridgell
4db076e08b define semun for broken solaris sysvipc 0001-01-01 00:00:00 +00:00
Andrew Tridgell
9f0be847fd lower the default hash size if SEMMSL isn't defined 0001-01-01 00:00:00 +00:00
Andrew Tridgell
6388da22eb define USE_SYSV_IPC on sunos4 0001-01-01 00:00:00 +00:00
Andrew Tridgell
8f2366e57d define USE_SYSV_IPC on a bunch more systems.
Needs some testing though.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
cc8fe0f062 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.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
c63fee2b28 refuse pathworks type R connect (patch from Stephen Tweedie) 0001-01-01 00:00:00 +00:00
Luke Leighton
2f3cca23e2 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.
0001-01-01 00:00:00 +00:00
Jeremy Allison
4021a1bf55 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.
0001-01-01 00:00:00 +00:00
Jeremy Allison
598e98e561 Fixed ntclient.c so it would compile.
Jeremy.
0001-01-01 00:00:00 +00:00
Samba Release Account
28ef0df30e preparing for release of 1.9.18alpha6 0001-01-01 00:00:00 +00:00
Samba Release Account
81374d3066 spelling mistake 0001-01-01 00:00:00 +00:00
Luke Leighton
69777caec1 updated to indicate reported success with NT 3.51 as well as NT 4.0 0001-01-01 00:00:00 +00:00
Samba Release Account
d4bf6deb5a updated header to 1.9.18alpha6 0001-01-01 00:00:00 +00:00
Luke Leighton
541fb82895 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).
0001-01-01 00:00:00 +00:00
Luke Leighton
85d132da67 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"
0001-01-01 00:00:00 +00:00
Luke Leighton
f5c24c8d9c documented LSA Open Policy Query. 0001-01-01 00:00:00 +00:00
Luke Leighton
16cc27852b added LSA Open Policy query and response processing to smbclient 0001-01-01 00:00:00 +00:00
Andrew Tridgell
c6ac10170d 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)
0001-01-01 00:00:00 +00:00
Andrew Tridgell
0f15558efb also disable read prediction in 1.9.18 0001-01-01 00:00:00 +00:00