tprouty/samba.git
11 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)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

11 years agolibnetjoin: fix Bug #5570.
Günther Deschner [Thu, 3 Jul 2008 10:01:36 +0000 (12:01 +0200)]
libnetjoin: fix Bug #5570.

Thanks to Atte Peltomäki.

Guenther
(cherry picked from commit 144d374ad9dd981430a82369ceaa2783e6dae90a)
(cherry picked from commit 3e5bff08dac4faf575a11fe3edb17af08170ed74)

11 years agoFix build warning.
Günther Deschner [Thu, 3 Jul 2008 09:09:32 +0000 (11:09 +0200)]
Fix build warning.

Thanks to Thorkil Olesen.

Guenther
(cherry picked from commit c18e5983c1e9274131ac7fca7ca5e6739ba2b312)
(cherry picked from commit b7a53f20494bec008aabd4de4d3a14ece8b9cda1)

11 years agoRemove worrying warning message when safe_strcpy tries to copy a pseaudo interface
Jeremy Allison [Wed, 2 Jul 2008 23:32:02 +0000 (16:32 -0700)]
Remove worrying warning message when safe_strcpy tries to copy a pseaudo interface
name that's too long. Reported by James Kosin <JKosin@intcomgrp.com>.
Jeremy.
(cherry picked from commit e7c7246300bf060a93c2685ce9496b52f91d0a96)

11 years agoCanonicalize servername in the printer functions to remove leading '\\' characters...
Jeremy Allison [Wed, 2 Jul 2008 23:11:43 +0000 (16:11 -0700)]
Canonicalize servername in the printer functions to remove leading '\\' characters. Ensure we always return consistent names.
Jeremy.
(cherry picked from commit d47ab1d07ba043f42a24a17f7644bf672c12791a)

11 years agoFix bug #5578, reported by sendel2000@hotbox.ru. Bad (non-Samba) use of strlcat gives...
Jeremy Allison [Wed, 2 Jul 2008 18:57:59 +0000 (11:57 -0700)]
Fix bug #5578, reported by sendel2000@hotbox.ru. Bad (non-Samba) use of strlcat gives error.
Jeremy.
(cherry picked from commit a93c7a2170124f24aac4063c853475ae3f6b0720)

11 years agoEnsure consistent use of pdb_get_nt_passwd instead of pdb_get_lanman_passwd.
Jeremy Allison [Wed, 2 Jul 2008 17:51:33 +0000 (10:51 -0700)]
Ensure consistent use of pdb_get_nt_passwd instead of pdb_get_lanman_passwd.
Reported by hongbing Zhang <hongbing.zhang@gmail.com>.
Jeremy.
(cherry picked from commit 00e48ea5d113a0bde1a2b044d6869174cb536035)

11 years ago MSG_DEBUG now forwarded to all the winbindd children by parent.
Jeremy Allison [Wed, 2 Jul 2008 01:00:51 +0000 (18:00 -0700)]
   MSG_DEBUG now forwarded to all the winbindd children by parent.

    smbcontrol winbindd debug level would only set the debug level of the
    parent winbindd process and not the child processes. This patch adds
    the functionality of broadcasting the debug message to all winbindd
    children. Now the debug level message is propagated to all the winbindd
    processes that includes parent and children.

From Darshan Purandare <dpurandare@isilon.com> - had to patch separately
due to proto.h not being under git control in 3.2.x.
Jeremy.
(cherry picked from commit f6d4f487332baf74acec8f50e31bcfea44775570)

11 years agoJim Brown <jim.brown@miami.edu> was right, this needs to be a signed int or
Jeremy Allison [Tue, 1 Jul 2008 22:50:27 +0000 (15:50 -0700)]
Jim Brown <jim.brown@miami.edu> was right, this needs to be a signed int or
the loop never terminates.
Jeremy.
(cherry picked from commit 0108d32d1d9d7fd975df3ec7d1f1c830f170503f)

11 years agoTwo more fixes from Jim Brown <jim.brown@miami.edu> for SGI compiler warnings.
Jeremy Allison [Tue, 1 Jul 2008 22:40:07 +0000 (15:40 -0700)]
Two more fixes from Jim Brown <jim.brown@miami.edu> for SGI compiler warnings.
Jeremy.
(cherry picked from commit 8dd833b908cc8d4c0aa34cdece014d0e160aaf9e)

11 years agoFix problem noticed by Jim Brown <jim.brown@miami.edu>. When reverse searching decrem...
Jeremy Allison [Tue, 1 Jul 2008 22:27:37 +0000 (15:27 -0700)]
Fix problem noticed by Jim Brown <jim.brown@miami.edu>. When reverse searching decrement index,
not increment. Michael please check !
Jeremy.
(cherry picked from commit 042c5008d8411f03980f967edb2f78d1a3262aed)

11 years agoAttempt to fix the build on Irix CC release-3-2-0
Volker Lendecke [Tue, 1 Jul 2008 12:24:47 +0000 (14:24 +0200)]
Attempt to fix the build on Irix CC
(cherry picked from commit 666bf8456ac44cbbbd5524af2bf4fd89e18ddf62)

11 years agoWHATSNEW: Remove reference to 3rd version of Using Samba.
Karolin Seeger [Tue, 1 Jul 2008 08:38:44 +0000 (10:38 +0200)]
WHATSNEW: Remove reference to 3rd version of Using Samba.

Book is still missing, so I can't ship it.

Karolin
(cherry picked from commit b124b02afe6a010fd99b29803caaf267d05fab98)

11 years agoWHATSNEW: Update changes since 3.2.0rc2.
Karolin Seeger [Mon, 30 Jun 2008 19:43:16 +0000 (21:43 +0200)]
WHATSNEW: Update changes since 3.2.0rc2.

Karolin
(cherry picked from commit c1a708ddba737f9147e4f5f179aca031584d0983)

11 years agoAfter technical consultation, add Steven Danneman's <steven.danneman@isilon.com>...
Jeremy Allison [Mon, 30 Jun 2008 18:23:05 +0000 (11:23 -0700)]
After technical consultation, add Steven Danneman's <steven.danneman@isilon.com> patch to make winbindd enum users and groups async.
We need this for 3.2.0 official.
Jeremy.
(cherry picked from commit d05451c2c256e04870ebe6467f38585dad72f3a9)

11 years agoWHATSNEW: Fix alphabetical order, update changes.
Karolin Seeger [Mon, 30 Jun 2008 18:22:53 +0000 (20:22 +0200)]
WHATSNEW: Fix alphabetical order, update changes.

Karolin
(cherry picked from commit 3d5872c64d5cefc3125702b4c1a3156161abfad2)

11 years agoFix from Atte Peltomäki - atte.peltomaki@f-secure.com to correctly check
Jeremy Allison [Mon, 30 Jun 2008 16:19:16 +0000 (09:19 -0700)]
Fix from Atte Peltomäki - atte.peltomaki@f-secure.com to correctly check
error code in winbindd group expansion.
Jeremy.
(cherry picked from commit c622c997c513d02f929beaaf8ce2e5aa249fcc47)

11 years agoWHATSNEW: Update changes since 3.2.0rc2.
Karolin Seeger [Sun, 29 Jun 2008 15:49:59 +0000 (17:49 +0200)]
WHATSNEW: Update changes since 3.2.0rc2.

Karolin
(cherry picked from commit 8e28052cbc923077616f4cbddc81f4f3d4f341ab)

11 years agoReturn NULL in sitename_fetch() if gencache_init() fails. Not false
Gerald W. Carter [Sat, 28 Jun 2008 13:35:07 +0000 (09:35 -0400)]
Return NULL in sitename_fetch() if gencache_init() fails.  Not false
(cherry picked from commit 9e9bab2dd859c7bb8082b4c932f1a95adf1895c6)
(cherry picked from commit 7a853d265b3701a8a0003c4e3771c4a2fa1c6156)

11 years agoFix a file descriptor leak in add_port_hook
Volker Lendecke [Sat, 28 Jun 2008 14:09:34 +0000 (16:09 +0200)]
Fix a file descriptor leak in add_port_hook

This was probably cut&paste from add_printer_hook which further down has the
unconditional close(fd). In add_port_hook() we're not interested in the output
of 'addport command', so don't create the out fd.
(cherry picked from commit 0c5ca2127ac6e3c71e369242376d27429c3aee5e)

11 years agoFix bug #5568 net rpc trustdom add broken !
Jeremy Allison [Sat, 28 Jun 2008 00:27:40 +0000 (17:27 -0700)]
Fix bug #5568 net rpc trustdom add broken !
net rpc trustdom add was broken. The default 10second timeout can be too short
to create an account on a Samba DC (calling out to a script), error message
reporting was poor, and more importantly the new marshalling code for
user_info23 was broken (maps onto a user_info21 but doesn't clear the
user_info23 struct before marshalling, leaving an uninitialized size field -
give "alloc failure").
Jeremy.
(cherry picked from commit 52552623277726c2f28a992f68d8bc22982bab28)

11 years agoFix usage message for net rpc trustdom add.
Jeremy Allison [Fri, 27 Jun 2008 22:28:03 +0000 (15:28 -0700)]
Fix usage message for net rpc trustdom add.
Jeremy.
(cherry picked from commit 55a6664cfdab9c0230836aff57ec8d2cc5bfca14)

11 years agoFix warnings on SuSE 9.0.
Karolin Seeger [Fri, 27 Jun 2008 13:51:35 +0000 (15:51 +0200)]
Fix warnings on SuSE 9.0.

The macros "[un]likely" are already defined on SuSE 9.0.
Patch from Volker.
(cherry picked from commit 30d181c92463aecd6e649330d3645d86d5a17e43)
(cherry picked from commit 33eb39de7b0e88bf51430d645be26d47effaa98f)

11 years agoWHATSNEW: Update changes since 3.2.0rc2.
Karolin Seeger [Fri, 27 Jun 2008 08:14:40 +0000 (10:14 +0200)]
WHATSNEW: Update changes since 3.2.0rc2.

Karolin
(cherry picked from commit 1cc413677eee0134cd203d85302da55d3d0be328)

11 years agoFix gcc warnings at -O3.
Jeremy Allison [Fri, 27 Jun 2008 02:20:51 +0000 (19:20 -0700)]
Fix gcc warnings at -O3.
Jeremy.
(cherry picked from commit 096ff390a24ce971c9a207493dc1b5d9f88518b6)

11 years agoFix valgrind errors in _spoolss_addprinterdriver
Volker Lendecke [Thu, 26 Jun 2008 14:51:45 +0000 (16:51 +0200)]
Fix valgrind errors in _spoolss_addprinterdriver

Jerry, this was dropped as part of your SVN r15309 (037f9f83). Can you please
check?

Thanks,

Volker
(cherry picked from commit 5aa2411f0b3720b790439359a2dadb23008e936e)

11 years agoWHATSNEW: Update changes since 3.2.0rc2.
Karolin Seeger [Thu, 26 Jun 2008 13:46:26 +0000 (15:46 +0200)]
WHATSNEW: Update changes since 3.2.0rc2.

Karolin
(cherry picked from commit 956e1f754580d7194e1716a90725f1e02c8001f7)

11 years agoFix a segfault in rpcclient adddriver
Volker Lendecke [Thu, 26 Jun 2008 13:32:27 +0000 (15:32 +0200)]
Fix a segfault in rpcclient adddriver
(cherry picked from commit d4b5a9d67389578f531527b339f6feead62f082d)

11 years agoWHATSNEW: Preparations for 3.2.0.
Karolin Seeger [Thu, 26 Jun 2008 12:47:27 +0000 (14:47 +0200)]
WHATSNEW: Preparations for 3.2.0.

Karolin
(cherry picked from commit 7e3e68bbeaa8b644c6a84848bcb28507765b2b3d)

11 years agoVERSION: Update version.
Karolin Seeger [Thu, 26 Jun 2008 11:24:40 +0000 (13:24 +0200)]
VERSION: Update version.

Karolin
(cherry picked from commit 3dfa6c3b34652c5b13b9f1fc299241214611a4e2)

11 years agoPart of fix for #5551. Split out the group enumeration functions to a BUILTIN and...
Jeremy Allison [Wed, 25 Jun 2008 22:23:52 +0000 (15:23 -0700)]
Part of fix for #5551. Split out the group enumeration functions to a BUILTIN and a Domain
specific version. Stops the domain groups appearing twice.
Jeremy.
(cherry picked from commit ee7af33ec6e752b1b1898b50aebc96e66ea423db)

11 years agoFinal (hopefully :-) part of fix for bug #5551. Allow passdb backend to enumerate...
Jeremy Allison [Wed, 25 Jun 2008 19:44:27 +0000 (12:44 -0700)]
Final (hopefully :-) part of fix for bug #5551. Allow passdb backend to enumerate domain groups.
Jeremy
(cherry picked from commit 269521ee08b962040afe63ea74130ba27f29e092)

11 years agoFix for bug #5551, smbd recursing back into winbindd from a winbindd call.
Jeremy Allison [Wed, 25 Jun 2008 01:04:37 +0000 (18:04 -0700)]
Fix for bug #5551, smbd recursing back into winbindd from a winbindd call.
Jeremy.
(cherry picked from commit 132a5f4a5740f8a4e3bd634af654c9761c11aa1a)

11 years agoFix bug #5555. Don't return NT_STATUS_PASSWORD_MUST_CHANGE error on machine account...
Jeremy Allison [Tue, 24 Jun 2008 23:42:30 +0000 (16:42 -0700)]
Fix bug #5555. Don't return NT_STATUS_PASSWORD_MUST_CHANGE error on machine account logon.
Jeremy.
(cherry picked from commit 2a3e2c9550acb1c55c0c55e4bfb0faaadad2f6fd)

11 years agoSorry volker, lost your original git-id due to proto.h conflicts.
Jeremy Allison [Mon, 23 Jun 2008 18:24:52 +0000 (11:24 -0700)]
Sorry volker, lost your original git-id due to proto.h conflicts.

Remove the "exists" parameter from create_msdfs_link

Jeremy, setting "exists" to True in _dfs_Add prevented the initial creation of
a new symlink for me, because the SMB_VFS_UNLINK failed. This also exists in
3.2. I only check it into 3.3 as I would like you to look at it first.

Thanks,

Volker
(cherry picked from commit 47e66814c176d597d9a3c165a7cfa6a5a2fd70be)

11 years agoCheck for sec_initial_uid() instead of uid==0 in dfs management
Volker Lendecke [Sun, 22 Jun 2008 18:27:20 +0000 (20:27 +0200)]
Check for sec_initial_uid() instead of uid==0 in dfs management
(cherry picked from commit 12d816dc997b1bfc048c5c042945a5e935abf4b4)

11 years agoReduce memory usage in form_junctions() a little bit
Volker Lendecke [Sun, 22 Jun 2008 09:28:57 +0000 (11:28 +0200)]
Reduce memory usage in form_junctions() a little bit
(cherry picked from commit 0dafec20396a0722d691ab3723eadc6124759e12)