obnox/samba-ctdb.git
15 years agoFix a race condition in winbind leading to a crash build_3.2.0_ctdb.39
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)
(cherry picked from commit d1db27e6c94cb283fb70d6dbf531c65829d0f460)

15 years agopackaging(RHEL-CTDB): Bump release number to ctdb.39 for the next RPM.
Michael Adam [Wed, 23 Jul 2008 00:01:51 +0000 (02:01 +0200)]
packaging(RHEL-CTDB): Bump release number to ctdb.39 for the next RPM.

Michael

15 years agoRevert "dbwrap_crdb: wrap the tdb_store in db_ctdb_store_persistent() into transactions" build_3.2.0_ctdb.38
Michael Adam [Tue, 22 Jul 2008 22:18:46 +0000 (00:18 +0200)]
Revert "dbwrap_crdb: wrap the tdb_store in db_ctdb_store_persistent() into transactions"

This reverts commit c045f0350b2dd1ac78329af3c2137bacba23e505.

Wrapping the tdb_store into transactions is not that easy, since
the key is locked by fetch_locked.

Michael

15 years agoRevert "dbwrap_ctdb: wrap tdb_store() in transactions in db_ctdb_store()."
Michael Adam [Tue, 22 Jul 2008 22:17:55 +0000 (00:17 +0200)]
Revert "dbwrap_ctdb: wrap tdb_store() in transactions in db_ctdb_store()."

This reverts commit 460080e479eb2e063772a1ae9cb5c3ec809cd12d.

Wrapping the tdb_store into transactions is not that easy, since
the key is locked by fetch_locked.

Michael

15 years agoRevert "dbwrap_ctdb: wrap tdb_store() in transactions in db_ctdb_delete()."
Michael Adam [Tue, 22 Jul 2008 22:14:46 +0000 (00:14 +0200)]
Revert "dbwrap_ctdb: wrap tdb_store() in transactions in db_ctdb_delete()."

This reverts commit f9c9d50ea65b736ee185edad7b5e6bd724f3f938.

Wrapping the tdb_store into transactions is not that easy, since
the key is locked by fetch_locked.

Michael

15 years agoMerge commit 'origin/v3-2-stable' into v3-2-ctdb
Michael Adam [Mon, 21 Jul 2008 10:40:49 +0000 (12:40 +0200)]
Merge commit 'origin/v3-2-stable' into v3-2-ctdb

15 years agodbwrap_ctdb: wrap tdb_store() in transactions in db_ctdb_delete().
Michael Adam [Mon, 21 Jul 2008 10:24:10 +0000 (12:24 +0200)]
dbwrap_ctdb: wrap tdb_store() in transactions in db_ctdb_delete().

Michael

15 years agodbwrap_ctdb: wrap tdb_store() in transactions in db_ctdb_store().
Michael Adam [Mon, 21 Jul 2008 10:23:27 +0000 (12:23 +0200)]
dbwrap_ctdb: wrap tdb_store() in transactions in db_ctdb_store().

Michael

15 years agodbwrap_crdb: wrap the tdb_store in db_ctdb_store_persistent() into transactions
Michael Adam [Mon, 21 Jul 2008 10:10:58 +0000 (12:10 +0200)]
dbwrap_crdb: wrap the tdb_store in db_ctdb_store_persistent() into transactions

for crash-safety.

Michael

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

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

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

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

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

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

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

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

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

15 years agoUse transaction start/cancel for persistent writes to avoid leaving the database...
Ronnie Sahlberg [Fri, 18 Jul 2008 08:50:16 +0000 (18:50 +1000)]
Use transaction start/cancel for persistent writes to avoid leaving the database in an inconsistent state if we crash during the operation

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
15 years agopackaging(RHEL-CTDB): bump Release number to ctdb.37 for next rpm.
Michael Adam [Fri, 18 Jul 2008 09:20:38 +0000 (11:20 +0200)]
packaging(RHEL-CTDB): bump Release number to ctdb.37 for next rpm.

Michael

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

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

15 years agodbwrap: don't panic in db_open_trans() if called with TDB_CLEAR_IF_FIRST. build_3.2.0_ctdb.37
Michael Adam [Tue, 15 Jul 2008 14:43:26 +0000 (16:43 +0200)]
dbwrap: don't panic in db_open_trans() if called with TDB_CLEAR_IF_FIRST.

return NULL instead and leave appropriated measures to the caller.

Michael
(cherry picked from commit 1002507b56a13420d8178c5397610edd839a7584)

15 years agodbwrap: don't panic in db_open_trans() when attaching to ctdb fails.
Michael Adam [Tue, 15 Jul 2008 13:27:46 +0000 (15:27 +0200)]
dbwrap: don't panic in db_open_trans() when attaching to ctdb fails.

Michael
(cherry picked from commit 308fc7d5bf5f5ccfc73677b052a4e6ecede25921)

15 years agodbwrap: don't panic in db_open() when attaching to ctdb fails.
Michael Adam [Tue, 15 Jul 2008 13:27:14 +0000 (15:27 +0200)]
dbwrap: don't panic in db_open() when attaching to ctdb fails.

Michael
(cherry picked from commit b9c008d9bd8b8119007e7ad03a40235998af4f5c)

15 years agoRevert "Do not panic if db_open_ctdb fails"
Michael Adam [Wed, 16 Jul 2008 11:14:45 +0000 (13:14 +0200)]
Revert "Do not panic if db_open_ctdb fails"

This reverts commit 677d2cef50f1e74943b34925c14ce42543f278bf.

Re-pick corresponding changes from upstream.

Michael

15 years agoregistry: bump debug level to 1 in regdb_init() if storing version string fails.
Michael Adam [Tue, 15 Jul 2008 12:25:00 +0000 (14:25 +0200)]
registry: bump debug level to 1 in regdb_init() if storing version string fails.

Higher level callers should take care of level 0 messages.

Michael
(cherry picked from commit b5829e04eaf2408858b34f53b849aaf8b969a925)

15 years agoregistry: bump debug level to 1 in regdb_init() if opening the registry fails.
Michael Adam [Tue, 15 Jul 2008 12:22:55 +0000 (14:22 +0200)]
registry: bump debug level to 1 in regdb_init() if opening the registry fails.

Higher level callers take care of level 0 messages or more drastic measures.

Michael
(cherry picked from commit 111d802b5c0dfdf556f736b6c53df74e077a6238)

15 years agodbwrap: when clustering = yes, don't fall back to db_open_tdb in db_open_trans.
Michael Adam [Mon, 14 Jul 2008 08:53:06 +0000 (10:53 +0200)]
dbwrap: when clustering = yes, don't fall back to db_open_tdb in db_open_trans.

Michael
(cherry picked from commit 013d29c70438bfd43bd11cbb13ba707b256f9b18)

15 years agodbwrap: when clustering = yes, don't fall back to db_open_tdb in db_open
Michael Adam [Mon, 14 Jul 2008 08:43:28 +0000 (10:43 +0200)]
dbwrap: when clustering = yes, don't fall back to db_open_tdb in db_open

Michael
(cherry picked from commit 33188a991f7e2f8dc1b5beed1dde1b7f77403e1a)

15 years agotestparm: allow the default debug level of 2 to be changed from the command line.
Michael Adam [Tue, 15 Jul 2008 09:26:43 +0000 (11:26 +0200)]
testparm: allow the default debug level of 2 to be changed from the command line.

Michael
(cherry picked from commit 5a0883a7f28538fad542293e1d9361e8c4bed1fd)

15 years agopopt: add a popt_common_debuglevel set of options providing -d|--debuglevel
Michael Adam [Tue, 15 Jul 2008 09:26:11 +0000 (11:26 +0200)]
popt: add a popt_common_debuglevel set of options providing -d|--debuglevel

Michael
(cherry picked from commit e7d08b673066a63aaa7ab54ac59566ae8a975672)

15 years agoMerge commit 'origin/v3-2-stable' into v3-2-ctdb
Michael Adam [Wed, 16 Jul 2008 09:13:16 +0000 (11:13 +0200)]
Merge commit 'origin/v3-2-stable' into v3-2-ctdb

Conflicts:

source/param/loadparm.c

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

15 years agopackaging(RHEL-CTDB): Bump release number to ctdb.37 for the next RPM.
Michael Adam [Thu, 10 Jul 2008 21:28:07 +0000 (23:28 +0200)]
packaging(RHEL-CTDB): Bump release number to ctdb.37 for the next RPM.

Michael

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

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

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

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

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

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

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

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

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

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

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

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

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

15 years agoMerge commit 'origin/v3-2-stable' into v3-2-ctdb build_3.2.0_ctdb.36
Michael Adam [Wed, 9 Jul 2008 13:07:32 +0000 (15:07 +0200)]
Merge commit 'origin/v3-2-stable' into v3-2-ctdb

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

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

15 years agoregistry: fix logic in deleting subkeys record in regdb_fetch_keys().
Michael Adam [Wed, 9 Jul 2008 08:40:39 +0000 (10:40 +0200)]
registry: fix logic in deleting subkeys record in regdb_fetch_keys().

Don't cancel on NT_STATUS_NOT_FOUND error from dbwrap_delete_bystring().
So deletion of an "incomlete" registry key, i.e. one with an entry in
the list of subkeys of its parent key but not a subkey list of its own,
works again.

Michael
(cherry picked from commit 75be2116ac2589aaf69038a4115197f40e4b16a5)

15 years agoregistry: improve logic for deleting value records in regdb_store_keys().
Michael Adam [Wed, 9 Jul 2008 08:39:00 +0000 (10:39 +0200)]
registry: improve logic for deleting value records in regdb_store_keys().

Don't ignore all errors from dbwrap_delete_bystring() but
only NT_STATUS_NOT_FOUND.

Michael
(cherry picked from commit d7ec9b2d52d1eddd98eba222f723fb6cdff4541f)

15 years agoregistry: fetch regdb_fetch_keys() when a key exists but not its subkey-record.
Michael Adam [Tue, 8 Jul 2008 15:10:01 +0000 (17:10 +0200)]
registry: fetch regdb_fetch_keys() when a key exists but not its subkey-record.

According to the new policy a key (that is not a base key) exists,
iff it exists in the subkey list of its parent key.

Usually this subkeylist is present, but in a transaction-less
dbwrap backend (ctdb), a failing write can leave an "incomplete"
key without its own subkeylist-record. (Otherwise such an
incomplete key can be generated with e.g. tdbtool.)
For such a key net registry enumerate (e.g.) would fail.
This commit fixes this behaviour of regdb_fetch_keys().

Michael
(cherry picked from commit f329aaf0452cc9bbad9fb6f67dac00bf8d1ef128)

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

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