1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-15 23:24:37 +03:00

698 Commits

Author SHA1 Message Date
Andrew Tridgell
d47d14f2ff reduced the number of magic types we need in mkproto.pl
In general I prefer "struct foo" to just "foo" for most
structures. There are exceptions.
(This used to be commit 04eb12b56c653f98801ab29411f47564ab32fa58)
2003-11-23 01:53:54 +00:00
Andrew Tridgell
940ce958a6 make the socket send code a little clearer
(This used to be commit 48028fbb856ea7ee642f36ba9ed0d5815763f52b)
2003-11-20 00:36:10 +00:00
Andrew Tridgell
e1e98ab049 updated copyright year
(This used to be commit 4dcc06d04c67c6e063c5b2a88f693423c77f342d)
2003-11-19 23:17:55 +00:00
Andrew Tridgell
d285c6f14f * add another WERR err code
* use the top-level function argument printing to show more detail in
   RPC-* tests
(This used to be commit 33bb8785625b1845750f28f2d810e7096afe9f8e)
2003-11-17 11:55:56 +00:00
Andrew Tridgell
59df3ce5b5 security descriptors are no longer a "special" type, they are handled
using the [relative] property

this also fixes level3 of PrinterInfo (a relative secdesc)
(This used to be commit d5a15257fdd5f6cfe2706765a7c29f623ec1c6f8)
2003-11-17 06:27:45 +00:00
Andrew Tridgell
bf48b6e69a added OpenPrinter and a test function. Note that the Samba3 structure
for OpenPrinter was wrong.
(This used to be commit 186ddbbf8774d0960852ea9186c8e4e6f7be7a0f)
2003-11-17 03:38:13 +00:00
Andrew Tridgell
7d212460a5 - corrected some lsa idl
- updated lsa parse code from pidl
(This used to be commit 3983b2aee77b0e093847bfc02e02b83ab281f5dd)
2003-11-08 11:21:57 +00:00
Andrew Tridgell
4fa0f615f2 another major bit of restructuring of rpc in Samba4. Mostly moving
files around, but also added the first bits of auto-generated code for
the lsa pipe.

I haven't updated the Makefile to call pidl yet, so for now the code
was cut-and-pasted into librpc/ndr/ndr_lsa.c manually
(This used to be commit 6b222d3b6541ee74cf8bf3f0913cd444903ca991)
2003-11-06 12:34:04 +00:00
Andrew Tridgell
eeffb71c72 finished off the ndr_sec.c module
(This used to be commit 6a8f297c45c9897b3dba18467cb449a70abf0b56)
2003-11-05 00:49:42 +00:00
Andrew Tridgell
18d7a41ace fixed another error found by valgrind
(This used to be commit 4368eaa523830f3101f0bb052346ed26bc70ae73)
2003-11-04 23:12:44 +00:00
Andrew Tridgell
c1b3ebb1fa fixed some error found by valgrind
(This used to be commit ca5f0ccb6cd10d51c96a5cd8e0cd97d50cbb9a73)
2003-11-04 22:42:00 +00:00
Andrew Tridgell
41304b3c57 lsa_EnumSids() now works
(This used to be commit 25a8692fede323b53240192e5d349b39fe0b7342)
2003-11-04 11:16:07 +00:00
Andrew Tridgell
485f930088 lsa_OpenPolicy2 now works
(This used to be commit 9cf479873f3501776091c9d01551adadcf525794)
2003-11-04 09:48:33 +00:00
Andrew Tridgell
46046aa69b yipee! we can now do lsaOpenPolicy() via the new interfaces, without
using any of the old lsa code
(This used to be commit f5bd301ff7befa223a1d761a37ae8f7ce7f1fcd1)
2003-11-04 09:10:31 +00:00
Andrew Tridgell
d8cbe76b86 added support for fragmented sends
(This used to be commit f51a216136b7cc7d4d07d4acb80e0a710d82841a)
2003-11-04 03:38:46 +00:00
Andrew Tridgell
994301bfec added fragmentation support on receive for dcerpc packets. I have
successfully used SourceData with 200M of data in rpcecho
(This used to be commit a9aa7954fe84c925bb158af8b73aa71b7ea84e2b)
2003-11-04 02:28:08 +00:00
Andrew Tridgell
0a427a43c4 added SinkData and SourceData tests for rpcecho
(This used to be commit 7c356350e6148078725de6b6829eb0855771ae17)
2003-11-03 10:01:20 +00:00
Andrew Tridgell
399fff106d added rpcecho EchoData test
(This used to be commit 9c7e4db4712d1b2b7d8125e3ae535efd50b80f58)
2003-11-03 09:18:38 +00:00
Andrew Tridgell
87ef172531 actually use the passed parameters!
(This used to be commit 717803848afd7e1b443c3134183c171b54f192d7)
2003-11-03 08:39:37 +00:00
Andrew Tridgell
dfc43cdf14 added a helper function to make building rpc functions a bit easier
(This used to be commit a8feb80438680b9ec399c908987c58c4a6a998e6)
2003-11-03 08:37:48 +00:00
Andrew Tridgell
dc2ffe07a8 started adding RPC-ECHO torture cases
(This used to be commit 8cff335dab438aa2dbcca91a717e14ef5a8288dd)
2003-11-03 07:26:30 +00:00
Andrew Tridgell
d064846d5f we only want the per-call stub data
(This used to be commit 95fa15cdcf2df5e8436281cdf96c84228a56cc4c)
2003-11-03 06:30:33 +00:00
Andrew Tridgell
c5cf474439 a major revamp of the low level dcerpc code in samba4, We can now do a
successful LSA OpenPolicy using smbtorture
(This used to be commit e925c315f55905060fcca1b188ae1f7e40baf514)
2003-11-03 06:22:45 +00:00
Andrew Tridgell
7fd381376f - a few portability fixes from Jim Myers
- added SMBD_LISTEN_BACKLOG in local.h

- added the beginnings of a ndr/rpc parsing framework for Samba4. It
  currently correctly parses security descriptors for the nttrans
  QUERY_SECDESC call, but I hope it will become a reasonable framework
  that an idl based generator can work to
(This used to be commit 9bf904fc34f88e0581f93656e73d3c01ca96f761)
2003-10-30 08:32:26 +00:00
Tim Potter
4cac564d71 A fix for making transfer syntax a pointer instead of an array of pointers
in struct p_ctx_list.
(This used to be commit e99e28aa36f31e862e89cef246b50a34b5115af9)
2003-10-28 10:59:19 +00:00
Tim Potter
8d87d7ede5 Cli level code for initial dcerpc client support.
(This used to be commit 94686a3f941086510415273f71503cd5f18179b8)
2003-10-28 10:25:12 +00:00
Tim Potter
476adf5725 Initial version of raw dcerpc client support.
(This used to be commit 34a2cc10992953897268ca864f2851f4c2d99e1e)
2003-10-28 10:24:13 +00:00
Tim Potter
931dc55390 Implement raw SMBtrans by backending the SMBtrans2 send code. Receive is
the same for trans and trans2.
(This used to be commit 7d21af3fdf6cf5144a41021425179ca2bba553b3)
2003-10-28 10:17:05 +00:00
Andrew Tridgell
4e73a3c0fe fixed snprintf.c for systems that have only some of the *printf() family of functions
cope with servers that return bogus (too large) values in max_xmit

cope with a couple more error conditions in RAW-SFILEINFO

better startup time heuristics in NBENCH
(This used to be commit 89f7261ba589e5760b3cf9c3594eab9d7198dd7e)
2003-10-10 05:40:32 +00:00
Andrew Tridgell
0becf4d683 thanks to ntfsd and some google searches I worked out what the unknown
fields in level 261 and level 262 of directory search are, plus the
names of the levels

the unknown fields are a 64bit unique file id, and match the 64 bit
number from the internal_information qfileinfo level
(This used to be commit b69f54eb028a24144a2e813f059b08644118ab09)
2003-09-02 04:37:33 +00:00
Andrew Tridgell
11c5869a45 I think I've finally got the ascii/unicode issues right in trans2 find
first

Also expanded the rename test a little
(This used to be commit 723af7f097a8c7f23dac23039e479811559ac3cb)
2003-08-31 03:16:52 +00:00
Herb Lewis
4809559c64 don't leak memory if cli->tree is NULL
(This used to be commit b034c4b86e2faddf0928810a3e56c03d6aaef9f5)
2003-08-15 23:57:05 +00:00
Herb Lewis
a59229614e don't dereference null pointer
(This used to be commit ba5d1cde98f9146ffc889ac89ec79331e2bfae18)
2003-08-15 21:37:42 +00:00
Andrew Tridgell
de10237719 more fixes from the IRIX compiler (thanks herb!)
(This used to be commit 02d068ba7d81d6db25122144981c63f74ad44025)
2003-08-15 18:54:44 +00:00
Andrew Tridgell
8e4ab747b0 more fixes from the IRIX compiler (thanks herb!)
(This used to be commit 4cf3839b727c77a727abb558bd9473119a092913)
2003-08-15 18:33:43 +00:00
Herb Lewis
efacfb37fc wrong typecast
(This used to be commit de7674ebefe3a8b0f953afe983ce058e11f827c2)
2003-08-15 17:50:16 +00:00
Andrew Tridgell
cc38992e3f fixed some places where we don't brace (flags & STR_UNICODE)
this fixes the samba4 server with ascii clients
(This used to be commit c770603ac6c3331a4ac79a650cbbbeb21c778137)
2003-08-15 16:19:48 +00:00
Andrew Tridgell
03ecf9b2aa try to cope with servers that return a blank alt_name field
(This used to be commit 0a1cda392ad29c95c8886a26c34fcea0b19ecebf)
2003-08-15 15:14:49 +00:00
Andrew Tridgell
d3bc355533 some servers don't return a fs_type and dev_type
(This used to be commit eaec1bdaadd744c63fb270b3807bc284dfadb37d)
2003-08-15 15:14:14 +00:00
Andrew Tridgell
0efd81efec fixed a comment typo
(This used to be commit 4cc8fef8ca278b19eb4601e7660fc1976594412e)
2003-08-15 15:13:43 +00:00
Andrew Tridgell
9e96467d36 nicer formatting in getattre
(This used to be commit 52657c369b26710ed4d3a8cce81dd518547c583e)
2003-08-15 15:13:24 +00:00
Herb Lewis
2efe201fa4 client/client.c - cannot initialize struct with non-const values
include/byteorder.h - fix for IRIX compiler - cannot cast an LVALUE
include/smb_interfaces.h - remove empty structure
source/lib/debug.c - void functions cannot return value
libcli/clifile.c - cannot assign *struct to struct
(This used to be commit 9a724762012f55d21d44ea87add7daf21f7414d1)
2003-08-14 21:56:26 +00:00
Andrew Tridgell
89f55d36f3 added the ancient SMBcreate operation to the testsuite and client lib
(This used to be commit 3eef35e581b5e1802711b9b5297f61800a7e242e)
2003-08-14 01:31:31 +00:00
Andrew Tridgell
4b3d329ca2 - added a raw smb scanner
- its not a root_fid in ntrename
(This used to be commit 74be55efdc77d4ba7e70d0554cbd72472522abff)
2003-08-13 22:23:18 +00:00
Andrew Tridgell
75c0125fb7 - added SMBntrename test suite
- allow username of form DOMAIN\username or DOMAIN/username

- added ntrename to gentest
(This used to be commit 2b464472c17b791eb5b117f89d5aaea2bf60f6ad)
2003-08-13 16:04:21 +00:00
Andrew Tridgell
b05a2aad54 add support for 32 bit pid using the PIDHIGH field. This allows the
test suite to see if it is supported. w2k3 doesn't seem to support it.
(This used to be commit c946be06a49e9a187045f2372ef7c1b987eaf6e5)
2003-08-13 02:02:17 +00:00
Andrew Tridgell
e063ea70ad use the \\server\share form of tconx to work with servers that don't
cope with the simpler form
(This used to be commit 295cc63fb8d99d403c863a7b30cb30382070a6f9)
2003-08-13 02:01:01 +00:00
Andrew Tridgell
ef2e26c91b first public release of samba4 code
(This used to be commit b0510b5428b3461aeb9bbe3cc95f62fc73e2b97f)
2003-08-13 01:53:07 +00:00