summaryrefslogtreecommitdiffstats
path: root/source3/libsmb/libsmb_server.c
Commit message (Collapse)AuthorAgeFilesLines
* s3:libsmb/libsmb_server: make use of cli_set_timeout()Stefan Metzmacher2011-08-021-1/+1
| | | | metze
* s3:libsmb/libsmb_*: make use of cli_state_capabilities()Stefan Metzmacher2011-08-021-1/+1
| | | | metze
* s3:libsmb_server: make use of cli_state_remote_name()Stefan Metzmacher2011-07-221-3/+6
| | | | metze
* s3:libsmb_server: pass NULL instead of a zero sockaddr_storageStefan Metzmacher2011-07-221-3/+1
| | | | metze
* s3:libsmb: move cli->cnum to cli->smb1.tid and hide it behind ↵Stefan Metzmacher2011-07-201-1/+1
| | | | | | cli_state_[g|s]et_tid() metze
* s3:libsmbclient: use cli_state_is_connected() in SMBC_check_server()Stefan Metzmacher2011-07-111-4/+4
| | | | metze
* s3:libsmb: remove use of cli_errstr() in SMBC_server_internal()Stefan Metzmacher2011-07-081-3/+8
| | | | metze
* s3-libsmb: Remove use of cli_errstr()Björn Baumbach2011-07-071-3/+8
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3: Fix Coverity ID 2583: RESOURCE_LEAKVolker Lendecke2011-06-191-1/+5
|
* s3-param Remove special case for global_myname(), rename to lp_netbios_name()Andrew Bartlett2011-06-091-1/+1
| | | | | | | | There is no reason this can't be a normal constant string in the loadparm system, now that we have lp_set_cmdline() to handle overrides correctly. Andrew Bartlett
* s3: Use cli_connect_nb in SMBC_server_internalVolker Lendecke2011-05-291-81/+20
|
* s3-libsmb: move protos to libsmb/proto.hGünther Deschner2011-05-061-0/+1
| | | | Guenther
* s3-libsmb: put namequery headers to nmblib.hGünther Deschner2011-03-301-0/+1
| | | | | | | We might find a better name for it and merge other namequery related things as well here... Guenther
* s3-rpc_client: Move client pipe functions to own header.Andreas Schneider2011-02-281-0/+1
|
* s3: Remove unused "retry" from cli_full_connectionVolker Lendecke2010-12-201-1/+1
|
* libcli/security Provide a common, top level libcli/security/security.hAndrew Bartlett2010-10-121-0/+1
| | | | | | | | | | | | | | This will reduce the noise from merges of the rest of the libcli/security code, without this commit changing what code is actually used. This includes (along with other security headers) dom_sid.h and security_token.h Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Oct 12 05:54:10 UTC 2010 on sn-devel-104
* s3-rpc_client: move protos to cli_lsarpc.hGünther Deschner2010-05-181-0/+1
| | | | Guenther
* s3: only include gen_ndr headers where needed.Günther Deschner2010-05-061-1/+1
| | | | | | | | | | | | | | | | | This shrinks include/includes.h.gch by the size of 7 MB and reduces build time as follows: ccache build w/o patch real 4m21.529s ccache build with patch real 3m6.402s pch build w/o patch real 4m26.318s pch build with patch real 3m6.932s Guenther
* s3-libsmbclient: Add smbc_setOptionUseCCache()Volker Lendecke2010-01-241-0/+7
| | | | | | | Can we enable this by default? This would be a change in behaviour, but this feature is just too cool for everyone to catch up in the apps. The patch would be
* s3: Convert cli_get_fs_attr_info to the async APIVolker Lendecke2009-11-211-2/+2
|
* Ensure all callers to the rpc_client/cli_pipe functions correctlyJeremy Allison2009-11-121-2/+2
| | | | | initialize return variables. Jeremy.
* Fix bug 6572 - libsmbclient: unable to access 'msdfs proxy' share.SATOH Fumiyasu2009-10-281-34/+109
|
* Simplify the logic.Jeremy Allison2009-10-221-5/+2
| | | | Jeremy.
* Fix bug 6829 - smbclient does not show special characters properly.Jeremy Allison2009-10-221-0/+11
| | | | | | | | | | | | All successful calls to cli_session_setup() *must* be followed by calls to cli_init_creds() to stash the credentials we successfully connected with. There were 2 codepaths where this was missing. This caused smbclient to be unable to open the \srvsvc pipe to do an RPC netserverenum, and cause it to fall back to a RAP netserverenum, which uses DOS codepage conversion rather than the full UCS2 of RPC, so the returned characters were not correct (unless the DOS codepage was set correctly). Phew. That was fun to track down :-). Jeremy.
* s3-secdesc: use SEC_FLAG_MAXIMUM_ALLOWED instead of SEC_RIGHTS_MAXIMUM_ALLOWED.Günther Deschner2009-04-211-1/+1
| | | | Guenther
* Make libsmbclient work with DFSBo Yang2009-02-201-1/+18
| | | | Signed-off-by: Derrell Lipman <derrell.lipman@unwireduniverse.com>
* Make cli_tcon_andx asyncVolker Lendecke2009-01-301-8/+9
|
* Determine case sensitivity based on file system attributes.Derrell Lipman2009-01-171-8/+63
| | | | | | | | | | - Most of the time, we can determine from the file system we're connecting to whether it supports case sensitivity. In those cases, we now set the internal case sensitivity flag automatically. For those cases where the request to retrieve file system attributes fails, we'll use the user-specified option value. Derrell
* Treat file names in POSIX-like case-sensitive fashion by defaultDerrell Lipman2009-01-161-0/+7
| | | | | | | | | | | | | | | *** THIS COMMIT CAUSES A CHANGE OF DEFAULT BEHAVIOR IN libsmbclient!!! *** - libsmbclient now calls cli_set_case_sensitive() for a new CLI. By default, it requests case-sensitive, but the old behavior of case-insensitive can be requested with smbc_setOptionCaseSensitive(context, False); The change of behavior is considered a bug fix, as it was previously possible to accidentally overwrite a file that had the same case-insensitive name but a different case-sensitive name as a previously-existing file, while creating a new file. Derrell
* Make cli_negprot return NTSTATUS instead of boolVolker Lendecke2008-12-191-1/+3
|
* s3: Change sockaddr util function names for consistencyTim Prouty2008-12-031-3/+3
| | | | Also eliminates name conflicts with OneFS system libraries
* fix nonempty blank linesVolker Lendecke2008-09-121-98/+98
| | | | (This used to be commit 3111428dd42abf856f646f2a3aa2ee78ff3d3702)
* Refactoring: Change calling conventions for cli_rpc_pipe_open_noauthVolker Lendecke2008-07-201-4/+3
| | | | | Pass in ndr_syntax_id instead of pipe_idx, return NTSTATUS (This used to be commit 9abc9dc4dc13bd3e42f98eff64eacf24b51f5779)
* Fix use of AuthDataWithContext capabilityDerrell Lipman2008-03-171-4/+18
| | | | | | | | | | | | | | | During my initial plans for, and the subsequent discussion of a more significant change to the API for libsmbclient, I had removed the AuthDataWithContext usage, in favor of a more generalized planned interface. When the API returned to its original state, I neglected to reinsert this code. Use of an authentication function with the context can be tested using examples/libsmbclient/testbrowse -C Derrell (This used to be commit 38eab68dfb2d8abe8ad00f5a86fc54c778d0d303)
* Check for NULL pointers before dereferencing them.Derrell Lipman2008-03-061-4/+4
| | | | (This used to be commit 6f65390cec218a6aac4370ee381f30439617dcec)
* Continued revamping of libsmbclient.Derrell Lipman2008-03-031-37/+38
| | | | | | | | | | | | | | - 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 (This used to be commit a67f96fbe9683b46c2149f7cb439d13f7f0e6ecd)
* Additional revamped libsmbclient documentationDerrell Lipman2008-03-011-133/+142
| | | | | | | | | - 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)
* Modified revamp of the libsmbclient interface.Derrell Lipman2008-03-011-16/+17
| | | | | | | | | | | | | | | | | | | | | 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)
* Initial revamp of the libsmbclient interface.Derrell Lipman2008-03-011-0/+675
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)