samba.git
15 years agoWHATSNEW: Update changes since 3.3.0. samba-3.3.1
Karolin Seeger [Tue, 24 Feb 2009 07:37:27 +0000 (08:37 +0100)]
WHATSNEW: Update changes since 3.3.0.

Karolin
(cherry picked from commit 4f4a15f4c1f4f2f72f3f651b102938c48ac7ab5b)

15 years agoMore warning fixes for Solaris.
Jeremy Allison [Tue, 24 Feb 2009 00:23:42 +0000 (16:23 -0800)]
More warning fixes for Solaris.
Jeremy.
(cherry picked from commit aea38950ff4865f1d791cd19619fadcd59eaf480)

15 years agoMore warning fixes for Solaris.
Jeremy Allison [Mon, 23 Feb 2009 23:42:52 +0000 (15:42 -0800)]
More warning fixes for Solaris.
Jeremy.
(cherry picked from commit 6306dd0cab617930176fdde91641344ef403429b)

15 years agoQuieten down a boatload of shadowed variable warnings on Solaris.
Jeremy Allison [Mon, 23 Feb 2009 23:02:52 +0000 (15:02 -0800)]
Quieten down a boatload of shadowed variable warnings on Solaris.
Makes real problems easier to spot.
Jeremy.
(cherry picked from commit d32b6d5afd6437544c0fc42681351552d89907dc)

15 years agoall BSDs use this evironment variable
Björn Jacke [Sat, 21 Feb 2009 23:43:38 +0000 (00:43 +0100)]
all BSDs use this evironment variable

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

15 years agoVERSION: Raise version number.
Karolin Seeger [Mon, 23 Feb 2009 08:46:52 +0000 (09:46 +0100)]
VERSION: Raise version number.

Karolin
(cherry picked from commit e5f5284cc036217d20d5ca690e14d87ba0ebccaa)

15 years agoWHATSNEW: Updates changes since 3.3.0.
Karolin Seeger [Mon, 23 Feb 2009 08:44:08 +0000 (09:44 +0100)]
WHATSNEW: Updates changes since 3.3.0.

Karolin
(cherry picked from commit ded44fa523a5d964d0c31a1dac8cdc563d41fc15)

15 years agos3/docs: Fix typo in man mount.cifs.
Karolin Seeger [Mon, 23 Feb 2009 08:24:50 +0000 (09:24 +0100)]
s3/docs: Fix typo in man mount.cifs.

Thanks to Tobias Stoeckmann for reporting!

Karolin
(cherry picked from commit 09a7f93f6be66a8f2a124e49b4effe2b5863f01d)
(cherry picked from commit fdb5c65fc51784b6a159748ec4df3953b7d2c1cb)

15 years agoFor some unknown reason ldbrename was not being built in samba3.
Simo Sorce [Sun, 22 Feb 2009 06:06:28 +0000 (01:06 -0500)]
For some unknown reason ldbrename was not being built in samba3.
(cherry picked from commit b8fa66be1cbad021143653d4e79f04d79a01bd62)

15 years agoChange smbc_set_credentials_with_fallback() (unreleased) to use
Jeremy Allison [Sat, 21 Feb 2009 00:40:00 +0000 (16:40 -0800)]
Change smbc_set_credentials_with_fallback() (unreleased) to use
const approptiately.
Jeremy.
(cherry picked from commit 07c7085f25718915cda07e38a87a008a72abbf4f)

15 years agoFix bug #6133 - Cannot delete non-ACL files on Solaris/ZFS/NFSv4 ACL filesystem.
Jeremy Allison [Fri, 20 Feb 2009 16:22:57 +0000 (08:22 -0800)]
Fix bug #6133 - Cannot delete non-ACL files on Solaris/ZFS/NFSv4 ACL filesystem.
As the NFSv4 ACL mapping code doesn't map write directory into the DELETE_CHILD
permission bit (which we require before allowing a delete) no one can delete
files without an explicit DELETE_CHILD bit set on the directory. Add this mapping.
Jeremy.
(cherry picked from commit 7df63394aff2a15d96112378a9e3b0acd9edc56a)

15 years agovariable grouping: just my OCD desire to keep similar things together
Derrell Lipman [Fri, 20 Feb 2009 15:03:55 +0000 (10:03 -0500)]
variable grouping: just my OCD desire to keep similar things together
(cherry picked from commit f84fd046fcff6c3310ef595fb3e4cbe774703d2a)

15 years agoMake libsmbclient work with DFS
Bo Yang [Fri, 20 Feb 2009 04:21:52 +0000 (12:21 +0800)]
Make libsmbclient work with DFS

Signed-off-by: Derrell Lipman <derrell.lipman@unwireduniverse.com>
(cherry picked from commit 8457e7bba4ef2ba479340829bb89a3a8772f958b)

15 years agos3/docs: Add hint about getfattr in man vfs_acl_xattr.
Karolin Seeger [Fri, 20 Feb 2009 13:14:54 +0000 (14:14 +0100)]
s3/docs: Add hint about getfattr in man vfs_acl_xattr.

Karolin
(cherry picked from commit 27307be0f726c899c0e8a0edfdf200650037bb61)
(cherry picked from commit 8c978a66168fd22c817e0710d7a70daf7d07b1ab)

15 years agos3/docs: Add man vfs_acl_tdb.
Karolin Seeger [Fri, 20 Feb 2009 12:32:44 +0000 (13:32 +0100)]
s3/docs: Add man vfs_acl_tdb.

Karolin
(cherry picked from commit 0fd1d4c0906158bab55871d53396bdc7ae533220)
(cherry picked from commit b6c900db66481f10d9acbc7fc6a3cbf6b537b486)

15 years agos3/docs: Add man vfs_acl_xattr.
Karolin Seeger [Fri, 20 Feb 2009 12:32:22 +0000 (13:32 +0100)]
s3/docs: Add man vfs_acl_xattr.

Karolin
(cherry picked from commit 3b0114c0ba676dec2ece96983aff29257399f378)
(cherry picked from commit 7e3b9564af4ff2a9fa2de6a7ef2dd1ae16bc3d6a)

15 years agos3/docs: Fix several typos.
Karolin Seeger [Fri, 20 Feb 2009 08:20:16 +0000 (09:20 +0100)]
s3/docs: Fix several typos.

This fixes bug #6127.
Thanks to Justin T Pryzby <justinpryzby [at] users.sourceforge.net>
for the review!

Karolin
(cherry picked from commit 54dbb030e2c6fed0abd0a3a89d08dad9b8a201a1)
(cherry picked from commit a4548e41c6f12e4703249c53ad3dc727d2839931)

15 years agoWHATSNEW: Update changes since 3.3.0.
Karolin Seeger [Fri, 20 Feb 2009 07:58:58 +0000 (08:58 +0100)]
WHATSNEW: Update changes since 3.3.0.

Karolin
(cherry picked from commit ea6f99daeb6bb720ef0b0b1439a96d24e87973f2)

15 years agoFix printf warnings found on systems where time_t <> long int.
Jeremy Allison [Thu, 19 Feb 2009 21:36:45 +0000 (13:36 -0800)]
Fix printf warnings found on systems where time_t <> long int.
Jeremy.
(cherry picked from commit ea256b2d6d35327d63038554bf0a67d986c8e594)

15 years agoFix printf type warning.
Jeremy Allison [Thu, 19 Feb 2009 21:09:45 +0000 (13:09 -0800)]
Fix printf type warning.
Jeremy.
(cherry picked from commit aaba9a7b9a39bd899a748c45502fb8103c863eb9)

15 years agoFix a O(n^2) algorithm in regdb_fetch_keys()
Volker Lendecke [Thu, 19 Feb 2009 19:03:06 +0000 (20:03 +0100)]
Fix a O(n^2) algorithm in regdb_fetch_keys()
(cherry picked from commit d98c43982c56ef788144a3fd67cdd65a9f95f2be)

15 years agoBackport the semantics of when to delete alternate data streams on a file truncate.
Jeremy Allison [Thu, 19 Feb 2009 19:19:10 +0000 (11:19 -0800)]
Backport the semantics of when to delete alternate data streams on a file truncate.
Needed to fully support stream semantics.
Jeremy.
(cherry picked from commit 5a68f1e2c1fd16d315b1e303a90eb6475bbe7b15)

15 years agoFix a buffer handling bug when adding lots of registry keys
Volker Lendecke [Thu, 19 Feb 2009 13:16:44 +0000 (14:16 +0100)]
Fix a buffer handling bug when adding lots of registry keys

This is *ancient*... From 2002, and nobody noticed until someone added lots of
shares using net conf... :-)
(cherry picked from commit 36ae846d15027df5e3a02ffabb08183dad9f6517)
(cherry picked from commit 13f0a2903257677cc107f861e4ed2b58e52a1e21)

15 years agos3-libnet: fix coverity #848 (UNINIT).
Günther Deschner [Thu, 19 Feb 2009 01:35:20 +0000 (02:35 +0100)]
s3-libnet: fix coverity #848 (UNINIT).

Guenther
(cherry picked from commit e9d5405948e35a8eec0b49cc6c066278cb523397)
(cherry picked from commit 3d13df93f0ffaa518a576191a0715add878a7635)

15 years agoWHATSNEW: Jeremy fixed CID 602, not Volker.
Karolin Seeger [Thu, 19 Feb 2009 11:27:50 +0000 (12:27 +0100)]
WHATSNEW: Jeremy fixed CID 602, not Volker.

Thanks Volker for reading the release notes! ;-)

Karolin
(cherry picked from commit 6be9d9e33c4c6a9f25682b0716ca13392418d12e)

15 years agoWHATSNEW: Update changes since 3.3.0.
Karolin Seeger [Thu, 19 Feb 2009 09:07:40 +0000 (10:07 +0100)]
WHATSNEW: Update changes since 3.3.0.

Karolin
(cherry picked from commit 5af95977593a790e732bb3bf09ad7cc4832e663f)

15 years agoGah, typo :-(. Sorry.
Jeremy Allison [Thu, 19 Feb 2009 00:00:34 +0000 (16:00 -0800)]
Gah, typo :-(. Sorry.
(cherry picked from commit 88041d92ae2a619d5b4d4ad010ef7366b5c05c3f)

15 years agoFix coverity CID-602. Possible use of uninitialized var.
Jeremy Allison [Wed, 18 Feb 2009 23:43:03 +0000 (15:43 -0800)]
Fix coverity CID-602. Possible use of uninitialized var.
Jeremy.
(cherry picked from commit 43db14008eb660f1b1f21e1ff6dd2d340d1106ab)

15 years agoWHATSNEW: Update changes since 3.3.0.
Karolin Seeger [Wed, 18 Feb 2009 08:30:27 +0000 (09:30 +0100)]
WHATSNEW: Update changes since 3.3.0.

Karolin
(cherry picked from commit d45faf2706c88a6cb47404d119041bb69551a5c7)

15 years agoDon't miss an absolute pathname as a kerberos keytab path. From Glenn Machin <gmachin...
Jeremy Allison [Tue, 17 Feb 2009 23:55:36 +0000 (15:55 -0800)]
Don't miss an absolute pathname as a kerberos keytab path. From Glenn Machin <gmachin@sandia.gov>.
Jeremy.
(cherry picked from commit 8fd6dbcd5a61c48953974bf1880375b9dd1c88d6)

15 years agoFix bug #6117 - Samba 3.3.0: pdbedit -a core dumps.
Jeremy Allison [Tue, 17 Feb 2009 21:43:28 +0000 (13:43 -0800)]
Fix bug #6117 - Samba 3.3.0: pdbedit -a core dumps.
Jeremy.
(cherry picked from commit ca2c1eea4a766a3ee0d073520b19ce16f0586678)

15 years agos3: remove duplicate prototypes for generated rpc server functions.
Günther Deschner [Tue, 17 Feb 2009 14:42:06 +0000 (15:42 +0100)]
s3: remove duplicate prototypes for generated rpc server functions.

Guenther
(cherry picked from commit 6934180fd37417f7bf9b8b107d9cecea1b683720)

15 years agos3:make: use pidl/pidl for 'make idl'
Stefan Metzmacher [Tue, 17 Feb 2009 09:28:37 +0000 (10:28 +0100)]
s3:make: use pidl/pidl for 'make idl'

metze
(cherry picked from commit 3dc256ad0f1d2b1c131d67e033533dd316eab252)

15 years agofix proto.h after idl changes
Stefan Metzmacher [Tue, 17 Feb 2009 09:28:04 +0000 (10:28 +0100)]
fix proto.h after idl changes

metze
(cherry picked from commit 9d56f847b6fb88ab0529fdc6318dff5389c9d3db)

15 years agolibrpc: rerun 'PIDL=pidl/pidl make idl'
Stefan Metzmacher [Tue, 17 Feb 2009 08:04:58 +0000 (09:04 +0100)]
librpc: rerun 'PIDL=pidl/pidl make idl'

metze
(cherry picked from commit eb1a2e4aea76462086a4303ba325c4da49e891cd)

15 years agos3:netlogon: implement _netr_LogonGetCapabilities() with NT_STATUS_NOT_IMPLEMENTED
Stefan Metzmacher [Mon, 16 Feb 2009 09:20:55 +0000 (10:20 +0100)]
s3:netlogon: implement _netr_LogonGetCapabilities() with NT_STATUS_NOT_IMPLEMENTED

This hopefully fixes bug #6100.

metze
(cherry picked from commit fe417b29bd23b7b935669993e0f01de4c7de2378)
(cherry picked from commit 2f858cb914842e9af1331477ec6eb9782dbd0cf5)

15 years agonetlogon.idl: add idl for netr_LogonGetCapabilities()
Stefan Metzmacher [Mon, 16 Feb 2009 09:42:43 +0000 (10:42 +0100)]
netlogon.idl: add idl for netr_LogonGetCapabilities()

metze
(cherry picked from commit 8339969ed39e4cf3577971869ef2fd127f1c3ae3)
(cherry picked from commit 5410134c70e3302c05b73109610c28dfa1a0dc69)

15 years agos3-accessmask: re-run make samba3-idl and remove duplicate copies.
Günther Deschner [Fri, 31 Oct 2008 21:39:25 +0000 (22:39 +0100)]
s3-accessmask: re-run make samba3-idl and remove duplicate copies.

Guenther
(cherry picked from commit 1cbfcd7dcb90c117fa623246d6924e157ec5be3f)

15 years agos3: re-run make idl.
Günther Deschner [Tue, 17 Feb 2009 01:43:12 +0000 (02:43 +0100)]
s3: re-run make idl.

No panic, this just removes the NDR_BUFFER flag from ndr functions when there is
no buffer to process.

Guenther
(cherry picked from commit b424555c5a876b3eb71ec2346e73bd2b6a56a7ea)

15 years agopidl: add copy of pidl to 3-3-test in order to regenerate librpc code.
Günther Deschner [Tue, 17 Feb 2009 01:35:00 +0000 (02:35 +0100)]
pidl: add copy of pidl to 3-3-test in order to regenerate librpc code.

pidl's reference is 79190992b3820cd028c961c48bdea9b35baf13c9 here.

Guenther
(cherry picked from commit 55d1dacf4d49abcaace17a5f8a200c319e0389eb)

15 years agos3-WHATSNEW: Update WHATSNEW.
Karolin Seeger [Mon, 16 Feb 2009 14:38:51 +0000 (15:38 +0100)]
s3-WHATSNEW: Update WHATSNEW.

Karolin
(cherry picked from commit a6f8d9dad6ffedd62345922a2c5bef877f67dd9b)

15 years agoMake sharesec utility part of the default binary install.
Steven Danneman [Fri, 26 Dec 2008 20:41:29 +0000 (12:41 -0800)]
Make sharesec utility part of the default binary install.

This used to be commit 8f84d42f7.
(cherry picked from commit ee2f265d3357635858db1e0f8c7f6df3219a883f)

15 years agoFix bug 5920
Yasuma Takeda [Mon, 16 Feb 2009 13:07:37 +0000 (14:07 +0100)]
Fix bug 5920

The length of the memcpy was calculated wrong, r->out.return_authenticator is
a pointer
(cherry picked from commit cb9dd0f58d06a78b7724c3e0ec8f81512edc2d29)
(cherry picked from commit a7d30e159b2809abda9de4284bf2344db297ee22)

15 years agos3-WHATSNEW: Start WHATSNEW for 3.3.1.
Karolin Seeger [Mon, 16 Feb 2009 10:30:30 +0000 (11:30 +0100)]
s3-WHATSNEW: Start WHATSNEW for 3.3.1.

Karolin
(cherry picked from commit 311abc32da851894edff3324acbe58213c131729)

15 years agoAttempt to fix bug #6099. According to Microsoft
Jeremy Allison [Mon, 16 Feb 2009 02:18:38 +0000 (18:18 -0800)]
Attempt to fix bug #6099. According to Microsoft
Windows 7 looks at the negotiate_flags
returned in this structure *even if the
call fails with access denied ! So in order
to allow Win7 to connect to a Samba NT style
PDC we set the flags before we know if it's
an error or not.
Jeremy.
(cherry picked from commit cafc9efceadcefa9154874e9846158cf23ee1645)

15 years agoRemove compiler warnings about unknown structure pointer
Derrell Lipman [Sun, 15 Feb 2009 20:00:25 +0000 (15:00 -0500)]
Remove compiler warnings about unknown structure pointer
(cherry picked from commit f11d4d088c17db77ba259972c05de72da0d3ac93)

15 years agos3 vfs: Fix SMB_VFS_RECVFILE/SENDFILE macros
Tim Prouty [Sun, 15 Feb 2009 04:34:41 +0000 (20:34 -0800)]
s3 vfs: Fix SMB_VFS_RECVFILE/SENDFILE macros
(cherry picked from commit c0aa23d119737bbb197eaadaa2eedc853b5179a1)

15 years agoremove accidental white space
Derrell Lipman [Sun, 15 Feb 2009 03:30:21 +0000 (22:30 -0500)]
remove accidental white space
(cherry picked from commit 82e392f6b24518d40ea65dbdf044d8ba94e77ae2)

15 years agoenums are traditionally signed. Avoid use of high bit in bit flags.
Derrell Lipman [Sun, 15 Feb 2009 03:30:13 +0000 (22:30 -0500)]
enums are traditionally signed. Avoid use of high bit in bit flags.
(cherry picked from commit 480054f3625fcd4532a4cdc68bd750e93610d89f)

15 years agoGet rid of the warnings I had for testing
Derrell Lipman [Sat, 14 Feb 2009 23:56:44 +0000 (18:56 -0500)]
Get rid of the warnings I had for testing
(cherry picked from commit f38c50b13f3ad916db884611ad4199198f6cade2)

15 years agoIt seems some systems use f_flags instead of f_flag. Use the appropriate one.
Derrell Lipman [Sat, 14 Feb 2009 21:11:50 +0000 (16:11 -0500)]
It seems some systems use f_flags instead of f_flag. Use the appropriate one.
(cherry picked from commit 3b12ab74252c850348c2d15adf930aa01e0652ff)

15 years agoEnsure consistency of values on stack (caught by AIX compiler)
Derrell Lipman [Sat, 14 Feb 2009 15:07:51 +0000 (10:07 -0500)]
Ensure consistency of values on stack (caught by AIX compiler)
(cherry picked from commit 3b7e35a54f1aa7d31df60b0264cc171cf5d97954)

15 years agoignore new test program executables
Derrell Lipman [Sat, 14 Feb 2009 14:43:46 +0000 (09:43 -0500)]
ignore new test program executables
(cherry picked from commit f5e5daeb8fd6133211dfbc4f4b309d5432dddb16)

15 years agoCheck for the right error return value
Derrell Lipman [Sat, 14 Feb 2009 14:42:59 +0000 (09:42 -0500)]
Check for the right error return value
(cherry picked from commit 4d2598282bb9f0c08da9f949ff23ff253c0ca7ac)

15 years agoEnable total anonymization in vfs_smb_traffic_analyzer, by mapping any user names...
Holger Hetterich [Wed, 4 Feb 2009 14:31:24 +0000 (15:31 +0100)]
Enable total anonymization in vfs_smb_traffic_analyzer, by mapping any user names to the one given by anonymize_prefix, without generating a hash number. This setting is optional and is compatible with the module configuration format of Samba 3.3.
(cherry picked from commit 31d854fff40799f056748333c35df81466c3614c)

15 years agoParameterize in local.h the MAX_RPC_DATA_SIZE, and ensure
Jeremy Allison [Sat, 14 Feb 2009 00:04:15 +0000 (16:04 -0800)]
Parameterize in local.h the MAX_RPC_DATA_SIZE, and ensure
that "offered" read from the rpc packet in spoolss is under
that size. Tidyup from analysis from Veracode.
Jeremy.
(cherry picked from commit 6b654d12fd46b68fef824bf281783396ca81283d)

15 years agoNoted by Vericode analysis. Correctly use chroot().
Jeremy Allison [Fri, 13 Feb 2009 23:08:57 +0000 (15:08 -0800)]
Noted by Vericode analysis. Correctly use chroot().
Jeremy.
(cherry picked from commit 30a01422a21bd54b2b3a58729fbf25ab173845e8)

15 years agoFix Coverity ID 740 (RESOURCE_LEAK)
Volker Lendecke [Fri, 13 Feb 2009 20:52:21 +0000 (21:52 +0100)]
Fix Coverity ID 740 (RESOURCE_LEAK)
(cherry picked from commit d67b92eede5e648b73aea992e009a8996705ffa0)

15 years agoFix Coverity IDs 879 and 880 (RESOURCE_LEAK, REVERSE_INULL)
Volker Lendecke [Fri, 13 Feb 2009 18:06:39 +0000 (10:06 -0800)]
Fix Coverity IDs 879 and 880 (RESOURCE_LEAK, REVERSE_INULL)
(cherry picked from commit 84010436579854ad9429c82c7e7050d902955344)

15 years agoFix Coverity ID 742 (RESOURCE_LEAK)
Volker Lendecke [Fri, 13 Feb 2009 17:58:35 +0000 (09:58 -0800)]
Fix Coverity ID 742 (RESOURCE_LEAK)
(cherry picked from commit aa4a8b4aece5b11ac4c1db87b87ebadc0a362514)

15 years agoFix Coverity ID 744
Volker Lendecke [Fri, 13 Feb 2009 17:53:56 +0000 (09:53 -0800)]
Fix Coverity ID 744

This was marked as a resource leak. This change makes the code a bit clearer
that we always free error_string.
(cherry picked from commit fa0ac60d985995a6a07aa05b114683f4cbd731c8)

15 years agos3:auth: only create_local_token() should add S-1-22-X-Y sids
Stefan Metzmacher [Wed, 11 Feb 2009 10:47:41 +0000 (11:47 +0100)]
s3:auth: only create_local_token() should add S-1-22-X-Y sids

metze
(cherry picked from commit e7f7ed8bf6281ef01aca53ea44acdd4af4c51aa7)
(cherry picked from commit cc1c764effd07bb124b5b5cf03fb5a4565c8ed36)

15 years agos3:auth: add S-1-22-X-Y sids to the local token
Stefan Metzmacher [Wed, 11 Feb 2009 10:46:18 +0000 (11:46 +0100)]
s3:auth: add S-1-22-X-Y sids to the local token

metze
(cherry picked from commit f14e4d4e54f424c05147cb0e635c9b8930270262)
(cherry picked from commit 490f7214f0d26e7466f0fdfb978e4b09f2433146)

15 years agoFix Coverity ID 745 (RESOURCE_LEAK)
Volker Lendecke [Fri, 13 Feb 2009 10:18:31 +0000 (11:18 +0100)]
Fix Coverity ID 745 (RESOURCE_LEAK)
(cherry picked from commit 3077f2ab45b08595b4849add56110a37069d12ec)

15 years agoFix double free caused by incorrect talloc_steal usage.
Dan Sledz [Thu, 12 Feb 2009 20:02:43 +0000 (12:02 -0800)]
Fix double free caused by incorrect talloc_steal usage.
(cherry picked from commit 7274764436deb21f821c7a62a3ac3454e1af9025)

15 years ago[Bug 6069] Add a fstatvfs function for libsmbclient
Derrell Lipman [Thu, 12 Feb 2009 14:16:48 +0000 (09:16 -0500)]
[Bug 6069] Add a fstatvfs function for libsmbclient

- DFS is not a POSIX feature, so the state of that bit should be zero if DFS
  is *not* supported. Bit feature reversed.

- Added smbc_statvfs function

Derrell
(cherry picked from commit 0697cffe211a922c816b6c75230c4186328498ed)

15 years agoFix bug #6098 - When the DNS server is invalid, the ads_find_dc() does not work corre...
Yasuma Takeda [Wed, 11 Feb 2009 22:36:51 +0000 (14:36 -0800)]
Fix bug #6098 - When the DNS server is invalid, the ads_find_dc() does not work correctly with "security = domain"

1. If DNS server is invalid, the get_sorted_dc_list() is called with
realm(FQDN) and it fails.
2. On the next step, the get_sorted_dc_list() is called with realm(FQDN) again.

I think "again" is wrong place.
On the 2nd step, get_sorted_dc_list() should be called with realm(WORKGROUP).
(cherry picked from commit a8a7040d7dbffe7b1c2bccb8b46e08fb996786ac)

15 years agos3:packaging: fix parsing of include.h in fill-templates
Michael Adam [Wed, 11 Feb 2009 21:27:48 +0000 (22:27 +0100)]
s3:packaging: fix parsing of include.h in fill-templates

The content has changed slightly in master for the merged build,
and we must be more exact when parsing the lines.

Michael
(cherry picked from commit d1b2f90f881d554e844525ddf44232b04f14e8eb)

15 years agos3:packaging: fix path to calling update-pkginfo after pushd in fill-templates
Michael Adam [Wed, 11 Feb 2009 21:25:41 +0000 (22:25 +0100)]
s3:packaging: fix path to calling update-pkginfo after pushd in fill-templates

Michael
(cherry picked from commit 88a3430e6db9fe31fe711a6fdc90d6604dac63e3)

15 years agos3:packaging: paths cosmetics in fill-templates
Michael Adam [Wed, 11 Feb 2009 21:24:52 +0000 (22:24 +0100)]
s3:packaging: paths cosmetics in fill-templates

Michael
(cherry picked from commit d75e0756a39e30414d5277edd2e098da9cec464e)

15 years agoenable IPv6 support for NetBSD, FreeBSD
Björn Jacke [Wed, 11 Feb 2009 15:34:02 +0000 (16:34 +0100)]
enable IPv6 support for NetBSD, FreeBSD

most systems include netinet/in.h via netdb.h but *BSD don't.
(cherry picked from commit 5b551d6e3ef2c69a5fd050abcecb4c6b0ab36402)

15 years agos3:build: some implementations of "ln" are picky about the order of arguments
Michael Adam [Wed, 11 Feb 2009 10:02:57 +0000 (11:02 +0100)]
s3:build: some implementations of "ln" are picky about the order of arguments

Michael
(cherry picked from commit 1ea19073afa1e9a04f18763b731d792ffe97d499)

15 years agoFix resume handle for _samr_EnumDomainGroups
Volker Lendecke [Wed, 11 Feb 2009 03:08:46 +0000 (19:08 -0800)]
Fix resume handle for _samr_EnumDomainGroups
(cherry picked from commit 5f69f4a57ec0942d3c5c6969cb2bccab0ca6ec4c)

15 years agopackaging: make update-pkginfo callable from any directory
Michael Adam [Tue, 10 Feb 2009 22:52:40 +0000 (23:52 +0100)]
packaging: make update-pkginfo callable from any directory

Michael
(cherry picked from commit 7ea90835ebf6e2f2c6f325760800d8361d087ede)
(cherry picked from commit d5d668efc0b5af825344ec01851c105fe91a3096)

15 years agopackaging: use "find" instead of "du" to find files... :-)
Michael Adam [Fri, 12 Sep 2008 13:07:00 +0000 (15:07 +0200)]
packaging: use "find" instead of "du" to find files... :-)

Michael
(This used to be commit 768aa82361a2c4b0aab71433b7593723a2868f0a)
(cherry picked from commit fd7635a1161e25d88a8252a5cf9de70ca2fe4232)
(cherry picked from commit 0f7ced3088f327417e32a509fa3e5b4c3c19b93c)

15 years agopackaging: remove commented out stuff from update-pkginfo
Michael Adam [Tue, 10 Feb 2009 22:50:14 +0000 (23:50 +0100)]
packaging: remove commented out stuff from update-pkginfo

Michael
(cherry picked from commit d714e58ec1f74897cd13e7cd9dd9003600052b45)
(cherry picked from commit 6e47cc96526961486e545285a46f2bc31e6cd2a2)

15 years agopackaging: don't clutter the output of fillup-templates with popd output
Michael Adam [Tue, 10 Feb 2009 22:31:52 +0000 (23:31 +0100)]
packaging: don't clutter the output of fillup-templates  with popd output

Michael
(cherry picked from commit 0c711935d30b500a15ef06fd658d382b2c1e2c84)
(cherry picked from commit 9e54a408acab42abb073c8660cadebdd0975fa04)

15 years agopackaging: fix fill-templates call to update-pkginfo to pushd appropriately first
Michael Adam [Tue, 10 Feb 2009 22:30:48 +0000 (23:30 +0100)]
packaging: fix fill-templates call to update-pkginfo to pushd appropriately first

Michael
(cherry picked from commit c28d4ae537d9fc0b76eae758d32356eaf1113c89)
(cherry picked from commit 0f9cfcb7a1b34a6e76209a0fe0e8d49e3ffe15c5)

15 years agopackaging: add script fill-templates
Michael Adam [Tue, 10 Feb 2009 17:54:16 +0000 (18:54 +0100)]
packaging: add script fill-templates

This is a standalone-wrapper for update-pkginfo, which is
usually called from create-tarball. It basically repeats
some functionality of create-tarball.

Michael
(cherry picked from commit ca23469a906bab690162184e8d3949897f7b5a67)
(cherry picked from commit 3c7927141d0fa586440ecd4c39bd601c1f9a5bfa)

15 years ago[Bug 6069] Add a fstatvfs function for libsmbclient
Derrell Lipman [Tue, 10 Feb 2009 20:03:32 +0000 (15:03 -0500)]
[Bug 6069] Add a fstatvfs function for libsmbclient

- Fill in the remainder of the data (or at least as much as we can get) for
  the fstatvfs return value.

Derrell
(cherry picked from commit eeeceea8b92b8b814209f496a7ab953dcd0a8367)

15 years ago[Bug 6069] Add a fstatvfs function for libsmbclient
Derrell Lipman [Tue, 10 Feb 2009 15:28:32 +0000 (10:28 -0500)]
[Bug 6069] Add a fstatvfs function for libsmbclient

- Reverse the sense of the flags. Since the fstatvfs() function on POSIX-like
  systems would almost certainly indicate case sensitivity (for example),
  leave the bit turned off if the result is the POSIX-like result just as if
  issued on a typical local file system on a POSIX system.

Derrell
(cherry picked from commit 0acc962e3968253a3f64b5a92def177ced44994d)

15 years agos3-spoolss: fix memleak in get_remote_printer_publishing_data().
Günther Deschner [Tue, 10 Feb 2009 09:59:34 +0000 (10:59 +0100)]
s3-spoolss: fix memleak in get_remote_printer_publishing_data().

Guenther
(cherry picked from commit 97f1514ce95800f1296b1979f1b34dcc5d56a376)

15 years ago[Bug 6069] Add a fstatvfs function for libsmbclient
Derrell Lipman [Tue, 10 Feb 2009 03:46:29 +0000 (22:46 -0500)]
[Bug 6069] Add a fstatvfs function for libsmbclient

- Complete the implementation of the f_flag field. We now return a flag
  indicatin UNIX CIFS, CASE SENSITIVE, and/or DFS support.

Derrell
(cherry picked from commit df15e8f84d108f8e9df1408155b0f9ccc44da3fe)

15 years agoRevert "s3:winbindd_user: create domain connection in winbindd_fill_pwent if necessary."
Michael Adam [Mon, 9 Feb 2009 22:26:36 +0000 (23:26 +0100)]
Revert "s3:winbindd_user: create domain connection in winbindd_fill_pwent if necessary."

This reverts commit 3981603761a1cc6fb74ff135fadf4ab3340be1c5.

I was confused about the real meaning of find_domain_from_name_noinit()
vs. find_domain_from_name(). We don't need the connection established
here, just the domain struct which gets initialized by rescan_trusted_domains().

Sorry for the noise.

Michael
(cherry picked from commit c8e295a1b5216c1190ec5d555606b3eadabab82a)

15 years agodocs: Add man sharesec.
Karolin Seeger [Mon, 9 Feb 2009 20:00:47 +0000 (21:00 +0100)]
docs: Add man sharesec.

Karolin
(cherry picked from commit cc51cbc862055975bcef016876662576b00e72ef)
(cherry picked from commit b16d6aaf981e6b0b7c706f6abd659dc3cde30094)

15 years ago[Bug 6069] Add a fstatvfs function for libsmbclient
Derrell Lipman [Mon, 9 Feb 2009 17:41:29 +0000 (12:41 -0500)]
[Bug 6069] Add a fstatvfs function for libsmbclient

- Add initial test implementation. This works on a Linux client to determine
  whether a connection's server supports UNIX CIFS. I'm eager to see what the
  build farm has to say about this, specifically how many, if any, hosts don't
  provide a statvfs.h file with the requisite struct statvfs.

Derrell
(cherry picked from commit ff6a1bebd589637a4aecb9c76b4e33f579d7b0df)

15 years agos3:winbindd_user: create domain connection in winbindd_fill_pwent if necessary.
Michael Adam [Mon, 9 Feb 2009 12:50:31 +0000 (13:50 +0100)]
s3:winbindd_user: create domain connection in winbindd_fill_pwent if necessary.

Calling find_domain_from_name_noinit() might not be enough here.
This makes winbindd_getpwent() behave the same as winbindd_getgrent().

Michael

Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit 3981603761a1cc6fb74ff135fadf4ab3340be1c5)

15 years agos3:winbindd_user: fix a debug message.
Michael Adam [Mon, 9 Feb 2009 10:07:11 +0000 (11:07 +0100)]
s3:winbindd_user: fix a debug message.

find_domain_from_name_noinit() is no longer called only for
name alias support.

Michael

Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit ca6e3ee1e52b16e88f3906dc4cf64e977e165663)

15 years agoFix coverity ID 876 (FORWARD_NULL)
Volker Lendecke [Sat, 7 Feb 2009 10:09:45 +0000 (11:09 +0100)]
Fix coverity ID 876 (FORWARD_NULL)

Michael, please check!

Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit bd0febbd1b390b2890df13fbfed5bf26dede658f)

15 years agoFix count in _srvsvc_NetDiskEnum()
Volker Lendecke [Mon, 9 Feb 2009 11:32:16 +0000 (12:32 +0100)]
Fix count in _srvsvc_NetDiskEnum()

Without this, remotely adding a share via MMC fails
(cherry picked from commit 197b4c42bbf53347f4953e39099192693d709a7d)
(cherry picked from commit 7f6bf488fd3758f631edcade61378955cf9bf674)

15 years agos3-rpcclient: fix getform command asprintf return code.
Günther Deschner [Sun, 8 Feb 2009 23:06:36 +0000 (00:06 +0100)]
s3-rpcclient: fix getform command asprintf return code.

Guenther
(cherry picked from commit 6dc87c67198f27c359370399022910ba77c1d44d)

15 years agoeliminate compiler warnings
Derrell Lipman [Mon, 9 Feb 2009 03:07:25 +0000 (22:07 -0500)]
eliminate compiler warnings
(cherry picked from commit b657020d0a3d43099e55956d13a7a73324888bcb)

15 years agomount.cifs: initialize rc to 0 in main
Jeff Layton [Fri, 6 Feb 2009 13:31:45 +0000 (08:31 -0500)]
mount.cifs: initialize rc to 0 in main

The value of rc in main() isn't initialized in the declaration. This
wasn't a problem before, but Shirish's fakemount patch can make it so
that we return the uninitialized variable if the -n flag is used.

Fix this by initializing rc to 0.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
(cherry picked from commit 45d75ece3e35b5180e82dc0488b13fbd2a93c41e)

15 years agomount.cifs: add fakemount (-f) and nomtab (-n) flags to mount.cifs
Shirish Pargaonkar [Fri, 6 Feb 2009 13:15:35 +0000 (08:15 -0500)]
mount.cifs: add fakemount (-f) and nomtab (-n) flags to mount.cifs

...so that these options work correctly when passed in by mount(8).
(cherry picked from commit 5cd79db1326d70c592e86491d36567a2eb4e1717)

15 years agos3:net conf: remove check for sharename being a usernam in "net conf addshare"
Michael Adam [Fri, 6 Feb 2009 09:42:11 +0000 (10:42 +0100)]
s3:net conf: remove check for sharename being a usernam in "net conf addshare"

This is useless and can be overriden by "net conf setparm" anyways.

Michael
(cherry picked from commit e513360db3f2cc6ff1865ec08fc243dd6346e18e)

15 years agodocs: fix two typos in the mount.cifs manpage
Michael Adam [Thu, 5 Feb 2009 21:19:58 +0000 (22:19 +0100)]
docs: fix two typos in the mount.cifs manpage

Michael
(cherry picked from commit 145fe37766cf1ecffb16a03b58b44d08f7ed7558)

Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit 38ea92a4c1cb0e8c52ccff9b77bb59070030d10c)

15 years agodocs: Clarify "ldap ssl" description in man smb.conf.
Karolin Seeger [Fri, 6 Feb 2009 08:41:21 +0000 (09:41 +0100)]
docs: Clarify "ldap ssl" description in man smb.conf.

Mention "ldap ssl ads".

Karolin
(cherry picked from commit 61f1747441ff43c1d9c99bbf69e218c1984834c7)
(cherry picked from commit ba3884d4d5c55723c1989e8e3868aa7ea8db8c60)

15 years agodocs: Add description of "ldap ssl ads" to man smb.conf.
Karolin Seeger [Fri, 6 Feb 2009 08:10:15 +0000 (09:10 +0100)]
docs: Add description of "ldap ssl ads" to man smb.conf.

Karolin
(cherry picked from commit 02f13538f00cc8368e3e5e8e510bac468c21089b)
(cherry picked from commit fef1a664de477b3d434b9d8c276933236042ae20)

15 years agoDon't try and delete a default ACL from a file.
Günter Kukkukk [Fri, 6 Feb 2009 02:59:03 +0000 (18:59 -0800)]
Don't try and delete a default ACL from a file.
(cherry picked from commit 1d277bdb6997e3b913bcd1c0b3173c9c735e64c1)

15 years agoHave nmbd check all available interfaces for WINS before failing
Aravind Srinivasan [Thu, 5 Feb 2009 22:46:59 +0000 (14:46 -0800)]
Have nmbd check all available interfaces for WINS before failing

When nmbd is acting as WINS, it picks the first interface's IP as WINS
server's IP. If the first interface's IP is zero, we will just quit
(even though we might have other interfaces with valid IPs).

This patch makes nmbd look at all interfaces and pick the first interface
with a valid IP as the WINS server's IP.
(cherry picked from commit d998ee9025f2ad2df73e25c12e35e9218b97147e)