summaryrefslogtreecommitdiff
path: root/source4/rpc_server
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r890: convert samba4 to use [u]int8_t instead of [u]int8Stefan Metzmacher3-4/+4
metze (This used to be commit 2986c5f08c8f0c26a2ea7b6ce20aae025183109f)
2007-10-10r889: convert samba4 to use [u]int16_t instead of [u]int16Stefan Metzmacher6-14/+14
metze (This used to be commit af6f1f8a01bebbecd99bc8c066519e89966e65e3)
2007-10-10r884: convert samba4 to use [u]int32_t instead of [u]int32Stefan Metzmacher13-65/+65
metze (This used to be commit 0e5517d937a2eb7cf707991d1c7498c1ab456095)
2007-10-10r879: fixed a typo in the password fetch wrapperAndrew Tridgell1-1/+1
(This used to be commit c75b763f41cb6d9dde9497c4b7443fe89ab5d256)
2007-10-10r874: This patch is a pile of work on NTLMSSP:Andrew Bartlett1-8/+9
Samba's NTLMSSP code is now fully talloc based, which should go a long way to cleaning up the memory leaks in this code. This also avoids a lot of extra copies of data, as we now allocate the 'return' blobs on a caller-supplied context. I have also been doing a lot of work towards NTLM2 signing and sealing. I have this working for sealing, but not for the verifier (MD5 integrity check on the stream) which is still incorrect. (I can aim a rpcecho sinkdata from a Win2k3 box to my server, and the data arrives intact, but the signature check fails. It does however match the test values I have...). The new torture test is cludged in - when we get a unit test suite back, I'll happliy put it in the 'right' place.... Andrew Bartlett (This used to be commit 399e2e2b1149b8d1c070aa7f0d5131c0b577d2b9)
2007-10-10r873: converted samba4 to use real 64 bit integers instead ofAndrew Tridgell5-55/+290
structures. This was suggested by metze recently. I checked on the build farm and all the machines we have support 64 bit ints, and support the LL suffix for 64 bit constants. I suspect some won't support strtoll() and related functions, so we will probably need replacements for those. (This used to be commit 9a9244a1c66654c12abe4379661cba83a73c4c21)
2007-10-10r871: add a comment about how samdb_set_password() worksAndrew Tridgell1-0/+6
(This used to be commit 2fdf33c6e5f5666629adaf849b97fa4d4fd5968e)
2007-10-10r870: we should issue a rpc fault OP_RANGE_ERROR not a WERR_NOT_SUPPORTED forAndrew Tridgell1-29/+29
functions we don't implement yet so that we don't put uninitialised result data on the wire (found with valgrind) (This used to be commit abe90bc7ba8d38d1f7c641494463236b0fd3f41f)
2007-10-10r868: we should issue a rpc fault OP_RANGE_ERROR not a WERR_NOT_SUPPORTED forAndrew Tridgell1-41/+39
functions we don't implement yet so that we don't put uninitialised result data on the wire (found with valgrind) (This used to be commit 2712e26a5d08afd9bf8c6957f75be522966b5062)
2007-10-10r846: convert DCESRV subsystem to a config.mk fileStefan Metzmacher2-22/+128
metze (This used to be commit 7fffc124e38a4e5b16d650b1f6d82b24dcfee982)
2007-10-10r839: password set/change in the samr server is complex enough that itAndrew Tridgell5-530/+592
deserves its own C module (This used to be commit 2ba7ff824c32b3db037263ddcff9c876293ea284)
2007-10-10r816: - Make use of tridge's new samdb_result_sid_prefix() helper function.Andrew Bartlett1-20/+7
- Remove legacy sid_to_string (which contained a memleak) - Remove some unused parts of lib/util_sid.c Andrew Bartlett (This used to be commit 7c69a85984e47c004ddfd9bb5eadcb3191b56f9d)
2007-10-10r812: added a new samdb_replace() call that simplifies the code in the main ↵Andrew Tridgell2-31/+27
samr server a bit. (This used to be commit 255d6e77e705bb7a94e6738c9f48f9d8c625883c)
2007-10-10r796: fixed samr_OemChangePasswordUser2() to replace attributes, not addAndrew Tridgell1-1/+6
(This used to be commit 24bbf9f1bcfddb5131769439bd139faef2c022e2)
2007-10-10r793: - don't make templates members of any class that would make them showAndrew Tridgell2-32/+255
up in searches like "objectclass=user" - auto-add the computer objectclass for computer accounts on create - added two types of password change call in samr server - reset last_fault_code before each dcerpc call (This used to be commit c1a65f83f6a4c51e60efd204dab89c20cda65d2b)
2007-10-10r789: we return wrong number of entriesSimo Sorce1-1/+1
(This used to be commit c0c1596dbdb1769c3f10c8299f61807497b1d38a)
2007-10-10r758: just move the util file to the additional object file listStefan Metzmacher1-1/+1
metze (This used to be commit 4bfecf337bab08e97bc9acfa5fb12273387f2a42)
2007-10-10r754: Implement the SetPassword operation on the netlogon pipe.Andrew Bartlett3-42/+205
This involves allowing the password set code in samdb to take an already hashed password, and some fixes to our torture code. Andrew Bartlett (This used to be commit f9f581b5804a20785df06cde157b23c952edc2ce)
2007-10-10r745: Move netr_ServerPasswordSet up with the other secure channelAndrew Bartlett1-12/+24
management functions, and make sure to include the fault until this is no longer a stub. Andrew Bartlett (This used to be commit b886cb65f8d7b8b9f587d8a22d830938d4c6eb3e)
2007-10-10r743: Start on a NETLOGON server in Samba4.Andrew Bartlett5-106/+777
Currently this only authentiates the machine, not real users. As a consequence of running the Samba4 NETLOGON test against Samba4, I found a number of issues in the SAMR server, which I have addressed. There are more templates in the provison.ldif for this reason. I also added some debug to our credentials code, and fixed some bugs in the auth_sam module. The static buffer in generate_random_string() bit me badly, so I removed it in favor of a talloc based system. Andrew Bartlett (This used to be commit 94624e519b66def97758b8a48a01ffe9029176f0)
2007-10-10r665: merge over the new build system from my tmp branchStefan Metzmacher1-8/+12
to the main SAMBA_4_0 tree. NOTE: that it's not completely ready, but it's functional:-) metze (This used to be commit c78a2ddb28ec50d6570a83b1f66f18a5c3621731)
2007-10-10r649: return unknown interface when the client not yetStefan Metzmacher1-0/+5
binds succesful to an interface metze (This used to be commit c39e450702cfa2b577c64e14ba1428fd95db7ade)
2007-10-10r626: make the code a bit more readableStefan Metzmacher1-151/+151
metze (This used to be commit 81b94718e4145a53947d401c4b4b88b71c71e4a4)
2007-10-10r625: - handle passwords longer than length 14 (thanks to abartlet for ↵Andrew Tridgell2-44/+82
pointing out the bug) - delete unicodePwd if not storing a plaintext password (This used to be commit 6c3f22a685c55f183f4e0e4303e3d9990f4b39b5)
2007-10-10r623: setUserInfo level 24 (password set) now works in the SAMR server. This ↵Andrew Tridgell4-13/+346
includes all of the password complexity, password history and other password restrictions. (This used to be commit cb070b9084d95cf5178edbef951b75eab62b7220)
2007-10-10r615: Implement samr_OpenGroup, samr_QueryGroupInfo, samr_SetGroupInfo,Volker Lendecke1-50/+238
samr_DeleteDomainGroup. I've added the hidden attribute numMembers that must be maintained by Add/DelGroupMember for the GroupInfoAll query. Volker (This used to be commit 945d7478605c1bd67e4162ebb0635ab7da11faaf)
2007-10-10r608: - a couple of very minor fixes to the CreateGroup codeAndrew Tridgell2-11/+49
- added samr_GetUserPwInfo() samr server call (This used to be commit 0250f5d6aaf4f9325ace707c69f5e24bcd7a0ed9)
2007-10-10r605: Implement CreateDomainGroup, essentially cut&paste from CreateUser2.Volker Lendecke2-12/+136
Volker (This used to be commit 59241c0c9aa2d64d66eb04e81aa5500681604061)
2007-10-10r601: added the server code for all the samr_SetUserInfo and ↵Andrew Tridgell2-17/+342
samr_QueryUserInfo levels except for the password set levels. This means that a large part of the RPC-SAMR torture test now runs correctly against Samba4 (This used to be commit ec0a51898f543578e755207d81ed5c1524861c64)
2007-10-10r596: log all ldb searches at level 4 in samdbAndrew Tridgell1-0/+2
(This used to be commit defaf0d817a7c207da59692245aa65bc30c9bd19)
2007-10-10r595: nicer handling on max_size multiplierAndrew Tridgell1-2/+3
(This used to be commit 994baba7ebc267cb3051109aee022d71472aa6b6)
2007-10-10r587: added server code for samr_EnumDomainUsers, and started addingAndrew Tridgell2-10/+271
samr_SetUserInfo and samr_QueryUserInfo (This used to be commit e0db9659a85b59e52fbe033a94b411d6c64d9f9c)
2007-10-10r578: initial server side implementation of samr_CreateUser(),Andrew Tridgell3-99/+624
samr_CreateUser2(), samr_LookupNames(), samr_OpenUser(), and samr_DeleteUser() this uses a user template in the SAM db, of objectclass "userTemplate" and dn CN=TemplateUser,CN=Templates,$BASEDN. Using a template allows an admin to add any default user attributes that they might want to the user template and all new users will receive those attributes. (This used to be commit 10b6e0011b5952c98432dc2d4b2058ac89a9cc2d)
2007-10-10r514: added a context pointer to the samdb interface, as suggested byAndrew Tridgell2-43/+138
metze. Also added a reference count so that a client can close the connection handle and still used a derived domain handle. (This used to be commit b1cd98188d6f1f8236f5dbc7a3605a39ae27fb73)
2007-10-10r513: added a generic ldb debug system to allow the Samba debug functions toAndrew Tridgell1-0/+17
be cleanly interfaced to ldb (This used to be commit 74b89d5f960d6b936751e3f057b4540eb80b79cd)
2007-10-10r510: converted the samdb code to give ldb a talloc context rather than ↵Andrew Tridgell2-37/+86
letting ldb use malloc (This used to be commit a3edd4bca8769cd804a5908286c7a18ca5c8fa00)
2007-10-10r466: implemented samr_OpenDomain() and samr_GetDomPwInfo() server side callsAndrew Tridgell2-10/+116
if you take a look at samr_GetDomPwInfo() then you will get a fairly good idea of what I am planning for the database oriented SAMR server implementation. (This used to be commit bba0044a514cf86cbcf14bc82dd6c49808c22dab)
2007-10-10r465: we need common.h in two more rpc server pipesAndrew Tridgell2-0/+2
(This used to be commit d96b68169a5ab46cc0550732d4fe94af75e06fd6)
2007-10-10r464: a big improvement to the API for writing server-side RPCAndrew Tridgell8-555/+451
servers. Previously the server pipe code needed to return the RPC level status (nearly always "OK") and separately set the function call return using r->out.result. All the programmers writing servers (metze, jelmer and me) were often getting this wrong, by doing things like "return NT_STATUS_NO_MEMORY" which was really quite meaningless as there is no code like that at the dcerpc level. I have now modified pidl to generate the necessary boilerplate so that just returning the status you want from the function will work. So for a NTSTATUS function you return NT_STATUS_XXX and from a WERROR function you return WERR_XXX. If you really want to generate a DCERPC level fault rather than just a return value in your function then you should use the DCESRV_FAULT() macro which will correctly generate a fault for you. As a side effect, this also adds automatic type checking of all of our server side rpc functions, which was impossible with the old API. When I changed the API I found and fixed quite a few functions with the wrong type information, so this is definately useful. I have also changed the server side template generation to generate a DCERPC "operation range error" by default when you have not yet filled in a server side function. This allows us to correctly implement functions in any order in our rpc pipe servers and give the client the right information about the fault. (This used to be commit a4df5c7cf88891a78d82c8d6d7f058d8485e73f0)
2007-10-10r458: this is the (very primitive) beginnings of a SAMR server forAndrew Tridgell3-0/+1123
Samba4. I'm committing this now so I can get comments on the approach. Note that you need to do something like this to initialise the SAM db: edit script/provision.pl script/provision.pl > provision.ldif.out bin/ldbadd /path/to/private/sam.ldb provision.ldif.out (This used to be commit e2002e40a5abe0cd33a2056b1da8ba5732f9021f)
2007-10-10r445: fixed the bind_nak codeAndrew Tridgell1-2/+7
(This used to be commit f3799e7720e13e12b59168cf4afbf2dfe87868f7)
2007-10-10r441: added an example of how to use the remote rpc interfaceAndrew Tridgell1-0/+7
(This used to be commit 62f59d1180cb97cbfd6e046072131fc486ade4bd)
2007-10-10r424: let this code compile on every machine hopefullyStefan Metzmacher1-2/+2
metze (This used to be commit 3e911db7c2cbcb38667f06e6b0282bce1b7991cb)
2007-10-10r374: allow for a policy_handle fetch using a handle type ofAndrew Tridgell2-1/+3
DCESRV_HANDLE_ANY. This is needed for operations like samr_Close() that take any handle type. (This used to be commit 6fbbfc4462388c4c86f9f0ddd3cdd99225512ef2)
2007-10-10r355: Fix a bunch of compiler warnings in the registry code.Tim Potter1-5/+3
(This used to be commit 0be7a866dc39e2d63c9c114d0f668287259e7c9e)
2007-10-10r286: use talloc_array_p() instead of talloc()Stefan Metzmacher2-9/+79
add some more WERR_NOT_SUPPORTED stubs to pass our torture tests (wkssvc and srvsvc) metze (This used to be commit f8605b39ab58f8db22358122eafccc8a1cc60004)
2007-10-10r138: fix typoStefan Metzmacher1-1/+1
metze (This used to be commit 7e42465192e67563f19e6362e243b01406c5e025)
2007-10-10r128: Another registry update. Changes:Jelmer Vernooij1-110/+104
- Start with the LDB backend - The API is now more windows-like, which should make it easier to use in rpc_server - Added a GTK+ front-end - Added some more IDL More updates will follow, especially in the RPC field.. (This used to be commit 3adffa021779b26047a20f16a3c0b53d74751560)
2007-10-10r127: NetWkstaGetInfo level 101Stefan Metzmacher3-8/+21
and return WERR_ACCESS_DENIED for level 102, 502 so does my winXP box for a non-admin user metze (This used to be commit 975bf13f17e0bd95ec37af3534e5209c1de99252)
2007-10-10r126: - add first srvsvc and wkssvc server side stuffStefan Metzmacher7-3/+1784
- we know can browse the server via the Windows Explorer - some little fixes to the winreg server pipe metze (This used to be commit 6f213a3494d3b5ab629944394b20a84075a04438)