tprouty/samba.git
15 years agoWHATSNEW: Update changes since 3.2.0rc1.
Karolin Seeger [Mon, 9 Jun 2008 11:42:15 +0000 (13:42 +0200)]
WHATSNEW: Update changes since 3.2.0rc1.

Karolin
(cherry picked from commit ead68586fc1d3d8ac83d069a1355573026397ac6)

15 years agoFix the compile on NetBSD -- missing prototypes
Volker Lendecke [Mon, 9 Jun 2008 13:34:51 +0000 (15:34 +0200)]
Fix the compile on NetBSD -- missing prototypes
(cherry picked from commit 11236d266e3703eb3aca4b96e2ed9da76614ec12)

15 years agoFix the compile on NetBSD -- readlink and read are macros there
Volker Lendecke [Mon, 9 Jun 2008 13:33:28 +0000 (15:33 +0200)]
Fix the compile on NetBSD -- readlink and read are macros there
(cherry picked from commit 435b80a9a2e9324cc20594d922b3d8d6418c27af)

15 years agoWHATSNEW: Update changes since 3.2.0rc2.
Karolin Seeger [Mon, 9 Jun 2008 10:22:27 +0000 (12:22 +0200)]
WHATSNEW: Update changes since 3.2.0rc2.

Karolin
(cherry picked from commit 7b2150da84e51426b07e259e51dd4cbc3171ba83)

15 years agolibreplace: only include AC_USE_SYSTEM_EXTENSIONS fallback if required
Stefan Metzmacher [Mon, 9 Jun 2008 08:39:48 +0000 (10:39 +0200)]
libreplace: only include AC_USE_SYSTEM_EXTENSIONS fallback if required

This fixes ./autogen.sh with autoconf-2.62

metze
(cherry picked from commit 72bb01dda4d425528e28cd96e249595dc6c1952f)
(cherry picked from commit 85111dc2b60ca38027adf129a074641c752cb104)
(cherry picked from commit 24f0c35571b26187c13af933604fe40afed1da34)

15 years agolibreplace: fix warnings with autoconf-2.62 rename ac_ => libreplace_cv_
Stefan Metzmacher [Mon, 9 Jun 2008 08:38:09 +0000 (10:38 +0200)]
libreplace: fix warnings with autoconf-2.62 rename ac_ => libreplace_cv_

AC_CACHE_VAL() variables must contain _cv_ to be cached.

metze
(cherry picked from commit 67e43860b4973a458676b36785570bb4a66e046a)
(cherry picked from commit d786bfc48e20ed7e695a988da6ed56a573afdadc)
(cherry picked from commit c402acd63a31bace402b361760a7d73f95db3717)

15 years agoconfigure: we require autoconf 2.54
Stefan Metzmacher [Mon, 9 Jun 2008 08:43:48 +0000 (10:43 +0200)]
configure: we require autoconf 2.54

I've tested with autoconf from 2.53 to 2.62.

metze
(cherry picked from commit a268a6d251e58c27262e11fcd85b8281dfaddd8b)
(cherry picked from commit 21bbd421d4bd2c16f4d8ab94a6a9e3388be4fb82)

15 years agoconfigure: fix warnings with autoconf-2.62 rename SMB_BUILD_ => samba_cv_
Stefan Metzmacher [Mon, 9 Jun 2008 08:27:12 +0000 (10:27 +0200)]
configure: fix warnings with autoconf-2.62 rename SMB_BUILD_ => samba_cv_

AC_CACHE_VAL() variables must contain _cv_ to be cached.

metze
(cherry picked from commit 89663ab4d10586b96807c56de53fd60d2488093c)
(cherry picked from commit 74c644a2bed45d48215914da8002913254a7f54c)

15 years agoconfigure: fix warnings with autoconf-2.62 rename samba_stat_hires => samba_cv_stat_hires
Stefan Metzmacher [Mon, 9 Jun 2008 08:23:27 +0000 (10:23 +0200)]
configure: fix warnings with autoconf-2.62 rename samba_stat_hires => samba_cv_stat_hires

AC_CACHE_VAL() variables must contain _cv_ to be cached.

metze
(cherry picked from commit 426b1e36e262ae47ea62e36e1df8a76c930394bc)
(cherry picked from commit 84a8a7d9e028aa223617a8cb7aa31d5fabd7636e)

15 years agoconfigure: fix warnings with autoconf-2.62 rename smb_krb5_ => smb_krb5_cv_
Stefan Metzmacher [Mon, 9 Jun 2008 08:19:21 +0000 (10:19 +0200)]
configure: fix warnings with autoconf-2.62 rename smb_krb5_ => smb_krb5_cv_

AC_CACHE_VAL() variables must contain _cv_ to be cached.

metze
(cherry picked from commit 38a03d61ecd35a70905b895b839a994e974cbaf1)
(cherry picked from commit a7a8abdbac00693a0437d3b3cb1e4e9784a03e51)

15 years agoWHATSNEW: Update changes since 3.2.0rc1.
Karolin Seeger [Mon, 9 Jun 2008 08:55:16 +0000 (10:55 +0200)]
WHATSNEW: Update changes since 3.2.0rc1.

Karolin
(cherry picked from commit 3b8c9ae9826705edd7a3852a9c0ffd0e632094c4)

15 years agonetdomjoin-gui: enable NetGetJoinInformation() call after successfull joining.
Günther Deschner [Thu, 5 Jun 2008 17:04:31 +0000 (19:04 +0200)]
netdomjoin-gui: enable NetGetJoinInformation() call after successfull joining.

Now that libnetjoin reloads configuration after joining, we can rely on the
NetGetJoinInformation() output and use it for displaying the new domain name and
type.

Guenther
(cherry picked from commit cc1b8de2632e87002cac86838f2a77ab9771ce2c)

15 years agonetdomjoin-gui: fix more gtk runtime warnings.
Günther Deschner [Thu, 5 Jun 2008 17:02:09 +0000 (19:02 +0200)]
netdomjoin-gui: fix more gtk runtime warnings.

Guenther
(cherry picked from commit 521ea68719524eeef827875e018bb8cba2a92e87)

15 years agonetdomjoin-gui: disable annoying "reboot now" dialog.
Günther Deschner [Wed, 4 Jun 2008 23:11:23 +0000 (01:11 +0200)]
netdomjoin-gui: disable annoying "reboot now" dialog.

Guenther
(cherry picked from commit 8f0c5f1bedaae7a86ca671cdb2ba798079ec1d84)

15 years agonetdomjoin-gui: some minor fixes + hunting down typecast bugs.
Günther Deschner [Tue, 3 Jun 2008 13:19:46 +0000 (15:19 +0200)]
netdomjoin-gui: some minor fixes + hunting down typecast bugs.

Guenther
(cherry picked from commit 0fa6c8c6a3efd026154e8af54ba73b3d3de1affa)

15 years agoBugfix noticed by Herb. On using the again: tag as a
Jeremy Allison [Sun, 8 Jun 2008 21:19:16 +0000 (14:19 -0700)]
Bugfix noticed by Herb. On using the again: tag as a
goto target we were not reinitializing the array counts.

From Herb:

This is in the file nsswitch/winbindd_cm.c (samba-3.0.30) line 1236

We have a label again: where we keep trying to find the name of the DC
from the list of IPs returned by get_dcs. If we fail to figure out the
name we do a goto again at the end of the function. The problem is we
don't reset the num_dcs, num_addrs, etc and free the memory in the
various arrays. This seems wrong to me. I have a winbindd core where
I have 9 IPs returned for the DCs but at the time of the crash num_dcs
is 87 and if I look through the array dcs it keeps repeating entries
from the same group of 9

Jerry, Volker and Guenther please check.

Jeremy.
(cherry picked from commit 0b2062a499c69c86cc03130542aaf3e92265b65d)

15 years agopam_winbind: fix pam_sm_chauthtok for storing modified cached creds.
Günther Deschner [Fri, 6 Jun 2008 13:59:52 +0000 (15:59 +0200)]
pam_winbind: fix pam_sm_chauthtok for storing modified cached creds.

Thanks to Bo Yang for pointing this out.

Guenther
(cherry picked from commit 516a067016955938988ab37c777102a14b41e100)

15 years agolibnetjoin: add libnet_join_rollback().
Günther Deschner [Thu, 5 Jun 2008 17:00:05 +0000 (19:00 +0200)]
libnetjoin: add libnet_join_rollback().

This is required now if the join verify failed and we already
modified the local configuration.

Guenther
(cherry picked from commit 2870fe50af5163e30330f5a3ef21d0b7eea85ee5)

15 years agolibnetjoin: First store configuration and then verify the join.
Günther Deschner [Thu, 5 Jun 2008 16:58:27 +0000 (18:58 +0200)]
libnetjoin: First store configuration and then verify the join.

Jerry, this fixes the issues while joining with "config backend = registry".

Guenther
(cherry picked from commit b3d47f099286778252c6df6bf2c1fee0c4e26560)

15 years agoManually port Steven Dannenman fix for using the correct machine domain when
Gerald W. Carter [Fri, 23 May 2008 20:19:58 +0000 (15:19 -0500)]
Manually port Steven Dannenman fix for using the correct machine domain when
looking up trust credentials in our tdb.

   commit fd0ae47046d37ec8297396a2733209c4d999ea91
   Author: Steven Danneman <sdanneman@isilon.com>
   Date:   Thu May 8 13:34:49 2008 -0700

      Use machine account and machine password from our domain when
      contacting trusted domains.
(cherry picked from commit 69b37ae60757075a0712149c5f97f17ee22c2e41)
(cherry picked from commit 8a64988fc45aff15359caf16f28ff1712bbe6d5f)

15 years agoManually merge Steven Danneman's patch for SPNEGO auth to a trusted
Gerald W. Carter [Fri, 23 May 2008 21:01:45 +0000 (16:01 -0500)]
Manually merge Steven Danneman's patch for SPNEGO auth to a trusted
Win2008 domain (merged from v3-0-test).

   commit 8dc4e979776aae0ecaa74b51dc1eac78a7631405
   Author: Steven Danneman <sdanneman@isilon.com>
   Date:   Wed May 7 13:34:26 2008 -0700

      spnego SPN fix when contacting trusted domains

      cli_session_setup_spnego() was not taking into consideration the situation
      where we're connecting to a trusted domain, specifically one (like W2K8)
      which doesn't return a SPN in the NegTokenInit.

      This caused two problems:

      1) When guessing the SPN using kerberos_get_default_realm_from_ccache() we
      were always using our default realm, not the realm of the domain we're
      connecting to.

      2) When falling back on NTLMSSP for authentication we were passing the name
      of the domain we're connecting to for use in our credentials when we should be
      passing our own workgroup name.

      The fix for both was to split the single "domain" parameter into
      "user_domain" and "dest_realm" parameters.  We use the "user_domain"
      parameter to pass into the NTLM call, and we used "dest_realm" to create an SPN
      if none was returned in the NegTokenInit2 packet.  If no "dest_realm" is
      provided we assume we're connecting to our own domain and use the credentials
      cache to build the SPN.

      Since we have a reasonable guess at the SPN, I removed the check that defaults
      us directly to NTLM when negHint is empty.

(cherry picked from b78b14c88e8354aadf9ba7644bdb1c29245fe419)
(cherry picked from commit f1e6b40bbc8ce249e2f2a85a1d57ed6b8141e3bb)

15 years agoWHATSNEW: Update changes since 3.2.0rc1.
Karolin Seeger [Mon, 9 Jun 2008 06:56:11 +0000 (08:56 +0200)]
WHATSNEW: Update changes since 3.2.0rc1.

Karolin
(cherry picked from commit 8d4ce48377df7be336d520de9b108f45489c9766)

15 years agoWHATSNEW: Update changes since 3.2.0rc1.
Karolin Seeger [Mon, 9 Jun 2008 06:47:17 +0000 (08:47 +0200)]
WHATSNEW: Update changes since 3.2.0rc1.

Karolin
(cherry picked from commit 79db2228f74e5362736063b7e0793b37516d46c1)

15 years agoRevert "build: add symbol versioning when we build with gnu ld"
Karolin Seeger [Mon, 9 Jun 2008 06:39:12 +0000 (08:39 +0200)]
Revert "build: add symbol versioning when we build with gnu ld"

This reverts commit cb5492978b6b157f529806afb2f5fc6202888129.

For more information, please have a look at the discussion on
samba-technical starting with [1].

[1] http://lists.samba.org/archive/samba-technical/2008-June/059511.html

Karolin
(cherry picked from commit 1e5aeb96f92fef8056ec9010e125f4d0d31dd90e)

15 years agoFix a memleak in fetch_ldap_pw
Volker Lendecke [Sat, 7 Jun 2008 06:48:13 +0000 (08:48 +0200)]
Fix a memleak in fetch_ldap_pw

Fix Coverity ID 572, also fix the error check for secrets_fetch failing
(cherry picked from commit 2663c81a782fd4394a9feaaaa987c7f6d38ca5da)
(cherry picked from commit 56447baf3bca6cc7110420d84188291f6c785daf)

15 years agoFix a memleak in secrets_fetch_trust_account_password_legacy
Volker Lendecke [Sat, 7 Jun 2008 06:50:02 +0000 (08:50 +0200)]
Fix a memleak in secrets_fetch_trust_account_password_legacy

Coverity ID 571
(cherry picked from commit a551773e34af1c118f77784a285e1b885da8655d)
(cherry picked from commit 682ec284b189e12de4fff9f000b12960a69d90cb)

15 years agoFix a memleak in secrets_fetch_afs_key
Volker Lendecke [Sat, 7 Jun 2008 06:51:35 +0000 (08:51 +0200)]
Fix a memleak in secrets_fetch_afs_key

Coverity ID 570
(cherry picked from commit 0f52dc3f7eae7e87b8a71bd099b99b0b3e76a387)
(cherry picked from commit fb708dafb052dae7733657487ac73a533750f6f9)

15 years agoAdd STREAMINFO op to vfs_full_audit
Volker Lendecke [Sat, 7 Jun 2008 07:04:03 +0000 (09:04 +0200)]
Add STREAMINFO op to vfs_full_audit

Fix Coverity ID 552 and 553
(cherry picked from commit c46e10d2605b22d31675976e62e5ae61d73c8a0a)
(cherry picked from commit 20aa14480e9ae6cea663c67fe9e2d1d3b6fafa7d)

15 years agomailslot: always pull a command 25 type reply.
Günther Deschner [Thu, 5 Jun 2008 16:54:14 +0000 (18:54 +0200)]
mailslot: always pull a command 25 type reply.

Guenther
(cherry picked from commit 1ce726b951621cb4b34069c31d1318fc04ad2389)
(cherry picked from commit 80c7fbb4edb29b3c670c21baa5f613b942e68e1e)

15 years agoSamba3-HOWTO: Add improvements/fixes.
Karolin Seeger [Thu, 5 Jun 2008 13:18:41 +0000 (15:18 +0200)]
Samba3-HOWTO: Add improvements/fixes.

These improvements/fixes were reported by
Pete Boyd <petes-bugs@thegoldenear.org> in bug #4203.

Karolin
(cherry picked from commit 497196e713b05901f02a46755bce6a63734dcf4c)

15 years agoFix a memleak caused by a crappy get_sorted_dc_list() API
Volker Lendecke [Thu, 5 Jun 2008 08:38:58 +0000 (10:38 +0200)]
Fix a memleak caused by a crappy get_sorted_dc_list() API
(cherry picked from commit ba10b9c077272c521504b3a638bba73446efc61c)

15 years agoFix a memleak in ads_find_dc() in case get_sorted_dc_list() fails
Volker Lendecke [Thu, 5 Jun 2008 08:25:02 +0000 (10:25 +0200)]
Fix a memleak in ads_find_dc() in case get_sorted_dc_list() fails

This is really not a proper place to fix this, but as get_gc_list() and friends
are about to be replaced anyway, just work around the broken existing API
(cherry picked from commit 6bcfa82ff15531c64e0db27dcc58e5847c513aa6)

15 years agobuild: fix build warning.
Günther Deschner [Tue, 3 Jun 2008 18:41:55 +0000 (20:41 +0200)]
build: fix build warning.

Guenther
(cherry picked from commit 62fcad0c0548ab53e9c20cfd6301972c68172b95)
(cherry picked from commit 69e93e2b88c880f770b416b6f5645b8d4c8bf5d8)

15 years agolibnetjoin: correctly copy returned lsa policy sid.
Günther Deschner [Wed, 4 Jun 2008 16:05:15 +0000 (18:05 +0200)]
libnetjoin: correctly copy returned lsa policy sid.

Guenther
(cherry picked from commit 12d333fd90450fdd3fa8029502509d872cf5cae0)

15 years agolibnetjoin: only close existing policy handles while unjoining.
Günther Deschner [Wed, 4 Jun 2008 00:43:41 +0000 (02:43 +0200)]
libnetjoin: only close existing policy handles while unjoining.

Guenther
(cherry picked from commit 1c901c82235a4d6bb4750151caebda0554245f05)

15 years agolibnetjoin: delete possible "realm" leftover parameter.
Günther Deschner [Tue, 3 Jun 2008 23:32:15 +0000 (01:32 +0200)]
libnetjoin: delete possible "realm" leftover parameter.

Guenther
(cherry picked from commit d7ba98cc3f2d037ec01e079220a66da508b104b0)
(cherry picked from commit 62a2c988f37354e323e1dd8065b4a93edb169ac1)

15 years agoAllow server manager to close open files selected by id.
Jeremy Allison [Tue, 27 May 2008 18:23:59 +0000 (11:23 -0700)]
Allow server manager to close open files selected by id.
Jeremy.
(cherry picked from commit 4b312d4e6fdd30ea754cf499fbe86ce932d1d9d2)

15 years agoWHATSNEW: Update changes since 3.2.0rc1.
Karolin Seeger [Thu, 5 Jun 2008 07:16:15 +0000 (09:16 +0200)]
WHATSNEW: Update changes since 3.2.0rc1.

Karolin
(cherry picked from commit 415d2cde61607eab1495cdcc48ccede1ff9900d5)

15 years agoSplit the winbindd_passdb backend into a 'builtin' and a 'sam'
Jeremy Allison [Sat, 31 May 2008 06:50:17 +0000 (23:50 -0700)]
Split the winbindd_passdb backend into a 'builtin' and a 'sam'
backend. This allows winbindd when running on a Samba PDC to
correctly answer wbinfo -u lists and other queries.
Jeremy.
(cherry picked from commit ce45c773543c6687669fb6a9dd062a6a7e45b409)

15 years agoWHATSNEW: Update changes since 3.2.0rc1.
Karolin Seeger [Wed, 4 Jun 2008 11:24:00 +0000 (13:24 +0200)]
WHATSNEW: Update changes since 3.2.0rc1.

Karolin
(cherry picked from commit f2befbeb35a002877db853b6cd72a04ac8f5e8ad)

15 years agoman pages: Add documentation for new parameter 'ldap connection timeout'.
Karolin Seeger [Tue, 3 Jun 2008 14:44:59 +0000 (16:44 +0200)]
man pages: Add documentation for new parameter 'ldap connection timeout'.

Karolin
(cherry picked from commit f7bfa1330cef34b1bbe7969bddbce2ff895321ed)

15 years agoAdd ldap connection timeout for OpenLDAP and Netscape LDAP libs. This can be controll...
Björn Jacke [Mon, 26 May 2008 09:29:24 +0000 (11:29 +0200)]
Add ldap connection timeout for OpenLDAP and Netscape LDAP libs. This can be controlled via the ldap connection timeout parameter. This fixes fallbacks to secondary LDAP servers in multi LDAP server setups like in #4544
(cherry picked from commit 8e59a2fedc940b081222b0e8f90fe0c5a0981c06)

15 years agoWHATSNEW: Update changes since 3.2.0rc1.
Karolin Seeger [Tue, 3 Jun 2008 14:25:17 +0000 (16:25 +0200)]
WHATSNEW: Update changes since 3.2.0rc1.

Karolin
(cherry picked from commit 1f7296350212a65500885c7d21cb586026713f61)

15 years agoFix empty input fields in SWAT; [#5515].
Andreas Schneider [Tue, 3 Jun 2008 13:26:42 +0000 (15:26 +0200)]
Fix empty input fields in SWAT; [#5515].

Signed-off-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit e1579c90fb27c07f95889dd8778daeef53e2ac16)
(cherry picked from commit f29f96fe76a139291cbc6e2dee1bca160ea3460a)

15 years agoFix saving of the config file in SWAT; [#5516].
Andreas Schneider [Tue, 3 Jun 2008 13:05:50 +0000 (15:05 +0200)]
Fix saving of the config file in SWAT; [#5516].

The strlen of the source string passed to convert_string_allocate was too
short :)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit ac3597ef8b7781499ab55f1039670ec82202e32c)
(cherry picked from commit cd7e6b0a0de376c94f9c97247db65a959031a21a)

15 years agoWHATSNEW: Update changes since 3.2.0rc1.
Karolin Seeger [Tue, 3 Jun 2008 07:09:39 +0000 (09:09 +0200)]
WHATSNEW: Update changes since 3.2.0rc1.

Karolin
(cherry picked from commit e7b0d54fa0c26117047c23b2a295edfbad3c19d9)

15 years agoFix by Bo Yang <boyang@novell.com> for bug with winbindd trusted domain child
Jeremy Allison [Mon, 2 Jun 2008 22:26:37 +0000 (15:26 -0700)]
Fix by Bo Yang <boyang@novell.com> for bug with winbindd trusted domain child
not keeping primary domain online status up to date.
Jeremy.
(cherry picked from commit d634d78cdfbfa9e27cf9cb5ada3c5220be257a7f)

15 years agoFix bug reported by David Eisner <deisner@gmail.com>. When allocating cli
Jeremy Allison [Tue, 3 Jun 2008 01:37:16 +0000 (18:37 -0700)]
Fix bug reported by David Eisner <deisner@gmail.com>. When allocating cli
buffers for large read/write - make sure we take account of the large
read/write SMB headers as well as the buffer space.
Jeremy.
(cherry picked from commit 220bb029a9f32a011c59013076eaeb3a86dc8843)

15 years agoFix location of smbldap-tools
Volker Lendecke [Mon, 2 Jun 2008 08:42:27 +0000 (10:42 +0200)]
Fix location of smbldap-tools

Thanks to Miguel Medalha <miguelmedalha@sapo.pt> for pointing this out
(cherry picked from commit e2f1a43a3a331057c51256aa8956574c028d376f)

15 years agoWHATSNEW: Update changes since 3.2.0rc1.
Karolin Seeger [Sat, 31 May 2008 12:50:29 +0000 (14:50 +0200)]
WHATSNEW: Update changes since 3.2.0rc1.

Karolin
(cherry picked from commit 87a3d59dfcb8e6ae7349de55bb9532e9ae1851a5)

15 years agoFrom Michael R Sweet <mike@easysw.com>.
Jeremy Allison [Fri, 30 May 2008 17:06:21 +0000 (10:06 -0700)]
From Michael R Sweet <mike@easysw.com>.

All,

Noticed that smbspool.c still has my Easy Software Products copyright
on it.  The following patch fixes it to match the other code I've
contributed over the years...

Jeremy.
(cherry picked from commit d5ee3b19ebc7b19d7e02f3fb849dcec20fca476f)

15 years agoA few cleanups from Chere Zhou <chere.zhou@isilon.com>.
Jeremy Allison [Tue, 27 May 2008 20:54:15 +0000 (13:54 -0700)]
A few cleanups from Chere Zhou <chere.zhou@isilon.com>.
Jeremy.
(cherry picked from commit de3b9e3ed2bfd32dc0d0e45ad8fd775ebd9004fa)

15 years agoMemory leak fixes from Chere Zhou <czhou@isilon.com>.
Jeremy Allison [Tue, 27 May 2008 19:27:52 +0000 (12:27 -0700)]
Memory leak fixes from Chere Zhou <czhou@isilon.com>.
Jeremy.
(cherry picked from commit a48df9ce84d7b365465e70d8ec27d9b5fcf59b45)

15 years agoFix bug #5504. winbindd children and parent were handing SIGTERM in the same way...
Jeremy Allison [Sat, 31 May 2008 00:49:33 +0000 (17:49 -0700)]
Fix bug #5504. winbindd children and parent were handing SIGTERM in the same way - deleting the socket!
Jeremy.
(cherry picked from commit fb3e5a14dabeb36b55c31ab3b6c502de1e0d1fe0)

15 years agoFix valgrind bug in debug statement. Don't reference uninitialized memory.
Jeremy Allison [Sat, 31 May 2008 00:52:05 +0000 (17:52 -0700)]
Fix valgrind bug in debug statement. Don't reference uninitialized memory.
Jeremy.
(cherry picked from commit 0aded23c4f6fc726896f5b5955e913ca559e7713)

15 years agominor memory leak fix
Chere Zhou [Fri, 30 May 2008 20:16:51 +0000 (13:16 -0700)]
minor memory leak fix
(cherry picked from commit e7a295fa27f4bc7c0661873ef0d9661cfa9b14d0)

15 years agoFix winbindd on a PDC by reverting : 83b04c60fac76ccd2d5aecb14f8896a07d488b1f..6e6651...
Jeremy Allison [Thu, 29 May 2008 17:37:52 +0000 (10:37 -0700)]
Fix winbindd on a PDC by reverting : 83b04c60fac76ccd2d5aecb14f8896a07d488b1f..6e66512d5beb256a44c6703cdb8c7fa7e0fd8537.
We still need to address https://bugzilla.redhat.com/show_bug.cgi?id=429024, but this
will come later.
Jeremy.
(cherry picked from commit 8bfedcdfd2cf6bd98a9b2040242e7cc9f31294ab)

15 years agoVERSION: Raise version number to 3.2.0rc2.
Karolin Seeger [Fri, 30 May 2008 15:15:56 +0000 (17:15 +0200)]
VERSION: Raise version number to 3.2.0rc2.

Karolin
(cherry picked from commit 7c01c4032ead1940ab36bb85547da291705944ff)

15 years agoWHATSNEW: Update changes since 3.2.0rc1.
Karolin Seeger [Fri, 30 May 2008 15:22:46 +0000 (17:22 +0200)]
WHATSNEW: Update changes since 3.2.0rc1.

Karolin
(cherry picked from commit 9589b99ee38c6c996e7c139e528f006a33652d49)

15 years agoSecurity fix for CVE-2008-1105: Boundary failure when parsing SMB responses
Jeremy Allison [Wed, 28 May 2008 16:21:27 +0000 (09:21 -0700)]
Security fix for CVE-2008-1105: Boundary failure when parsing SMB responses
can result in a buffer overrun.
Jeremy.
(cherry picked from commit 353d9cb0fdd941781698c6b334db5f2997eef991)

15 years agoFix security=server, bug 5502
Volker Lendecke [Fri, 30 May 2008 09:46:34 +0000 (11:46 +0200)]
Fix security=server, bug 5502

This has brown paper bag quality and is definitely needed for 3.2.0.

Thanks to Orion Poplawski for reporting this!

Volker
(cherry picked from commit 779a3af0cd3ecbf82e3de16a4e0aec046c19d869)

15 years agoTiny memory leak
Marc VanHeyningen [Thu, 29 May 2008 17:00:46 +0000 (10:00 -0700)]
Tiny memory leak
(cherry picked from commit 8fce305e47aefdcad8e20d51851d8a3734508f00)

15 years agoFix Bug #5285. (libcap header mismatch)
Günther Deschner [Wed, 28 May 2008 11:20:16 +0000 (13:20 +0200)]
Fix Bug #5285. (libcap header mismatch)

Can someone with gpfs available test this ? The only codepath using this
function is the modules/gpfs.c module. The fix resolves at least the build
issues Samba has with recent kernel / libcap versions by using the portable
cap_get_proc()/cap_set_proc() interface (instead of using capget/capset).

Guenther
(cherry picked from commit 177955141247a4eb56ba0d82dc1add7f52175c40)

15 years agoRe-enable the evil "aio write behind" parameter.
Jeremy Allison [Tue, 27 May 2008 04:17:28 +0000 (21:17 -0700)]
Re-enable the evil "aio write behind" parameter.
Jeremy.
(cherry picked from commit 79bda4467f399325773211bb4b660363024c66b4)

15 years agodsgetdcname: use family (instead of sa_family).
Günther Deschner [Tue, 27 May 2008 09:40:50 +0000 (11:40 +0200)]
dsgetdcname: use family (instead of sa_family).

Guenther
(cherry picked from commit 355fb81e9e42e507717f33a11793258db9169199)
(cherry picked from commit bcf721770d2a76df85737596d6b73e9e6d982c32)

15 years agore-run make idl.
Günther Deschner [Tue, 27 May 2008 09:40:32 +0000 (11:40 +0200)]
re-run make idl.

Guenther
(cherry picked from commit b2cdf0f5d04c241791c1462d1b86c587156ac0c7)
(cherry picked from commit d4656267be2c2d851242b8e7b834a92aa975a98a)

15 years agoidl: avoid sa_family as it its a macro on IRIX.
Günther Deschner [Tue, 27 May 2008 09:38:53 +0000 (11:38 +0200)]
idl: avoid sa_family as it its a macro on IRIX.

Guenther
(cherry picked from commit 64815c08558c73bbffeb2fdfc0d5850c4ebf8405)
(cherry picked from commit eb1b03171729e569b1ae81fdf8a9038029ceee4e)

15 years agobuild: make sure LIBWBCLIENT_*_TARGET is never empty
Stefan Metzmacher [Fri, 23 May 2008 15:16:12 +0000 (17:16 +0200)]
build: make sure LIBWBCLIENT_*_TARGET is never empty

This should fix the build with non gnu make

metze
(cherry picked from commit 401a0c84fe5f60e57e95331805da6b53dd1d7c2e)

15 years agoRemove source/librpc/gen_ndr/cli_messaging.c.
Karolin Seeger [Mon, 26 May 2008 12:47:15 +0000 (14:47 +0200)]
Remove source/librpc/gen_ndr/cli_messaging.c.

This was commited with a67e96393fbf3a accidentally.

Karolin

15 years agoIgnore Emacs' semantic.cache
Alexander Bokovoy [Mon, 21 Apr 2008 07:37:25 +0000 (11:37 +0400)]
Ignore Emacs' semantic.cache
(cherry picked from commit 8246ffc66e6425809cfb8ca48bb31710dcddbd26)

15 years agoEliminate global variable in_client.
Karolin Seeger [Mon, 26 May 2008 12:05:16 +0000 (14:05 +0200)]
Eliminate global variable in_client.

Should have been removed with b7f34e7ef2907b498a0645ce68f2773ed7d60cdc.
Maybe lost because of picking cherries in the wrong order.

Karolin

15 years agoEnable tests for splice on Linux. Add a static (vl, I hate this)
Jeremy Allison [Tue, 6 May 2008 22:46:34 +0000 (15:46 -0700)]
Enable tests for splice on Linux. Add a static (vl, I hate this)
so we can detect broken Linux recvfile splice and correctly fall
back.
Karolin, I think this should be pulled into 3.2-stable even
though it's a feature change as otherwise there's no way for
3.2 to use recvfile zerocopy, which is an advertised feature.
Others please comment.
Jeremy.
(cherry picked from commit bad2c3f1c817a94b7638bbf6456ff862829aed76)

15 years agoWHATSNEW: Fix typo. release-3-2-0rc1
Karolin Seeger [Fri, 23 May 2008 13:49:09 +0000 (15:49 +0200)]
WHATSNEW: Fix typo.

Karolin
(cherry picked from commit 18bab9472e7f85f3f518b64c4673f6f19a60f94d)

15 years agolibwbclient: add wbcLibraryDetails()
Stefan Metzmacher [Fri, 23 May 2008 12:18:42 +0000 (14:18 +0200)]
libwbclient: add wbcLibraryDetails()

metze
(cherry picked from commit b68916328e935e61840cb03560ebeeee15bb2c6f)

15 years agolibwbclient: rename MAXSUBAUTHS => WBC_MAXSUBAUTHS
Stefan Metzmacher [Fri, 23 May 2008 11:59:53 +0000 (13:59 +0200)]
libwbclient: rename MAXSUBAUTHS => WBC_MAXSUBAUTHS

metze
(cherry picked from commit 04d465c622c614bec29f24793ae897a73bcb51f4)

15 years agobuild: add symbol versioning when we build with gnu ld
Stefan Metzmacher [Fri, 23 May 2008 09:52:31 +0000 (11:52 +0200)]
build: add symbol versioning when we build with gnu ld

There's --enable-symbol-versioning=no to disable it.

metze
(cherry picked from commit cb5492978b6b157f529806afb2f5fc6202888129)

15 years agobuild: autogenerate exports/libwbclient.syms
Stefan Metzmacher [Fri, 23 May 2008 10:45:37 +0000 (12:45 +0200)]
build: autogenerate exports/libwbclient.syms

metze
(cherry picked from commit 8e0fcd583a643a8f4240698efcbb177463534a82)

15 years agobuild: autogenerate exports/libtalloc.syms
Stefan Metzmacher [Fri, 23 May 2008 10:04:21 +0000 (12:04 +0200)]
build: autogenerate exports/libtalloc.syms

metze
(cherry picked from commit ce9d8ea9818d91bd91f95149f3b0a7ed4f2dae3b)

15 years agobuild: pass .syms extention via @SYMSEXT@ from configure
Stefan Metzmacher [Fri, 23 May 2008 09:39:23 +0000 (11:39 +0200)]
build: pass .syms extention via @SYMSEXT@ from configure

metze
(cherry picked from commit efb23fdce72db48b4c149fb3dd4a6f4aa3eebbbe)

15 years agoman pages: Fix typo.
Karolin Seeger [Fri, 23 May 2008 12:12:05 +0000 (14:12 +0200)]
man pages: Fix typo.

Karolin
(cherry picked from commit 87bcff8dde4302f7b473933f8fddfb98b3c024db)

15 years agoWHATSNEW: Update changes since pre3.
Karolin Seeger [Fri, 23 May 2008 13:16:37 +0000 (15:16 +0200)]
WHATSNEW: Update changes since pre3.

Karolin
(cherry picked from commit 93ca0277e78622081c1a6cab037543187902fd86)

15 years agoRemove MAX_SESS_ENTRIES and MAX_CONN_ENTRIES limits
Jeremy Allison [Thu, 22 May 2008 23:23:07 +0000 (16:23 -0700)]
Remove MAX_SESS_ENTRIES and MAX_CONN_ENTRIES limits
as they are no longer needed now we have IDL marshalling.
Change the calculation of the 32-bit fileid we return
to a Windows client. We can't just use the generation
count as it starts at zero for every smbd - and this
command must enumerate all files open across all smbds.
We'd really like combination of process-id + dev + inode +
generation count to be unique, but as we can't fit that
into 32 bits just use 16 bits of pid + generation count.
Jeremy.
(cherry picked from commit edf73a97f674d4cb30f20b0cc3d6e6b43b4ca3eb)

15 years agoArggh. Got the path/user the wrong way around. IDL is correct :-).
Jeremy Allison [Thu, 22 May 2008 21:36:09 +0000 (14:36 -0700)]
Arggh. Got the path/user the wrong way around. IDL is correct :-).
Jeremy.
(cherry picked from commit 40548ba51c93de1e2b8a29be07e2f53540f4e9d4)

15 years agoFix 2 bugs with displaying open file state. Firstly
Jeremy Allison [Thu, 22 May 2008 21:28:13 +0000 (14:28 -0700)]
Fix 2 bugs with displaying open file state. Firstly
the IDL is documented incorrectly in the MS-DOCS.
Username and path need to be reversed (yes I will
raise this with MS). Secondly, we need to check
access_mask for the permissions, not share_access
(share_access are the deny modes).
Jeremy.
(cherry picked from commit 35f8b3e7948230bd404078db28eed67bfd896bf7)

15 years agobuild: autogenerate exports/libnetapi.syms
Stefan Metzmacher [Thu, 22 May 2008 15:15:32 +0000 (17:15 +0200)]
build: autogenerate exports/libnetapi.syms

metze
(cherry picked from commit dc09e04d524dcc92a29da0864666fd4258a81b76)

15 years agolibrary-versions: use the same version for talloc and tdb as for the standalone builds
Stefan Metzmacher [Thu, 22 May 2008 14:14:51 +0000 (16:14 +0200)]
library-versions: use the same version for talloc and tdb as for the standalone builds

metze
(cherry picked from commit 79e90f6c5efe97d6671f4def8cc0ffd2f93f48e8)

15 years agodsgetdcname: store client sitename for mailslot and cldap replies.
Günther Deschner [Thu, 15 May 2008 15:47:07 +0000 (17:47 +0200)]
dsgetdcname: store client sitename for mailslot and cldap replies.

Guenther
(cherry picked from commit a01ed719c31998620927dc9b1664ba8e36bd9b21)

15 years agonet: Fix net lookup dsgetdcname, no need to pull site ourselves.
Günther Deschner [Thu, 15 May 2008 15:00:31 +0000 (17:00 +0200)]
net: Fix net lookup dsgetdcname, no need to pull site ourselves.

Guenther
(cherry picked from commit 954d0998c2c00140addb6ba3845e80ed91e4effc)

15 years agodsgetdcname: add site support.
Günther Deschner [Thu, 15 May 2008 14:59:46 +0000 (16:59 +0200)]
dsgetdcname: add site support.

Guenther
(cherry picked from commit e305368538eaa72e3008a5517db3708936924297)

15 years agodsgetdcname: check for invalid sitename/flag combinations.
Günther Deschner [Thu, 15 May 2008 14:41:18 +0000 (16:41 +0200)]
dsgetdcname: check for invalid sitename/flag combinations.

Guenther
(cherry picked from commit 255e509474cae92802e90613ccaddb6627ee77cd)

15 years agolibads/cldap: store client sitename also keyed by dns domain name.
Günther Deschner [Thu, 15 May 2008 14:38:32 +0000 (16:38 +0200)]
libads/cldap: store client sitename also keyed by dns domain name.

Guenther
(cherry picked from commit 0388b2f0cc4d14b005c5b42f2c17ddcbc8bef12a)

15 years agodsgetdcname: In case we didn't get a mailslot reply, don't cache the nodestatus.
Günther Deschner [Wed, 14 May 2008 07:42:23 +0000 (09:42 +0200)]
dsgetdcname: In case we didn't get a mailslot reply, don't cache the nodestatus.

Guenther
(cherry picked from commit 12e47be02f93e2f41af5772f6a83568b3574d032)

15 years agomailslot: Also pick domain name and pdc name from type 15 cldap reply.
Günther Deschner [Wed, 14 May 2008 07:41:24 +0000 (09:41 +0200)]
mailslot: Also pick domain name and pdc name from type 15 cldap reply.

Guenther
(cherry picked from commit 836877c4005ba081c0a4cc97726830d6dbd62d34)

15 years agodsgetdcname: add reminder that we need to support ipv6 here once we know how.
Günther Deschner [Fri, 9 May 2008 15:56:04 +0000 (17:56 +0200)]
dsgetdcname: add reminder that we need to support ipv6 here once we know how.

Guenther
(cherry picked from commit 4b3617bf505a835a6d4bb9b80c4ad837a2082dea)

15 years agodsgetdcname: make use of nbt_cldap_netlogon_15.
Günther Deschner [Fri, 9 May 2008 15:41:50 +0000 (17:41 +0200)]
dsgetdcname: make use of nbt_cldap_netlogon_15.

Guenther
(cherry picked from commit 5b0eda98f3d127399770f7a037ad3277dbe23393)

15 years agore-run make idl.
Günther Deschner [Fri, 9 May 2008 15:40:29 +0000 (17:40 +0200)]
re-run make idl.

Guenther
(cherry picked from commit 5a216d2340bb06a8866718d1b4b07265006bd900)

15 years agoIDL: Fix nbt_cldap_netlogon union, removing the default member.
Günther Deschner [Fri, 9 May 2008 15:39:53 +0000 (17:39 +0200)]
IDL: Fix nbt_cldap_netlogon union, removing the default member.

Guenther
(cherry picked from commit a56d7999a445f7157f85e5636f5b2c5e471a98e2)

15 years agoIDL: Add nbt_cldap_netlogon_15.
Günther Deschner [Fri, 9 May 2008 15:24:38 +0000 (17:24 +0200)]
IDL: Add nbt_cldap_netlogon_15.

Guenther
(cherry picked from commit 5e91bd1d2bfe458c6f8b3696f99e0f75e43cbae8)

15 years agodsgetdcname: use existing messaging_context if possible.
Günther Deschner [Thu, 8 May 2008 16:32:22 +0000 (18:32 +0200)]
dsgetdcname: use existing messaging_context if possible.

Guenther
(cherry picked from commit 7889516a384c155a9045aad4409c041fddd0d98d)

15 years agodsgetdcname: the forest name should never be empty.
Günther Deschner [Thu, 8 May 2008 12:24:46 +0000 (14:24 +0200)]
dsgetdcname: the forest name should never be empty.

Guenther
(cherry picked from commit 2c0a96f1e5fc065fdbeb5671cfa693009321dde8)