1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-17 02:05:21 +03:00

507 Commits

Author SHA1 Message Date
Andrew Tridgell
db22c0c5f9 added a bunch of alias functions in samr.idl based on work by Kai.
(This used to be commit f740b02ac36780740700909da2bcdf672cb146cb)
2003-12-19 03:59:27 +00:00
Andrew Tridgell
f46072d223 added code to the IDL validator to check for common errors with
pointers are arrays
(This used to be commit e67cbfff6c1041671711e4f73894e6e13151d57e)
2003-12-19 00:40:40 +00:00
Andrew Tridgell
8369293090 fixed a segv in RPC-* when debug level > 2
thanks to Kai for spotting this!
(This used to be commit 0fc42c33d3b0930fdf1dc71a407f4fcaac69d82d)
2003-12-17 21:37:34 +00:00
Tim Potter
a2ec4b990d Fix typo.
(This used to be commit 3f1b781c5659361d7e9cc3ab2072e1462d40df55)
2003-12-17 03:38:06 +00:00
Andrew Tridgell
aa4aa0f99f fixed a bug in the acct_flags checking on CreateUser2 in the RPC-SAMR test
(This used to be commit 2c9a999c5421a07ae3059595f70d5533f2040a03)
2003-12-17 02:35:04 +00:00
Tim Potter
f9b522cfad Delete old python bindings.
(This used to be commit d7b680899fedb0b6f8169845791d7284e8d203ba)
2003-12-17 02:18:36 +00:00
Andrew Tridgell
7efa19cd22 added a smb.conf flag "rpc big endian" that tells our rpc server to
send packets in bigendian format.
(This used to be commit 44df662960e662a55a9f27627f838771503a7a59)
2003-12-17 02:06:44 +00:00
Andrew Tridgell
938eef5beb removed some unused functions
(This used to be commit 09d17d705a6e378a7c1a40b29d2e091200b6d757)
2003-12-16 12:59:20 +00:00
Andrew Tridgell
60deb10a2c fixed formatting of uuids in debug output
(This used to be commit 7895796ef8a0dfe5de1404e630b2489fdec39a56)
2003-12-16 12:11:00 +00:00
Andrew Tridgell
b3b10bce33 added a define for the DCERPC little-endian data representation flag
(This used to be commit 691f9c1c4448fb54846fcfffeca43601bcd44138)
2003-12-16 11:24:28 +00:00
Andrew Tridgell
6ba28732ec fixed the RPC-MGMT and RPC-SCANNER tests to work with the new
dcerpc_binding_string code
(This used to be commit 1fa68c18facfb6c96d5a274cfd9560cb4b2956f6)
2003-12-16 10:57:17 +00:00
Andrew Tridgell
ecc2519594 no longer require the pipe name or tcp port number to be the first
option in the ncacn_* syntax
(This used to be commit 74f36d32bb14e94a80e1963cbc95f8fba3f23335)
2003-12-16 10:15:21 +00:00
Andrew Tridgell
68d84436a1 use bigendian mode to fix the idl for samr_LogonHours
(This used to be commit 1056618b6a70b32fc17a8290f3efa3334fa1b049)
2003-12-16 10:09:02 +00:00
Andrew Tridgell
6f12e4ace1 it turns out that a wire policy handle isn't a blob either, its a
uint32 followed by a GUID. I needed to fix this to support running in
mixed-mode rpc (where smbtorture is bigendian and w2k3 is
little-endian). Otherwise when you send back a policy handle the
server doesn't recognise it.
(This used to be commit 9b1c76a8e9e953e051072441f8938ee17a674d35)
2003-12-16 09:50:49 +00:00
Andrew Tridgell
7779b1e000 added support for big-endian ucs2 strings (as used by big-endian
msrpc).

this was easier than I expected!
(This used to be commit a0a51af6b746b1f82faaa49d33c17fea9d708fb0)
2003-12-16 09:20:34 +00:00
Andrew Tridgell
24c22aef90 a fairly large commit!
This adds support for bigendian rpc in the client. I have installed
SUN pcnetlink locally and am using it to test the samba4 rpc
code. This allows us to easily find places where we have stuffed up
the types (such as 2 uint16 versus a uint32), as testing both
big-endian and little-endian easily shows which is correct. I have now
used this to fix several bugs like that in the samba4 IDL.

In order to make this work I also had to redefine a GUID as a true
structure, not a blob. From the pcnetlink wire it is clear that it is
indeed defined as a structure (the byte order changes). This required
changing lots of Samba code to use a GUID as a structure.

I also had to fix the if_version code in dcerpc syntax IDs, as it
turns out they are a single uint32 not two uint16s.

The big-endian support is a bit ugly at the moment, and breaks the
layering in some places. More work is needed, especially on the server
side.
(This used to be commit bb1af644a5a7b188290ce36232f255da0e5d66d2)
2003-12-16 09:02:58 +00:00
Andrew Tridgell
1413faae58 the out substructure is not empty if there is a return from the
function
(This used to be commit d18a08a870aa9ee12ed2913775b70d1b8a09c84b)
2003-12-16 04:15:51 +00:00
Andrew Tridgell
b2b9ea5429 enable rep_inet_ntoa() for non-pthread builds
(This used to be commit f50d4b602af73045e5b15d62fd24224eba849fd1)
2003-12-16 04:10:47 +00:00
Andrew Tridgell
1abd0be41e more mutex portability.
(This used to be commit 42dd8d888a1d4c09aebb199e8636f49df6d2e36a)
2003-12-16 03:45:04 +00:00
Andrew Tridgell
e2ffb64d7a some compilers can't handle structures with no elements. Generate
dummy elements if need be.
(This used to be commit b6fdc984023a76a6c77d03cb3ec12c6c18d215a6)
2003-12-16 03:44:32 +00:00
Andrew Tridgell
2c6b585f2d more portability fixes. We now almost compile on solaris
(This used to be commit f4abd20b8437703211676fb12ea23af8f0e4642a)
2003-12-16 03:34:23 +00:00
Andrew Tridgell
ff6478bb4a use smb_rwlock_t instead of rwlock_t to avoid conflicts with system
types on some platforms (eg. solaris)
(This used to be commit ac8a23af8c67d2e39bb6cfd409c50f1f429cf271)
2003-12-16 03:27:36 +00:00
Andrew Tridgell
6deece83dc don't rely on the ability of perl 5.6.x to remove elements from arrays
using delete(). This makes pidl portable back to perl 5.0.
(This used to be commit 9175293535246f55f50f52501ec451c951a94eb1)
2003-12-16 03:21:34 +00:00
Andrew Tridgell
727c3bfdeb make sure we have a value for DEFAULT_PRINTING on all platforms
(This used to be commit d0bef33ffa21ce5caaf8e052cbbd2bb32db40b0c)
2003-12-16 02:59:30 +00:00
Andrew Tridgell
c35b032180 remove a redundent second check for PAM
(This used to be commit dbc6f31df884268ba649c9d73c6e27eaa79d4cc4)
2003-12-16 01:10:03 +00:00
Andrew Tridgell
d313dab5ee cope with different cpp formatting on some systems, and make sure we
don't loop forever if we get a cpp format line we don't understand
(This used to be commit 003c6c493b1babadb1f7c4eb54babed394bd42a9)
2003-12-16 00:38:33 +00:00
Andrew Tridgell
c0149d86c5 use the @CPP@ value from configure if possible when determining cpp in
pidl
(This used to be commit c47e88dabfc62db7533d2d39c7f1010b4188d2ea)
2003-12-15 22:06:18 +00:00
Andrew Tridgell
65c8e3685a lets see if "cc -E" keeps more of the build farm happy then "cpp"
We'll probably need a configure entry for this
(This used to be commit 66e648f20ffd34e2cff1b94003db9974d2bac318)
2003-12-15 21:55:42 +00:00
Andrew Tridgell
2b5bc1b252 lots of shells don't have the -nt test, so use hackish find command
instead
(This used to be commit 2d57346c2d07e43c4630a7f7963173d84c5a7c92)
2003-12-15 12:13:34 +00:00
Andrew Tridgell
43e52cc177 added "pidl.pl --template" to dump a rough template to save typing
when starting a pipe. Thanks to metze for a script that gave the idea.

do something like this to use it:

  pidl.pl --parse --template librpc/idl/XXX.idl > rpc_server/XXX/rpc_XXX.c

then fill in the functions in rpc_XXX.c
(This used to be commit 68e71d7497ddc7b8239fc4bd7cb3e780a1f53a39)
2003-12-15 10:55:10 +00:00
Andrew Tridgell
5b03596529 fixed srvsvc DiskEnum call
strangely, the output doesn't seem to contain an info level. Some
programmer stuffed up the IDL :)
(This used to be commit a39ee5d00341e1dbde0b38474ba4d5e980e74538)
2003-12-15 10:21:09 +00:00
Andrew Tridgell
0a61036257 patch from metze with updates to srvsvc and changes to pidl to allow
for the server rpc boilerplate to correctly generate for multiple
interfaces on an endpoint
(This used to be commit 56143689ecf623e8a6ef5c453e6ad1ca9404411c)
2003-12-15 09:18:53 +00:00
Andrew Tridgell
6a3ef87d3e make sure we allow clients to negotiate ntlmssp seal if they want it
(This used to be commit a1275c1e89462f0a3cce73066777055c3c970b76)
2003-12-15 08:59:25 +00:00
Andrew Tridgell
a90db73efd make pidl no longer dependent on Data::Dumper, which isn't installed
on some systems
(This used to be commit a4aa9168c0f80cf6e758c380d41335db50d06869)
2003-12-15 08:58:00 +00:00
Andrew Tridgell
3289579812 fixed a typo in the m4 file
(This used to be commit e472053bcc4761411fc03920672c1739af3bfb68)
2003-12-15 08:37:42 +00:00
Andrew Tridgell
e7721c0021 "make idl" is now incremental and "make idl_full" is a full idl build
(This used to be commit 113e772e3750ca1e661157394ccff1b59da76ceb)
2003-12-15 05:41:05 +00:00
Andrew Tridgell
64352f9ef1 a script fix for the build farm
(This used to be commit 5f6b0baa300d088a6d7fb91fcbceff594292eaa0)
2003-12-15 05:37:15 +00:00
Andrew Tridgell
807a701f7c disable pam in samba4 until someone fixes it (hi andrew!)
(This used to be commit 1012c6e3f763962955a21e4c91285656b4e89ccf)
2003-12-15 04:35:56 +00:00
Andrew Tridgell
e0dc5a0ff3 don't try and build the libclient stuff in samba4 yet
(This used to be commit 65d2bda9509a9455f70eceac51ecef9b2048773d)
2003-12-15 04:07:16 +00:00
Andrew Tridgell
8431335ec5 more flexible handling of [] in binding strings
(This used to be commit edc67fffeaee5fe4bbbc6fbd76345d0a9d5b2093)
2003-12-15 03:41:08 +00:00
Andrew Tridgell
71f81d1d3e allow the specification of full dcerpc endpoint binding strings on the
command line. This allows you to (for example) control signing/sealing
of smbtorture RPC sessions
(This used to be commit a73825eb496d5924012ea926fcbac8c956fe081e)
2003-12-15 03:29:55 +00:00
Andrew Tridgell
f1ceef6c84 switch off the default of ntlmssp on rpc on smb as some windows pipes
can't handle it (I'd switched it on while experimenting, and forgot to
switch it off before committing)
(This used to be commit 837d8f73a9601329cec0f885df84648a2a3c196d)
2003-12-15 01:09:45 +00:00
Andrew Tridgell
ba523d895a fixed the handling of zero-length top level arrays in pidl
(This used to be commit fa45529af72090c2604708a651d5e5714a844d72)
2003-12-15 01:07:08 +00:00
Andrew Tridgell
a22917260c zero length echo is not an error
(This used to be commit f21d6351d0441e5bc77aca07a2863ef9f999bb92)
2003-12-15 01:06:01 +00:00
Andrew Tridgell
79990c727c fixed the transfer syntax in the dcerpc bind reply
(This used to be commit 39a7c660f4b7cafb0414842329669dd4724b07db)
2003-12-15 00:40:57 +00:00
Andrew Tridgell
f6eb8342cb added auto-generation of the server side boilerplate code for each
pipe.

The server side code gets generated as librpc/gen_ndr/ndr_NAME_s.c and
gets included in the pipe module
(This used to be commit bd3dcfe5820489a838e19b244266bd9126af5eb4)
2003-12-14 13:22:12 +00:00
Simo Sorce
4cd6b8a64b typo
(This used to be commit 2afbd1e0005517d8ceb584ccbf8a85c4527cb866)
2003-12-14 12:27:51 +00:00
Andrew Tridgell
a05882b34b fixed fragmented signed connections to our rpc server over SMB
(This used to be commit f5df126c254bcb96dfb42096d7247215c7e7a89a)
2003-12-14 12:21:21 +00:00
Simo Sorce
b356f3e43e reduce double explanation of FIXED ARRAYS
(This used to be commit 6f33109b102d41d98ffd536fe2234fbaae85b02e)
2003-12-14 12:04:55 +00:00
Andrew Tridgell
d009dc61f9 ntlmssp over rpc over tcp now fully works
I needed to hack the ntlmssp code a little, as the auth code in samba4
is out of date relative to the samba3 auth code. I need to do a merge :)
(This used to be commit 6ee0935afe9444bf9bb24eed4e02e8377dc746b7)
2003-12-14 10:45:50 +00:00