summaryrefslogtreecommitdiff
path: root/source3/libsmb
AgeCommit message (Collapse)AuthorFilesLines
2008-03-01Return NULL, not 0, from a function which returns a pointer.Derrell Lipman2-3/+2
(This used to be commit 23cb9c49e3724cecaa66655ef64c3111bf14c552)
2008-03-01Additional revamped libsmbclient documentationDerrell Lipman11-2050/+2232
- Ensured that all public functions have documentation in libsmbclient.h - Reformatted for "proper" indentation - Re-added temporarily-disabled alternate authentication function capability Derrell (This used to be commit 64b7150d92849a1e1e2416b9dcc12fae8d6bea99)
2008-03-01Modified revamp of the libsmbclient interface.Derrell Lipman9-227/+272
Given the tacit (if that) approval by some people, and clear disapproval by others for my proposed clean-up and reorganization of libsmbclient, I've come up with a slightly different approach. This commit changes back to the original libsmbclient.h SMBCCTX structure which will maintain ABI compatibility. I retain, here, the setter and getter functions which all new code should use. Older programs already compiled should continue to work fine. Older programs being recompiled will encounter compile-time errors (intentionally!) so that the code can be corrected to use the setter/getter interfaces. Although this doesn't clean up the interface in the way I had wanted, the code reorganization and requirement for new programs to use the setters and getters allows future progress to be made on libsmbclient without further muddying up the interface, while retaining the ABI compatibility that was the big issue causing disapproval. I hope that this compromise is adequate. Derrell (This used to be commit 56429a3d60b2a48963342f6340b3c01469a892c6)
2008-03-01Initial revamp of the libsmbclient interface.Derrell Lipman12-7397/+8385
The libsmbclient interface has suffered from difficulty of improvement and feature enrichment without causing ABI breakage. Although there were a number of issues, the primary ones were: (a) the user of the library would manually manipulate the context structure members, meaning that nothing in the context structure could change other than adding stuff at the end; (b) there were three methods of setting options: setting bits in a flags field within the context structure, setting explicit options variables within an options structure in the context structure, and by calling the smbc_option_set() function; (c) the authentication callback did not traditionally provide enough information to the callee which required adding an option for a callback with a different signature, and now there are requests for even more information at the callback, requiring yet a third signature and option to set it (if we implement that feature). This commit provides a reorganization of the code which fixes (a) and (b). The context structure is now entirely opaque, and there are setter and getter functions for manipulating it. This makes maintaining ABI consistency much, much easier. Additionally, the options setting/getting has been unified into a single mechanism using smbc_option_set() and smbc_option_get(). Yet to be completed is a refactoring of the authentication callback (c). The test programs in examples/libsmbclient have been modified (if necessary; some applications require no changes at all) for the new API and a few have been minimally tested. Derrell (This used to be commit d4b4bae8ded824d06ad5ab0e219f71187ee5c771)
2008-03-01Revert "Add infrastructure to support async SMB requests"Volker Lendecke1-483/+0
This reverts commit f5356825698a02df2d400b51dd95d1f857c83e81. (This used to be commit 5f53a62be8a21b8d92ac44b18d202882500356e8)
2008-03-01Revert "Add async cli_pull support"Volker Lendecke1-425/+0
This reverts commit 844a163458c7585e4306a21ffdae5d08e03d6e4d. (This used to be commit 5ab1cfda500de07ff3c712442ab2fc74eecc8886)
2008-03-01Revert "Convert cli_read to use cli_pull"Volker Lendecke1-15/+163
This reverts commit 719527f55e88f0c5fdceda5c807475aba299c79f. (This used to be commit ac301fada257e2d3b50148109a3d44fa1421b0b4)
2008-02-29Restore 3.0 behaviour with empty /etc/hostsVolker Lendecke1-2/+5
Jeremy, in 3.0 we allowed get_mydnsdomname and get_mydnsfullname to fail without filling in anything useful. Worked fine. Without this patch and a empty /etc/hosts and no DNS configured, session setup would return NT_STATUS_BAD_NETWORK_NAME. This is confusing at best, BAD_NETWORK_NAME afaik is only ever returned from tcon normally. This restores the 3.0 behaviour. Comments? Volker (This used to be commit 2bd3b7d474768f842921945d283eac10da2a1684)
2008-02-29Check the right variable for being NULLVolker Lendecke1-1/+1
(This used to be commit f2c67803792f1fd3929e922c1f626f8247e08992)
2008-02-28Fix memleak in netsamlogon_cache_get().Günther Deschner1-0/+1
Guenther (This used to be commit b736c77dc6c36dcdb601903fadf0ef7f163052a3)
2008-02-28Convert cli_read to use cli_pullVolker Lendecke1-163/+15
(This used to be commit 719527f55e88f0c5fdceda5c807475aba299c79f)
2008-02-28Add async cli_pull supportVolker Lendecke1-0/+425
This is the big (and potentially controversial) one. It took a phone call to explain to metze what is going on inside cli_pull_read_done, but I would really like everybody to understand this function. It is a very good and reasonably complex example of async programming. If we want more asynchronism in s3, this is what we will have to deal with :-) Make use of it in the smbclient "get" command. Volker (This used to be commit 844a163458c7585e4306a21ffdae5d08e03d6e4d)
2008-02-28Add infrastructure to support async SMB requestsVolker Lendecke1-0/+483
(This used to be commit f5356825698a02df2d400b51dd95d1f857c83e81)
2008-02-28Fix the build - don't use SMB_TRANS_ENC_GSS withoutJeremy Allison1-6/+2
KRB5. Jeremy. (This used to be commit d16c295642c3df49be02440427ded0cd9b4179f5)
2008-02-28Add cli_setup_packet_bufVolker Lendecke1-22/+32
This is == cli_setup_packet but takes an explicit buffer argument (This used to be commit f64b46dc278899c3449cfd3dbb614aadcf5614d3)
2008-02-28Make cli_struct a talloc parentVolker Lendecke1-2/+2
(This used to be commit e69244a5c8c7c6b7c1897adc4b4b1cfdfc7a7999)
2008-02-28Add WERR_TIME_SKEW to werror mapping tables.Günther Deschner1-0/+2
Guenther (This used to be commit 74767be627d48eb1a8deea3784847159b536a0fb)
2008-02-28Add explicit buf arg to cli_check_sign_macVolker Lendecke3-4/+4
(This used to be commit ffc1c8cc03e6bad40ed2be91392074b4f038a1bf)
2008-02-28Add explicit buf arg to cli_encrypt_message and cli_calculate_sign_macVolker Lendecke4-8/+9
(This used to be commit db6ae9ed2326e6cd68475375d049084cf1d5a98c)
2008-02-28Let dsgetdcname() return a struct netr_DsRGetDCNameInfo.Günther Deschner1-77/+67
Guenther (This used to be commit b1a4b21f8c35dc23e5c986ebe44d3806055eb39b)
2008-02-28Fix from Guenter Kukkukk <linux@kukkukk.com> to fix listing againstJeremy Allison2-1/+27
OS/2 servers. OS/2 returns eclass == ERRDOS && ecode == ERRnofiles for a zero entry directory listing. Jeremy. (This used to be commit b34da627053581a9584367e177566d4a2cef7e82)
2008-02-27Add my copyright.Günther Deschner1-0/+1
Guenther (This used to be commit d078a8757182d84dfd3307a2e1b751cf173aaa97)
2008-02-27Use new LSA_POLICY defines in lsa rpc server code and other places.Günther Deschner1-1/+1
Guenther (This used to be commit 58cca9faf9db506bd2f6eab4a99ef85153797ab2)
2008-02-26add smbc_ftruncate() to emulate POSIX ftruncate()Derrell Lipman2-0/+81
(This used to be commit 6f5051b9c1405ab1dc3e697419ceedb3acac46d8)
2008-02-26add a function to truncate a file to a specified sizeDerrell Lipman1-0/+49
(This used to be commit 7e5752812d6d9e3bcf9a545cbdcf3afe2175dbc4)
2008-02-25Fix some warningsVolker Lendecke1-2/+1
warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result (This used to be commit ad37b7b0aee265a3e4d8b7552610f4b9a105434d)
2008-02-23Fix typoVolker Lendecke1-2/+2
(This used to be commit 621db68f32f7007de8b2c4d7cf604a5778725615)
2008-02-23Fix a C++ warningVolker Lendecke1-1/+2
(This used to be commit ac027a9b2e84d319f961ac0e84654a0e48920138)
2008-02-20Fix memory leaks on error pathTim Potter1-1/+8
(This used to be commit 47dd0700b4320bf5ac9a80e71ae82d82d4554e6a)
2008-02-17Remove unused creds_client_check and creds_client_step.Günther Deschner1-23/+0
Guenther (This used to be commit 1dcb32424d16cff968a8713352c93c48dec58674)
2008-02-17Use new IDL based PAC structures in clikrb5.cGünther Deschner1-7/+7
Guenther (This used to be commit 3b0135d57e1e70175a5eec49b603a2e5f700c770)
2008-02-17Use netr_SamInfo3 in samlogon cache and use ndr functions for storing the blob.Günther Deschner1-98/+119
Guenther (This used to be commit bf860ae1ac6765b1eb6e2ca9b667b19b4e661fda)
2008-02-16Use rpccli_netr_ServerPasswordSet in "just_change_the_password()".Günther Deschner1-1/+26
Guenther (This used to be commit 33f91c894488687a42500e751eb9016d99d9129c)
2008-02-16Remove unused creds_server_check and creds_server_step.Günther Deschner1-41/+0
Guenther (This used to be commit 2fb73a3545634982d17d3823cb629f06c5779fc0)
2008-02-15Replace DOM_CHAL with "struct netr_Credential" where we can right now.Günther Deschner1-15/+17
This allows to remove some more old netlogon client calls. Guenther (This used to be commit c0b1a876583230a5130f5df1965d6c742961bcdc)
2008-02-15Add netlogon_creds_server_check and netlogon_creds_server_step.Günther Deschner1-0/+45
Guenther (This used to be commit ea0bf74918e7b009439452ea14ed68b0ce620787)
2008-02-15Add netlogon_creds_client_check and netlogon_creds_client_step.Günther Deschner1-0/+31
Guenther (This used to be commit 41d33a2507e3fae7837bb8e42b1ac30cc31c31dc)
2008-02-14Allow the mechOID to be written separately.Jeremy Allison1-2/+4
Jeremy. (This used to be commit e3e08c6e7d270e1be7a9d3042b1f36f5a291f90a)
2008-02-13Use rpccli_lsa_EnumTrustDom all over the place.Günther Deschner1-2/+26
Guenther (This used to be commit a25e7ffbca9c2c97dd36b0596e7cb38a72aaf9d9)
2008-02-11Add a missing returnVolker Lendecke1-1/+1
If I'm not completely blind, we should return here. Not doing it here seems not to be a major flaw, as far as I can see we're only missing the error code. This might account for some of the very unhelpful NT_STATUS_UNSUCCESSFUL error messages people see during joins. All with stake in Samba client, please check! (This used to be commit eadd15c9363a57c214ede3c489057646baca48f8)
2008-02-08We don't need the extra null termination - we'veJeremy Allison1-9/+4
already got this in the cli_receive_trans calls. Jeremy. (This used to be commit 99424bba7bb45b05d970bab4a5e93f2cb636fcbb)
2008-02-08Make clilist work again with OS/2 (kukks help!).Jeremy Allison1-1/+17
Jeremy. (This used to be commit 2e27309401faa554620886b0e369db9d9c08e4fd)
2008-02-08From kukks - prevent crashes if finfo.name == NULL.Jeremy Allison1-0/+11
Jeremy. (This used to be commit 101f194795f87c709abfdfbcde710131a88f9d20)
2008-02-08Try and fix length and finfo calls for older clients. WorkingJeremy Allison1-7/+21
on issues reported by kukks. Jeremy. (This used to be commit dcd77dd4f480db3273a56c5740b6e5d78f8be4a9)
2008-02-08Fix bug reported on IRC enumerating shares with OS/2.Jeremy Allison1-3/+4
Report and fix from kukks (thanks once again !). Jeremy. (This used to be commit 3ca58b792fb10ff2a4c25283c587f8270ed82d74)
2008-02-08Fix some typos.Karolin Seeger1-1/+1
Karolin (This used to be commit 2bec0a1fb7857e6fb8ec15e5f597b2d4125f105b)
2008-02-02Convert receive_smb_raw to NTSTATUSVolker Lendecke1-4/+25
(This used to be commit ba771bd858602452a9e58c3aab1336f2ac8a25ef)
2008-02-02read_socket_with_timeout_ntstatus->read_socket_with_timeoutVolker Lendecke1-1/+1
(This used to be commit 90554799afa42855c3e7b87dc632e67f0952f988)
2008-02-02Get rid of read_socket_with_timeoutVolker Lendecke1-2/+22
(This used to be commit f9c8ac83ff42137d2101d3bb17e5dcc3c3d70a8f)
2008-01-29Eliminate remote tree of dsgetdcname (which will happen in libnetapi then).Günther Deschner1-100/+14
Guenther (This used to be commit fd490d236b1fb73a75c457b75128c9b98719418f)