summaryrefslogtreecommitdiff
path: root/source4/libcli
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r12858: This moves the libnet_LookupPdc code to use a GetDC request to findAndrew Bartlett4-1/+260
the remote server's name, or in the absence of a local nbt_server to communicate with (or without root access), a node status request. The result is that we are in a better position to use kerberos, as well as to remove the 'password server' mandatory parameter for the samsync and samdump commands. (I need this to put these into SWAT). The only problem I have is that I must create a messaging context, which requires a server ID. As a client process, I don't expect to get messages, but it is currently required for replies, so I generate a random() number. We probably need the servers to accept connections on streamed sockets too, for client-only tasks that want IRPC. Because I wanted to test this code, I have put the NET-API-* tests into our test scripts, to ensure they pass and keep passing. They are good frontends onto the libnet system, and I see no reason not to test them. In doing so the NET-API-RPCCONNECT test was simplified to take a binding string on the command line, removing duplicate code, and testing the combinations in the scripts instead. (I have done a bit of work on the list shares code in libnet_share.c to make it pass 'make test') In the future, I would like to extend the libcli/findds.c code (based off volker's winbind/wb_async_helpers.c, which is why it shows up a bit odd in the patch) to handle getting multiple name replies, sending a getdc request to each in turn. (posted to samba-technical for review, and I'll happily update with any comments) Andrew Bartlett (This used to be commit 7ccddfd3515fc2c0d6f447c768ccbf7a220c3380)
2007-10-10r12804: This patch reworks the Samba4 sockets layer to use a socket_addressAndrew Bartlett15-140/+168
structure that is more generic than just 'IP/port'. It now passes make test, and has been reviewed and updated by metze. (Thankyou *very* much). This passes 'make test' as well as kerberos use (not currently in the testsuite). The original purpose of this patch was to have Samba able to pass a socket address stucture from the BSD layer into the kerberos routines and back again. It also removes nbt_peer_addr, which was being used for a similar purpose. It is a large change, but worthwhile I feel. Andrew Bartlett (This used to be commit 88198c4881d8620a37086f80e4da5a5b71c5bbb2)
2007-10-10r12801: Some more include/ cleanups (remove unused macros + move filesJelmer Vernooij3-1/+103
to specific dirs) (This used to be commit 243cf760b077e155f5ac508aeebf819f7708a84e)
2007-10-10r12747: Add a couple more token tests, used by the kludge ACL module.Andrew Bartlett1-0/+30
Andrew Bartlett (This used to be commit 10eadf48124d61f2eb586fb277a66aa4b9e6cad3)
2007-10-10r12733: Merge ldap/ldb controls into main treeSimo Sorce10-27/+518
There's still lot of work to do but the patch is stable enough to be pushed into the main samba4 tree. Simo. (This used to be commit 77125feaff252cab44d26593093a9c211c846ce8)
2007-10-10r12725: some minor updatesStefan Metzmacher2-2/+2
metze (This used to be commit f2e97983f278211c6d70400ce1f43d6a69df0d8a)
2007-10-10r12696: Reduce the size of include/structs.hJelmer Vernooij7-2/+8
(This used to be commit 63917616016133c623fc6ff59454bc313ee7dd8f)
2007-10-10r12694: Move some headers to the directory of the subsystem they belong to.Jelmer Vernooij16-6/+114
(This used to be commit c722f665c90103f3ed57621c460e32ad33e7a8a3)
2007-10-10r12670: Make a couple of dependencies stricterJelmer Vernooij1-1/+1
Re-introduce and use the OUTPUT_TYPE property for MODULEs to force specific modules to always be included (This used to be commit f9eede3d40098eddc3618ee48f9253cdddb94a6f)
2007-10-10r12608: Remove some unused #include lines.Jelmer Vernooij45-67/+0
(This used to be commit 70e7449318aa0e9d2639c76730a7d1683b2f4981)
2007-10-10r12602: fix compiler warningStefan Metzmacher1-4/+4
metze (This used to be commit 82d5bdb1e73dd203cfaf83fdb46c485d212d5c65)
2007-10-10r12592: Remove some useless dependenciesJelmer Vernooij3-22/+8
(This used to be commit ca8db1a0cd77682ac2c6dc4718f5d753a4fcc4db)
2007-10-10r12542: Move some more prototypes out to seperate headersJelmer Vernooij16-0/+28
(This used to be commit 0aca5fd5130d980d07398f3291d294202aefe3c2)
2007-10-10r12510: Change the DCE/RPC interfaces to take a pointer to aJelmer Vernooij1-1/+1
dcerpc_interface_table struct rather then a tuple of interface name, UUID and version. This removes the requirement for having a global list of DCE/RPC interfaces, except for these parts of the code that use that list explicitly (ndrdump and the scanner torture test). This should also allow us to remove the hack that put the authservice parameter in the dcerpc_binding struct as it can now be read directly from dcerpc_interface_table. I will now modify some of these functions to take a dcerpc_syntax_id structure rather then a full dcerpc_interface_table. (This used to be commit 8aae0f168e54c01d0866ad6e0da141dbd828574f)
2007-10-10r12500: Use init functions explicitly in a few more places. 'gensec' and ↵Jelmer Vernooij1-1/+1
'librpc' are the only two subsystems left to convert. (This used to be commit f6bbc72996aeee8607fc583140fd60be0e06e969)
2007-10-10r12498: Eliminate INIT_OBJ_FILES and ADD_OBJ_FILES. We were not usingJelmer Vernooij5-16/+16
the difference between these at all, and in the future the fact that INIT_OBJ_FILES include smb_build.h will be sufficient to have recompiles at the right time. (This used to be commit b24f2583edee38abafa58578d8b5c4b43e517def)
2007-10-10r12370: - if we got a reply without a pending request, mark the socket as deadStefan Metzmacher1-0/+5
instead of segfaulting metze (This used to be commit 043f5c1054cd2dc95571d601b0872c4cb0d99588)
2007-10-10r12254: Add some (hopefully correct) descriptions for libraries that are ↵Jelmer Vernooij1-0/+4
installed. Install pkg-config files. (This used to be commit a86abe84e2cae7c6188c094a92c6b62aace02fdf)
2007-10-10r12247: - reject freeing the wrepl_socket inside of wrepl_socket_dead()Stefan Metzmacher2-1/+12
- free it at the end of wrepl_socket_dead() if needed metze (This used to be commit 58285115c83a3b7bbc9bf52a105cebd11831e9d8)
2007-10-10r12240: if the caller isn't interessted in the reply packet, just free itStefan Metzmacher1-1/+1
(mostly use for send_only requests, where we don't have a reply at all) metze (This used to be commit a01d5a769c63777232aad89f8c4b5460824ca2b1)
2007-10-10r12238: don't crash when an error happens while connecting and the ↵Stefan Metzmacher1-2/+5
packet_context isn't inplace yet metze (This used to be commit 064d9409c3dda25a803fd5ca9ad15c48271e8905)
2007-10-10r12216: Couple of small fixes: reduce include/includes.h a bit, simplify headersJelmer Vernooij1-2/+2
in build/smb_build/, remove unused pstring macros (This used to be commit 432296207400636dd81d0929ec7b1b4cebbcaa62)
2007-10-10r12200: - move the the winsreplication client and server code to the ↵Stefan Metzmacher2-336/+237
packet_context system - this needs to be in one big patch, because of the merging code, that changes client in server connections and the other way around - use socket_connect_send/_recv() in the client code metze (This used to be commit f0105b7fcdc3032d22444a1973927fff2dd9a06f)
2007-10-10r12161: Fix a memleak and do the -O1 janitor :-)Volker Lendecke1-1/+5
(This used to be commit 82d87d62614a33ec9d2ed20e63d80a7af64e8678)
2007-10-10r12158: added ldif handlers for the ntSecurityDescriptor attribute, so whenAndrew Tridgell1-8/+8
displaying security descriptors in ldbsearch or ldbedit you can see the SDDL version. This also allows us to specify security descriptors in our setup/*.ldif files in SDDL format, which is much more convenient than the NDR binary format! (This used to be commit 8185731c1846412c1b3366824cdb3d05b2d50b73)
2007-10-10r12139: - fixed up the ace object flags checkingAndrew Tridgell1-3/+8
- allow for arbitrary access masks in sddl_encode_ace() (This used to be commit 5e2b1bd6afafe2eb96e98c4636e0a62235693183)
2007-10-10r12138: added use of 2 letter SID codes in sddl_encode_sid()Andrew Tridgell1-3/+42
(This used to be commit a0662ae9d3f719d2db193490361923095bd4d419)
2007-10-10r12137: added sddl_encode(), the reverse of the sddl_decode() function added aAndrew Tridgell1-0/+170
couple of days ago. Doesn't yet encode using the shorthand for well known SIDs. (This used to be commit 655a4ebe8e0ee18133103bfba0ca6d14cbf81d56)
2007-10-10r12116: got rid of composite_trigger_done() and composite_trigger_error(), andAndrew Tridgell6-38/+37
instead make the normal composite_done() and composite_error() functions automatically trigger a delayed callback if the caller has had no opportunity to setup a async callback this removes one of the common mistakes in writing a composite function (This used to be commit f9413ce792ded682e05134b66d433eeec293e6f1)
2007-10-10r12114: - smb2_keepalive() acts on the smb2_transportStefan Metzmacher2-8/+10
- smb2_logoff() acts on the smb2_session metze (This used to be commit ae1ca2bb4affefff1026c03f0765faf28c2b316b)
2007-10-10r12079: Fix to the comment for sake of completness...Rafal Szczesniak1-1/+1
rafal (This used to be commit 7aa40e3a3ff7a655c5ed8ee67c55af92193815f1)
2007-10-10r12062: SASL negotiation now requires a gensec_security context, so that weAndrew Bartlett1-1/+1
only try permitted mechanims. Andrew Bartlett (This used to be commit 0f50239dc40ee128e4985f8aec5bb5f440a4f3f0)
2007-10-10r12020: fix memory hierachieStefan Metzmacher1-1/+1
metze (This used to be commit 2433800834293a95669c3c48eb2462b76d1b3029)
2007-10-10r12011: fixed another 'mixed code and declarations' bugAndrew Tridgell1-1/+2
(This used to be commit 1eca19d597ea21a073361fc6fc550919abf97574)
2007-10-10r12010: - added support for domain specific SID codes in SDDL stringsAndrew Tridgell1-20/+67
- added a bunch more tests to LOCAL-SDDL (all the ones from our schema) - fixed 'mixed coded declarations' bug (This used to be commit c30e7698e8e1d9991d35bf86c0d4041a1814ad92)
2007-10-10r12006: don't require callers to fill in pad bytes in SMB2 callsAndrew Tridgell4-4/+4
(This used to be commit 6935765fda99a6efb19f6f72358d4d48fc35ad5e)
2007-10-10r12005: added a SDDL (Security Descriptor Description Language) parser. NotAndrew Tridgell2-0/+316
all flags are covered yet, and object aces aren't done yet. This is needed for ACL support in ldb, as the default security descriptor for each object class is given by the defaultSecurityDescriptor attribute in the schema, which is stored in SDDL format (This used to be commit dbdeecea01a8b362a9a525a3689cb03662a86776)
2007-10-10r11996: don't overwrite the buffercodeStefan Metzmacher1-1/+1
metze (This used to be commit fee5b6f40784e75a469320a584423c5030b69400)
2007-10-10r11982: ensure the fde event gets freed before the socket itself, as otherwiseAndrew Tridgell2-5/+5
we get a error from epoll about disabling events for a file descriptor that is closed (This used to be commit f32739307464a1f0c835cff886b8c4b960778900)
2007-10-10r11980: ronnie worked out that opcode 0xb in SMB2 is in fact ioctl, and thatAndrew Tridgell4-20/+19
it only appeared to be like a SMBtrans request as it was being called with function 0x11c017 which is "named pipe read write" I wonder if this means we could do DCE/RPC over SMB using ntioctl calls as well? (This used to be commit f2b8857797328be64b0b85e875ae6d108e2aeaaa)
2007-10-10r11971: add nbt specific continue wrapperStefan Metzmacher1-0/+11
metze (This used to be commit b8c5978df18b98db89069e02597d483f893e39ae)
2007-10-10r11967: Fix more 64-bit warnings.Tim Potter1-3/+3
(This used to be commit 9c4436a124f874ae240feaf590141d48c33a635f)
2007-10-10r11949: make sure we ask gensec to give us a session keyAndrew Tridgell1-0/+2
andrew, this answers your question on irc about whether the same session key mechanisms are used in smb2. They are - the RPC-LSA secret tests pass fine over ncacn_np on SMB2, which means the session key must be working (This used to be commit 91327885a2b6432ba20a8dd1370b632240d3263d)
2007-10-10r11941: fix cut'n'paste bugStefan Metzmacher1-1/+1
metze (This used to be commit fd77cfa49016d403c3f4c60c2422d41498438c17)
2007-10-10r11906: opcode 13 appears to be keepalive. Metze guessed this one :-)Andrew Tridgell3-1/+70
(This used to be commit afe2323dc10748b97e6b30dc0c783dbe04446d8c)
2007-10-10r11905: added SMB2_FLUSH as opcode 7. Thanks to metze and volker for helpAndrew Tridgell4-1/+80
brainstorming this one. (This used to be commit a969ad592ae4cd8f7c66b1df4763fdc70328c967)
2007-10-10r11903: added smb2_tdis() (opcode 4)Andrew Tridgell2-1/+69
(This used to be commit d606b45b5b6065b5d06024bcce00a23084a20eac)
2007-10-10r11901: added smb2_logoff() support (metze correctly guessed opcode 2 wasAndrew Tridgell3-1/+70
logoff) (This used to be commit 6884ce66f2881eba834b419370f74111852fe022)
2007-10-10r11895: - reorder some code to make it easier to follow, how the fields ↵Stefan Metzmacher4-10/+51
appear on the wire - add some comments to the header file, to represent the wire format metze (This used to be commit fa98f09f8b8829e66aa37cd947ab4f0cbb7b5476)
2007-10-10r11894: fixed SMB2 trans code for pipe_flagsAndrew Tridgell1-1/+1
(This used to be commit 02e3cb87c7673788e3861f33356a18b8d38d2d66)