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

850 Commits

Author SHA1 Message Date
Andrew Tridgell
ebe29305af add the ntlmssp calls back into smbtorture on rpc over tcp. The samba4
rpc server doesn't do ntlmssp yet, so this breaks the tests, but that
is the next step.
-
Andrew Tridgell
593bc29bbe 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.
-
Andrew Tridgell
3f85f9b782 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
-
Tim Potter
817a2fe2e5 Small cleanup of test code. Rename enum indexes to be the same name
for EnumKey and EnumValue.
-
Tim Potter
cc494086e7 Got winreg_EnumValue working - what a mess! -
Andrew Tridgell
f3eaf270e5 * 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)
-
Andrew Tridgell
77c622c3ac removed an unused file -
Andrew Tridgell
f2d3dc9893 * patch based on work by Jim Myers to unify the ioctl handling to be
more like the other major SMB functions

* added SMBntrename code
-
Andrew Bartlett
53e657b745 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
-
Andrew Tridgell
387d8f25ff 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 !
-
Andrew Tridgell
0f6af0c4bd added netr_DatabaseSync2() -
Andrew Tridgell
cc4123db4b added netr_LogonControl2() and netr_ServerAuthenticate2() -
Andrew Tridgell
17b2be4e85 added netr_LogonControl() and netr_GetAnyDCName() -
Andrew Tridgell
63f46b223e added netr_GetDcName() - quite a useful call -
Andrew Tridgell
b2ca00ebc5 added netr_AccountSync(), another NT_STATUS_NOT_IMPLEMENTED call
according to w2k3
-
Andrew Tridgell
aaf776a1c1 added netr_AccountDeltas(), which w2k3 gives
"NT_STATUS_NOT_IMPLEMENTED" for
-
Andrew Tridgell
f9377c8603 netr_DatabaseDeltas() now works. We ask for the deltas associated with
the last two sequence numbers on each database.
-
Andrew Tridgell
c4c09e9413 netr_DatabaseSync() now works fully for databases 0, 1 and 2 -
Andrew Tridgell
360d03bb56 netr_DatabaseSync() now works fully for database 0 -
Andrew Tridgell
75ea276c14 initial netlogon database sync partly works - needs some IDL tweaks -
Andrew Tridgell
983c0e9683 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.
-
Andrew Tridgell
3c7287c24e 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
-
Andrew Tridgell
3dd978b12b * 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
-
Andrew Tridgell
e6e0906464 * another small API change in the credentials code
* don't use static variables in the smbdes code
-
Andrew Tridgell
b7d748f499 neater credentials handling in netlogon client code -
Andrew Tridgell
4fa3ad3ecb added netr_LogonSamLogon() and test code -
Andrew Tridgell
8c7a9446a0 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
-
Andrew Tridgell
bb42107dcc added netr_ServerReqChallenge and cleaned up byte array printing -
Andrew Tridgell
3d64eefb46 started adding netlogon IDL and test suite -
Andrew Tridgell
829b87f30d * removed a bunch of unused code
* made some functions static
-
Tim Potter
a818439b59 Added EnumPrinterDriver, GetPrinterDriver (still in progress) -
Tim Potter
e8367f5735 GetPrinterDataEx, SetPrinterDataEx, DeletePrinterDataEx. -
Tim Potter
ea534f82d0 Add SetPrinterData, DeletePrinterData. -
Andrew Tridgell
1c2b8a93c5 fixed some warnings -
Andrew Tridgell
d5afe7c6a8 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.
-
Tim Potter
270c4fe389 Fix bug in EnumPrinterData test.
Implement GetPrinterData RPC.
-
Andrew Tridgell
c8b8480244 * 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)
-
Tim Potter
a06cbbbf1f Added EnumJobs, GetJob, SetJob RPCs. -
Andrew Tridgell
a2bdf0be01 * 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)
-
Andrew Tridgell
ccd9ddeed6 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.
-
Tim Potter
bdb0dfc370 Implemented SetForm RPC. -
Tim Potter
10b31623fd Add DeleteForm, start cleaning up tests. -
Andrew Tridgell
e3d40e3da6 more epmapper and mgmt magic
protocol 0x1f is interesting - its ncacn_http !
-
Tim Potter
cf8cd44852 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.
-
Andrew Tridgell
f5821b2468 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 :)
-
Andrew Tridgell
a81f659e9e switched to WERROR return codes in the management IDL -
Andrew Tridgell
215852116c by default sign RPC over TCP but not RPC over SMB. I will add command line control soon -
Tim Potter
822750592c Implemented EnumForms and GetForm. -
Andrew Tridgell
448dead14d show an error when the epmapper fails to find an interface -
Andrew Tridgell
4abf5376b0 added auto-determination of the DCERPC over TCP port number by asking
the servers endpoint mapper
-