1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
Commit Graph

26102 Commits

Author SHA1 Message Date
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
Günther Deschner
422af9a516 Make sure we are still able to join Windows 2008.
Guenther
(This used to be commit aa9c0f5877)
2008-03-01 16:14:39 +01:00
Volker Lendecke
c3cb59ae2b Revert "Add basic infrastructure for general async requests"
This reverts commit ae254cb61f.
(This used to be commit 030bef7f22)
2008-03-01 09:38:14 +01:00
Volker Lendecke
45a877f392 Revert "Add infrastructure to support async SMB requests"
This reverts commit f535682569.
(This used to be commit 5f53a62be8)
2008-03-01 09:38:14 +01:00
Volker Lendecke
a34d158880 Revert "Add async cli_pull support"
This reverts commit 844a163458.
(This used to be commit 5ab1cfda50)
2008-03-01 09:38:14 +01:00
Volker Lendecke
342859edfc Revert "Convert cli_read to use cli_pull"
This reverts commit 719527f55e.
(This used to be commit ac301fada2)
2008-03-01 09:38:14 +01:00
Volker Lendecke
1c02bee829 Revert "Fix warnings"
This reverts commit 9a966e5593.
(This used to be commit 413695e8d0)
2008-03-01 09:38:14 +01:00
Günther Deschner
87222d3f11 Fix init_registry_data for subkeyless top-level keys.
On a fresh install with no existing registry.tdb, make sure we are able to
create our initial top-level entries.

Michael, Volker, please check.

Guenther
(This used to be commit 956bc60206)
2008-03-01 01:02:15 +01:00
Volker Lendecke
5e0d86c407 Restore 3.0 behaviour with empty /etc/hosts
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 2bd3b7d474)
2008-02-29 22:39:45 +01:00
Volker Lendecke
45615d6283 Check the right variable for being NULL
(This used to be commit f2c6780379)
2008-02-29 22:39:45 +01:00
Günther Deschner
c5249935d4 Fix the build w/o ldap.
Guenther
(This used to be commit 5f592d030b)
2008-02-29 20:52:35 +01:00
Günther Deschner
72b8392f9c Add gp_get_machine_token().
Guenther
(This used to be commit 2f1bc7ddad)
2008-02-29 18:23:53 +01:00
Günther Deschner
f3efceace4 Revert "what a wurst."
That commit message was just too silly, this happens to me during interactive
rebase all the time...

This reverts commit ab687104c1.
(This used to be commit a3a1edab0d)
2008-02-29 18:19:06 +01:00
Günther Deschner
3afcd3ab83 what a wurst.
(This used to be commit ab687104c1)
2008-02-29 17:45:25 +01:00
Günther Deschner
485b070eb8 Add "registry" Group Policy extension.
Guenther
(This used to be commit 4e93301ca4)
2008-02-29 17:25:28 +01:00
Günther Deschner
41efa5ca45 Add Group Policy extension infrastructure.
Guenther
(This used to be commit 6d543b1a1a)
2008-02-29 17:07:57 +01:00
Jeremy Allison
ad38725f96 Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
(This used to be commit e7406822d3)
2008-02-29 06:56:06 -08:00
Jeremy Allison
6a7b6a1961 Patch to fix the "Invalid read of size 4" errors. Bug #3617.
Jeremy.
(This used to be commit fa12667ec2)
2008-02-29 06:55:33 -08:00
Günther Deschner
c613bd5d4e Add infrastructure for reading/storing Group Policy state and control data in the registry.
Guenther
(This used to be commit f673bbd300)
2008-02-29 15:48:14 +01:00
Volker Lendecke
b50eb31bb4 Fix warnings
(This used to be commit 9a966e5593)
2008-02-29 15:17:38 +01:00
Günther Deschner
f12770079b Pure cosmetics, trying to get my group policy diff smaller.
Gunther
(This used to be commit d7346e9360)
2008-02-29 14:53:13 +01:00
Jeremy Allison
6346ab79a6 Fix part of bug #3617 from valgrind trace.
"Invalid read of size 1" errors.
Jeremy.
(This used to be commit d954a4954b)
2008-02-29 05:51:09 -08:00
Michael Adam
e9c2515df0 Eliminate tons of build warnings on non-IPV6 system.
Michael
(This used to be commit ee4810099c)
2008-02-29 13:35:16 +01:00
Michael Adam
af3e746d9e Revert "make idl: Only compile idl files newer than the output to be generated."
This reverts commit 79c199d16e.

Revert this until pidl is capable of doing decent dependency tracking
itself (importing types from imported idls).

Michael
(This used to be commit 1fb69ad1f5)
2008-02-29 13:17:28 +01:00
Michael Adam
d40b891eb0 Revert "Add libnet_join.idl to the IDL files to be processed by "make idl"."
This reverts commit 9b47a73290.

libnet_join.idl should not be processed along with the other idl files
since it should not produce server and client code, just the header.

Michael
(This used to be commit 2967b29f23)
2008-02-29 13:17:28 +01:00
Andreas Schneider
1751b533f0 Rename the 'hidden' variable to 'administrative share'.
(This used to be commit eff3d3bad5)
2008-02-29 13:08:04 +01:00
Michael Adam
4688f2600b Fix linking of smbget when there is no shared library support.
smbget needs libwbclient.

Michael
(This used to be commit 78bc496ecf)
2008-02-29 12:38:29 +01:00
Günther Deschner
a068dc6ede Fill in WHATSNEW.txt.
Guenther
(This used to be commit 55e85ccd3e)
2008-02-29 11:43:54 +01:00
Volker Lendecke
695b6662ab Attempt to fix the build
(This used to be commit 364d87a5e4)
2008-02-29 10:17:35 +01:00
Stefan Metzmacher
85b7f90c47 configure: only build vfs_syncops if dirfd() is available
This hopefully fixes the build on HP-UX.

metze
(This used to be commit 5fb7533e37)
2008-02-29 09:58:37 +01:00
Stefan Metzmacher
8657066f3a configure: Remove lib/repdir.c and related stuff
It was only used in configure, but lib/replace already
has a much better version of it.

metze
(This used to be commit c9b60b75b4)
2008-02-29 09:48:24 +01:00
Volker Lendecke
18206a4cb5 Add vfs_aio_fork
This is used for two purposes:

First, I'm using it to test the async I/O code. In the forked process it is
pretty easy to delay a reply for a random amount of time. See the
BUILD_FARM_HACKS snippet.

Second, there are systems around that claim to have Posix AIO but which is
broken. This might be some help for those systems.

Also add tests how to pass file descriptors
(This used to be commit b0e52cecf2)
2008-02-29 09:47:53 +01:00
Michael Adam
bab27a2ff2 Fix creation of replacetort.
Forgot to git add Makefile.in before doing git commit --amend
in previous commit...

Michael
(This used to be commit 7cf645cdae)
2008-02-29 09:40:09 +01:00
Michael Adam
71f74cfc67 libreplace: add snprintf.c to test code for getifaddrs - needed on some systems.
Michael
(cherry picked from commit 0aff54a12e)
(This used to be commit 77b7d7c041)
2008-02-29 09:32:11 +01:00
Michael Adam
a73f4bc27f libreplace: ifdef out ip6 code if unsupported.
Michael
(cherry picked from commit 54cc0df4db)
(This used to be commit 1ff0b616a9)
2008-02-29 09:32:05 +01:00
Michael Adam
5827e84d88 libreplace: fix rep_freeifaddrs to not segfault on NULL input.
Michael
(cherry picked from commit 0cbb87453b)
(This used to be commit 34d906ef44)
2008-02-29 09:31:57 +01:00
Michael Adam
b6578dc7fe libreplace: fix silly crashbug in getifaddrs_test().
Michael
(cherry picked from commit 523626908d)
(This used to be commit 0906120a6e)
2008-02-29 09:31:50 +01:00
Michael Adam
3be85e76a8 libreplace: add missing newline in output of getifaddrs test.
Michael
(cherry picked from commit f8243cfc47)
(This used to be commit 3c1843f931)
2008-02-29 09:31:39 +01:00
Michael Adam
539c4df84b libreplace: add missing semicolon to getifaddrs.
Michael
(cherry picked from commit 29818a07de)
(This used to be commit 1d906d346e)
2008-02-29 09:31:29 +01:00
Michael Adam
39cae1d5b7 libreplace: try and fix rep_getifaddrs() for Tru64.
Don't fail when there is no address assigned to the interface.
Put NULL into the ifaddrs structure instead.

Michael
(cherry picked from commit ee170c85e0)
(This used to be commit 650cc1da4b)
2008-02-29 09:31:19 +01:00
Michael Adam
ca237a3ad3 libreplace: use the new getifaddrs test also for autoconf.
Michael
(cherry picked from commit a2a506ff0e)
(This used to be commit c5932414fd)
2008-02-29 09:31:02 +01:00
Michael Adam
d24f3b8a93 libreplace: add extended getifaddrs test that prints out the interfaces.
Michael

cherry-picked from libreplace-part of 9d2bab09aa
and adapted replacetort creation
(This used to be commit 52d79ad487)
2008-02-29 09:30:40 +01:00
Günther Deschner
808348a8ca Trying to fix libnetapi examples Makefile.in.
Guenther
(This used to be commit 405ef74d7e)
2008-02-29 02:49:27 +01:00
Günther Deschner
53d55794df libnetjoin: add fallback to level 24 samr setinfo so that libnet can join NT4.
Guenther
(This used to be commit bc2d3d5144)
2008-02-29 01:27:52 +01:00
Günther Deschner
29222fa551 libnetjoin: Trying to avoid confusion between acct_flags, acb_info and
access_desired.

Guenther
(This used to be commit 63894e5c93)
2008-02-29 01:25:45 +01:00
Günther Deschner
700438dbbd Fix samr querydispinfo w.r.t. lsa_AsciiStringLarge.
Thanks metze for the fix.

Guenther
(This used to be commit dcffb885bc)
2008-02-28 23:37:47 +01:00
Günther Deschner
de39bd20c1 Re-run make idl.
Guenther
(This used to be commit 7d88cb2e8d)
2008-02-28 23:37:18 +01:00
Stefan Metzmacher
c7d0b8f3ba samr.idl: windows uses lsa_AsciiStringLarge in QueryDisplayInfo
Tested with nt4 and w2k3.

metze
(This used to be commit 490d0c52bb)
2008-02-28 23:31:22 +01:00
Stefan Metzmacher
5e7cc85a12 lsa.idl: strlen_m*() also for the lsa_AsciiString* versions
We already did this before b994f899b4.

This is needed to handle NULL strings, where strlen() would crash...

Maybe we should add a strlen_a() and strlen_a_term() later...

metze
(This used to be commit c445a17a91)
2008-02-28 23:30:22 +01:00
Stefan Metzmacher
364ce40643 lsa.idl: use strlen_m_term() in lsa_StringLarge to support NULL strings
metze
(This used to be commit d98ac73122)
2008-02-28 23:30:07 +01:00