13 years agoUpdate release date.
Karolin Seeger [Tue, 4 Mar 2008 08:53:37 +0000 (09:53 +0100)]
Update release date.

(This used to be commit 491535d0911c64869055b85a210c2ef076086b83)

13 years agoFix init_registry_data for subkeyless top-level keys.
Günther Deschner [Fri, 29 Feb 2008 23:32:36 +0000 (00:32 +0100)]
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.

(cherry picked from commit 956bc602062825493e1c357e2388fee1e5514b50)
(This used to be commit bf03cba57d3cfe07b8d848aa3b5a165bb198b7aa)

13 years agouse constant name less likely to cause conflict
Derrell Lipman [Tue, 4 Mar 2008 03:56:32 +0000 (22:56 -0500)]
use constant name less likely to cause conflict
(cherry picked from commit fd18b01016d1dc4b08983975353e62084fdc323c)
(This used to be commit 4279cc49ff73d4503df2fd0c6176c3f90f67066c)

13 years agoMissed a few 'deprecated' markers
Derrell Lipman [Mon, 3 Mar 2008 23:25:49 +0000 (18:25 -0500)]
Missed a few 'deprecated' markers
(cherry picked from commit 76ba37ac46b4a77fe228ca90635fa19140541ccd)
(This used to be commit 7c2a0be9cb2916c07074d8d56d698721b02bcfc3)

13 years agoContinued revamping of libsmbclient.
Derrell Lipman [Mon, 3 Mar 2008 23:13:33 +0000 (18:13 -0500)]
Continued revamping of libsmbclient.

- 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

(cherry picked from commit a67f96fbe9683b46c2149f7cb439d13f7f0e6ecd)
(This used to be commit 046653403fadfa2d42decce7048eca6321b321c6)

13 years agoRemove use of deprecated function
Derrell Lipman [Sun, 2 Mar 2008 21:21:48 +0000 (16:21 -0500)]
Remove use of deprecated function
(cherry picked from commit 93580bce833453ba512ee436d6dfdbdcd2c53777)
(This used to be commit 0621dfe10f1fd3d8ce04a039d2d44d6c67407746)

13 years agofixed missing white space
Derrell Lipman [Sun, 2 Mar 2008 21:13:25 +0000 (16:13 -0500)]
fixed missing white space
(cherry picked from commit 71e86f13b0ace3841c6712084728c79db74ff803)
(This used to be commit 8bf707c13794539029be2229f0c587b713b4fd20)

13 years agoUpdate WHATSNEW for libsmbclient changes
Derrell Lipman [Sun, 2 Mar 2008 04:08:19 +0000 (23:08 -0500)]
Update WHATSNEW for libsmbclient changes
(cherry picked from commit f07407a32e178a47c8f9b3e3703aa5a20f0a4f06)
(This used to be commit 938c6aef24c696be9bd247e43c7c5ec1f792dbd6)

13 years agoReturn NULL, not 0, from a function which returns a pointer.
Derrell Lipman [Sun, 2 Mar 2008 02:19:52 +0000 (21:19 -0500)]
Return NULL, not 0, from a function which returns a pointer.
(cherry picked from commit 23cb9c49e3724cecaa66655ef64c3111bf14c552)
(This used to be commit 9b4bd6473ed3f93c1bbfae3f82d0a100e832df48)

13 years agochange variable name from f to fn for function pointers
Derrell Lipman [Sun, 2 Mar 2008 02:19:15 +0000 (21:19 -0500)]
change variable name from f to fn for function pointers
(cherry picked from commit 1fd65359f6cd07539cfe43146ac367a48708a678)
(This used to be commit b7f10bd31dec8047ea996c4738a6db5535c9261a)

13 years agoComment was in wrong place
Derrell Lipman [Sun, 2 Mar 2008 01:56:54 +0000 (20:56 -0500)]
Comment was in wrong place
(cherry picked from commit dec70fa3c0424c148016cc667a3c159e16d8a944)
(This used to be commit eb4d6dda1091199af7e62fb584525deb382978e2)

13 years agoMark smbc_option_{get,set} as deprecated
Derrell Lipman [Sun, 2 Mar 2008 01:55:21 +0000 (20:55 -0500)]
Mark smbc_option_{get,set} as deprecated
(cherry picked from commit a8b4b773d4647f28e7b92c5968469721d34eb550)
(This used to be commit 7b05e264d58c65af37af457947548611fc77edce)

13 years agoAdditional revamped libsmbclient documentation
Derrell Lipman [Sun, 2 Mar 2008 01:44:21 +0000 (20:44 -0500)]
Additional revamped libsmbclient documentation

- Ensured that all public functions have documentation in libsmbclient.h
- Reformatted for "proper" indentation
- Re-added temporarily-disabled alternate authentication function capability

(cherry picked from commit 64b7150d92849a1e1e2416b9dcc12fae8d6bea99)
(This used to be commit dca8a612e94095e38df50f0fe567c75ceb8124fe)

13 years agoModified revamp of the libsmbclient interface.
Derrell Lipman [Fri, 29 Feb 2008 18:34:35 +0000 (13:34 -0500)]
Modified revamp of the libsmbclient interface.

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

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.

(cherry picked from commit 56429a3d60b2a48963342f6340b3c01469a892c6)
(This used to be commit 7bc53f57dcb1c3bb80cb20796ebfc743c22a76e3)

13 years agoInitial revamp of the libsmbclient interface.
Derrell Lipman [Thu, 28 Feb 2008 16:23:20 +0000 (11:23 -0500)]
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.

(cherry picked from commit d4b4bae8ded824d06ad5ab0e219f71187ee5c771)
(This used to be commit 59292c0da8880afd7bac82f6a5bba009f3827ea0)

13 years agoZero out the out policy handler in lsa_Close
Volker Lendecke [Mon, 3 Mar 2008 17:12:26 +0000 (18:12 +0100)]
Zero out the out policy handler in lsa_Close

... after a REALLY long session staring at sniffs we can now join XP to
v3-2-test again...

Apparently not doing this makes XP keep an internal handle to LSA open which
confuses the hell out of it.

Karolin, this needs to be in v3-2-stable :-)

(cherry picked from commit 2c42fc21d8bede226e411623aecd69038477373b)
(This used to be commit a94313e06a030e1a1afff18c797e700eb6b25248)

13 years agoRestore 3.0 behaviour with empty /etc/hosts
Volker Lendecke [Fri, 29 Feb 2008 21:38:10 +0000 (22:38 +0100)]
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.


(This used to be commit 4170259e5f83c281966a80916e4ece6937e08988)

13 years agoRevert "Add basic infrastructure for general async requests"
Volker Lendecke [Sat, 1 Mar 2008 08:26:43 +0000 (09:26 +0100)]
Revert "Add basic infrastructure for general async requests"

This reverts commit ae254cb61f4b9331755848c47ebc34e90dd80390.
(cherry picked from commit 030bef7f22f7a73466204b7860f397dbca9f2ab0)
(This used to be commit 575b829b390f7f07138305adc2988918eda95ce1)

13 years agoRevert "Add infrastructure to support async SMB requests"
Volker Lendecke [Sat, 1 Mar 2008 08:26:27 +0000 (09:26 +0100)]
Revert "Add infrastructure to support async SMB requests"

This reverts commit f5356825698a02df2d400b51dd95d1f857c83e81.
(cherry picked from commit 5f53a62be8a21b8d92ac44b18d202882500356e8)
(This used to be commit 8beead9c936038365f28467e527b2c066e3a5440)

13 years agoRevert "Add async cli_pull support"
Volker Lendecke [Sat, 1 Mar 2008 08:26:18 +0000 (09:26 +0100)]
Revert "Add async cli_pull support"

This reverts commit 844a163458c7585e4306a21ffdae5d08e03d6e4d.
(cherry picked from commit 5ab1cfda500de07ff3c712442ab2fc74eecc8886)
(This used to be commit 7821066d4ff4a8503a596ab342a2a84ed9a9f8b9)

13 years agoRevert "Convert cli_read to use cli_pull"
Volker Lendecke [Sat, 1 Mar 2008 08:26:06 +0000 (09:26 +0100)]
Revert "Convert cli_read to use cli_pull"

This reverts commit 719527f55e88f0c5fdceda5c807475aba299c79f.
(cherry picked from commit ac301fada257e2d3b50148109a3d44fa1421b0b4)
(This used to be commit 1bfc4404e7f7314111f979bd09321e39be76bf15)

13 years agoMake sure we are still able to join Windows 2008.
Günther Deschner [Sat, 1 Mar 2008 15:13:25 +0000 (16:13 +0100)]
Make sure we are still able to join Windows 2008.

(cherry picked from commit aa9c0f587718f4d647e87b9662acbedba042b9cb)
(This used to be commit 851b53895807835fc9e6a4a1b3a2b4739ca7c63f)

13 years agoUpdate WHATSNEW.
Karolin Seeger [Fri, 29 Feb 2008 16:51:00 +0000 (17:51 +0100)]
Parameter 'hidden' has been renamed to 'administrative share'.

(This used to be commit f2712698241dc7a0c75378fb8fd747b923d3248f)

13 years agoFix release script.
Karolin Seeger [Fri, 29 Feb 2008 15:34:07 +0000 (16:34 +0100)]
Fix release script.
(This used to be commit 400609bce5cd1ce7e3330b9f00bb1f08de9d3a12)

13 years agoPrepare for release 3.2.0pre2
Karolin Seeger [Fri, 29 Feb 2008 15:15:39 +0000 (16:15 +0100)]
Prepare for release 3.2.0pre2

(This used to be commit efdf6faba161cae9d4a0a2c693ea0b261dc73ce2)

13 years agoPatch to fix the "Invalid read of size 4" errors. Bug #3617.
Jeremy Allison [Fri, 29 Feb 2008 14:55:33 +0000 (06:55 -0800)]
Patch to fix the "Invalid read of size 4" errors. Bug #3617.
(cherry picked from commit fa12667ec284fdda45b79cbf6bf548ab0faae34f)
(This used to be commit 5f00c79ac22ecfa846eebd910e7c25d326595f8e)

13 years agoRename the 'hidden' variable to 'administrative share'.
Andreas Schneider [Thu, 28 Feb 2008 13:06:11 +0000 (14:06 +0100)]
Rename the 'hidden' variable to 'administrative share'.
(cherry picked from commit eff3d3bad5a8860b99375cc0be9dc24f3679e416)
(This used to be commit 39f712048d7408ba91301b59752f2e87e894a3f0)

13 years agoFix linking of smbget when there is no shared library support.
Michael Adam [Fri, 29 Feb 2008 11:38:29 +0000 (12:38 +0100)]
Fix linking of smbget when there is no shared library support.

smbget needs libwbclient.

(cherry picked from commit 78bc496ecf72b5c2474911302e81a90c488e3070)
(This used to be commit 901936edd33ae710c6f23bea528132ee5e10e097)

13 years agoFill in WHATSNEW.txt.
Günther Deschner [Fri, 29 Feb 2008 10:43:06 +0000 (11:43 +0100)]
Fill in WHATSNEW.txt.

(cherry picked from commit 55e85ccd3ec59afc05b955f1458d9fc655cee752)
(This used to be commit f85ddd10d644a7212922e1c7e8e2e2793e9703c8)

13 years agoMerge commit 'origin/v3-2-test' into v3-2-stable
Karolin Seeger [Fri, 29 Feb 2008 09:44:38 +0000 (10:44 +0100)]
Merge commit 'origin/v3-2-test' into v3-2-stable


(This used to be commit a390bcf9403df4cf4d5eef42b35ebccbe253882e)

13 years agoAttempt to fix the build
Volker Lendecke [Fri, 29 Feb 2008 09:17:35 +0000 (10:17 +0100)]
Attempt to fix the build
(This used to be commit 364d87a5e41045808ebd28f46c5c0c93bd13a7da)

13 years agoconfigure: only build vfs_syncops if dirfd() is available
Stefan Metzmacher [Fri, 29 Feb 2008 08:58:37 +0000 (09:58 +0100)]
configure: only build vfs_syncops if dirfd() is available

This hopefully fixes the build on HP-UX.

(This used to be commit 5fb7533e37b6c682e019b1c3515dc6befc8bda09)

13 years agoconfigure: Remove lib/repdir.c and related stuff
Stefan Metzmacher [Fri, 29 Feb 2008 08:25:18 +0000 (09:25 +0100)]
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.

(This used to be commit c9b60b75b4763c37cfa63741b4f055e4ea488e92)

13 years agoAdd vfs_aio_fork
Volker Lendecke [Thu, 21 Feb 2008 15:14:08 +0000 (16:14 +0100)]
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

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 b0e52cecf2009d4c7f29412dadf17910e54e4327)

13 years agoFix creation of replacetort.
Michael Adam [Fri, 29 Feb 2008 08:40:09 +0000 (09:40 +0100)]
Fix creation of replacetort.

Forgot to git add before doing git commit --amend
in previous commit...

(This used to be commit 7cf645cdae8ce17705036951538991b0a9dbefaf)

13 years agolibreplace: add snprintf.c to test code for getifaddrs - needed on some systems.
Michael Adam [Fri, 29 Feb 2008 01:46:14 +0000 (02:46 +0100)]
libreplace: add snprintf.c to test code for getifaddrs - needed on some systems.

(cherry picked from commit 0aff54a12e20d5e91fcdec7aaec103fb9a371a23)
(This used to be commit 77b7d7c0417e498340d1c9364fbbb8671c175477)

13 years agolibreplace: ifdef out ip6 code if unsupported.
Michael Adam [Fri, 29 Feb 2008 01:43:24 +0000 (02:43 +0100)]
libreplace: ifdef out ip6 code if unsupported.

(cherry picked from commit 54cc0df4dbf6d63a9b94e1ac6af4ec7f7803bc30)
(This used to be commit 1ff0b616a9cb029040031f797b52112d4973e1eb)

13 years agolibreplace: fix rep_freeifaddrs to not segfault on NULL input.
Michael Adam [Fri, 29 Feb 2008 01:23:29 +0000 (02:23 +0100)]
libreplace: fix rep_freeifaddrs to not segfault on NULL input.

(cherry picked from commit 0cbb87453beb52c6b0bc3a48791f49678f4030c5)
(This used to be commit 34d906ef44d1a5c3452097a9cac438d721fe35c1)

13 years agolibreplace: fix silly crashbug in getifaddrs_test().
Michael Adam [Fri, 29 Feb 2008 01:22:02 +0000 (02:22 +0100)]
libreplace: fix silly crashbug in getifaddrs_test().

(cherry picked from commit 523626908d25f974fd1ae6d7306b1d4bc8414162)
(This used to be commit 0906120a6e4fe0eb66f3c3fd99c625b30672cb2b)

13 years agolibreplace: add missing newline in output of getifaddrs test.
Michael Adam [Fri, 29 Feb 2008 00:49:30 +0000 (01:49 +0100)]
libreplace: add missing newline in output of getifaddrs test.

(cherry picked from commit f8243cfc47c7414bab7f249d0e5d1c85e8ca7d64)
(This used to be commit 3c1843f931b896dd3bb142346ecb44c0fb9202d6)

13 years agolibreplace: add missing semicolon to getifaddrs.
Michael Adam [Fri, 29 Feb 2008 00:25:54 +0000 (01:25 +0100)]
libreplace: add missing semicolon to getifaddrs.

(cherry picked from commit 29818a07de826fd687003ff25865d77939ecaa9a)
(This used to be commit 1d906d346ed90b87895772a64c7613324ef8b682)

13 years agolibreplace: try and fix rep_getifaddrs() for Tru64.
Michael Adam [Thu, 28 Feb 2008 23:06:55 +0000 (00:06 +0100)]
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.

(cherry picked from commit ee170c85e0e76411bd752de5fe51db6940dab929)
(This used to be commit 650cc1da4b4404880389c583dbb07ce86df48576)

13 years agolibreplace: use the new getifaddrs test also for autoconf.
Michael Adam [Thu, 28 Feb 2008 20:44:31 +0000 (21:44 +0100)]
libreplace: use the new getifaddrs test also for autoconf.

(cherry picked from commit a2a506ff0eae2a64ebe2ddbb81a6c2a5fa7fe3da)
(This used to be commit c5932414fdf0b568cbfe6cdefaec41c8afc8ca6b)

13 years agolibreplace: add extended getifaddrs test that prints out the interfaces.
Michael Adam [Thu, 28 Feb 2008 20:43:06 +0000 (21:43 +0100)]
libreplace: add extended getifaddrs test that prints out the interfaces.


cherry-picked from libreplace-part of 9d2bab09aac22c00fe23f1e1265a2dbd0901e9ce
and adapted replacetort creation
(This used to be commit 52d79ad4872a20cf55f31aba97629c2561bfc16c)

13 years agoTrying to fix libnetapi examples
Günther Deschner [Fri, 29 Feb 2008 01:49:27 +0000 (02:49 +0100)]
Trying to fix libnetapi examples

(This used to be commit 405ef74d7e9ef614ea39b7cfd1d57307d9490545)

13 years agolibnetjoin: add fallback to level 24 samr setinfo so that libnet can join NT4.
Günther Deschner [Fri, 29 Feb 2008 00:27:52 +0000 (01:27 +0100)]
libnetjoin: add fallback to level 24 samr setinfo so that libnet can join NT4.

(This used to be commit bc2d3d51449831146a9faf6e809e7a91d174659c)

13 years agolibnetjoin: Trying to avoid confusion between acct_flags, acb_info and
Günther Deschner [Fri, 29 Feb 2008 00:25:45 +0000 (01:25 +0100)]
libnetjoin: Trying to avoid confusion between acct_flags, acb_info and

(This used to be commit 63894e5c93ef0663fc58bcc191777cd1aca7e21c)

13 years agoFix samr querydispinfo w.r.t. lsa_AsciiStringLarge.
Günther Deschner [Thu, 28 Feb 2008 22:37:47 +0000 (23:37 +0100)]
Fix samr querydispinfo w.r.t. lsa_AsciiStringLarge.
Thanks metze for the fix.

(This used to be commit dcffb885bc5d16e795b71d95e0790d3d7d70cf3c)

13 years agoRe-run make idl.
Günther Deschner [Thu, 28 Feb 2008 22:37:18 +0000 (23:37 +0100)]
Re-run make idl.

(This used to be commit 7d88cb2e8db8789b923d8f9979b5c9f65664d3eb)

13 years agosamr.idl: windows uses lsa_AsciiStringLarge in QueryDisplayInfo
Stefan Metzmacher [Fri, 15 Feb 2008 13:56:35 +0000 (14:56 +0100)]
samr.idl: windows uses lsa_AsciiStringLarge in QueryDisplayInfo

Tested with nt4 and w2k3.

(This used to be commit 490d0c52bb117561227cbc59a15b15b688814fe2)

13 years agolsa.idl: strlen_m*() also for the lsa_AsciiString* versions
Stefan Metzmacher [Tue, 19 Feb 2008 13:47:22 +0000 (14:47 +0100)]
lsa.idl: strlen_m*() also for the lsa_AsciiString* versions

We already did this before b994f899b42d294c0418bdc82660a2f7510667d6.

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

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

(This used to be commit c445a17a91827c6c95b3a1cda9b78f5cdd41aa55)

13 years agolsa.idl: use strlen_m_term() in lsa_StringLarge to support NULL strings
Stefan Metzmacher [Tue, 19 Feb 2008 13:44:50 +0000 (14:44 +0100)]
lsa.idl: use strlen_m_term() in lsa_StringLarge to support NULL strings

(This used to be commit d98ac73122d44f3a92531b4ebbe09401652b89c7)

13 years agolsa.idl: add lsa_AsciiStringLarge
Stefan Metzmacher [Fri, 15 Feb 2008 13:56:07 +0000 (14:56 +0100)]
lsa.idl: add lsa_AsciiStringLarge

(This used to be commit bf5da9ea08f28f37aecc0674bd9322f0f0cbd82e)

13 years agolsa.idl: don't use ascstr_noterm anymore
Stefan Metzmacher [Thu, 14 Feb 2008 15:08:50 +0000 (16:08 +0100)]
lsa.idl: don't use ascstr_noterm anymore

(This used to be commit 1937d19623029cc4ac0f2c4b336b6460399fa509)

13 years agoRemove DomainControllerAddressType which we now have in IDL.
Günther Deschner [Thu, 28 Feb 2008 11:48:08 +0000 (12:48 +0100)]
Remove DomainControllerAddressType which we now have in IDL.

(This used to be commit 0a012c12d643e627ea1bad2a2ad6214f78918fa7)

13 years agoFix memleak in netsamlogon_cache_get().
Günther Deschner [Thu, 28 Feb 2008 22:15:11 +0000 (23:15 +0100)]
Fix memleak in netsamlogon_cache_get().

(This used to be commit b736c77dc6c36dcdb601903fadf0ef7f163052a3)

13 years agowinbind: use a struct element for WBFLAG_PAM_UNIX_NAME
Stefan Metzmacher [Thu, 28 Feb 2008 12:29:47 +0000 (13:29 +0100)]
winbind: use a struct element for WBFLAG_PAM_UNIX_NAME

To not conflict with WBFLAG_PAM_INFO3_TEXT.

This should fix pam_winbind.

(This used to be commit 1b8ed6c0ffb2548442bb7e9d848117ce9b1c65c0)

13 years agoWhile we are at it: add _wkssvc_NetrUnjoinDomain2 implementation.
Günther Deschner [Thu, 28 Feb 2008 20:55:01 +0000 (21:55 +0100)]
While we are at it: add _wkssvc_NetrUnjoinDomain2 implementation.

This can be tested with e.g. "netdom remove SAMBAHOST" from windows.

(This used to be commit 53121e62ea32ff3a984533dca044b67cf5b2c55b)

13 years agoRe-enable _wkssvc_NetrJoinDomain2 remote join implementation now that we are ready...
Günther Deschner [Thu, 28 Feb 2008 19:01:32 +0000 (20:01 +0100)]
Re-enable _wkssvc_NetrJoinDomain2 remote join implementation now that we are ready for it.

"netdom join SAMBAHOST" from a windows workstation nicely demonstrates it.

(This used to be commit 3bcaa3582a101abc17f7c21128e01024af877577)

13 years agoRemove original copy of now redundant join code.
Günther Deschner [Thu, 28 Feb 2008 18:54:35 +0000 (19:54 +0100)]
Remove original copy of now redundant join code.

Jerry, I checked this very carefully that nothing got lost. The only thing I need to
re-add still is the normalized DN handling for account precreation in "net ads join".

(This used to be commit a5c6347644f2aa138a8e67ffe6c167847df941d0)

13 years agolibnetjoin: Merge in comments, debugs and missing code from original join code.
Günther Deschner [Thu, 28 Feb 2008 18:44:34 +0000 (19:44 +0100)]
libnetjoin: Merge in comments, debugs and missing code from original join code.

(This used to be commit 09e6010159cb9c2a5d86861889b8c2a07bd39a8d)

13 years agoFix macro name (no 's' in ifr_addr).
Gerald W. Carter [Thu, 28 Feb 2008 17:58:05 +0000 (11:58 -0600)]
Fix macro name (no 's' in ifr_addr).

Interface detection on Solaris still failing due to items pointed out here:
(This used to be commit 37c87acc9d48c1fb5d4806374ca8e992300db1ff)

13 years agoOnly set DEBUGLEVEL to 0 in libnetapi when not set already.
Günther Deschner [Thu, 28 Feb 2008 16:09:47 +0000 (17:09 +0100)]
Only set DEBUGLEVEL to 0 in libnetapi when not set already.

(This used to be commit 3ace1601ac5b5d87d6bfd8aa0afe0c75858b6990)

13 years agoAdd some more error handling in libnetjoin.
Günther Deschner [Thu, 28 Feb 2008 16:02:14 +0000 (17:02 +0100)]
Add some more error handling in libnetjoin.

(This used to be commit 892b2bc0cf1692c5707d322d0eb711b8245a3a96)

13 years agoUse libnetapi_get_error_string() in "net dom" commands.
Günther Deschner [Thu, 28 Feb 2008 15:56:35 +0000 (16:56 +0100)]
Use libnetapi_get_error_string() in "net dom" commands.

(This used to be commit 58048f0c575d6ac5b770873e308d4a1a9ce68123)

13 years agoUpdate WHATSNEW.
Karolin Seeger [Thu, 28 Feb 2008 14:52:06 +0000 (15:52 +0100)]

(This used to be commit 01596c9335f0e7f2fd618e79fe313caf97dbb2f4)

13 years agoRemove smbmount.
Karolin Seeger [Thu, 28 Feb 2008 14:49:57 +0000 (15:49 +0100)]
Remove smbmount.

(This used to be commit 5fbd98f7065268ae134108310119078ad8f62322)

13 years agoAdd mount.cifs as a wrapper for mount.cifs.
Karolin Seeger [Thu, 28 Feb 2008 14:45:28 +0000 (15:45 +0100)]
Add mount.cifs as a wrapper for mount.cifs.

(This used to be commit be5ee4999ee8708ec06c1563a62c565a890df622)

13 years agoConvert cli_read to use cli_pull
Volker Lendecke [Thu, 28 Feb 2008 14:26:01 +0000 (15:26 +0100)]
Convert cli_read to use cli_pull
(This used to be commit 719527f55e88f0c5fdceda5c807475aba299c79f)

13 years agoAdd async cli_pull support
Volker Lendecke [Thu, 28 Feb 2008 14:21:33 +0000 (15:21 +0100)]
Add async cli_pull support

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.

(This used to be commit 844a163458c7585e4306a21ffdae5d08e03d6e4d)

13 years agoAdd infrastructure to support async SMB requests
Volker Lendecke [Thu, 28 Feb 2008 13:41:25 +0000 (14:41 +0100)]
Add infrastructure to support async SMB requests
(This used to be commit f5356825698a02df2d400b51dd95d1f857c83e81)

13 years agoAdd basic infrastructure for general async requests
Volker Lendecke [Thu, 28 Feb 2008 12:55:53 +0000 (13:55 +0100)]
Add basic infrastructure for general async requests
(This used to be commit ae254cb61f4b9331755848c47ebc34e90dd80390)

13 years agoFix the build - don't use SMB_TRANS_ENC_GSS without
Jeremy Allison [Thu, 28 Feb 2008 14:01:09 +0000 (06:01 -0800)]
Fix the build - don't use SMB_TRANS_ENC_GSS without
(This used to be commit d16c295642c3df49be02440427ded0cd9b4179f5)

13 years agoDon't define SMB_TRANS_ENC_GSS if we don't have KRB5.
Jeremy Allison [Thu, 28 Feb 2008 13:54:50 +0000 (05:54 -0800)]
Don't define SMB_TRANS_ENC_GSS if we don't have KRB5.
(This used to be commit 6f2b33f6072629be393f88d4450fa6631ef672f6)

13 years agoSome fixes for net ads join (uninitialized vars).
Günther Deschner [Thu, 28 Feb 2008 13:29:44 +0000 (14:29 +0100)]
Some fixes for net ads join (uninitialized vars).

(This used to be commit 735235e32bf41a7564ce2d585c1dae187b00bf6b)

13 years agoUse libnet_Join() for "net ads join".
Günther Deschner [Thu, 28 Feb 2008 13:18:03 +0000 (14:18 +0100)]
Use libnet_Join() for "net ads join".

(This used to be commit 9a7a2777e4ea1a2b5d7c800af8522b38cf22c511)

13 years agoAdd cli_setup_packet_buf
Volker Lendecke [Thu, 28 Feb 2008 13:04:54 +0000 (14:04 +0100)]
Add cli_setup_packet_buf

This is == cli_setup_packet but takes an explicit buffer argument
(This used to be commit f64b46dc278899c3449cfd3dbb614aadcf5614d3)

13 years agoMake cli_struct a talloc parent
Volker Lendecke [Thu, 28 Feb 2008 13:03:38 +0000 (14:03 +0100)]
Make cli_struct a talloc parent
(This used to be commit e69244a5c8c7c6b7c1897adc4b4b1cfdfc7a7999)

13 years agoNicen error output in net_ads_leave.
Günther Deschner [Thu, 28 Feb 2008 13:08:32 +0000 (14:08 +0100)]
Nicen error output in net_ads_leave.

(This used to be commit b0d1db95e5d7590f9c67be7bf5cb78adfee16635)

13 years agoAdd WERR_TIME_SKEW to werror mapping tables.
Günther Deschner [Thu, 28 Feb 2008 12:58:34 +0000 (13:58 +0100)]
Add WERR_TIME_SKEW to werror mapping tables.

(This used to be commit 74767be627d48eb1a8deea3784847159b536a0fb)

13 years agoAdd missing full stops and blank lines.
Karolin Seeger [Thu, 28 Feb 2008 12:32:34 +0000 (13:32 +0100)]
Add missing full stops and blank lines.

(This used to be commit cd784938b72f4e571f6ae178ed953a341f7d0f63)

13 years agoAdd explicit buf arg to cli_check_sign_mac
Volker Lendecke [Tue, 12 Feb 2008 22:16:37 +0000 (23:16 +0100)]
Add explicit buf arg to cli_check_sign_mac
(This used to be commit ffc1c8cc03e6bad40ed2be91392074b4f038a1bf)

13 years agoAdd explicit buf arg to cli_encrypt_message and cli_calculate_sign_mac
Volker Lendecke [Tue, 12 Feb 2008 10:54:37 +0000 (11:54 +0100)]
Add explicit buf arg to cli_encrypt_message and cli_calculate_sign_mac
(This used to be commit db6ae9ed2326e6cd68475375d049084cf1d5a98c)

13 years agoRe-arrange dns update block during "net ads join" a little.
Günther Deschner [Thu, 28 Feb 2008 12:04:30 +0000 (13:04 +0100)]
Re-arrange dns update block during "net ads join" a little.

(This used to be commit 5d30e9f9fef98de7764ae53d3cbe659b78ae9fce)

13 years agoFix one dsgetdcname call in wkssvc rpc server.
Günther Deschner [Thu, 28 Feb 2008 11:51:45 +0000 (12:51 +0100)]
Fix one dsgetdcname call in wkssvc rpc server.

(This used to be commit a69b918784b037aa17d2dd88a33bd99930631c9b)

13 years agoWHATSNEW: Add changes by Andreas Schneider.
Michael Adam [Thu, 28 Feb 2008 11:53:14 +0000 (12:53 +0100)]
WHATSNEW: Add changes by Andreas Schneider.

(This used to be commit cfb853e6c2d0f6ef6bca3b5b950bb015603f1c2d)

13 years agoRemove unused display_ds_domain_controller_info() function.
Günther Deschner [Thu, 28 Feb 2008 11:43:43 +0000 (12:43 +0100)]
Remove unused display_ds_domain_controller_info() function.

(This used to be commit 24a5098b1c3452b2d7088cab6ecdd1d75810e403)

13 years agoAdd another WHATSNEW
Volker Lendecke [Thu, 28 Feb 2008 11:47:44 +0000 (12:47 +0100)]
Add another WHATSNEW
(This used to be commit c6f0ff949b480addfa72cd59a790d673bc40f204)

13 years agoLet dsgetdcname() return a struct netr_DsRGetDCNameInfo.
Günther Deschner [Thu, 28 Feb 2008 11:30:18 +0000 (12:30 +0100)]
Let dsgetdcname() return a struct netr_DsRGetDCNameInfo.

(This used to be commit b1a4b21f8c35dc23e5c986ebe44d3806055eb39b)

13 years agoMerge branch 'v3-2-test' of ssh:// into v3-2-test
Jeremy Allison [Thu, 28 Feb 2008 11:28:31 +0000 (03:28 -0800)]
Merge branch 'v3-2-test' of ssh:// into v3-2-test
(This used to be commit 8b0082840535eaca19911bf4c15d4e56297e373f)

13 years agoUpdated comments on the encryption support.
Jeremy Allison [Thu, 28 Feb 2008 11:27:55 +0000 (03:27 -0800)]
Updated comments on the encryption support.
(This used to be commit ab6a9fad3873a9e4f5945e5d72faabbf42bd4f48)

13 years agoWHATSNEW: add another change.
Michael Adam [Thu, 28 Feb 2008 11:26:37 +0000 (12:26 +0100)]
WHATSNEW: add another change.

(This used to be commit 9436afad7e73a22a3320995f8a25e65a74a0532b)

13 years agoWHATSNEW: add two more items to my changes.
Michael Adam [Thu, 28 Feb 2008 11:19:30 +0000 (12:19 +0100)]
WHATSNEW: add two more items to my changes.

(This used to be commit d8555f09d4240736b0c5fc93cea33285b33531b4)

13 years agoWHATSNEW: Also merge changes in "Major enhancements" section from v3-2-stable.
Michael Adam [Thu, 28 Feb 2008 11:13:59 +0000 (12:13 +0100)]
WHATSNEW: Also merge changes in "Major enhancements" section from v3-2-stable.

(This used to be commit 1984e91f05ce95eb43d149e66994196718a6ffba)

13 years agoWHATSNEW: give a new date for the upcoming prerelease.
Michael Adam [Thu, 28 Feb 2008 11:13:22 +0000 (12:13 +0100)]
WHATSNEW: give a new date for the upcoming prerelease.

(This used to be commit 38d327d51f17cb2be9e5963496c97c6d68be79ef)

13 years agoWHATSNEW: Fix spacings
Michael Adam [Thu, 28 Feb 2008 11:11:58 +0000 (12:11 +0100)]
WHATSNEW: Fix spacings

(This used to be commit ac37d607ce799d5dc380a24447768b500a0c64ad)

13 years agoWHATSNEW: fix a typo and spacings
Michael Adam [Thu, 28 Feb 2008 11:11:21 +0000 (12:11 +0100)]
WHATSNEW: fix a typo and spacings

(This used to be commit 4c02a60a985285d07ee54bb39de6a7568467c944)

13 years agoWHATSNEW: Merge additions from v3-2-stable's WHATSNEW. :-}
Michael Adam [Thu, 28 Feb 2008 11:08:11 +0000 (12:08 +0100)]
WHATSNEW: Merge additions from v3-2-stable's WHATSNEW. :-}

(This used to be commit 5d1631bd9bfd79357eb0dc47c3ab0b698696efb4)

13 years agoWHATSNEW: Move Volker's post pre1 changes to the appropriate section.
Michael Adam [Thu, 28 Feb 2008 10:59:11 +0000 (11:59 +0100)]
WHATSNEW: Move Volker's post pre1 changes to the appropriate section.

(This used to be commit 8cc0d46c388f5971bf468e6eb607b5e230f9a2dd)

13 years agoWHATSNEW: adapt section on registry configuration to new facts.
Michael Adam [Thu, 28 Feb 2008 10:58:09 +0000 (11:58 +0100)]
WHATSNEW: adapt section on registry configuration to new facts.

Also add to smb.conf changes.

(This used to be commit b1a55cd1570d71a015cfeac976fbd1f13c44cc7d)