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

77 Commits

Author SHA1 Message Date
Andrew Tridgell
25de3041e6 fixed wkssvc idl and test code for TransportEnum
(This used to be commit 42639a8f66e8d4241b24935772552f235f863096)
2003-11-19 23:18:35 +00:00
Andrew Tridgell
10ee36bede switched to a new way of handling unions, so that we can handle
alignment correctly for unions that have non-uint16 discriminants

fixed the union handling in srvsvc.idl. (metze, please take a look at
the changes, your IDL did match what was one the wire in most cases,
but isn't the way IDL is usually coded)
(This used to be commit 7b5d0287298e8505e0ec7b22d75d9f9a8a610031)
2003-11-19 22:10:20 +00:00
Richard Sharpe
5a51af0685 Fix up some things in the IDL, and fix up a mistake I made before.
entriesreturned does not appear as a top-level IDL item. It appears in the
structure that is returned.

I have traces of TransportEnum that Ethereal properly dissects ...
(This used to be commit e3f046037844e3017653f56d6c262951db1f1d4f)
2003-11-19 19:44:17 +00:00
Richard Sharpe
7b3f7cd7fd Some simple tweaks to the IDL to make it more correct ...
I am also concerned about the difference between NetShareEnum and
NetShareEnumAll. I would be interested to see a trace of NetShareEnumAll.

I also think we should stick to the names used in MSDN where possible, as
that makes it easier for people who are familiar with MSDN to help us get
this right.
(This used to be commit 580939e62e80a06b9a8ad974f6798c49dab4f78c)
2003-11-19 19:32:28 +00:00
Andrew Tridgell
1941b5cef0 started to expand the echo tests to include more interesting test
cases. We fail one of the alignment tests.
(This used to be commit 5bb21e57b844e98cc8f1dc264bc45097c08329e3)
2003-11-19 12:03:11 +00:00
Andrew Tridgell
4e18040236 srvsvc IDL and test code from metze. Thanks!
(This used to be commit 54d3cb22dc0ddc46eb114aa104e0660b3a437cb2)
2003-11-19 09:15:46 +00:00
Andrew Tridgell
de3f0b424f after discussions with lukeh, I think we found a alignment bug in old
versions of midl, as used to build LSA. Work around it here.
(This used to be commit b3bd2bf10badd60d7c4952c6e1687568b413ee47)
2003-11-19 07:31:17 +00:00
Andrew Tridgell
897b9d8872 removed an unused structure
(This used to be commit 005614ef787d85499a3d970bce08549de0c2caab)
2003-11-19 05:54:21 +00:00
Andrew Tridgell
6786811f65 change to AuditEventsInfo struct from lukeh
(This used to be commit 670c0cbe034e1e2ac5aed751b6c4fbd925fe3221)
2003-11-19 05:53:05 +00:00
Andrew Tridgell
a0cd1069ce fixed country code field in samr_UserInfo5
(This used to be commit d194247b1bac03fbe3fd8226b897fa6886c6ca4c)
2003-11-19 05:26:11 +00:00
Andrew Tridgell
025236281b possibly better handling of NULL secdesc (thanks to lukeh)
(This used to be commit a1230f1b4b0b06d08bfe7c8a7e4863357db1ca5a)
2003-11-19 04:44:47 +00:00
Andrew Tridgell
22ef16aa44 added a thanks to Todd Sabin (with his permission)
(This used to be commit 9d5d6b2f9339dcd069524f6a9260c3581da2a92a)
2003-11-18 22:35:39 +00:00
Andrew Tridgell
0c10913303 added another wkssvc info level
(This used to be commit fb0aa83a2b27699bf47e1ade413b7f4738b5fa79)
2003-11-18 11:52:06 +00:00
Andrew Tridgell
bdf0578621 added samr_CreateUser() samr_DeleteUser(). The test suite creates a
test user called "samrtorturetest" and then deletes it. The next step
is to do all possible user operations on that temporary user.
(This used to be commit 41fc922954bd8ec461a79a22cc903e63902c7401)
2003-11-18 10:21:05 +00:00
Andrew Tridgell
20f1530a11 changed wks to wkssvc (suggestion from metze). Started adding samr_CreateUser().
(This used to be commit 04e9269c1e37c9c2984ee2886fa6c0eda5c19669)
2003-11-18 08:03:06 +00:00
Tim Potter
30daed2f7c Working on EnumPrinterData. There appears to be an alignment problem
after reading a non-empty DATA_BLOB in the reply.
(This used to be commit 3165bf532f6b5a074f20f38a9af56325eedbb1c2)
2003-11-18 05:54:14 +00:00
Andrew Tridgell
06d0f61aa4 added samr_QuerySecurity() call that displays the ACL for any handle.
(This used to be commit 5bbeaaa3d13c838d014e7689b0fcf7374c8c7f57)
2003-11-18 05:20:54 +00:00
Andrew Tridgell
9b7b5e5c51 use the auto-generated UUID, version and name rather than listing them
in the dcerpc core code
(This used to be commit 16ffeb7c80bfe7f1bfbfce8c98066e9ddbca7686)
2003-11-18 05:01:10 +00:00
Andrew Tridgell
ec7a2944cd fill in skeletons for the rest of the function calls in wkssvc (based
on function names in ethereal)

implement TransportEnum - quite a cute call, you can ask for the
workstations list of network transports, including its ethernet
address.
(This used to be commit 62d7e9819c95c906d1094f711bc60cf58def30f6)
2003-11-18 03:28:01 +00:00
Andrew Tridgell
ca20fa1057 ignore c and h files in the idl dir. This makes it easier to
experiment with pidl in that dir without mucking up cvs
(This used to be commit 1b691927ac48f044216171bbd4cf3fd4fc25086e)
2003-11-18 01:34:09 +00:00
Andrew Tridgell
2c0a7165ef * use the new auto-generated debug code method.
* add a couple more info levels to wkssvc
(This used to be commit c69161bdb13745f271b0cfa9a9af349f7a95edc6)
2003-11-18 01:18:24 +00:00
Andrew Tridgell
892aa2fc75 added wkssvc.idl and test code
I think this is our first complete pipe for Samba4 (albeit a simple
one). Of course, there may be lots more info levels that Samba3 didn't
do. Time to explore :)
(This used to be commit 3305226140793f39af827b63c270486c1966718e)
2003-11-17 12:43:18 +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
e62c5c9a8d use [subcontext] to make GetPrinter a bit easier in smbtorture
(This used to be commit a5140985d8f57695b4165c72af217092da6fae5f)
2003-11-17 09:34:19 +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
d1feb4c6d5 call OpenPrinterEx on each printer on the server, and then call
GetPrinter with all info levels on each printer
(This used to be commit 136b3cfc0460315e924c3d9c8328c1850fc21fba)
2003-11-17 04:56:59 +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
90916de4a5 * more info levels for EnumPrinter
* use WERROR return type in spoolss EnumPrinter
(This used to be commit 8301a6b6ad45f76a42d0fcab6347c187eee615a9)
2003-11-17 02:58:10 +00:00
Andrew Tridgell
657b4d2abd nicer method of handling spoolss EnumPrinters
this also handles the return of several printers (an array of relative
subcontexts)
(This used to be commit 060421c7dc9aa611fe4160843a4f76498ab16bf4)
2003-11-17 02:18:11 +00:00
Andrew Tridgell
ae4cb40100 use nstring and [relative] to support levels 1 and 2 of EnumPrinters
fully
(This used to be commit 69c6017c945bdd7d1945f22fcad49112ba6a2d2d)
2003-11-16 13:49:14 +00:00
Andrew Tridgell
ea266c0625 added support for level1 of EnumPrinters in spoolss. This uses a
number of "magic" add-ons to IDL to make it less painful, hopefully
this will make IDL generation useful for horrible systems like spoolss
(This used to be commit e18dba7d5a957ef82e8f91733a0bf95d579dcd7a)
2003-11-16 11:36:59 +00:00
Tim Potter
7ca3720acb Initial version of printer info 1 for tridge.
(This used to be commit 03185769be43133df1f6e33b604d9c41c8f2e194)
2003-11-16 06:08:43 +00:00
Andrew Tridgell
4e959703a2 ignore .pidl files
(This used to be commit 8b2a0988e82ffca7690d9d23f00dafa4377a1e62)
2003-11-16 06:01:07 +00:00
Andrew Tridgell
7b40bd0a5f use the "subcontext" magic flag for sec_desc_buf
(This used to be commit 05ed2f6dc986111ce448123c91380f9340799ecc)
2003-11-16 06:00:15 +00:00
Andrew Tridgell
4d48e84ffa slightly more efficient strlen setting in lsa and samr strings (calls
strlen_m() once, not twice)
(This used to be commit 468c2dc632703e6956428fb5f1da4044709b8f6f)
2003-11-16 05:07:07 +00:00
Tim Potter
6098faca03 Added IDL for EnumPrinters and ClosePrinter.
(This used to be commit 5eba47a4a3c01d362d446d1db3c17dcb802c97b0)
2003-11-16 04:19:12 +00:00
Andrew Tridgell
5bd51a1d5d the returned policy handle in spoolss_OpenPrinterEx() is pass by
reference

(tim, my apoligies if this conflicts with an uncomitted fix from you)
(This used to be commit fa0872e66359603a52813af13b45fdaeca98f5d0)
2003-11-15 20:56:18 +00:00
Andrew Tridgell
c24f56e71c remember to samr_Close() policy handles after use
(This used to be commit 8b4e5c65e0e18657befbd5eba2d195c2751dcf7f)
2003-11-15 20:47:59 +00:00
Andrew Tridgell
8c90fcd32b added OpenAlias and QueryAliasInfo levels 1 to 3
(This used to be commit 2ed8cfdf6662f74808df67e3e9d03cf03f765569)
2003-11-15 12:38:06 +00:00
Andrew Tridgell
4d00dd9d5d added OpenGroup and QueryGroupInfo levels 1 to 4
(This used to be commit ffe4fcaab0fe4f6e0f64fb2d57c77442aa2e1f6f)
2003-11-15 12:14:22 +00:00
Andrew Tridgell
e7d70e40d5 added UserInfo level 21
(This used to be commit b90eff794f083029c568d3ec4ec2a7d2f7741139)
2003-11-15 11:34:01 +00:00
Andrew Tridgell
8f09c940b7 added samr UserInfo levels 4 to 20
(This used to be commit 5bbe63a7bbd4623dbbab7f74c00c7998d469571c)
2003-11-15 11:13:49 +00:00
Andrew Tridgell
e92419e2d3 added samr_UserInfo2 and samr_UserInfo3
(This used to be commit 5e852f694c039ae8bde3490be9e0c4959c1e93f0)
2003-11-15 10:58:29 +00:00
Andrew Tridgell
42a25ebb75 added samr_OpenUser, samr_EnumDomainAliases and samr_QueryUserInfo level 1
(This used to be commit e7edeec60e274c1460f7c8cc0fb4121b37e1bcd7)
2003-11-15 10:03:12 +00:00
Andrew Tridgell
4063fd08d4 added samr_EnumDomainGroups and samr_EnumDomainUsers
(This used to be commit f8d690fb2bc0afcc8267caa4edcbeed9463594e5)
2003-11-15 09:39:48 +00:00
Andrew Tridgell
4cadb043d7 added another 11 levels of QueryDomainInfo
(This used to be commit 219cfabaeb38c5fd2fcabd1e6f05da206bab21e4)
2003-11-15 09:18:02 +00:00
Andrew Tridgell
497e01e93e added samr_OpenDomain() and samr_QueryDomainInfo() level 1
(This used to be commit 2d9c055c1be7187ae890e46edba74bf4fedbc9db)
2003-11-15 08:06:39 +00:00
Andrew Tridgell
bcfbaa312a run LookupDomain on each domain returned from EnumDomains in samr
(This used to be commit 947b9f8ced486d34ee6710a921fb985ea14e2bb1)
2003-11-15 07:51:19 +00:00
Andrew Tridgell
ba5a060136 added the first couple of calls from samr as IDL
samr_EnumDomains() works nicely
(This used to be commit 7c162eaf3bb0195f9a2da05d6acd3c8e620f08d1)
2003-11-15 06:00:21 +00:00
Tim Potter
78b7118d1a Skeleton IDL for SPOOLSS pipe. For this inital version, only OpenPrinterEx
works but without a devicemode.
(This used to be commit 35e889cf339f4ed62d4953b4cb5da2f21cf249a2)
2003-11-15 05:42:49 +00:00