1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
samba-mirror/source3
Derrell Lipman 257b7b0929 Initial revamp of the libsmbclient interface.
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 d4b4bae8de)
2008-03-01 20:47:22 -05:00
..
auth Use netr_SamInfo3 in remaining places. 2008-02-17 02:12:01 +01:00
client Revert "Add async cli_pull support" 2008-03-01 09:38:14 +01:00
codepages
exports Create symbols to export in libtdb dynamically from tdb.h. 2008-02-14 14:17:57 +01:00
groupdb
include Initial revamp of the libsmbclient interface. 2008-03-01 20:47:22 -05:00
iniparser
iniparser_build
intl Fix some warnings 2008-02-25 16:09:26 +01:00
lib Revert "Add basic infrastructure for general async requests" 2008-03-01 09:38:14 +01:00
libaddns
libads Add my copyright. 2008-02-27 19:38:48 +01:00
libgpo Fix the build w/o ldap. 2008-02-29 20:52:35 +01:00
libnet Make sure we are still able to join Windows 2008. 2008-03-01 16:14:39 +01:00
librpc Re-run make idl. 2008-02-28 23:37:18 +01:00
libsmb Initial revamp of the libsmbclient interface. 2008-03-01 20:47:22 -05:00
locking
m4 configure: put swat-part of config into m4-include file of its own. 2008-02-26 13:56:12 +01:00
modules Add vfs_aio_fork 2008-02-29 09:47:53 +01:00
nmbd Patch to fix the "Invalid read of size 4" errors. Bug #3617. 2008-02-29 06:55:33 -08:00
nsswitch winbind: use a struct element for WBFLAG_PAM_UNIX_NAME 2008-02-28 23:00:42 +01:00
pam_smbpass
param Rename the 'hidden' variable to 'administrative share'. 2008-02-29 13:08:04 +01:00
passdb Fix some warnings 2008-02-25 16:09:26 +01:00
pkgconfig
po
popt
printing Fix some typos. 2008-02-08 10:05:32 +01:00
profile
registry Fix init_registry_data for subkeyless top-level keys. 2008-03-01 01:02:15 +01:00
rpc_client Fix samr querydispinfo w.r.t. lsa_AsciiStringLarge. 2008-02-28 23:37:47 +01:00
rpc_parse Remove unused marshalling for SVCCTL_SET_SERVICE_SEC. 2008-02-28 00:43:31 +01:00
rpc_server Rename the 'hidden' variable to 'administrative share'. 2008-02-29 13:08:04 +01:00
rpcclient Add my copyright. 2008-02-27 19:38:48 +01:00
script Revert "make idl: Only compile idl files newer than the output to be generated." 2008-02-29 13:17:28 +01:00
services Fix segfault in svcctl_get_secdesc(): prevent premature TALLOC_FREE. 2008-02-18 17:41:19 +01:00
smbd Fix inotify detection 2008-02-25 12:58:56 +01:00
stf
tests configure: Remove lib/repdir.c and related stuff 2008-02-29 09:48:24 +01:00
torture Remove a useless variable. 2008-02-28 12:20:43 +01:00
utils winbind: use a struct element for WBFLAG_PAM_UNIX_NAME 2008-02-28 23:00:42 +01:00
web Always pass a TALLOC_CTX to str_list_make and str_list_copy 2008-02-04 20:57:49 +01:00
winbindd winbind: use a struct element for WBFLAG_PAM_UNIX_NAME 2008-02-28 23:00:42 +01:00
.dmallocrc
.indent.pro
autogen.sh
change-log
config.guess
config.sub
configure.developer
configure.in Add "registry" Group Policy extension. 2008-02-29 17:25:28 +01:00
Doxyfile
dynconfig.c popt: Use SMB_CONF_PATH environment var if no other configfile is set. 2008-02-04 17:41:23 +01:00
install-sh
library-versions.in Add support for building and using shared and static libtdb library. 2008-02-14 14:17:57 +01:00
mainpage.dox
Makefile.in Initial revamp of the libsmbclient interface. 2008-03-01 20:47:22 -05:00
smbadduser.in
VERSION