Andrew Tridgell
d262b8c3c7
completed the linkage between the endpoint mapper and the dcerpc
...
server endpoints. We can now successfully setup listening endpoints on
high ports, then use our endpoint mapper redirect incoming clients to
the right port.
also greatly cleanup the rpc over tcp session handling.
(This used to be commit 593bc29bbe
)
2003-12-13 23:25:15 +00:00
Andrew Tridgell
340d9b71f9
added a basic dcerpc endpoint mapper to Samba4. Currently only
...
implements the epm_Lookup() call, I'll add the other important calls
soon. I was rather pleased to find that epm_Lookup() worked first
time, which is particularly surprising given its complexity.
This required quite a bit of new infrastructure:
* a generic way of handling dcerpc policy handles in the rpc server
* added type checked varients of talloc. These are much less error
prone. I'd like to move to using these for nearly all uses of
talloc.
* added more dcerpc fault handling code, and translation from
NTSTATUS to a dcerpc fault code
* added data_blob_talloc_zero() for allocating an initially zero
blob
* added a endpoint enumeration hook in the dcerpc endpoint server
operations
(This used to be commit 3f85f9b782
)
2003-12-13 02:20:40 +00:00
Tim Potter
a79be6e377
Small cleanup of test code. Rename enum indexes to be the same name
...
for EnumKey and EnumValue.
(This used to be commit 817a2fe2e5
)
2003-12-12 11:49:29 +00:00
Tim Potter
6fba6f5ca3
Got winreg_EnumValue working - what a mess!
...
(This used to be commit cc494086e7
)
2003-12-12 06:29:21 +00:00
Andrew Tridgell
3c76426f2e
* removed some unused code
...
* updated tdb to latest version from Samba3
* removed some extraneous ';' in tdbutil.c (Thanks to Erlend Aasland
for pointing this out)
(This used to be commit f3eaf270e5
)
2003-12-10 03:02:12 +00:00
Andrew Tridgell
e10859fd0a
removed an unused file
...
(This used to be commit 77c622c3ac
)
2003-12-04 11:02:22 +00:00
Andrew Tridgell
926240428c
* patch based on work by Jim Myers to unify the ioctl handling to be
...
more like the other major SMB functions
* added SMBntrename code
(This used to be commit f2d3dc9893
)
2003-12-04 02:03:06 +00:00
Andrew Bartlett
ec92e2f9a2
My first stab at Samba4 IDL!
...
This patch adds the samr_CreateUser2 function, which is create_user
in Samba 3.0.
This also adds a torture suite that checks for various valid and invalid
account flags, and that they are persistant.
Also, a patch by Anthony Liguori to fix the build
Andrew Bartlett
(This used to be commit 53e657b745
)
2003-12-03 03:10:10 +00:00
Andrew Tridgell
ea507ee605
added netr_LogonControl2Ex()
...
I also added IDL for netr_DatabaseRedo() but I don't yet know how it
works
thats the last of the netlogon IDL !
(This used to be commit 387d8f25ff
)
2003-12-02 12:16:08 +00:00
Andrew Tridgell
de32d669c6
added netr_DatabaseSync2()
...
(This used to be commit 0f6af0c4bd
)
2003-12-02 12:01:10 +00:00
Andrew Tridgell
9ebe4489e7
added netr_LogonControl2() and netr_ServerAuthenticate2()
...
(This used to be commit cc4123db4b
)
2003-12-02 11:43:09 +00:00
Andrew Tridgell
10ad200350
added netr_LogonControl() and netr_GetAnyDCName()
...
(This used to be commit 17b2be4e85
)
2003-12-02 10:34:06 +00:00
Andrew Tridgell
02df116352
added netr_GetDcName() - quite a useful call
...
(This used to be commit 63f46b223e
)
2003-12-02 10:08:26 +00:00
Andrew Tridgell
16c688c9ea
added netr_AccountSync(), another NT_STATUS_NOT_IMPLEMENTED call
...
according to w2k3
(This used to be commit b2ca00ebc5
)
2003-12-02 10:04:10 +00:00
Andrew Tridgell
9ec4269760
added netr_AccountDeltas(), which w2k3 gives
...
"NT_STATUS_NOT_IMPLEMENTED" for
(This used to be commit aaf776a1c1
)
2003-12-02 09:52:15 +00:00
Andrew Tridgell
cea22e94fc
netr_DatabaseDeltas() now works. We ask for the deltas associated with
...
the last two sequence numbers on each database.
(This used to be commit f9377c8603
)
2003-12-02 08:04:37 +00:00
Andrew Tridgell
399496d9d9
netr_DatabaseSync() now works fully for databases 0, 1 and 2
...
(This used to be commit c4c09e9413
)
2003-12-02 04:59:18 +00:00
Andrew Tridgell
9632db5a19
netr_DatabaseSync() now works fully for database 0
...
(This used to be commit 360d03bb56
)
2003-12-02 04:33:57 +00:00
Andrew Tridgell
f9419900d3
initial netlogon database sync partly works - needs some IDL tweaks
...
(This used to be commit 75ea276c14
)
2003-12-02 04:05:05 +00:00
Andrew Tridgell
d65f0095c9
added netr_DatabaseSync(). It doesn't work as I haven't done schannel
...
yet, but at least the request is understood by w2k3
Also modified pidl to allow multiple branches in a union to have the
same element. This is used in netlogon.
(This used to be commit 983c0e9683
)
2003-12-02 03:06:21 +00:00
Andrew Tridgell
2e70035f87
another big improvement in the credentials API. I think it now
...
actually makes sense, and as a nice side effect it matches the debug
output of the w2k3 netlogon.log
(This used to be commit 3c7287c24e
)
2003-12-02 02:15:33 +00:00
Andrew Tridgell
06ae424835
* netr_ServerPasswordSet() now works - the test suite changes the
...
machine account password.
* neater handling on value() options in IDL. The auto-print code
will now display the right value so you don't need to initialise
it in your C code
(This used to be commit 3dd978b12b
)
2003-12-02 00:31:54 +00:00
Andrew Tridgell
8b30b0071c
* another small API change in the credentials code
...
* don't use static variables in the smbdes code
(This used to be commit e6e0906464
)
2003-12-01 22:13:11 +00:00
Andrew Tridgell
f9e2a8af39
neater credentials handling in netlogon client code
...
(This used to be commit b7d748f499
)
2003-12-01 12:41:54 +00:00
Andrew Tridgell
a6cf6cada9
added netr_LogonSamLogon() and test code
...
(This used to be commit 4fa3ad3ecb
)
2003-12-01 09:28:10 +00:00
Andrew Tridgell
b4b0177fdb
added netr_ServerAuthenticate() and test code
...
I would like the netlogon test suite to eventually do a new domain
join using a fake workstation name, then remove itself afterwards, but
for now I'm assuming we are already joined to the domain when the
testsuite runs. This means you need to use the Samba3 net command to
do a join before running RPC-NETLOGON
(This used to be commit 8c7a9446a0
)
2003-12-01 04:13:43 +00:00
Andrew Tridgell
5b46116923
added netr_ServerReqChallenge and cleaned up byte array printing
...
(This used to be commit bb42107dcc
)
2003-12-01 03:19:43 +00:00
Andrew Tridgell
b0531a38cc
started adding netlogon IDL and test suite
...
(This used to be commit 3d64eefb46
)
2003-12-01 01:41:38 +00:00
Andrew Tridgell
fa062af11a
* removed a bunch of unused code
...
* made some functions static
(This used to be commit 829b87f30d
)
2003-11-30 23:40:04 +00:00
Tim Potter
d944b9780a
Added EnumPrinterDriver, GetPrinterDriver (still in progress)
...
(This used to be commit a818439b59
)
2003-11-30 11:57:40 +00:00
Tim Potter
2bb7ff5915
GetPrinterDataEx, SetPrinterDataEx, DeletePrinterDataEx.
...
(This used to be commit e8367f5735
)
2003-11-28 11:50:33 +00:00
Tim Potter
d55fc1c9f2
Add SetPrinterData, DeletePrinterData.
...
(This used to be commit ea534f82d0
)
2003-11-28 10:34:58 +00:00
Andrew Tridgell
f83f0cb060
fixed some warnings
...
(This used to be commit 1c2b8a93c5
)
2003-11-28 09:05:44 +00:00
Andrew Tridgell
7ec0ead48a
the beginnings of an automated tool for working out IDL properties of
...
a pipe. I'm not sure how possible this will be without lots of human
intervention, but its an interesting thing to try.
(This used to be commit d5afe7c6a8
)
2003-11-28 08:51:09 +00:00
Tim Potter
b0ba0462a4
Fix bug in EnumPrinterData test.
...
Implement GetPrinterData RPC.
(This used to be commit 270c4fe389
)
2003-11-28 06:39:06 +00:00
Andrew Tridgell
ba33beec05
* added a bunch of placeholder IDL files
...
* allow for an interface to list its endpoints in the IDL file, so we
can automatically make the server listen on the right pipes, and
can scan pipes more easily (I don't take advantage of this yet,
just putting the infrastructure in place)
(This used to be commit c8b8480244
)
2003-11-28 05:20:11 +00:00
Tim Potter
d419464d87
Added EnumJobs, GetJob, SetJob RPCs.
...
(This used to be commit a06cbbbf1f
)
2003-11-28 05:02:32 +00:00
Andrew Tridgell
07fdc2c73e
* support multiple interfaces in one IDL file in pidl
...
* make far more generated functions static
* get rid of gen_rpc, and include the client calls in ndr_*.c
* added placeholder IDL for a number of intefaces (dcom, wzcsvc, browser etc)
(This used to be commit a2bdf0be01
)
2003-11-28 03:47:45 +00:00
Andrew Tridgell
df5949efb4
added auto-generation of the IDL interface tables. This makes two less
...
places that need to be edited when someone adds a new IDL file.
(This used to be commit ccd9ddeed6
)
2003-11-28 00:48:05 +00:00
Tim Potter
abff8aac56
Implemented SetForm RPC.
...
(This used to be commit bdb0dfc370
)
2003-11-27 20:55:13 +00:00
Tim Potter
6aee8274ef
Add DeleteForm, start cleaning up tests.
...
(This used to be commit 10b31623fd
)
2003-11-27 09:50:25 +00:00
Andrew Tridgell
c7c9e61987
more epmapper and mgmt magic
...
protocol 0x1f is interesting - its ncacn_http !
(This used to be commit e3d40e3da6
)
2003-11-27 07:28:46 +00:00
Tim Potter
4884a97f3b
Implemented AddForm RPC. The mystery of the useless_ptr has been
...
solved. It was a pointer in a union member.
RPC-SPOOLSS tests a bit messy and could do with a cleanup.
(This used to be commit cf8cd44852
)
2003-11-27 06:15:06 +00:00
Andrew Tridgell
ab3d728b7e
added an rpc scanner. This prints messages like this:
...
uuid 82273fdc-e32a-18c3-3f78-827929dc23ea version 0x0000:0x0000 'eventlog'
24 calls available
WARNING: local IDL defines 4 calls
when all the WARNINGs are gone then we know we have all the calls :)
(This used to be commit f5821b2468
)
2003-11-27 05:34:28 +00:00
Andrew Tridgell
1cab707f0b
switched to WERROR return codes in the management IDL
...
(This used to be commit a81f659e9e
)
2003-11-27 04:01:18 +00:00
Andrew Tridgell
1ca1b85c4c
by default sign RPC over TCP but not RPC over SMB. I will add command line control soon
...
(This used to be commit 215852116c
)
2003-11-26 12:29:08 +00:00
Tim Potter
ee67d68f1c
Implemented EnumForms and GetForm.
...
(This used to be commit 822750592c
)
2003-11-26 06:26:18 +00:00
Andrew Tridgell
d49d528618
show an error when the epmapper fails to find an interface
...
(This used to be commit 448dead14d
)
2003-11-26 04:32:04 +00:00
Andrew Tridgell
fffd741a7a
added auto-determination of the DCERPC over TCP port number by asking
...
the servers endpoint mapper
(This used to be commit 4abf5376b0
)
2003-11-26 03:36:17 +00:00
Andrew Tridgell
e0ac659917
signed DCERPC over TCP now works !
...
* moved ntlmssp code into libcli/auth/, and updated to latest ntlmssp
code from samba3 (thanks Andrew! the new interface is great)
* added signing/ntlmssp support in the dcerpc code
* added a dcerpc_auth.c module for the various dcerpc auth mechanisms
(This used to be commit c18c9b5585
)
2003-11-26 01:16:41 +00:00
Andrew Tridgell
f4e485117a
* fixed byte order in epmapper parsing
...
* allow rpc transport to be specified on command line in smbtorture
(This used to be commit 8a82050fd6
)
2003-11-24 13:19:00 +00:00
Andrew Tridgell
7befc0648e
initial implementation of dcerpc over tcp. RPC-EPMAPPER works, now to
...
add epm_Map calls and support the rest of the pipes
(This used to be commit 39add48158
)
2003-11-24 12:40:47 +00:00
Andrew Tridgell
bbb11d4a0d
* prepared the dcerpc subsystem for adding the RPC over TCP transport
...
* fixed a uninitialised variable bug in pidl (found by valgrind)
(This used to be commit 8bce61b8af
)
2003-11-24 11:45:33 +00:00
Andrew Tridgell
f5fe95abd2
added tests for epm_Map endpointer map calls
...
(This used to be commit 570ad78525
)
2003-11-24 10:15:17 +00:00
Andrew Tridgell
7d36545d33
give far more detail in the EPMAPPER results
...
(This used to be commit 4203019698
)
2003-11-24 05:28:10 +00:00
Andrew Tridgell
e4773b184c
added tests for the remaining calls on the rpc management interface
...
(This used to be commit 00f9b0e120
)
2003-11-24 03:21:49 +00:00
Andrew Tridgell
c7fd83d0b2
added the dcerpc remote management interfaces as mgmt.idl, and wrote a
...
test suite. The test suite dumps all of the interfaces available on
all pipes. There sure are a lot more interfaces on w2k3 than w2k !
(This used to be commit f94bc07990
)
2003-11-24 01:24:29 +00:00
Andrew Tridgell
27b1dbaea6
* better diagnostics in ndrdump
...
* added samr_Connect2()
(This used to be commit 6b262ca37c
)
2003-11-23 21:51:24 +00:00
Tim Potter
66694c571f
Modify WINREG test program to recursively enumerate keys in all known
...
hives. Limit the recursion depth to ensure the test doesn't run too long.
(This used to be commit 152af383b8
)
2003-11-23 11:57:15 +00:00
Tim Potter
29ee36d0c9
Check NT_STATUS code from dcerpc call function before checking the
...
WERROR code.
(This used to be commit b4792b7b31
)
2003-11-23 10:51:39 +00:00
Tim Potter
03eda90641
Actually call right function name.
...
(This used to be commit 634ea43720
)
2003-11-23 06:54:18 +00:00
Tim Potter
8cd945501b
Call enumkey for tridge.
...
(This used to be commit cc71bd2a90
)
2003-11-23 06:38:37 +00:00
Tim Potter
136c2d7961
String termination fix.
...
Re-arrange winreg tests - currently it's failing with an input validation
error on tridge's test pull/push test code.
(This used to be commit 8f154f8b9f
)
2003-11-23 06:31:10 +00:00
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 04eb12b56c
)
2003-11-23 01:53:54 +00:00
Andrew Tridgell
be77d9c60d
* fixed null terminated string handling
...
* fixed nested relative offsets in push functions
the spoolss torture test now passes!
(This used to be commit 60ced76160
)
2003-11-22 11:49:22 +00:00
Andrew Tridgell
677fb26deb
* fixed handling of relative subcontext unions
...
* fixed GetPrinter in spoolss after OpenPrinter
(This used to be commit 4aea2d79dd
)
2003-11-22 10:37:00 +00:00
Andrew Tridgell
4666ec9301
* fixed NDR flag inheritance across push subcontexts
...
* don't consider not doing lsa_QueryInfoPolicy level 11 a failure
(w2k3 doesn't have this level, w2k does)
* on a NDR validation failure dump the failed data at level 3
(This used to be commit 9d5078962f
)
2003-11-22 09:32:35 +00:00
Andrew Tridgell
175e947579
* enable RPC/NDR validation in all smbtorture code
...
* allow us to distinguish between null arrays and zero length arrays,
by making the allocation size a minimum of 1 on array pull
(This used to be commit 11c0fe548e
)
2003-11-22 08:41:40 +00:00
Andrew Tridgell
86a604429e
a fairly major upgrade to the dcerpc system
...
* added a NDR validator. The way it works is that when the
DCERPC_DEBUG_VALIDATE_* flags are set the dcerpc system will
perform NDR buffer validation. On sending a request the packet is
first marshalled, then unmarahslled, then marshalled again, and it is
confirmed that the two marshalling results are idential. This
ensures that our pull and push routines are absolutely in sync, so
that we can be very confident that if a routine works in the client
then the corresponding routine must work on the server side. A
similar validation is performed on all replies.
* a result of this change is that pidl is fussier about the [ref]
tag. You can only use it on pointers (which is the only place it
makes sense)
* fixed a basic alignment bug in the push side of the NDR code
* added server side pull/push support. Our dcerpc system is now fully
ready to be used on the server side.
* fixed the relative offset pointer list. It must be traversed in
reverse order on push
* added automatic value setting for the size parameter in outgoing
SdBuf structures.
* expanded the ndr debugging code to always give a message on any
failure
* fixed the subcontext push code
* fixed some memory leaks in smbtorture RPC tests
(This used to be commit 8ecf720206
)
2003-11-22 08:11:32 +00:00
Tim Potter
c674672a08
Convert all NTSTATUS return codes to WERROR.
...
Implement all OpenXXX calls, EnumKey, OpenKey, QueryInfoKey.
Started EnumValue but it doesn't work yet.
(This used to be commit 5cba48252a
)
2003-11-22 05:34:25 +00:00
Andrew Tridgell
32831d5af9
fix a smbtorture memory leak
...
(This used to be commit 0eff7c519b
)
2003-11-21 22:00:38 +00:00
Andrew Tridgell
55410a073f
print out the UUIDs from the end point mapper
...
(This used to be commit f90e5db8f9
)
2003-11-21 13:27:58 +00:00
Andrew Tridgell
a465add90f
* changed the way strings are handled in pidl to a much more general
...
interface. We now support an arbitrary set of flags to each parser,
and these can be used to control the string types. I have provided
some common IDL string types in librpc/idl/idl_types.h which needs to
be included in every IDL file.
* added IDL for the endpoint mapper. Added a test suite that enumerates
all endpoints on the server.
(This used to be commit d2665f36a7
)
2003-11-21 13:14:17 +00:00
Tim Potter
82d6f5587b
Implement DeleteKey, DeleteValue, FlushKey.
...
(This used to be commit 49f1654510
)
2003-11-21 06:14:14 +00:00
Tim Potter
49c02c6634
Start of winreg idl. Implement OpenHKLM, GetVersion and CloseKey.
...
(This used to be commit c8b87f5feb
)
2003-11-21 05:28:36 +00:00
Tim Potter
a20352959e
More work on eventlog - still doesn't work. (-:
...
(This used to be commit 9109cb832a
)
2003-11-21 03:07:02 +00:00
Andrew Tridgell
38ce2ef4bb
added 4 more levels to samr_QueryDisplayInfo()
...
(This used to be commit f4cc593a5c
)
2003-11-21 02:19:47 +00:00
Tim Potter
20730626af
Add initial work on eventlog - doesn't quite work yet.
...
(This used to be commit 99fff7b1e2
)
2003-11-20 21:52:40 +00:00
Andrew Tridgell
ddd2f9ced0
added samr_QueryDisplayInfo() (only level 1 so far)
...
(This used to be commit 8601305c81
)
2003-11-20 12:10:41 +00:00
Andrew Tridgell
fe6fd991ee
extensive samr_SetUserInfo/samr_QueryUserInfo testing, with
...
cross-checking of all settable fields
(This used to be commit 3337906d52
)
2003-11-20 10:53:08 +00:00
Andrew Tridgell
d4dfcda78e
* fixed level2 of QueryUserInfo
...
* added per-field testing of SetUserInfo
* fixed strlen_m()
(This used to be commit 26238b0f8a
)
2003-11-20 10:29:54 +00:00
Andrew Tridgell
f3a4d83711
started on samr_SetUserInfo()
...
cope with the 'samrtorturetest' user already existing in the samr test
(to cope with previously failed runs)
(This used to be commit 47128b3d50
)
2003-11-20 07:20:59 +00:00
Andrew Tridgell
0b0295c232
fixed a comment
...
(This used to be commit d996c880f4
)
2003-11-20 05:46:45 +00:00
Andrew Tridgell
a6e5654b3d
fixed srvsvc_NetShareEnumAll()
...
(This used to be commit ab4056e25c
)
2003-11-20 05:34:02 +00:00
Richard Sharpe
4730469cd8
Add a 1004 level for srvsvc.
...
(This used to be commit 9810e6f180
)
2003-11-20 04:45:16 +00:00
Tim Potter
8f0f97b078
Added ATSVC pipe.
...
(This used to be commit 2740584867
)
2003-11-20 03:27:56 +00:00
Andrew Tridgell
52cae6b908
added samr_LookupRids() and test code
...
(This used to be commit c32c33a791
)
2003-11-20 03:18:07 +00:00
Andrew Tridgell
308cc429eb
added samr_LookupNames() and test code
...
(This used to be commit f8397cbc85
)
2003-11-20 03:09:19 +00:00
Andrew Tridgell
8a8b2da9c9
make the echo idl match the win32 IDL again
...
(This used to be commit 4b901bd717
)
2003-11-20 01:32:43 +00:00
Andrew Tridgell
f01e89e9e0
EnumPrinterData in spoolss now works
...
(This used to be commit af07ca7fbc
)
2003-11-20 01:28:33 +00:00
Andrew Tridgell
376ba1921f
some errors are expected in SAMR and LSA tests - don't fail the test
...
when they are given
(This used to be commit 6e2d3aa433
)
2003-11-20 01:02:09 +00:00
Andrew Tridgell
25de3041e6
fixed wkssvc idl and test code for TransportEnum
...
(This used to be commit 42639a8f66
)
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 7b5d028729
)
2003-11-19 22:10:20 +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 5bb21e57b8
)
2003-11-19 12:03:11 +00:00
Andrew Tridgell
4e18040236
srvsvc IDL and test code from metze. Thanks!
...
(This used to be commit 54d3cb22dc
)
2003-11-19 09:15:46 +00:00
Andrew Tridgell
7f086443f5
init samr and lsa names so the debug display looks right
...
(This used to be commit 343728fad4
)
2003-11-19 03:20:32 +00:00
Andrew Tridgell
0c10913303
added another wkssvc info level
...
(This used to be commit fb0aa83a2b
)
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 41fc922954
)
2003-11-18 10:21:05 +00:00
Andrew Tridgell
8f38cc8df8
cope with no printers returned from EnumPrinters
...
(This used to be commit 8c49669dbe
)
2003-11-18 09:19:34 +00:00
Andrew Tridgell
20f1530a11
changed wks to wkssvc (suggestion from metze). Started adding samr_CreateUser().
...
(This used to be commit 04e9269c1e
)
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 3165bf532f
)
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 5bbeaaa3d1
)
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 16ffeb7c80
)
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 62d7e9819c
)
2003-11-18 03:28:01 +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 c69161bdb1
)
2003-11-18 01:18:24 +00:00
Andrew Tridgell
f1462caf61
remove an unused variable
...
(This used to be commit 1a885e4abe
)
2003-11-17 12:46:11 +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 3305226140
)
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 33bb878562
)
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 a5140985d8
)
2003-11-17 09:34:19 +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 136b3cfc04
)
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 186ddbbf87
)
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 8301a6b6ad
)
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 060421c7dc
)
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 69c6017c94
)
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 e18dba7d5a
)
2003-11-16 11:36:59 +00:00
Tim Potter
274667be32
Added tests for EnumPrinters and ClosePrinter.
...
(This used to be commit 9f3b84c7d7
)
2003-11-16 04:20:29 +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 fa0872e663
)
2003-11-15 20:56:18 +00:00
Andrew Tridgell
c24f56e71c
remember to samr_Close() policy handles after use
...
(This used to be commit 8b4e5c65e0
)
2003-11-15 20:47:59 +00:00
Andrew Tridgell
8c90fcd32b
added OpenAlias and QueryAliasInfo levels 1 to 3
...
(This used to be commit 2ed8cfdf66
)
2003-11-15 12:38:06 +00:00
Andrew Tridgell
4d00dd9d5d
added OpenGroup and QueryGroupInfo levels 1 to 4
...
(This used to be commit ffe4fcaab0
)
2003-11-15 12:14:22 +00:00
Andrew Tridgell
f272eb3139
don't encode my own servers name in the test :)
...
(This used to be commit bcc87ab8c0
)
2003-11-15 11:39:47 +00:00
Andrew Tridgell
e7d70e40d5
added UserInfo level 21
...
(This used to be commit b90eff794f
)
2003-11-15 11:34:01 +00:00
Andrew Tridgell
8f09c940b7
added samr UserInfo levels 4 to 20
...
(This used to be commit 5bbe63a7bb
)
2003-11-15 11:13:49 +00:00
Andrew Tridgell
e92419e2d3
added samr_UserInfo2 and samr_UserInfo3
...
(This used to be commit 5e852f694c
)
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 e7edeec60e
)
2003-11-15 10:03:12 +00:00
Andrew Tridgell
4063fd08d4
added samr_EnumDomainGroups and samr_EnumDomainUsers
...
(This used to be commit f8d690fb2b
)
2003-11-15 09:39:48 +00:00
Andrew Tridgell
4cadb043d7
added another 11 levels of QueryDomainInfo
...
(This used to be commit 219cfabaeb
)
2003-11-15 09:18:02 +00:00
Andrew Tridgell
497e01e93e
added samr_OpenDomain() and samr_QueryDomainInfo() level 1
...
(This used to be commit 2d9c055c1b
)
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 947b9f8ced
)
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 7c162eaf3b
)
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 35e889cf33
)
2003-11-15 05:42:49 +00:00
Andrew Tridgell
099899a7cc
added lsa_QuerySecObj() and the necessary sec_desc_buf supporting code
...
also adding printing of security descriptors
(This used to be commit 1f93cbc1d5
)
2003-11-15 04:42:48 +00:00
Andrew Tridgell
5a1779b982
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.
(This used to be commit f0a8f063a6
)
2003-11-14 21:39:13 +00:00
Andrew Tridgell
f147a70795
added the dfs_GetInfo all - all levels
...
(This used to be commit 638eae6bae
)
2003-11-14 13:16:34 +00:00
Andrew Tridgell
15b258051c
* 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
(This used to be commit 9ad28f6ddb
)
2003-11-14 08:27:39 +00:00
Andrew Tridgell
57529207ca
* fixed lsa_LookupPrivName
...
* added levels 2 and 3 of dfs_Enum
(This used to be commit 3fa61c1982
)
2003-11-14 07:56:43 +00:00
Andrew Tridgell
e8a3825ebc
we can now do a level1 NetDfsEnum()
...
(This used to be commit f32641f73f
)
2003-11-14 07:20:46 +00:00
Andrew Tridgell
9cadbd5775
fixed rpcecho EchoData debug code
...
(This used to be commit 01cdcba5cd
)
2003-11-13 10:29:58 +00:00
Andrew Tridgell
3031937d56
* fixed conformant arrays in structures
...
* expanded the rpcecho test
* started adding the NETDFS pipe
(This used to be commit 095ab42cbd
)
2003-11-13 09:26:53 +00:00
Andrew Tridgell
c614ea5435
added QueryPolicyInfo/PrimaryDomainInfo idl and test code
...
(This used to be commit b754ad2eae
)
2003-11-11 06:54:54 +00:00
Andrew Tridgell
bde602b9e1
support lsa_AuditEventsInfo
...
(This used to be commit 7e7cb97593
)
2003-11-11 06:22:58 +00:00
Andrew Tridgell
deeb8d98a1
start using automatic union printing
...
(This used to be commit e81040a902
)
2003-11-11 04:38:51 +00:00
Andrew Tridgell
cecbf0cd8b
automatically generate ndr_print_*() functions for every IDL
...
structure. This allows easy debug and test tool writing without having
to write functions that print every element of complex structures.
(This used to be commit 81d6181172
)
2003-11-11 04:04:36 +00:00
Andrew Tridgell
a934f89549
started adding support for lsa_QueryInfoPolicy
...
(This used to be commit 5b2d577969
)
2003-11-11 02:02:29 +00:00
Andrew Tridgell
657dc577b6
added idl and test code for lsa_LookupPrivName()
...
(This used to be commit c742227ec3
)
2003-11-10 12:42:45 +00:00
Andrew Tridgell
4659d4f9e2
added IDL and test for lsa_EnumAccountRights()
...
interestingly, win2000 doesn't return the same list of rights via
lsa_EnumAccountRights() and lsa_EnumPrivsAccount()
(This used to be commit 447c5f13d4
)
2003-11-10 12:12:22 +00:00
Andrew Tridgell
a9fbdd4838
added IDL and test for lsa_EnumPrivsAccount()
...
(This used to be commit f8bbce69bf
)
2003-11-10 11:37:19 +00:00
Jelmer Vernooij
e69987090f
Add make rule for smbiconv
...
(This used to be commit 4c0226c718
)
2003-11-09 16:24:31 +00:00
Jelmer Vernooij
7d07455b96
Add iconv test utility
...
(This used to be commit 00807119ee
)
2003-11-09 15:52:01 +00:00
Andrew Tridgell
3fa8da4d26
- fixed lsa_EnumTrustDom
...
- added lsa_OpenAccount
- handle STATUS_SOME_UNMAPPED
(This used to be commit e5d93cf996
)
2003-11-09 11:01:39 +00:00
Andrew Tridgell
3c669340f5
added lsa_EnumTrustDom
...
(This used to be commit ef60a70912
)
2003-11-09 10:01:24 +00:00
Andrew Tridgell
4bba087298
added lsa_EnumPrivs idl and test code
...
(This used to be commit fe12f81ba4
)
2003-11-09 09:44:06 +00:00
Andrew Tridgell
e3581c28bb
added a test for lsa_Close()
...
(This used to be commit dbadbbf1a7
)
2003-11-09 09:04:28 +00:00
Andrew Tridgell
44dfd03963
- added the rest of the LSA calls as stubs
...
- auto-generate the client calls with 'make idl'
(This used to be commit 8e52381313
)
2003-11-09 08:30:29 +00:00
Andrew Tridgell
adf6142953
converted the rpcecho pipe to use IDL
...
(This used to be commit 1b7a7bc464
)
2003-11-09 07:24:06 +00:00
Andrew Tridgell
363754a865
use a more consistent style for the client stubs
...
(This used to be commit 9946532f97
)
2003-11-09 04:40:50 +00:00
Andrew Tridgell
946d358646
lsa_LookupNames now works
...
(This used to be commit fba3a7ad22
)
2003-11-09 02:21:24 +00:00
Andrew Tridgell
cff32d6b0a
added idl, generated code and test code for lsa_LookupSids
...
(This used to be commit afa1ff5f08
)
2003-11-09 00:58:40 +00:00
Andrew Tridgell
7d212460a5
- corrected some lsa idl
...
- updated lsa parse code from pidl
(This used to be commit 3983b2aee7
)
2003-11-08 11:21:57 +00:00
Andrew Tridgell
60f4bb657a
allow qfsinfo to continue with just 10 levels supported in the server
...
(This used to be commit 9476dd5620
)
2003-11-06 05:51:58 +00:00
Andrew Tridgell
41304b3c57
lsa_EnumSids() now works
...
(This used to be commit 25a8692fed
)
2003-11-04 11:16:07 +00:00
Andrew Tridgell
485f930088
lsa_OpenPolicy2 now works
...
(This used to be commit 9cf479873f
)
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 f5bd301ff7
)
2003-11-04 09:10:31 +00:00
Andrew Tridgell
d8cbe76b86
added support for fragmented sends
...
(This used to be commit f51a216136
)
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 a9aa7954fe
)
2003-11-04 02:28:08 +00:00
Andrew Tridgell
0a427a43c4
added SinkData and SourceData tests for rpcecho
...
(This used to be commit 7c356350e6
)
2003-11-03 10:01:20 +00:00
Andrew Tridgell
399fff106d
added rpcecho EchoData test
...
(This used to be commit 9c7e4db471
)
2003-11-03 09:18:38 +00:00
Andrew Tridgell
dfc43cdf14
added a helper function to make building rpc functions a bit easier
...
(This used to be commit a8feb80438
)
2003-11-03 08:37:48 +00:00
Andrew Tridgell
dc2ffe07a8
started adding RPC-ECHO torture cases
...
(This used to be commit 8cff335dab
)
2003-11-03 07:26:30 +00:00
Andrew Tridgell
d064846d5f
we only want the per-call stub data
...
(This used to be commit 95fa15cdcf
)
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 e925c315f5
)
2003-11-03 06:22:45 +00:00
Andrew Tridgell
4e3ca10b13
much better synchronised startup in smbtorture - this allows us to run
...
massive NBENCH runs without killing the client
(This used to be commit 3f20041bb9
)
2003-10-29 04:21:58 +00:00
Tim Potter
9182f0e6c5
Add RPC-OPEN test as an example for using the new dcerpc client code.
...
It's a bit icky so I suspect it won't last long. (-:
(This used to be commit bc17a4a8ad
)
2003-10-28 11:00:54 +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 89f7261ba5
)
2003-10-10 05:40:32 +00:00
Andrew Tridgell
bd1ca87733
better child synchronisation at startup in NBENCH
...
(This used to be commit 4559208c80
)
2003-09-29 06:04:23 +00:00
Andrew Tridgell
8205817eec
- use deltree to setup base directory
...
(This used to be commit 19eab118c1
)
2003-09-29 06:02:25 +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 b69f54eb02
)
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 723af7f097
)
2003-08-31 03:16:52 +00:00
Andrew Tridgell
a8a5ac2bd2
expanded the RAW-READ test to make it clearer that all locks conflict
...
in SMBlockread, not just other peoples locks (error in spec)
(This used to be commit a56f6896bf
)
2003-08-29 04:35:35 +00:00
Andrew Tridgell
133c7a9055
fix a segv when server doesn't support ATTRIBUTE_TAG_INFORMATION
...
(This used to be commit 19abdace95
)
2003-08-23 18:53:46 +00:00
Andrew Tridgell
de10237719
more fixes from the IRIX compiler (thanks herb!)
...
(This used to be commit 02d068ba7d
)
2003-08-15 18:54:44 +00:00
Andrew Tridgell
8e4ab747b0
more fixes from the IRIX compiler (thanks herb!)
...
(This used to be commit 4cf3839b72
)
2003-08-15 18:33:43 +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 c770603ac6
)
2003-08-15 16:19:48 +00:00
Andrew Tridgell
fe31953678
a few build fixes to try to get irix building
...
(This used to be commit 4059fbcf02
)
2003-08-15 15:16:34 +00:00
Andrew Tridgell
d0a91f4ef2
don't give detailed errors for levels that fail
...
(This used to be commit 04b60864a6
)
2003-08-15 15:12:30 +00:00
Andrew Tridgell
33f413a6bf
test resume by name before resume by flags
...
(This used to be commit 9f395dd768
)
2003-08-15 15:11:34 +00:00
Jeremy Allison
0cb8ef099f
Print out position info, ensure NT_RENAME info level only works
...
in a directory.
Jeremy.
(This used to be commit d623a51da0
)
2003-08-15 03:54:45 +00:00
Jeremy Allison
a19e269c2c
Extended seek tests to check position information.
...
Jeremy.
(This used to be commit c4cc40c5c8
)
2003-08-14 21:11:06 +00:00
Andrew Tridgell
89f55d36f3
added the ancient SMBcreate operation to the testsuite and client lib
...
(This used to be commit 3eef35e581
)
2003-08-14 01:31:31 +00:00
Andrew Tridgell
9af22cd883
added SMBopen to gentest
...
(This used to be commit b47737b00b
)
2003-08-14 01:21:05 +00:00
Andrew Tridgell
ae6453269d
added seek to gentest
...
(This used to be commit 401fce169e
)
2003-08-14 01:12:27 +00:00
Andrew Tridgell
b34df4fa86
added read/write seek testing
...
(This used to be commit 66691dc958
)
2003-08-14 01:03:56 +00:00
Andrew Tridgell
4b3d329ca2
- added a raw smb scanner
...
- its not a root_fid in ntrename
(This used to be commit 74be55efdc
)
2003-08-13 22:23:18 +00:00
Andrew Tridgell
a33f570776
- added test for position_information via paths
...
(This used to be commit 595be06a42
)
2003-08-13 20:22:37 +00:00
Andrew Tridgell
0908c05b5c
- expanded the ntrename test
...
- expanded seek test - the position information is handle specific!
(This used to be commit 163970bda6
)
2003-08-13 20:19:23 +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 2b464472c1
)
2003-08-13 16:04:21 +00:00
Andrew Tridgell
d2b5b80c95
- cope with servers that don't properly implement SMBexit
...
- add the pidhigh test to the locking test
- expand the rename and unlink testing
- test a wider range of offsets in RAW-READ
(This used to be commit ef819249ec
)
2003-08-13 02:04:44 +00:00
Andrew Tridgell
9665caf832
make sure we give the chosen workgroup in gentest
...
(This used to be commit b8aa4a9a8f
)
2003-08-13 02:03:16 +00:00
Andrew Tridgell
ef2e26c91b
first public release of samba4 code
...
(This used to be commit b0510b5428
)
2003-08-13 01:53:07 +00:00