tprouty/samba.git
10 years agoWHATSNEW: Update changes since 3.2.0. release-3-2-1
Karolin Seeger [Tue, 5 Aug 2008 06:21:13 +0000 (08:21 +0200)]
WHATSNEW: Update changes since 3.2.0.

Karolin
(cherry picked from commit bdbc8f821063df8f612b83ce6c903270fa985cbf)

10 years agoCompile error on AIX 6.1
Yannick Bergeron [Mon, 4 Aug 2008 17:21:02 +0000 (13:21 -0400)]
Compile error on AIX 6.1
(cherry picked from commit afe139e3272b324df2dec2d4066b351b03792dc8)

10 years agoSamba3 HowTo: Fix duplicate chapter id.
Karolin Seeger [Fri, 1 Aug 2008 12:10:28 +0000 (14:10 +0200)]
Samba3 HowTo: Fix duplicate chapter id.

Karolin
(cherry picked from commit f67b6fd97e177a527e896861f337c2e70541f697)
(cherry picked from commit 7359f89ded09a0916a42d696a217d3100aab25d2)

10 years agoWHATSNEW: Update changes since 3.2.0.
Karolin Seeger [Thu, 31 Jul 2008 07:39:58 +0000 (09:39 +0200)]
WHATSNEW: Update changes since 3.2.0.

Karolin
(cherry picked from commit b562b97872f51abe1bd2fb4d61d91c464d1d0840)

10 years agoFix uninitialized variable.
Jeremy Allison [Wed, 30 Jul 2008 23:22:16 +0000 (16:22 -0700)]
Fix uninitialized variable.
Jeremy.
(cherry picked from commit 5fb17b866642a9f971cce6d9f228b4d52618e42b)

10 years agorpc_client: Bug 5616 - fix session keys also in rpccli_netr_LogonSamLogonEx wrapper.
Günther Deschner [Wed, 30 Jul 2008 17:03:13 +0000 (19:03 +0200)]
rpc_client: Bug 5616 - fix session keys also in rpccli_netr_LogonSamLogonEx wrapper.

Guenther
(cherry picked from commit fef58091408cce0d7870c86f28f78cf9400cf2b6)
(cherry picked from commit 4f62fa50c7d542db4a2b8976d85da590194203f0)

10 years agowinbindd: handle trusted domains without sid.
Günther Deschner [Tue, 29 Jul 2008 10:08:47 +0000 (12:08 +0200)]
winbindd: handle trusted domains without sid.

Guenther
(cherry picked from commit 0c1efc6c89b1a51a94d10971bf0fc515416709b3)
(cherry picked from commit 4f5255d1e5025c4c9ebb0b1f22d800e26bcdfb7f)

10 years agolibwbclient: let wbcStringToSid handle the global NULL sid.
Günther Deschner [Wed, 30 Jul 2008 14:59:11 +0000 (16:59 +0200)]
libwbclient: let wbcStringToSid handle the global NULL sid.

Guenther
(cherry picked from commit 09fed085bea9dae5bb8aacd986deed3d458e3574)
(cherry picked from commit fba8506112938bf714c06da08e0e0725a7eecf3a)

10 years agoman pages: Fix typos in man smbclient.
Karolin Seeger [Tue, 29 Jul 2008 10:03:08 +0000 (12:03 +0200)]
man pages: Fix typos in man smbclient.

Karolin
(cherry picked from commit db843d2faafb3487e3c7df4a3a52d6c71f369e1d)
(cherry picked from commit 3a3640a85daa1a85415c949f9c2b804b4f067dd7)

10 years agoAttempt to fix bug 5616
Volker Lendecke [Mon, 28 Jul 2008 15:52:35 +0000 (17:52 +0200)]
Attempt to fix bug 5616

We were calculating the session key but did not return it to the caller...
(cherry picked from commit 8ab79b1d009d53e414b90e4a0ab8fc7a4889b6df)

10 years agoWHATSNEW: Update changes since 3.2.0.
Karolin Seeger [Mon, 28 Jul 2008 13:26:19 +0000 (15:26 +0200)]
WHATSNEW: Update changes since 3.2.0.

Karolin
(cherry picked from commit 0d4a3c2dfb07663dc9fded298e6b7b6c67029f71)

10 years agoFix an incompatible pointer warning
Volker Lendecke [Fri, 25 Jul 2008 21:30:53 +0000 (23:30 +0200)]
Fix an incompatible pointer warning
(cherry picked from commit 3282f7289b7b33beeaa1ca649651cca6537a69af)

10 years agoFix bug creating files using DOS clients with mixed
Jeremy Allison [Fri, 25 Jul 2008 20:14:57 +0000 (13:14 -0700)]
Fix bug creating files using DOS clients with mixed
case files. Reported by Daniel Johnson <Progman2000@usa.net>.
The smb_set_file_time() call to set the filetimes is failing
because it's using the unmodified name passed in by the
client, not the modified name (matching case on the
disk) that comes out from create_file().
Jeremy.
(cherry picked from commit d54fe83b16c187847a975df373e73d56111d7f21)

10 years agoWHATSNEW: Update changes since 3.2.0.
Karolin Seeger [Fri, 25 Jul 2008 14:31:27 +0000 (16:31 +0200)]
WHATSNEW: Update changes since 3.2.0.

Karolin
(cherry picked from commit a1d0fb1f00432f3bc4d7175dbff1354724ea2b67)

10 years agoFix a race condition in winbind leading to a crash
Volker Lendecke [Fri, 25 Jul 2008 10:08:03 +0000 (12:08 +0200)]
Fix a race condition in winbind leading to a crash

When SIGCHLD handling is delayed for some reason, sending a request to a child
can fail early because the child has died already. In this case
async_main_request_sent() directly called the continuation function without
properly removing the malfunctioning child process and the requests in the
queue. The next request would then crash in the DLIST_ADD_END() in
async_request() because the request pending for the child had been
talloc_free()'ed and yet still was referenced in the list.

This one is *old*...

Volker
(cherry picked from commit 8691709626b0d461de91b8fc9d10c730d1f183dd)

10 years agotalloc_string_sub2: Don't return NULL if src is empty.
Karolin Seeger [Wed, 23 Jul 2008 15:07:56 +0000 (17:07 +0200)]
talloc_string_sub2: Don't return NULL if src is empty.

This fixes BUG #5635.

Finished print jobs were not removed from the $PRINTER.tdb file if
"printing=cups".

In print_queue_update, talloc_string_sub2 is used to assemble the
"lprm command". In the case of using "printing=cups", the default
"lprm command" is an empty string. talloc_string_sub2 is called with
this empty string and returns NULL which leads to exiting
print_queue_update without doing the actual print queue update.

Signed-off by Michael Adam <obnox@samba.org>
(cherry picked from commit 03d66554d1bbd9d6c72a3dd5203e5305343c76b8)
(cherry picked from commit c6ca0f7d462c51122ccb1068306410ccdbee7b00)

10 years agoIf we're not allowing streams on this conn ptr,
Jeremy Allison [Fri, 25 Jul 2008 01:13:20 +0000 (18:13 -0700)]
If we're not allowing streams on this conn ptr,
then don't allow create_file() to call down to
create_file_unixpath() with a stream name.
Jeremy.
(cherry picked from commit 7f749a10eff0bb469e6eb50b02cb60fd65c23f9e)

10 years agoRemove trailing withespace from wbinfo -m which breaks gdm auth.
Andreas Schneider [Mon, 21 Jul 2008 09:52:10 +0000 (11:52 +0200)]
Remove trailing withespace from wbinfo -m which breaks gdm auth.

Signed-off-by: Andreas Schneider <anschneider@suse.de>
(cherry picked from commit cdf10e6ee9faff42693bb39ede535cc6611a8fc9)

10 years agoRemove test changes added in error.
Jeremy Allison [Thu, 24 Jul 2008 19:00:01 +0000 (12:00 -0700)]
Remove test changes added in error.
Jeremy.
(cherry picked from commit 218ffbe3876dbd58f56e107819dec2e74f5d2f1a)

10 years agoUse sys_getgrnam not getgrnam. Pointed out by Herb.
Jeremy Allison [Thu, 24 Jul 2008 18:56:20 +0000 (11:56 -0700)]
Use sys_getgrnam not getgrnam. Pointed out by Herb.
Jeremy.
(cherry picked from commit 2518197d7f3833b5d85fe42b05b51d89fa69eb75)

10 years agoget rid of unused variable warnings when HAVE_IPV6 not defined
Herb Lewis [Wed, 23 Jul 2008 00:50:33 +0000 (17:50 -0700)]
get rid of unused variable warnings when HAVE_IPV6 not defined
(cherry picked from commit 2b5425efddfccb1010d082e6133cfdd79d72729e)

10 years agopdb_ldap: Raise level for debug message to avoid log file flooding.
John H Terpstra [Thu, 24 Jul 2008 07:45:02 +0000 (09:45 +0200)]
pdb_ldap: Raise level for debug message to avoid log file flooding.
(cherry picked from commit 9b863a10da8762f715c16f147d6cd1e79422d248)
(cherry picked from commit 1c3187fd250e5219197206cb7c7345ea9d649e74)

10 years agoUpdate Roadmap
Volker Lendecke [Mon, 21 Jul 2008 14:12:22 +0000 (16:12 +0200)]
Update Roadmap
(cherry picked from commit d1c3b57085b493b47398daf71ce18f16ece57da0)

10 years agoman pages: "printcap name" is a global parameter, not a share specific one.
Karolin Seeger [Tue, 22 Jul 2008 09:27:16 +0000 (11:27 +0200)]
man pages: "printcap name" is a global parameter, not a share specific one.

Karolin
(cherry picked from commit 9cde2525560536e16e2dbf991dbeb446260dd0df)
(cherry picked from commit 76061eee93fd67b96916a088c64a038e47a48814)

10 years agotestsuite: fix expr error on Tru64, triggered by uninitialized failed variable.
Michael Adam [Mon, 21 Jul 2008 09:23:55 +0000 (11:23 +0200)]
testsuite: fix expr error on Tru64, triggered by uninitialized failed variable.

Michael
(cherry picked from commit 25cd227aaecf91dfa3114ae0fd2b47c783434aad)
(cherry picked from commit 90f33570e45159193d9336c742bf53d51573849b)

10 years agotestsuite: fix another expr syntax error. in tests_all.sh.
Michael Adam [Mon, 21 Jul 2008 09:17:36 +0000 (11:17 +0200)]
testsuite: fix another expr syntax error. in tests_all.sh.

Michael
(cherry picked from commit 486b1bc5b5021565ec443fd463c8287c02c686b3)
(cherry picked from commit 4038363b72eb852d462234a1ec85c3cc68765f0d)

10 years agotestsuite: fix expr syntax error in net registry test.
Michael Adam [Sun, 20 Jul 2008 21:49:40 +0000 (23:49 +0200)]
testsuite: fix expr syntax error in net registry test.

Pointed out by Björn Jacke <bj@sernet.de>.

Michael
(cherry picked from commit 63e7d9adb7a51b3790eb431615cb6e450391a894)
(cherry picked from commit 0dbb8def6b9647bb01f4544361cb87bafdfb3fc8)

10 years agoFix link to Using Samba
Alexander Bokovoy [Sun, 20 Jul 2008 06:36:05 +0000 (10:36 +0400)]
Fix link to Using Samba
(cherry picked from commit 04cce8c620108ba00921bd1630a8692abdc2e0dc)

10 years agoFix the build of vfs_zfsacl.c
Volker Lendecke [Fri, 18 Jul 2008 08:01:39 +0000 (10:01 +0200)]
Fix the build of vfs_zfsacl.c
(cherry picked from commit b83beeda44e1c8d485c2ad6bb8ee539cdcbe8bda)

10 years agoWHATSNEW: Update changes since 3.2.0.
Karolin Seeger [Fri, 18 Jul 2008 14:13:04 +0000 (16:13 +0200)]
WHATSNEW: Update changes since 3.2.0.

Karolin
(cherry picked from commit 2a874d07648a6b0303249ac8a6cdbf266668afe1)

10 years agoDocument the streams modules
Volker Lendecke [Fri, 18 Jul 2008 09:18:04 +0000 (11:18 +0200)]
Document the streams modules
(cherry picked from commit e7e6800b3df4e6c9c4429204c5a4162a1e1118d6)

10 years agoChange the directory parameter in streams_depot to become consistent
Volker Lendecke [Fri, 18 Jul 2008 09:17:33 +0000 (11:17 +0200)]
Change the directory parameter in streams_depot to become consistent

This is not built by default and not documented in 3.2.0, so I doubt this will
break any setups :-)
(cherry picked from commit ca2dfb372cfd9096407fca67a6b65bceda6f72b6)

10 years agoFrom Jim McDonough
Jeremy Allison [Fri, 18 Jul 2008 03:01:13 +0000 (20:01 -0700)]
From Jim McDonough

In reloading the smb.conf, if a "log file" is specified in smb.conf,
winbind children will overwrite the logfile name to be the same as the
parent.

Jeremy.
(cherry picked from commit 147dc45cfb0da3677e381bec3873b9645b320f60)

10 years agogitignore: ignore the generated library symbol files
Michael Adam [Thu, 17 Jul 2008 19:05:11 +0000 (21:05 +0200)]
gitignore: ignore the generated library symbol files

Michael
(cherry picked from commit 1006173f98ea8a19c4891c543373124dc2f65282)

10 years agoallow SID with 0 in subauthority to be converted properly
Herb Lewis [Thu, 17 Jul 2008 16:23:30 +0000 (09:23 -0700)]
allow SID with 0 in subauthority to be converted properly
from string representation.
(cherry picked from commit eaee722ca74af274e628cbd868753800bddc3e97)

10 years agoAllow %u parameters for print job username - use advanced sub
Bo Yang [Wed, 16 Jul 2008 15:11:55 +0000 (11:11 -0400)]
Allow %u parameters for print job username - use advanced sub
(cherry picked from commit 11a8f5161184914bec031c741c57bbce19998d2c)

10 years agosmbldap: Fix typo in debug message.
Karolin Seeger [Fri, 18 Jul 2008 07:38:03 +0000 (09:38 +0200)]
smbldap: Fix typo in debug message.

Karolin
(cherry picked from commit 6e9e85b897431d7378396aada2c32ae470af0edd)
(cherry picked from commit 1e6ae16bce110e282400026c9af8e1b3d9f2e6b4)

10 years agoA brown paper bag bug fix for "net sam rights"
Volker Lendecke [Thu, 10 Jul 2008 09:11:53 +0000 (11:11 +0200)]
A brown paper bag bug fix for "net sam rights"
(cherry picked from commit 8a455b012827cfb917473a160c5710a90490451a)
(cherry picked from commit 857e9d2b27eb6824a8056490076fa020fd185a6d)

10 years agoman pages: Fix typos and add improvements.
Christoph Zauner [Fri, 11 Jul 2008 13:50:25 +0000 (15:50 +0200)]
man pages: Fix typos and add improvements.
(cherry picked from commit 060ff6d8d4e61f3ce89f980182413852cc5719be)
(cherry picked from commit dab5cf616ce044040dd598fec3da9d3c97e51f6d)

10 years agoWHATSNEW: Update changes since 3.2.0.
Karolin Seeger [Wed, 16 Jul 2008 07:48:46 +0000 (09:48 +0200)]
WHATSNEW: Update changes since 3.2.0.

Karolin
(cherry picked from commit f91f960094b132ae2946f40da4bacd1640c514c0)

10 years agoRelease still reachable memory if the smbclient context is freed.
Andreas Schneider [Tue, 15 Jul 2008 12:57:32 +0000 (14:57 +0200)]
Release still reachable memory if the smbclient context is freed.

Signed-off-by: Andreas Schneider <anschneider@suse.de>
(cherry picked from commit 88c9cf2fdc8f3d704f7f27c25ef6dc6940d451d3)

10 years agoFix from Volodymyr Khomenko <Volodymyr.Khomenko@exanet.com>. Make ntimes
Jeremy Allison [Tue, 15 Jul 2008 22:27:22 +0000 (15:27 -0700)]
Fix from Volodymyr Khomenko <Volodymyr.Khomenko@exanet.com>. Make ntimes
function more like POSIX and allow NULL arg. Help vfs developers.
Jeremy.
(cherry picked from commit a034ad5b28dc22b76ef91901306d5c4f9102178f)

10 years agoFix swat. Bug #5613.
Jeremy Allison [Tue, 15 Jul 2008 21:38:19 +0000 (14:38 -0700)]
Fix swat. Bug #5613.
Jeremy
(cherry picked from commit 1036bd6f8adcff316d2d86201b1a7097b4b9fe0c)

10 years agotestparm: refactor the per-share logic checks out into do_per_share_checks().
Michael Adam [Tue, 15 Jul 2008 11:01:54 +0000 (13:01 +0200)]
testparm: refactor the per-share logic checks out into do_per_share_checks().

Just to enhance clearness of the code.

Michael
(cherry picked from commit cd5d13dec0153c64d541e85bd13138b738cf50af)
(cherry picked from commit 01b1aff4ac884b91d95d89ac7e53cb0e1a748787)

10 years agotestparm: skip the per-share logic checks when --skip-logic-checks is specified.
Michael Adam [Tue, 15 Jul 2008 10:55:57 +0000 (12:55 +0200)]
testparm: skip the per-share logic checks when --skip-logic-checks is specified.

Michael
(cherry picked from commit 6cafee7e6ae02a32a9f2ddf313d2a20224fa22fe)
(cherry picked from commit 3b8524957561911ae7943172fe775200fc98f75a)

10 years agotestparm: rename -g|--skip-global-ckecks to -l|--skip-logic-checks
Michael Adam [Tue, 15 Jul 2008 10:52:25 +0000 (12:52 +0200)]
testparm: rename -g|--skip-global-ckecks to -l|--skip-logic-checks

as suggested by Karolin.

That is what it really means. And per-share logic tests will be
disabled by the same switch, too...

Michael
(cherry picked from commit 5b8a4c33482917a1ef7071df224957ba831d853a)
(cherry picked from commit 04cdfbba747b928c3133e29446c0fe91c39a41f2)

10 years agotestsuite: fix bug #5594 by using the new --skip-global-ckecks switch
Michael Adam [Mon, 14 Jul 2008 22:27:01 +0000 (00:27 +0200)]
testsuite: fix bug #5594 by using the new --skip-global-ckecks switch

Michael
(cherry picked from commit 32f4b1443af12026c419684be45a7d8b96ccfaac)
(cherry picked from commit 87c4f1fc67df146585a6e0862b701b6e6193f0f0)

10 years agotestparm: add a switch --skip-global-checks.
Michael Adam [Mon, 14 Jul 2008 22:17:58 +0000 (00:17 +0200)]
testparm: add a switch --skip-global-checks.

This allows for successfully calling testparm without the need
to "make install" before. Without this, testparm fails with
the message that the lock directory does not exist...

Michael
(cherry picked from commit eeb018fad65c19804a4e96ea949fc2c64883439e)
(cherry picked from commit 1f245e41fa41d2b67eaa7cc85c29da3384697275)

10 years agoAdd fix from Simo for bug #5540 - missing code to substitute
Jeremy Allison [Mon, 14 Jul 2008 19:38:28 +0000 (12:38 -0700)]
Add fix from Simo for bug #5540 - missing code to substitute
%u. Make this the same as other uses.
Jeremy.
(cherry picked from commit 56d8ed48a94b558ad442e38c3d1925c4810dc508)

10 years agobuild: use $(PAM_WINBIND_EXTRA_LIBS) instead of @PAM_WINBIND_EXTRA_LIBS@ in rules.
Michael Adam [Mon, 14 Jul 2008 11:58:24 +0000 (13:58 +0200)]
build: use $(PAM_WINBIND_EXTRA_LIBS) instead of @PAM_WINBIND_EXTRA_LIBS@ in rules.

Eliminate more potential traps for picky makes.

Michael
(cherry picked from commit 9a2870e936a967b82a100b1e26200d3665311f85)

10 years agobuild: use $(WINBIND_NSS_PTHREAD) instead of @WINBIND_NSS_PTHREAD@ in rules.
Michael Adam [Mon, 14 Jul 2008 11:57:11 +0000 (13:57 +0200)]
build: use $(WINBIND_NSS_PTHREAD) instead of @WINBIND_NSS_PTHREAD@ in rules.

Eliminate more potential traps for picky makes.

Michael
(cherry picked from commit 1aad6661adc5800243969b761c653b57ff280f69)

10 years agobuild: use $(WINBIND_NSS_EXTRA_LIBS) instead of @WINBIND_NSS_EXTRA_LIBS@ in rules.
Michael Adam [Mon, 14 Jul 2008 11:56:09 +0000 (13:56 +0200)]
build: use $(WINBIND_NSS_EXTRA_LIBS) instead of @WINBIND_NSS_EXTRA_LIBS@ in rules.

Eliminate more potential traps for picky makes.

Michael
(cherry picked from commit 7420f409c2fbfd5f90d45a4a435489fe31016581)

10 years agobuild: use $(LDAP_LIBS) instead of @LDAP_LIBS@ in rules.
Michael Adam [Mon, 14 Jul 2008 11:50:11 +0000 (13:50 +0200)]
build: use $(LDAP_LIBS) instead of @LDAP_LIBS@ in rules.

Eliminate more potential traps for picky makes.

Michael
(cherry picked from commit a7ee1c16c234ad5d0aa8853081d8f5f4f763614b)

10 years agobuild: use $(LIBNETAPI_LIBS) instead of @LIBNETAPI_LIBS@ in rules.
Michael Adam [Mon, 14 Jul 2008 11:47:57 +0000 (13:47 +0200)]
build: use $(LIBNETAPI_LIBS) instead of @LIBNETAPI_LIBS@ in rules.

Eliminate more potential traps for picky makes.

Michael
(cherry picked from commit 22d0f686eb6649b3d4a8c7f142257e303c54568e)

10 years agobuild: link in $(WINBIND_LIBS) instead of @LIBWBCLIENT_SHARED@
Michael Adam [Mon, 14 Jul 2008 11:44:34 +0000 (13:44 +0200)]
build: link in $(WINBIND_LIBS) instead of @LIBWBCLIENT_SHARED@

This should fix some more picky makes when not building @LIBWBCLINET_SHARED@.
Moreover, we want to link against -lwbclient, not against bin/libwbclient.so,
anyways.

Michael
(cherry picked from commit a60d295d3ac4a6e7a055927951f7207f09a3df7c)

10 years agobuild: use $(LIBTDB_LIBS) instead of @LIBTDB_LIBS@ in rules.
Michael Adam [Mon, 14 Jul 2008 11:39:32 +0000 (13:39 +0200)]
build: use $(LIBTDB_LIBS) instead of @LIBTDB_LIBS@ in rules.

Eliminate more potential traps for picky makes.

Michael
(cherry picked from commit 0f609e55d8c58285de73fa0955df951042dfd9a0)

10 years agobuild: use $(LIBTALLOC_LIBS) instead of @LIBTALLOC_LIBS@ in rules.
Michael Adam [Mon, 14 Jul 2008 11:37:41 +0000 (13:37 +0200)]
build: use $(LIBTALLOC_LIBS) instead of @LIBTALLOC_LIBS@ in rules.

Eliminate more potential traps for picky makes.

Michael
(cherry picked from commit 15dd9f78650b0b853cb6955429ae58656be3945e)

10 years agobuild: use $(POPT_LIBS) instad of @POPT_LIBS@ in rules.
Michael Adam [Mon, 14 Jul 2008 11:35:24 +0000 (13:35 +0200)]
build: use $(POPT_LIBS) instad of @POPT_LIBS@ in rules.

Make picky makes happier.

Michael
(cherry picked from commit 2d2b48749e885d2a529dab273c8419c5445568d3)

10 years agobuild: fix build on systems with picky make and without shared libwbclient
Michael Adam [Mon, 14 Jul 2008 11:32:19 +0000 (13:32 +0200)]
build: fix build on systems with picky make and without shared libwbclient

This produces empty lines in Makefile rules.
Replacing @WINBIND_LIBS@ by $(WINBIND_LIBS) where
WINBIND_LIBS=@WINBIND_LIBS@ should fix that.

Michael
(cherry picked from commit fd9b4bcaa5302d3d6245eb7b21ce0ef9994f718d)

10 years agodocs: fix the specified default of "password server" - it is *, not "".
Michael Adam [Thu, 10 Jul 2008 21:49:58 +0000 (23:49 +0200)]
docs: fix the specified default of "password server" - it is *, not "".

Michael
(cherry picked from commit d7f759d302612ef9eb0bba022f3b3e1dd433f843)
(cherry picked from commit 42eec4da853b9d3988fc22494cc3d632d1459732)

10 years agoFix regression introduced with 4086ef15b395f1a536fb669af2103a33ecc14de4
Simo Sorce [Sun, 13 Jul 2008 01:28:18 +0000 (21:28 -0400)]
Fix regression introduced with 4086ef15b395f1a536fb669af2103a33ecc14de4
We must not return an error here just because we are offline.
We must instead fix the mappings to the best of our knowledge
(ie mark as mapped, expired ones, and as unmapped, unknown ones)
(cherry picked from commit c17b125e1fdb9b71877200b2419d7f682bb52e87)

10 years agobuild: fix build of libaddns shared lib : it needs socket_wrapper.
Michael Adam [Fri, 11 Jul 2008 13:35:24 +0000 (15:35 +0200)]
build: fix build of libaddns shared lib : it needs socket_wrapper.

Michael
(cherry picked from commit 58bc04b31b15c36505c5ecb2d8373e9033972390)
(cherry picked from commit 2c097e7f333553ff4a540aef7668de7382723a74)

10 years agobuild: fix build of libaddns shared lib. symbols file was missing.
Michael Adam [Fri, 11 Jul 2008 12:38:22 +0000 (14:38 +0200)]
build: fix build of libaddns shared lib. symbols file was missing.

This symbols file is checked because mksyms script currently does
not support headers without exportet symbols...

Michael
(cherry picked from commit 1fa57b47e8f8da33a5713096c187bafb3a6c5b79)
(cherry picked from commit 8eb7be8d1dbf76f7a0f09e0e0271762902fd7e4b)

10 years agocleanup some dup code by passing the password to the wbinfo_auth*
Herb Lewis [Fri, 11 Jul 2008 04:05:30 +0000 (21:05 -0700)]
cleanup some dup code by passing the password to the wbinfo_auth*
functions
(cherry picked from commit 710d42d0b7de44fb684edf7412bfb4a48c3daf07)

10 years agoFix realpath() check so that it doesn't generate a core() when it fails.
Zach Loafman [Thu, 10 Jul 2008 18:45:48 +0000 (18:45 +0000)]
Fix realpath() check so that it doesn't generate a core() when it fails.
(cherry picked from commit 5c5e96df3b96bfab93ed0f0b1e5e7f7615cb356e)

10 years agoAlways set "registry shares = yes" for "include = registry"
Volker Lendecke [Tue, 3 Jun 2008 18:51:42 +0000 (20:51 +0200)]
Always set "registry shares = yes" for "include = registry"

This fixes the case where "include = registry" is set in the smb.conf text file
and *only* shares (no [global] settings) are present in the registry.

Michael, please check!

Thanks,

Volker
(cherry picked from commit 6c80362e291d8c5e748b987a583e8e32acc36354)
(cherry picked from commit dacd0f90f3706db6ffab0cd7662d22eb40811e05)

10 years agoloadparm: fix process_registry_shares() when there is only [global] in registry.
Michael Adam [Tue, 27 May 2008 08:59:11 +0000 (10:59 +0200)]
loadparm: fix process_registry_shares() when there is only [global] in registry.

This fixes testparm printing "Error loading services." when there is only
the global section in registry and no other service definition.

Michael
(cherry picked from commit 28d197220038b9a47af177b88a8587f865e45de5)
(cherry picked from commit efb9a844e74b91d63fda98fa9cc12136bf1f172a)

10 years agoloadarm: fix testparm with "config backend = registry".
Michael Adam [Mon, 26 May 2008 09:58:11 +0000 (11:58 +0200)]
loadarm: fix testparm with "config backend = registry".

Set the iServiceIndex to "-1" for starup with either config
backend (originally only for text backend). Otherwise,
process_registry_shares() will fail.

Currently, the only user of lp_load_with_registry_shares() is testparm.

Michael
(cherry picked from commit 5e2b925367241c41793b2eb7a628e9fc9f3ac8ff)
(cherry picked from commit 6fd007905d4ba09309735a14635502008e082cb6)

10 years agotestparm: list registry shares with testparm.
Michael Adam [Thu, 15 May 2008 00:41:05 +0000 (02:41 +0200)]
testparm: list registry shares with testparm.

I.e., use lp_load_with_registry_shares() instead of lp_load().

Michael
(cherry picked from commit 95339c0c1ecc49049f1fc176f72a1dcac639e06d)
(cherry picked from commit e1bbcc6c5401c59726ca40dadff5760c2800b5c1)

10 years agoloadparm: add funcion lp_load_with_registry_shares().
Michael Adam [Thu, 15 May 2008 00:39:45 +0000 (02:39 +0200)]
loadparm: add funcion lp_load_with_registry_shares().

This is like lp_load(), except that it will load the
registry shares into the services aarray when registry
shares are activated.

Michael
(cherry picked from commit b387c614ba8d1d3960f6917f03f0fd433cf2b2ee)
(cherry picked from commit dc04efa42104100e677bccc307726106d8ca4b31)

10 years agoloadparm: add call to do_section() to process_registry_service().
Michael Adam [Thu, 15 May 2008 00:39:02 +0000 (02:39 +0200)]
loadparm: add call to do_section() to process_registry_service().

Michael
(cherry picked from commit e1b76cd5d646bb9083cfca0d15a84183cad72882)
(cherry picked from commit 661960e2bd73a6f773531608a635e17be28afeba)

10 years agoloadparm: add parameter allow_registry_shares to lp_load_ex().
Michael Adam [Thu, 15 May 2008 00:25:34 +0000 (02:25 +0200)]
loadparm: add parameter allow_registry_shares to lp_load_ex().

This allows for registry shares to be activated, i.e. loaded into
the services array at lp_load() time.

Michael
(cherry picked from commit b3233ecefd5df745ba7e10511f9ab36064036b10)
(cherry picked from commit 02fa674dd62ad400502046fbe9e05a1578b4deab)

10 years agoloadparm: add a function process_registry_shares()
Michael Adam [Thu, 15 May 2008 00:15:20 +0000 (02:15 +0200)]
loadparm: add a function process_registry_shares()

This loads the shares defined in registry into the services array.

Michael
(cherry picked from commit b3a90b72517c2e25d972796908aec4d2b85a030e)
(cherry picked from commit fc60bc9389e5a0ca278b3622e96aed1626c4882e)

10 years agoloadparm: refactor processing of service out of process_registry_globals()
Michael Adam [Thu, 15 May 2008 00:08:14 +0000 (02:08 +0200)]
loadparm: refactor processing of service out of process_registry_globals()

into new function process_registry_service().

Michael
(cherry picked from commit 2986e5174e69527465ae7ef8e108110416752b56)
(cherry picked from commit e7362a769c4ad7b6715c87dc8ba77ffdd38a4824)

10 years agoloadparm: refactor initalization of registry config out into lp_smbconf_ctx().
Michael Adam [Wed, 14 May 2008 23:40:11 +0000 (01:40 +0200)]
loadparm: refactor initalization of registry config out into lp_smbconf_ctx().

Michael
(cherry picked from commit 83cd9f74d57c462ad5c8956b3ce3c81bea429b67)
(cherry picked from commit 7f38c280c821cc7950036a709e01383ab94ab55e)

10 years agobuild: fix bug #5608: link creation for libtalloc.so.1 (and friends) on solaris 8
Michael Adam [Thu, 10 Jul 2008 20:49:50 +0000 (22:49 +0200)]
build: fix bug #5608: link creation for libtalloc.so.1 (and friends) on solaris 8

on solaris, ln -s -f does not remove the link if it exists.

Michael
(cherry picked from commit f4d26db5dfccb962f5ca2cc03e9012a9883e16d8)

10 years agoFix some uninitialized variable references via ndr_print
Volker Lendecke [Thu, 10 Jul 2008 16:20:30 +0000 (18:20 +0200)]
Fix some uninitialized variable references via ndr_print
(cherry picked from commit 43891c397849ccc9c64e5252b6c0350beb754087)

10 years agoFix a segfault in base64_encode_data_blob
Volker Lendecke [Thu, 10 Jul 2008 16:12:24 +0000 (18:12 +0200)]
Fix a segfault in base64_encode_data_blob

We did not allocate enough memory for the \0 and a = at the end
(cherry picked from commit 719ec00949094b7d3b01e9ac829183ae08f46417)

10 years agoGive a nice error message if trying to join with a non-privileged user
Volker Lendecke [Thu, 10 Jul 2008 08:47:46 +0000 (10:47 +0200)]
Give a nice error message if trying to join with a non-privileged user
(cherry picked from commit 088a6f42476782267c50f0a5ea029db0eede6cdd)

10 years agodocs: fix the net conf section of net(8) to mention "config backend = registry".
Michael Adam [Thu, 10 Jul 2008 12:05:33 +0000 (14:05 +0200)]
docs: fix the net conf section of net(8) to mention "config backend = registry".

Michael
(cherry picked from commit c2e9d82d9497f0d245a46c5c82ff15306788109e)
(cherry picked from commit 9ab1efbe12e04fca2433217c76d3a16df6e868b0)

10 years agodocs: fix VERSION section in the net(8) manpage.
Michael Adam [Thu, 10 Jul 2008 11:50:04 +0000 (13:50 +0200)]
docs: fix VERSION section in the net(8) manpage.

It still said for version 3.0 ..

Michael
(cherry picked from commit 93887f2e42bf4e632dab716deda6d2951dbd1f2a)
(cherry picked from commit 9b3ecf75a22aff43a67a62a9dd67397414274d9b)

10 years agodocs: update the section about net conf in the net(8) manpage.
Michael Adam [Thu, 10 Jul 2008 11:46:25 +0000 (13:46 +0200)]
docs: update the section about net conf in the net(8) manpage.

The description of the "net conf {get,set,del}includes" commands was missing.

Michael
(cherry picked from commit 671988c7b5891deeca23e2305fe101a3be1a44d2)
(cherry picked from commit baae7347e94b1b849e80d8da323afc179523430a)

10 years agoFix typo.
Karolin Seeger [Mon, 14 Jul 2008 14:40:36 +0000 (16:40 +0200)]
Fix typo.

retieve -> retrieve

Karolin
(cherry picked from commit 37c64130701ab13b6f34998ac17fec2d128c2e08)
(cherry picked from commit cacd84b86d14740ebb5e285d5882063aea5cd866)

10 years agoman pages: Add missing whitespace.
Karolin Seeger [Thu, 10 Jul 2008 09:23:59 +0000 (11:23 +0200)]
man pages: Add missing whitespace.

Karolin
(cherry picked from commit 5ba418d8bd7bd9a678853b23b0928da4f8693bcf)
(cherry picked from commit 5e220de387abc34926fd7a2be03fc4e4f35f0f7f)

10 years agoWHATSNEW: Update changes since 3.2.0.
Karolin Seeger [Thu, 10 Jul 2008 07:16:32 +0000 (09:16 +0200)]
WHATSNEW: Update changes since 3.2.0.

Karolin
(cherry picked from commit ae0e3291bc31217767fc2e0a3c5d26f8b4c72dc3)

10 years agoFix alignment problems on sparc, bug 5512
Volker Lendecke [Fri, 4 Jul 2008 07:28:04 +0000 (09:28 +0200)]
Fix alignment problems on sparc, bug 5512

Patch successfully tested by Christoph Kaegi <kaph@zhaw.ch>, thanks.
(cherry picked from commit 9f8df16f476c49da85000b7365c8a6e33b8b71fc)

10 years agotestsuite: fix another expr typo in net registry test script.
Michael Adam [Tue, 8 Jul 2008 22:33:54 +0000 (00:33 +0200)]
testsuite: fix another expr typo in net registry test script.

Michael
(cherry picked from commit 73312e4e21b6d14363bd0987e0c9716c4ec91834)
(cherry picked from commit 01ea8d4f34cfe29dd8a945ebe340a80a4eafb9c7)

10 years agotestsuite: fix expr typo in net registry testscript.
Michael Adam [Tue, 8 Jul 2008 22:33:14 +0000 (00:33 +0200)]
testsuite: fix expr typo in net registry testscript.

Michael
(cherry picked from commit 5b6c32160a5d8fafc807fbefb66aa8c98662baae)
(cherry picked from commit 1b293758292a055648403f74d0b565538ad578d2)

10 years agoMinor style correction
Zach Loafman [Tue, 8 Jul 2008 02:30:47 +0000 (19:30 -0700)]
Minor style correction

Set sin[6]_family instead of ss_family in in[6]_addr_to_sockaddr_storage
so that assignments look like they're going to the same place.
(cherry picked from commit 01d1dddebff7ec9502422667b12f0bac8fa6a780)

10 years agoFix option processing in smbcacls - add POPT_COMMON_CONNECTION.
Jeremy Allison [Mon, 7 Jul 2008 22:50:39 +0000 (15:50 -0700)]
Fix option processing in smbcacls - add POPT_COMMON_CONNECTION.
Jeremy.
(cherry picked from commit c1baf310830e7ebff4fe0835812122ec146412da)

10 years agouse variables for files used in multiple places
Herb Lewis [Mon, 7 Jul 2008 19:44:13 +0000 (12:44 -0700)]
use variables for files used in multiple places
(cherry picked from commit cee044bc42d955c535dbb6bb372af01089d37756)

10 years agofix comment typo and change some uint32 to uint32_t
Herb Lewis [Mon, 7 Jul 2008 19:32:16 +0000 (12:32 -0700)]
fix comment typo and change some uint32 to uint32_t
(cherry picked from commit 8272dace64f39286e4255e9f5bc8d04fb47f2c51)

10 years agoAllow authentication and memory credential refresh after password change from gdm...
Jeremy Allison [Mon, 7 Jul 2008 18:25:57 +0000 (11:25 -0700)]
Allow authentication and memory credential refresh after password change from gdm/xdm. Patch from boyang <boyang@novell.com>.
Jeremy.
(cherry picked from commit 63316efeeb330d2cb7fa0906824c97da2c7b0074)

10 years agobuild: fix creation of libaddns.a - don't link in libtalloc.a
Michael Adam [Mon, 7 Jul 2008 16:34:13 +0000 (18:34 +0200)]
build: fix creation of libaddns.a - don't link in libtalloc.a

another step towards fixing bug #5590

Michael
(cherry picked from commit 396310775e69baeee06b2e6469854a5ddf759a91)

10 years agobuild: fix creation of libsmbclient.a - don't link in libtalloc.a
Michael Adam [Mon, 7 Jul 2008 12:14:35 +0000 (14:14 +0200)]
build: fix creation of libsmbclient.a - don't link in libtalloc.a

Second step in fixing bug #5590.

Michael
(cherry picked from commit dcf986937ccf5e6947c4214aa0838733ed7f3b9b)

10 years agobuild: fix creation of libsmbsharemodes.a - don't link in libtdb.a.
Michael Adam [Mon, 7 Jul 2008 11:52:46 +0000 (13:52 +0200)]
build: fix creation of libsmbsharemodes.a - don't link in libtdb.a.

First step in fixing bug #5590.

Michael
(cherry picked from commit 4fc57a0a90390ede1161fd6f231ea274c9c74b20)

10 years agoWHATSNEW: Update changes since 3.2.0.
Karolin Seeger [Sun, 6 Jul 2008 20:26:43 +0000 (22:26 +0200)]
WHATSNEW: Update changes since 3.2.0.

Karolin
(cherry picked from commit e6ddd28000c92ecd119fdc06197d931394f762cb)

10 years agoVERSION: Raise version number to 3.2.1.
Karolin Seeger [Sun, 6 Jul 2008 20:10:55 +0000 (22:10 +0200)]
VERSION: Raise version number to 3.2.1.

Karolin
(cherry picked from commit 00fc0003f6d163c7a51eda726a7ca542be671718)

10 years agoAdd SMB_VFS_OP_RECVFILE to get it in sync with vfs.h
Lars Müller [Fri, 4 Jul 2008 12:51:01 +0000 (14:51 +0200)]
Add SMB_VFS_OP_RECVFILE to get it in sync with vfs.h

Fix "vfs_full_audit.c: name table not in sync with vfs.h" panic reported
by Franz Sirl.
(cherry picked from commit 567c6def08d91716c687ed43de0938e1556f26e2)

10 years agoPatch from SATOH Fumiyasu <fumiyas@osstech.co.jp> for bug #5202. Re-activate "acl...
Jeremy Allison [Thu, 3 Jul 2008 17:25:26 +0000 (10:25 -0700)]
Patch from SATOH Fumiyasu <fumiyas@osstech.co.jp> for bug #5202. Re-activate "acl group control"
parameter and make it only apply to owning group. Also added man page fix.
Jeremy.
(cherry picked from commit 93e91e5364a7f131d988648cf5fe822a9bd68734)