summaryrefslogtreecommitdiffstats
path: root/source/libsmb
Commit message (Collapse)AuthorAgeFilesLines
* Continued revamping of libsmbclient.Derrell Lipman2008-03-0410-1043/+1091
| | | | | | | | | | | | | | - James suggested using gcc's "deprecated" attribute to mark the context structure fields to generate warnings. This creates a scenario with the best of all worlds. I'm able to move to an organization that more easily allows future enhancements, while avoiding any mandatory changes by applications. Thanks, James! - Updated WHATSNEW.txt so that it accurately reflects the current state of affairs. Derrell (cherry picked from commit a67f96fbe9683b46c2149f7cb439d13f7f0e6ecd)
* Return NULL, not 0, from a function which returns a pointer.Derrell Lipman2008-03-042-3/+2
| | | | (cherry picked from commit 23cb9c49e3724cecaa66655ef64c3111bf14c552)
* Additional revamped libsmbclient documentationDerrell Lipman2008-03-0411-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 (cherry picked from commit 64b7150d92849a1e1e2416b9dcc12fae8d6bea99)
* Modified revamp of the libsmbclient interface.Derrell Lipman2008-03-049-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 (cherry picked from commit 56429a3d60b2a48963342f6340b3c01469a892c6)
* Initial revamp of the libsmbclient interface.Derrell Lipman2008-03-0412-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 (cherry picked from commit d4b4bae8ded824d06ad5ab0e219f71187ee5c771)
* Restore 3.0 behaviour with empty /etc/hostsVolker Lendecke2008-03-031-3/+6
| | | | | | | | | | | | | | 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
* Revert "Add infrastructure to support async SMB requests"Volker Lendecke2008-03-031-483/+0
| | | | | This reverts commit f5356825698a02df2d400b51dd95d1f857c83e81. (cherry picked from commit 5f53a62be8a21b8d92ac44b18d202882500356e8)
* Revert "Add async cli_pull support"Volker Lendecke2008-03-031-425/+0
| | | | | This reverts commit 844a163458c7585e4306a21ffdae5d08e03d6e4d. (cherry picked from commit 5ab1cfda500de07ff3c712442ab2fc74eecc8886)
* Revert "Convert cli_read to use cli_pull"Volker Lendecke2008-03-031-15/+163
| | | | | This reverts commit 719527f55e88f0c5fdceda5c807475aba299c79f. (cherry picked from commit ac301fada257e2d3b50148109a3d44fa1421b0b4)
* Fix memleak in netsamlogon_cache_get().Günther Deschner2008-02-281-0/+1
| | | | Guenther
* Convert cli_read to use cli_pullVolker Lendecke2008-02-281-163/+15
|
* Add async cli_pull supportVolker Lendecke2008-02-281-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
* Add infrastructure to support async SMB requestsVolker Lendecke2008-02-281-0/+483
|
* Fix the build - don't use SMB_TRANS_ENC_GSS withoutJeremy Allison2008-02-281-6/+2
| | | | | KRB5. Jeremy.
* Add cli_setup_packet_bufVolker Lendecke2008-02-281-22/+32
| | | | This is == cli_setup_packet but takes an explicit buffer argument
* Make cli_struct a talloc parentVolker Lendecke2008-02-281-2/+2
|
* Add WERR_TIME_SKEW to werror mapping tables.Günther Deschner2008-02-281-0/+2
| | | | Guenther
* Add explicit buf arg to cli_check_sign_macVolker Lendecke2008-02-283-4/+4
|
* Add explicit buf arg to cli_encrypt_message and cli_calculate_sign_macVolker Lendecke2008-02-284-8/+9
|
* Let dsgetdcname() return a struct netr_DsRGetDCNameInfo.Günther Deschner2008-02-281-77/+67
| | | | Guenther
* Fix from Guenter Kukkukk <linux@kukkukk.com> to fix listing againstJeremy Allison2008-02-282-1/+27
| | | | | | OS/2 servers. OS/2 returns eclass == ERRDOS && ecode == ERRnofiles for a zero entry directory listing. Jeremy.
* Add my copyright.Günther Deschner2008-02-271-0/+1
| | | | Guenther
* Use new LSA_POLICY defines in lsa rpc server code and other places.Günther Deschner2008-02-271-1/+1
| | | | Guenther
* add smbc_ftruncate() to emulate POSIX ftruncate()Derrell Lipman2008-02-262-0/+81
|
* add a function to truncate a file to a specified sizeDerrell Lipman2008-02-261-0/+49
|
* Fix some warningsVolker Lendecke2008-02-251-2/+1
| | | | warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result
* Fix typoVolker Lendecke2008-02-231-2/+2
|
* Fix a C++ warningVolker Lendecke2008-02-231-1/+2
|
* Fix memory leaks on error pathTim Potter2008-02-201-1/+8
|
* Remove unused creds_client_check and creds_client_step.Günther Deschner2008-02-171-23/+0
| | | | Guenther
* Use new IDL based PAC structures in clikrb5.cGünther Deschner2008-02-171-7/+7
| | | | Guenther
* Use netr_SamInfo3 in samlogon cache and use ndr functions for storing the blob.Günther Deschner2008-02-171-98/+119
| | | | Guenther
* Use rpccli_netr_ServerPasswordSet in "just_change_the_password()".Günther Deschner2008-02-161-1/+26
| | | | Guenther
* Remove unused creds_server_check and creds_server_step.Günther Deschner2008-02-161-41/+0
| | | | Guenther
* Replace DOM_CHAL with "struct netr_Credential" where we can right now.Günther Deschner2008-02-151-15/+17
| | | | | | This allows to remove some more old netlogon client calls. Guenther
* Add netlogon_creds_server_check and netlogon_creds_server_step.Günther Deschner2008-02-151-0/+45
| | | | Guenther
* Add netlogon_creds_client_check and netlogon_creds_client_step.Günther Deschner2008-02-151-0/+31
| | | | Guenther
* Allow the mechOID to be written separately.Jeremy Allison2008-02-141-2/+4
| | | | Jeremy.
* Use rpccli_lsa_EnumTrustDom all over the place.Günther Deschner2008-02-131-2/+26
| | | | Guenther
* Add a missing returnVolker Lendecke2008-02-111-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!
* We don't need the extra null termination - we'veJeremy Allison2008-02-081-9/+4
| | | | | already got this in the cli_receive_trans calls. Jeremy.
* Make clilist work again with OS/2 (kukks help!).Jeremy Allison2008-02-081-1/+17
| | | | Jeremy.
* From kukks - prevent crashes if finfo.name == NULL.Jeremy Allison2008-02-081-0/+11
| | | | Jeremy.
* Try and fix length and finfo calls for older clients. WorkingJeremy Allison2008-02-081-7/+21
| | | | | on issues reported by kukks. Jeremy.
* Fix bug reported on IRC enumerating shares with OS/2.Jeremy Allison2008-02-081-3/+4
| | | | | Report and fix from kukks (thanks once again !). Jeremy.
* Fix some typos.Karolin Seeger2008-02-081-1/+1
| | | | Karolin
* Convert receive_smb_raw to NTSTATUSVolker Lendecke2008-02-021-4/+25
|
* read_socket_with_timeout_ntstatus->read_socket_with_timeoutVolker Lendecke2008-02-021-1/+1
|
* Get rid of read_socket_with_timeoutVolker Lendecke2008-02-021-2/+22
|
* Eliminate remote tree of dsgetdcname (which will happen in libnetapi then).Günther Deschner2008-01-291-100/+14
| | | | Guenther