summaryrefslogtreecommitdiff
path: root/source4/include/structs.h
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r10852: Continuation-based programming can become a bit spaghetti...Volker Lendecke1-0/+3
Initialize a domain structure properly. Excerpt from wb_init_domain.c: /* * Initialize a domain: * * - With schannel credentials, try to open the SMB connection with the machine * creds. Fall back to anonymous. * * - If we have schannel creds, do the auth2 and open the schannel'ed netlogon * pipe. * * - Open LSA. If we have machine creds, try to open with ntlmssp. Fall back * to schannel and then to anon bind. * * - With queryinfopolicy, verify that we're talking to the right domain * * A bit complex, but with all the combinations I think it's the best we can * get. NT4, W2k3SP1 and W2k all have different combinations, but in the end we * have a signed&sealed lsa connection on all of them. * * Is this overkill? In particular the authenticated SMB connection seems a * bit overkill, given that we do schannel for netlogon and ntlmssp for * lsa later on w2k3, the others don't do this anyway. */ Thanks to Jeremy for his detective work, and to the Samba4 team for providing such a great infrastructure. Next step is to connect to SAM. Do it via LDAP if we can, fall back to samr with all we have. Volker (This used to be commit 3e69fdc07cd76b4bc01b032148609ee4b59b8be7)
2007-10-10r10846: Create a "wbsrv_domain", change wb_finddcs to the style of the rest ↵Volker Lendecke1-1/+1
of the async helpers. Volker (This used to be commit 10585ba4e81e979a03aec747db6fc059978fa566)
2007-10-10r10834: Work in progress on winbind. With some helper routines the composite ↵Volker Lendecke1-2/+0
functions start to look sane. Question: What about providing all winbind commands as irpc interfaces that are called from the samba3 compatibility layer? This way it would be easy for other samba components to access its functionality. Does that make sense? Volker (This used to be commit 2a6b8053859ea5690f90a8d2074d2bb4f06551f8)
2007-10-10r10825: Complete wbinfo -nVolker Lendecke1-0/+1
(This used to be commit 1afa893506f3d7157e251eec9baeba28dc011587)
2007-10-10r10809: Add struct declAndrew Bartlett1-0/+2
(This used to be commit aa30c16de0405f43ed35a28764ef25e234f3b2a7)
2007-10-10r10766: - make it possible to mark a wrepl_request as send only,Stefan Metzmacher1-0/+1
used for WREPL_REPL_INFORM* messsages - make it possible to close the connection after a request was send used for WREPL_ASSOCIATION_STOP - fix the torture test that tests the assoc context handling between connections, you can issue a request and get the reply on another connection, I think we should not implement that in our server code, as I think it's a security hole, you can cause a windows server to send the replies to someone another client, that doesn't wait for data, and as there're no massage_id in the protocol the client would be confused by a replies that doesn't belong to a query metze (This used to be commit dfc95de8fa7ded8ea92cafe58cf86efcc7920156)
2007-10-10r10691: This gets half-way to wbinfo -n. It acquires an lsa pipe, and does aVolker Lendecke1-0/+1
queryinfopolicy. Idea is to get a consistency check between that and our notion of the domain name and sid, and take the lsa pipe as the holder of the central smbcli_tree that netlogon and samr use as well. Volker (This used to be commit 126c80aefc4f53c4ba79afc12d70602ef9055ddb)
2007-10-10r10683: Samba3's wbinfo -t should give the correct answer now.Volker Lendecke1-0/+1
Tridge, if you have time, you might want to look at the segfault I was still seeing. Now I store the handle to the netlogon pipe in the global winbind state and free it on the next entry into check_machacc. The problem seems to be that talloc_free()ing a pipe struct from within a callback function on that pipe is not possible. I think I can live with that, but it has been not really obvious. To reproduce the segfault you might want to look at putting a talloc_free(state->getcreds->out.netlogon) into wbsrv_samba3_check_machacc_receive_creds. This is called from a dcerpc callback function. In particular if the check failed it would be nice if I could delete the pipe directly and not post a different event to some winbind queue. I tried to delete the pipe from a timed event triggered immediately, but this also fails because the inner loop seems to hit the same event again, calling it twice. Volker (This used to be commit 5436d7764812bb632ba865e633005ed07923b57f)
2007-10-10r10680: Fix a warning.Rafal Szczesniak1-0/+1
rafal (This used to be commit b3b4059efeb7f5d2795b4bb93cf8ab95aad54c8e)
2007-10-10r10677: Add smb_composite_connectmulti: Send out multiple SYN packets at ↵Volker Lendecke1-0/+1
once, use the first one that replies correctly. Add a talloc context to smb_composite_connect() Volker (This used to be commit 6b88de182e40cb00a833c085f801fd47c92bbe94)
2007-10-10r10638: - add wrepl_socket_merge() function that creates a wrepl_socket on topStefan Metzmacher1-0/+2
of an existing socket, that is needed to handle WREPL_REPL_UPDATE in the server, because we need to flig the connection and act as client on it metze (This used to be commit 131e5dfe695d427e992b840439743f880b14d82d)
2007-10-10r10604: Put in the new registry "patchfile" code (similar to ldifJelmer Vernooij1-0/+1
for LDB); not finished yet. (This used to be commit b405b27ba4bf4ddbaff9ca58926d94d1b2fd09f6)
2007-10-10r10528: Add credentials.h back into includes.h as some compilers don'tJelmer Vernooij1-4/+0
seem to be able to handle incomplete enum types. (This used to be commit 540155fad3c8e3d79fb631bb3f14273f82130a73)
2007-10-10r10510: Decrease the amount of data included by includes.h a bitJelmer Vernooij1-0/+4
(This used to be commit 03647e1321cf6c9bd6ced3945265f635e9468973)
2007-10-10r10491: First step towards wbinfo -t: This issues a name request for the primaryVolker Lendecke1-0/+2
domain and gets the DC's name via a mailslot call. Metze, I renamed wbsrv_queue_reply to wbsrv_send_reply in accordance with irpc_send_reply. Having _queue_ here and _send_ there is a bit confusing. And as everything is async anyway, the semantics should not be too much of a problem. Volker (This used to be commit 4637964b19c6e9f7d201b287e2d409d029fced01)
2007-10-10r10426: - restructure the winbind server code a bitStefan Metzmacher1-0/+7
- remove the echo test stuff - abstract out the used protocol - we have a seperate handler for the samba3 protocol now - the backend can easy do async replies by setting WBSRV_CALL_FLAGS_REPLY_ASYNC in wbsrv_call and then call wbsrv_queue_reply() later metze (This used to be commit 32f3e68a569e9273b8d34fbd797c0a28494e5b6d)
2007-10-10r9798: Add generic functions for handling smb.conf files (the parameters ↵Jelmer Vernooij1-0/+4
don't to be pre-declared). Also doesn't use any globals, so multiple files can be loaded at once. Currently uses the prefix "param" for all functions and structures; suggestions for better ones are welcome... Remove old smb.conf-parsing code from libsamba3. (This used to be commit 414e5f7f6dc38a8fde3b61d524a664f56f9ea592)
2007-10-10r9672: Fix build for compilers that don't like undefined-length arrays at ↵Jelmer Vernooij1-1/+2
the end of structs... (This used to be commit c2211df586337ff68bb805801959147065040c01)
2007-10-10r9602: Add support for reading share_info.tdb and smb.conf.Jelmer Vernooij1-0/+1
Add userdata argument to function pointers for pm_process() (This used to be commit 84b2fb34675fa557173621433838c5a7ec0f1283)
2007-10-10r9595: Add ldb map moduleJelmer Vernooij1-0/+2
(This used to be commit e0a0d3f092d601a22b7549a0278735e66239b301)
2007-10-10r9589: Support reading secrets tdbJelmer Vernooij1-0/+1
(This used to be commit dd15131b5219ecf0d09329c0de37c426b9147f45)
2007-10-10r9581: Registry dbJelmer Vernooij1-0/+1
(This used to be commit b264e9f56a434400277bb73898484aff93522fe8)
2007-10-10r9557: Some more updates. Use combined function for parsing a set ofJelmer Vernooij1-1/+4
samba3 databases (This used to be commit b91a695bd854c6d37ec536edb2db7b6f97fe69dc)
2007-10-10r9556: Define a few libsamba structsJelmer Vernooij1-0/+2
(This used to be commit 46c5cdb673b0a8c6f5e23f96ad4284b6d4f8ae63)
2007-10-10r9518: - remove the subcontext_size() hack from rev 9509Stefan Metzmacher1-2/+0
as it isn't needed - parse some more DsAddEntry() errors - add some more attid constands so that all attribute that are needed for a DsAddEntry in the DC Domain Join are mapped - add value() for __ndr_size, to more attribute container, so that the caller doesn't need to fill them in, that was the reason for getting an NDR_FAULT metze (This used to be commit a9a1a6f861c8db626b3232f057ef0b9c3d0ad1b0)
2007-10-10r9509: start to fix the pushing of drsuapi_DsAttributeValueDNString structs,Stefan Metzmacher1-2/+3
this uses a trick with talloc_get_type() to workaround using [value()] vars in [subcontext_size()] metze (This used to be commit 93065f2d3439bceeaa7c2a09679cc6d81472150d)
2007-10-10r9453: Add samba3_samaccount (fix the build)Jelmer Vernooij1-0/+1
(This used to be commit 65ddea09b952452468aa4319e97d272a61ae7c06)
2007-10-10r9391: Convert all the code to use struct ldb_dn to ohandle ldap like ↵Simo Sorce1-0/+1
distinguished names Provide more functions to handle DNs in this form (This used to be commit 692e35b7797e39533dd2a1c4b63d9da30f1eb5ba)
2007-10-10r9085: Missing structs.h entry.Andrew Bartlett1-0/+1
Andrew Bartlett (This used to be commit 379bcf7061d08b005008204cee4a9d65aae9541b)
2007-10-10r8847: Rework the Samba4 'net join' code. I'm trying to get this closer toAndrew Bartlett1-3/+2
what WinXP does when joining an AD domain, but in the meantime this removes the excess unions, and uses the LSA pipe in same way XP does. Andrew Bartlett (This used to be commit d2789c426090c325f6535cdce380ac0f4e22c3c7)
2007-10-10r8752: With all the infrustructure done, details like a SamSync migrationAndrew Bartlett1-0/+1
into LDB are actually quite easy. This brings us the users, and sets basic domain information. You are expected to have provisioned with the settings for the target domain, and have joined the domain as a BDC. Then simply 'net samsync'. Now we just need to flesh out the delta types. Andrew Bartlett (This used to be commit 1e0f7792bb29b17c23197a5e42ee8cabb0cf17d0)
2007-10-10r8744: Split 'net samdump' out into a separate fileAndrew Bartlett1-1/+2
Work on the talloc memory tree, as I think talloc_reference and other things were biting me. Crush unions in the name of code reform. ;-) Andrew Bartlett (This used to be commit 2eadcf46699f1cc7adb2066e17096f70c7b73998)
2007-10-10r8692: Starting parts of code to provide user modify functionality.Rafal Szczesniak1-0/+1
It's more like a placeholder now, than a working code. Just don't want to hang it around my laptop only. rafal (This used to be commit bee1c9ec2dea4cad703386af35470c7d74cef4b0)
2007-10-10r8164: - match the ordering w2k3 uses for the PAC_BUFFER:Stefan Metzmacher1-0/+1
LOGON_INFO LOGON_NAME SRV_CHECKSUM KDC_CHECKSUM - w2k3 also don't use the groupmembership array with rids it uses the othersids array metze (This used to be commit 2286fad27d749ebba14f5448f1f635bb36750c9c)
2007-10-10r8148: - make the PAC generation code a bit more readable and add some outof ↵Stefan Metzmacher1-0/+2
memory checks - move to handmodified pull/push code for PAC_BUFFER to get the _ndr_size field and the subcontext size right - after looking closely to the sample w2k3 PAC in our torture test (and some more in my archive) I found out that the first uint32 before the netr_SamInfo3 was also a pointer, (and we passed a NULL pointer there before, so I think that was the reason why the windows clients doesn't want our PAC) w2k3 uses this for unique pointers: ptr = ndr->ptr_count * 4; ptr |= 0x00020000; ndr->ptr_count; - do one more pull/push round with the sample PAC metze (This used to be commit 0eee17941595e9842a264bf89ac73ca66cea7ed5)
2007-10-10r8128: Janitor work...Rafal Szczesniak1-1/+0
rafal (This used to be commit 9f0dfafcdeceb23c19686d2163e6ff6e613bd067)
2007-10-10r8078: rpc connect function uses structure now.Rafal Szczesniak1-1/+1
rafal (This used to be commit 34592b6a92591122180649de251f2ddc181fe382)
2007-10-10r8050: - make use of more [value()] propertiesStefan Metzmacher1-0/+2
- the out subcontext's need to have a fixed size of r->in.offered, to make windows clients happy metze (This used to be commit 054e1ca434b2f81de199eeb41cb6233524fc5779)
2007-10-10r7999: Fix lacking structure definition.Rafal Szczesniak1-0/+1
rafal (This used to be commit 6886aefe4c78e3e208eacb3c4b76f1189bd1352a)
2007-10-10r7971: structs.h updateAndrew Bartlett1-4/+3
(This used to be commit 31e7df1392f39e170e3d072b8356e746208d0621)
2007-10-10r7733: New io structure for name lookup function.Rafal Szczesniak1-0/+1
rafal (This used to be commit 12b468417da04a2b7ddcacdf224ed7d055f0d3d9)
2007-10-10r7643: This patch adds a new NTPTR subsystem:Stefan Metzmacher1-0/+35
- this is an abstraction layer for print services, like out NTVFS subsystem for file services - all protocol specific details are still in rpc_server/spoolss/ - like the stupid in and out Buffer handling - checking of the r->in.server_name - ... - this subsystem can have multiple implementation selected by the "ntptr providor" global-section parameter - I currently added a "simple_ldb" backend, that stores Printers, Forms, Ports, Monitors, ... in the spoolss.db, and does no real printing this backend is basicly for testing, how the spoolss protocol works - the interface is just a prototype and will be changed a bit the next days or weeks, till the simple_ldb backend can handle all calls that are used by normal w2k3/xp clients - I'll also make the api async, as the ntvfs api this will make things like the RemoteFindFirstPrinterChangeNotifyEx(), that opens a connection back to the client, easier to implement, as we should not block the whole smbd for that - the idea is to later implement a "unix" backend that works like the current samba3 code - and maybe some embedded print server vendors can write there own backend that can directly talk to a printer without having cups or something like this - the default settings are (it currently makes no sense to change them :-): ntptr providor = simple_ldb spoolss database = $private_dir/spoolss.db metze (This used to be commit 455b5536d41bc31ebef8290812f45d4a38afa8e9)
2007-10-10r7626: a new ldap client library. Main features are:Andrew Tridgell1-0/+3
- hooked into events system, so requests can be truly async and won't interfere with other processing happening at the same time - uses NTSTATUS codes for errors (previously errors were mostly ignored). In a similar fashion to the DOS error handling, I have reserved a range of the NTSTATUS code 32 bit space for LDAP error codes, so a function can return a LDAP error code in a NTSTATUS - much cleaner packet handling (This used to be commit 2e3c660b2fc20e046d82bf1cc296422b6e7dfad0)
2007-10-10r7527: - added a ldb_search_bytree() interface, which takes a ldb_parse_treeAndrew Tridgell1-0/+1
instead of a search expression. This allows our ldap server to pass its ASN.1 parsed search expressions straight to ldb, instead of going via strings. - updated all the ldb modules code to handle the new interface - got rid of the separate ldb_parse.h now that the ldb_parse structures are exposed externally - moved to C99 structure initialisation in ldb - switched ldap server to using ldb_search_bytree() (This used to be commit 96620ab2ee5d440bbbc51c1bc0cad9977770f897)
2007-10-10r7490: Rename functions and prefices s/rpc_composite/libnet_rpc/Rafal Szczesniak1-4/+4
This makes more clear where the functions belong to. Also the rule will be that lowercased function names are not part of "official" libnet API (though it doesn't mean one absolutely cannot use them). rafal (This used to be commit f6ef7b882acc6ee07422944a417a8d9013c9d8d2)
2007-10-10r7379: Simplify CreateUser function and io structure. Also, implementingRafal Szczesniak1-1/+1
it based on composite functions. Moving to fully async CreateUser on the way... rafal (This used to be commit 240409bc3cfa1426db15fc0537fcf0841f51ede0)
2007-10-10r7328: fix GetPrinterData and SetPrinterData, with zero length subcontextsStefan Metzmacher1-0/+2
metze (This used to be commit 73d597bacf83492ed3da2307dd6785548b903b39)
2007-10-10r7253: Fix build.Tim Potter1-1/+1
(This used to be commit 54ff16b9a198237999cedd973cced70a62f03418)
2007-10-10r7251: Initial work on composite domain open call.Rafal Szczesniak1-1/+2
rafal (This used to be commit be3b283b20af0b17d8c9711f362b63b881ffbc1c)
2007-10-10r7221: Add the start of a KDC service (to be built on a 'libkdc' from a to beAndrew Bartlett1-0/+2
included Heimdal) to Samba4. Andrew Bartlett (This used to be commit 51ba3ea60c265b837821b6c3e031dfe229c10d6a)