1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-25 17:57:42 +03:00

273 Commits

Author SHA1 Message Date
Andrew Tridgell
af07ca7fbc EnumPrinterData in spoolss now works -
Andrew Tridgell
555a340d3c * changed to midl syntax using [case(x)] instead of case(x)
* use empty defaults instead of a dummy empty structure
-
Andrew Tridgell
42639a8f66 fixed wkssvc idl and test code for TransportEnum -
Andrew Tridgell
7b5d028729 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)
-
Andrew Tridgell
5bb21e57b8 started to expand the echo tests to include more interesting test
cases. We fail one of the alignment tests.
-
Andrew Tridgell
54d3cb22dc srvsvc IDL and test code from metze. Thanks! -
Andrew Tridgell
b3bd2bf10b 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.
-
Andrew Tridgell
005614ef78 removed an unused structure -
Andrew Tridgell
670c0cbe03 change to AuditEventsInfo struct from lukeh -
Andrew Tridgell
d194247b1b fixed country code field in samr_UserInfo5 -
Andrew Tridgell
a1230f1b4b possibly better handling of NULL secdesc (thanks to lukeh) -
Andrew Tridgell
fb0aa83a2b added another wkssvc info level -
Andrew Tridgell
41fc922954 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.
-
Andrew Tridgell
04e9269c1e changed wks to wkssvc (suggestion from metze). Started adding samr_CreateUser(). -
Andrew Tridgell
5bbeaaa3d1 added samr_QuerySecurity() call that displays the ACL for any handle. -
Andrew Tridgell
16ffeb7c80 use the auto-generated UUID, version and name rather than listing them
in the dcerpc core code
-
Andrew Tridgell
62d7e9819c 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.
-
Andrew Tridgell
c69161bdb1 * use the new auto-generated debug code method.
* add a couple more info levels to wkssvc
-
Andrew Tridgell
3305226140 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 :)
-
Andrew Tridgell
33bb878562 * add another WERR err code
* use the top-level function argument printing to show more detail in
   RPC-* tests
-
Andrew Tridgell
a5140985d8 use [subcontext] to make GetPrinter a bit easier in smbtorture -
Andrew Tridgell
d5a15257fd security descriptors are no longer a "special" type, they are handled
using the [relative] property

this also fixes level3 of PrinterInfo (a relative secdesc)
-
Andrew Tridgell
136b3cfc04 call OpenPrinterEx on each printer on the server, and then call
GetPrinter with all info levels on each printer
-
Andrew Tridgell
186ddbbf87 added OpenPrinter and a test function. Note that the Samba3 structure
for OpenPrinter was wrong.
-
Andrew Tridgell
8301a6b6ad * more info levels for EnumPrinter
* use WERROR return type in spoolss EnumPrinter
-
Andrew Tridgell
060421c7dc nicer method of handling spoolss EnumPrinters
this also handles the return of several printers (an array of relative
subcontexts)
-
Andrew Tridgell
69c6017c94 use nstring and [relative] to support levels 1 and 2 of EnumPrinters
fully
-
Andrew Tridgell
e18dba7d5a 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
-
Andrew Tridgell
05ed2f6dc9 use the "subcontext" magic flag for sec_desc_buf -
Andrew Tridgell
468c2dc632 slightly more efficient strlen setting in lsa and samr strings (calls
strlen_m() once, not twice)
-
Tim Potter
1a0271fc34 Commit autogenerated code for EnumPrinters and ClosePrinter. -
Tim Potter
8fcac6742f Added push/pull routines for uint8_buf IDL type used for spoolss buffers,
and possibly other places.
-
Andrew Tridgell
fa0872e663 the returned policy handle in spoolss_OpenPrinterEx() is pass by
reference

(tim, my apoligies if this conflicts with an uncomitted fix from you)
-
Andrew Tridgell
8b4e5c65e0 remember to samr_Close() policy handles after use -
Andrew Tridgell
2ed8cfdf66 added OpenAlias and QueryAliasInfo levels 1 to 3 -
Andrew Tridgell
ffe4fcaab0 added OpenGroup and QueryGroupInfo levels 1 to 4 -
Andrew Tridgell
b90eff794f added UserInfo level 21 -
Andrew Tridgell
5bbe63a7bb added samr UserInfo levels 4 to 20 -
Andrew Tridgell
5e852f694c added samr_UserInfo2 and samr_UserInfo3 -
Andrew Tridgell
e7edeec60e added samr_OpenUser, samr_EnumDomainAliases and samr_QueryUserInfo level 1 -
Andrew Tridgell
f8d690fb2b added samr_EnumDomainGroups and samr_EnumDomainUsers -
Andrew Tridgell
219cfabaeb added another 11 levels of QueryDomainInfo -
Andrew Tridgell
2d9c055c1b added samr_OpenDomain() and samr_QueryDomainInfo() level 1 -
Andrew Tridgell
947b9f8ced run LookupDomain on each domain returned from EnumDomains in samr -
Andrew Tridgell
7c162eaf3b added the first couple of calls from samr as IDL
samr_EnumDomains() works nicely
-
Tim Potter
35e889cf33 Skeleton IDL for SPOOLSS pipe. For this inital version, only OpenPrinterEx
works but without a devicemode.
-
Andrew Tridgell
1f93cbc1d5 added lsa_QuerySecObj() and the necessary sec_desc_buf supporting code
also adding printing of security descriptors
-
Andrew Tridgell
f0a8f063a6 it turns out that all MS servers ignore the artifact struct_len fields
in OpenPolicy and OpenPolicy2, so we don't in fact need the
[struct_len] attribute. This makes our IDL much closer to the MS IDL.
-
Andrew Tridgell
638eae6bae added the dfs_GetInfo all - all levels -
Andrew Tridgell
9ad28f6ddb * added levels 4, 200 and 300 to NetDfsEnum. 200 and 300 don't work
properly, I'm still investigating that.

* changed dcerpc fault status code to NT_STATUS_NETWORK_WRITE_FAULT,
  which I think is a better mapping
-