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)
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)
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)
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)
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)
Derrell Lipman [Mon, 9 Feb 2009 03:07:25 +0000 (22:07 -0500)]
eliminate compiler warnings
(cherry picked from commit
b657020d0a3d43099e55956d13a7a73324888bcb)
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)
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)
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)
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)
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)
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)
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)
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)
Shirish Pargaonkar [Thu, 5 Feb 2009 19:16:53 +0000 (14:16 -0500)]
umount.cifs: clean-up entries in /etc/mtab after unmount
This patch removes the remaining entry in /etc/mtab after a filesystem
is unmounted by canonicalizing the mountpoint supplied on the command
line.
Please refer to bug 4370 in samba bugzilla.
(cherry picked from commit
544faebe894b2b0661d6c9fe68ee7c01945ee824)
Karolin Seeger [Thu, 5 Feb 2009 14:55:14 +0000 (15:55 +0100)]
s3/libads: Change "ldap ssl:ads" parameter to "ldap ssl ads".
This used to be commit
3f9daf43.
Karolin
(cherry picked from commit
91c78b7d2bbb52015378f2a9752e783df33a6fff)
Günther Deschner [Wed, 4 Feb 2009 22:55:54 +0000 (23:55 +0100)]
s3-net: remove unused ENUM_HND.
Guenther
(cherry picked from commit
a713060a6e36706cfd5b997aa4cbfabf4e180c84)
Jeremy Allison [Wed, 4 Feb 2009 23:35:02 +0000 (15:35 -0800)]
Fix bug #Bug 6090 renaming or deleting a "not matching/resolving" symlink is failing.
Reported by Kukks. Make sure we correctly use LSTAT in all cases where
POSIX pathnames are being used. This matters when dealing with symlinks
pointing to invalid paths being renamed or deleted not all deletes and
renames are done via an nt_create open.
Jeremy.
(cherry picked from commit
249dab1abbf49b0ca45360eb9aedb20d51a80e5f)
Miguel Suarez [Tue, 3 Feb 2009 22:35:19 +0000 (14:35 -0800)]
Fix bug #6085 - In vfs_default.c change utime( ) call.
(cherry picked from commit
2937519665be41237ee0f2c3374bea716bf95e8a)
Ted Percival [Tue, 3 Feb 2009 22:10:20 +0000 (14:10 -0800)]
Probably fixes a crash during name resolution when log level >= 10
and libc segfaults if printf is passed NULL for a "%s" arg
(eg. Solaris).
(cherry picked from commit
16e49e8be8a942aa77a013c197a20d4c0bb3875f)
Volker Lendecke [Tue, 3 Feb 2009 13:41:49 +0000 (14:41 +0100)]
s3: Fix 'net rpc join' for users with the SeMachineAccountPrivilege.
This used to be commit
fda8abac in master.
(cherry picked from commit
5994c90ff8754b64a3a6658e28bd94f6a91a441b)
Jeremy Allison [Tue, 3 Feb 2009 01:11:15 +0000 (17:11 -0800)]
Fix bug #6082 - smbd_gpfs_getacl failed: Windows client can´t rename or delete file
This fixes the generic rename/delete problem for 3.3.0 and above.
Fixed slightly differently to discussions, user viewable modified
ACLs are not a good idea :-).
Jeremy.
(cherry picked from commit
c5462c8b43435763783185a03029903efe3b0c11)
Lars Müller [Mon, 2 Feb 2009 20:38:38 +0000 (21:38 +0100)]
Adjust regex to match variable names including underscores
This is required to get the CIFSUPCALL_PROGS setting extracted from
config.log.
(cherry picked from commit
64982295fccc5758aff4464b5527a27621386bc9)
Lars Müller [Mon, 2 Feb 2009 20:12:52 +0000 (21:12 +0100)]
Conditional install of the cifs.upcall man page
Only install the cifs.upcall man page if CIFSUPCALL_PROGS was set while
configure.
(cherry picked from commit
e9e2414e798a2eb447de45803e61cc0a49752f11)
Tim Prouty [Mon, 2 Feb 2009 07:59:53 +0000 (23:59 -0800)]
s3 build: Fix "assignment discards qualifiers from pointer target type" warnings
(cherry picked from commit
1aa6c76dd003b0c625c6910bb78798a7d98c5a8c)
Karolin Seeger [Mon, 2 Feb 2009 10:46:39 +0000 (11:46 +0100)]
docs: Describe "service" in man mount.cifs.
This fixes bug #5346.
Thanks to the Debian Samba package maintainers for reporting and providing a
patch!
Karolin
(cherry picked from commit
73f4fc1f802f31459b70dba4777d142d00fcdd92)
(cherry picked from commit
ab4768452811e67f6606253b5a79101184f777d0)
Björn Jacke [Sun, 1 Feb 2009 02:22:41 +0000 (03:22 +0100)]
fix build with external dns_sd libraries
This used to be commit
16f07280 in master.
(cherry picked from commit
89919a131b234485564ff2f2f20e3d9f9eb83522)
Michael Adam [Sun, 1 Feb 2009 23:46:57 +0000 (00:46 +0100)]
s3:winbind_group: fix "getent group" to allocate new gids.
"getent group" used to fill the idmap cache with negative
cache entries for unmapped group sids.
Don't pass domain name unconditionally to idmap_sid_to_gid().
idmap_sid_to_gid() only creates new mappings (allocating
idmap backends tdb, tdb2, ldap...) when the domain name passed
in is "".
Note that it is _wrong_ to directly call the idmap_sid_to_gid()
functions here, in the main winbindd. The correct fix would be
to send a sid_to_gid request to winbindd itself, but this needs
more work to prepare the async mechanisms, and we nee a quick
fix for getent passwd now.
Michael
(cherry picked from commit
8c64302915bde8a5400b575389b12e0eaf2cf140)
Michael Adam [Sun, 1 Feb 2009 23:36:59 +0000 (00:36 +0100)]
s3:winbind_user: fix "getent passwd" to allocate new uids.
"getent passwd" used to fill the idmap cache with negative
cache entries for unmapped user sids.
Don't pass domain name unconditionally to idmap_sid_to_[ug]id().
idmap_sid_to_[ug]id() only creates new mappings (allocating
idmap backends tdb, tdb2, ldap...) when the domain name passed
in is "".
Note that it is _wrong_ to directly call the idmap_sid_to_[ug]id()
functions here, in the main winbindd. The correct fix would be
to send a sid_to_[ug]id request to winbindd itself, but this needs
more work to prepare the async mechanisms, and we nee a quick
fix for getent passwd now.
Michael
(cherry picked from commit
877808450bb108ed306ef77db97a3acc7297e579)
Michael Adam [Sun, 1 Feb 2009 23:35:43 +0000 (00:35 +0100)]
s3:winbind_user: move initialization of domain up in winbindd_fill_pwent()
and streamline logic some
Michael
(cherry picked from commit
f2acdca4ded8646752d154d55a0ade405f159e17)
Volker Lendecke [Thu, 2 Oct 2008 00:17:04 +0000 (02:17 +0200)]
Fix bug 5798: "CFLAGS info lost in configure"
picked from
9097a67de
Volker
(cherry picked from commit
9ffb1e6f0ded2647efe567912873a1a63e2ffed1)
Günther Deschner [Thu, 22 Jan 2009 18:31:22 +0000 (19:31 +0100)]
s3-docs: fix typo in eventlogadm manpage.
Guenther
(cherry picked from commit
fb7b92abc2bea4b3d91cdd896f02db88065a4b8f)
(cherry picked from commit
0cc588ac53316299d2e1ff7d61947fd864d412f9)
Jeremy Allison [Fri, 30 Jan 2009 01:56:08 +0000 (17:56 -0800)]
Fix coverity CID#117 - resource leak in error path.
Jeremy.
(cherry picked from commit
250caa1f2f285063249b2c4a7266196938d24761)
Jeremy Allison [Fri, 30 Jan 2009 01:30:45 +0000 (17:30 -0800)]
Fix coverity CID#116. Resource leak on error path.
Jeremy.
(cherry picked from commit
8241669521772cc75a9ca278a7f9a57256907ded)
Jeremy Allison [Fri, 30 Jan 2009 01:27:16 +0000 (17:27 -0800)]
Fix coverity CID#115. Resource leak in error path.
Jeremy.
(cherry picked from commit
8e11901f92b2ecb976f0c24c5eb96fb6b8127207)
Björn Jacke [Thu, 29 Jan 2009 21:59:00 +0000 (22:59 +0100)]
add Tru64 sub-second resolution timestamp support
(cherry picked from commit
61465c57b9579a6f25381a9f16bca0852ca67f75)
Björn Jacke [Thu, 29 Jan 2009 20:59:44 +0000 (21:59 +0100)]
add configure check for Tru64 sub-second timestamp resolution
(cherry picked from commit
bc59a4398fb264c75e60881b2eda0f71d05048f0)
Björn Jacke [Thu, 29 Jan 2009 19:56:51 +0000 (20:56 +0100)]
add missing semicolons
the fixed configure check led to a missing semicolon in the now activated BSD
code. Then this error was even copypasted into the new AIX code. grrr
(cherry picked from commit
ee90448a7aa0a0972e5801b319a011fd52750c20)
Jeremy Allison [Thu, 29 Jan 2009 18:47:02 +0000 (10:47 -0800)]
Following Björn JACKE's patch, unify the detection of the timespec code in configure.in, and the application of it in time.c
Jeremy.
(cherry picked from commit
9ef86eff7ac41a174dcb8eae070eda24006c6c70)
Björn Jacke [Wed, 28 Jan 2009 23:33:19 +0000 (00:33 +0100)]
add configure check for AIX style sub-second resolution support
(cherry picked from commit
86add869c391ab01a749bda7de09bd909f5da634)
Björn Jacke [Wed, 28 Jan 2009 23:20:00 +0000 (00:20 +0100)]
rather cosmetic fix for failed birthtime configure checks
(cherry picked from commit
39aec29794a2339f37bc431195842aef22bc0504)
Björn Jacke [Wed, 28 Jan 2009 23:17:12 +0000 (00:17 +0100)]
give configure check "sub-second timestamps without struct timespec" a chance to succeed
(cherry picked from commit
2588a540be2a18bc1c023398bfdd783b8b3c2046)
Stefan Metzmacher [Wed, 28 Jan 2009 16:36:36 +0000 (17:36 +0100)]
s3:configure: autodetect ctdb/cluster support
We need to make sure ctdb has transaction support
and we autodetect ipv6 support.
metze
(cherry picked from commit
11163720e6f30e83f523c5009e1e60b5cf28cda6)
(cherry picked from commit
f87f4842cc0ffc62d76ee5350b94f7bda735aa71)
Stefan Metzmacher [Wed, 28 Jan 2009 17:55:13 +0000 (18:55 +0100)]
s3:ctdbd_conn: canonicalize ips before sending them to ctdbd
This makes samba work with older ctdb versions.
metze
(cherry picked from commit
7540d13956a8a69d25f6fbbc4f9a3417e91db1d2)
(cherry picked from commit
a7fcaff295c3a36e2b783398ac212500eef33ecb)
Michael Adam [Thu, 29 Jan 2009 12:17:46 +0000 (13:17 +0100)]
fix bug #6073: prevent ads_connect() from using SSL unless explicitly requested
This fixes "net ads join".
It copes with the changed default "ldap ssl = start tls".
A new boolean option "ldap ssl : ads" is added to allow for
explicitly requesting ssl with ads.
Michael
(cherry picked from commit
d332da87068cd72489941010a33e372ab53d3bcc)
Volker Lendecke [Wed, 28 Jan 2009 09:35:35 +0000 (10:35 +0100)]
Avoid valgrind errors
In event handlers, we might destroy other events that are pending in the lists.
We can only run one event safely per select call.
Yes, I've seen these valgrind errors :-)
Jeremy, with
ccdd921e61 you had checked in the change to run multiple events.
Do you remember why it was necessary and could not be solved in a different
way?
Volker
(cherry picked from commit
910cbc5d6e932fa8ed0066d407a40195b6629a37)
Volker Lendecke [Tue, 27 Jan 2009 18:41:34 +0000 (19:41 +0100)]
Fix a valgrind error when the socket dies
Don't reference anything that might have been deleted in the async_req_error
call.
(cherry picked from commit
3e9c89e81b2915ba1a2aac7b8d72a780f7f9b80e)
Jeremy Allison [Wed, 28 Jan 2009 00:17:55 +0000 (16:17 -0800)]
Fix warning (bad handler prototype) and fix detection of dns_sd
libraries.
Jeremy.
(cherry picked from commit
a8a8dde5ac2b0c0b33e49af685650440469b287f)
Jeremy Allison [Tue, 27 Jan 2009 23:47:47 +0000 (15:47 -0800)]
Fix bug #6069 - Build breaks with too many arguments to
samba-3.3.0/source/smbd/dnsregister.c:85:event_add_timed().
Jeremy.
(cherry picked from commit
458a6a4265bc9b429375d7efb52d25969d7faad5)
Michael Adam [Tue, 27 Jan 2009 21:13:47 +0000 (22:13 +0100)]
WHATSNEW: oops, the wrong parameter was reported to have been removed.
Micheal
(cherry picked from commit
8c35bb3c9fc0834ff1d6915b7b4098e1dc712ed1)
Michael Adam [Tue, 27 Jan 2009 14:48:20 +0000 (15:48 +0100)]
libreplace: fix detection of netinet/ip.h on solaris 8
(The test needs to additionally include <netinet/in_systm.h>.)
Michael
(cherry picked from commit
a223b096700bc54b446a0e152c842b088566720b)
Michael Adam [Tue, 27 Jan 2009 11:13:55 +0000 (12:13 +0100)]
libreplace: fix bug #6066 - netinet/ip.h present but cannot be compiled
under solaris
Michael
(cherry picked from commit
1b7beaed69823b3c401bc4c0b1c502b671169168)
Andreas Schneider [Mon, 26 Jan 2009 13:38:34 +0000 (14:38 +0100)]
Document default of the printing config variable.
Signed-off-by: Andreas Schneider <anschneider@suse.de>
(cherry picked from commit
d8f15e4efc00b9d509ff5761e9ca8ff5c6f443f7)
(cherry picked from commit
541704e253f06f8b33006b6c27f51b934c2eb51f)
Karolin Seeger [Mon, 26 Jan 2009 13:19:48 +0000 (14:19 +0100)]
docs: Adapt version number in new vfs_fileid manpage.
Karolin
(cherry picked from commit
3069401f5b46cfe2d2909c3d7ae75419ac5e673e)
Karolin Seeger [Mon, 26 Jan 2009 13:19:07 +0000 (14:19 +0100)]
docs: Adapt version number in new vfs_shadow_copy2 manpage.
Karolin
(cherry picked from commit
fd5ee7b35ffb7dd7dab1e17a01534470c12f415b)
Karolin Seeger [Mon, 26 Jan 2009 13:17:23 +0000 (14:17 +0100)]
docs: Add manpage for vfs_shadow_copy2.
Karolin
(cherry picked from commit
512cf0ad50d30fcb35a28b0ef1b859d754f42a99)
(cherry picked from commit
7ca4b8ec65d5f8794c58f27f3f17033143732897)
Günther Deschner [Sat, 24 Jan 2009 01:10:47 +0000 (02:10 +0100)]
s3-eventlog: fix various invalid memcpy in read_package_entry().
Guenther
(cherry picked from commit
75fff603625e0259f187e0fa47efd85887092fae)
Günther Deschner [Sat, 24 Jan 2009 01:07:40 +0000 (02:07 +0100)]
s3-eventlog: fix buffer allocation in eventlog read call.
This broke with
f6fa3080fee1b20df9f1968500840a88cf0ee592 back in April 2007...
Guenther
(cherry picked from commit
547c70e896b6890dd5f7b911e4e0ca107c8a3fa3)
Karolin Seeger [Fri, 23 Jan 2009 12:02:46 +0000 (13:02 +0100)]
docs: Fix formatting issue in man libsmbclient.
Karolin
(cherry picked from commit
aa2fb0efb7ce2bc732569b4baf20c57375fdce59)
(cherry picked from commit
e1e3a0554fcaabacc5bec51c213622271a83ad04)
Karolin Seeger [Fri, 23 Jan 2009 10:51:56 +0000 (11:51 +0100)]
WHATSNEW: Add note about libsmbclient changes.
Karolin
(cherry picked from commit
3a4e410e7802073e159b6e4dfdfb3319053503f9)
Stefan Metzmacher [Thu, 22 Jan 2009 10:52:54 +0000 (11:52 +0100)]
lib/replace: add defines to let the callers find out if pwrite and pread are thread/fork safe
metze
(cherry picked from commit
7fc7ee9331d0539359ad88c527f59d5fdf212209)
(cherry picked from commit
d74b63091781e442e42b1fa7881e903a0bcc928c)
Karolin Seeger [Fri, 23 Jan 2009 10:09:07 +0000 (11:09 +0100)]
WHATSNEW: Add "Changes since" sections of pre releases and RCs.
Karolin
(cherry picked from commit
646468f1a504a1ab00b27f9e61d56acbc42ffda9)
Karolin Seeger [Fri, 23 Jan 2009 09:36:25 +0000 (10:36 +0100)]
WHATSNEW: Update changes since 3.3.0rc2.
Karolin
(cherry picked from commit
50b8d5a1625d22512cf32b0bcd2f068e364a7403)
Jeremy Allison [Fri, 23 Jan 2009 00:22:04 +0000 (16:22 -0800)]
Apply same logic fix for #4308 Excel save operation corrupts file ACLs
to NFSv4 ACL code as this uses the same flawed logic as posix_acls.c.
Jeremy.
(cherry picked from commit
cad872fc385ba30fb72baab25ee6341a41396e39)
Jeremy Allison [Fri, 23 Jan 2009 00:09:26 +0000 (16:09 -0800)]
Fix logic error in try_chown - we shouldn't arbitrarily chown
to ourselves unless that was passed in.
Jeremy.
(cherry picked from commit
db2d56484e21daeb91df4b5e2286d242910336e8)
Jeremy Allison [Thu, 22 Jan 2009 22:32:32 +0000 (14:32 -0800)]
Second part of the attemt to fix #4308 - Excel save operation corrupts file ACLs.
If the chown succeeds then the ACL set should also. Ensure this is the case
(refactor some of this code to make it simpler to read also).
Jeremy.
(cherry picked from commit
90b660e2382711d005e8c4c4ae1c6adbd5e5b687)
Jeremy Allison [Thu, 22 Jan 2009 18:59:14 +0000 (10:59 -0800)]
Another attempt to fix bug #4308 - Excel save operation corrupts file ACLs.
Simo is completely correct. We should be doing the chown *first*, and fail the
ACL set if this fails. The long standing assumption I made when writing the
initial POSIX ACL code was that Windows didn't control who could chown a file
in the same was as POSIX. In POSIX only root can do this whereas I wasn't sure
who could do this in Windows at the time (I didn't understand the privilege
model). So the assumption was that setting the ACL was more important (early
tests showed many failed ACL set's due to inability to chown). But now we have
privileges in smbd, and we must always fail an ACL set when we can't chown
first. The key that Simo noticed is that the CREATOR_OWNER bits in the ACL
incoming are relative to the *new* owner, not the old one. This is why the old
user owner disappears on ACL set - their access was set via the USER_OBJ in the
creator POSIX ACL and when the ownership changes they lose their access.
Patch is simple - just ensure we do the chown first before evaluating the
incoming ACL re-read the owners. We already have code to do this it just wasn't
rigorously being applied.
Jeremy.
(cherry picked from commit
96b819e04cd71a6c899801ae68031bf55b54ea46)
todd stecher [Thu, 22 Jan 2009 18:17:37 +0000 (10:17 -0800)]
Memory leaks and other fixes found by Coverity
(cherry picked from commit
ba576efa8f884f3dd37bb5035fbb47ae0305c0b0)
Michael Adam [Wed, 21 Jan 2009 14:10:10 +0000 (15:10 +0100)]
build-docs: cleanup exit of the script
exit in the directory where it was called using pushd/popd.
Michael
(cherry picked from commit
b319549f129b1c79afc9bfd4a84f2730b96d69a3)
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
b7d6536b323df9c5503b6a225e03a47ae2112e5c)
Michael Adam [Wed, 21 Jan 2009 14:09:46 +0000 (15:09 +0100)]
s3:docs: clean build/catalog.xml in "make clean"
Michael
(cherry picked from commit
5e21fc3506f2ba7b1135b1acad2697dfb86b5df0)
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
a33ec84ef7c64bf94526383340fb446e86d919e0)
Michael Adam [Wed, 21 Jan 2009 14:09:12 +0000 (15:09 +0100)]
s3:docs: clean generated .png images in "make clean"
Michael
(cherry picked from commit
9b32e839bec8611c30745607a3a6b124d5b34c01)
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
6a9346f0c2f900d95d0ba3ae0bdb22a6e88a7916)
Michael Adam [Wed, 21 Jan 2009 09:56:34 +0000 (10:56 +0100)]
s3:docs: clarify explanation of the allocator in the idmap_ldap manpage
Michael
(cherry picked from commit
816934faa8bbe53dd299bc5e39f471eafdddefa8)
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
0b1036d5d6e06e2fa14dab163d51a902ca63fc0a)
Michael Adam [Wed, 21 Jan 2009 09:55:19 +0000 (10:55 +0100)]
s3:docs: clarify explanation of the allocator in the idmap_tdb manpage
Michael
(cherry picked from commit
665b5dc70333ca36129a6fe06645bd9faa4f2350)
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
83a03a3ced255f0a64935fe788ac3b0ddf669ca5)
Michael Adam [Wed, 21 Jan 2009 09:49:48 +0000 (10:49 +0100)]
s3:docs: clarify explanation of allocator in the idmap_tdb2 manpage
Michael
(cherry picked from commit
65b79200e46751278c125ad260d899d10d6466a2)
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
73a835335e329f0aaa0b72ebfd538b8c2b813812)
Michael Adam [Wed, 21 Jan 2009 09:38:49 +0000 (10:38 +0100)]
s3:docs: fix copy and paste error in the idmap_tdb2 manpage
Michael
(cherry picked from commit
bd252ad665547d2ad012725ccb18720e160d221f)
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
ea5be10d0656d4f7edec43a4cb926573050823aa)
Michael Adam [Tue, 20 Jan 2009 23:56:03 +0000 (00:56 +0100)]
s3:docs: add a manpage for idmap_tdb2
Michael
(cherry picked from commit
84f2b2d731fb7d97c98414196bf96ee94ea88bb3)
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
c52948a2b019bb1620ffa69605673d88bfa34bb4)
Michael Adam [Tue, 20 Jan 2009 23:13:29 +0000 (00:13 +0100)]
s3:docs: update the idmap_ldap manpage to reflect current facts.
Michael
(cherry picked from commit
7c5621b6e09d9ae3fe936a86e46d1b0f35906e6d)
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
1bbc5f228b8b73a623f7afc5eb79c08757366029)
Michael Adam [Tue, 20 Jan 2009 23:06:10 +0000 (00:06 +0100)]
s3:docs: update the idmap_tdb manpage to reflect current facts.
Michael
(cherry picked from commit
32be66b19da07983670002d1b2b5bc80cf0c8d16)
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
4145a1de91a18ea9a09b3088f0e5cd054875760b)
Michael Adam [Wed, 21 Jan 2009 10:47:46 +0000 (11:47 +0100)]
s3:docs: fix ommission in fix of (real)distclean targets
Michael
(cherry picked from commit
37412017c5dd2f05a7f4bbe0410a6e00ce4805e5)
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
ba941074ce20617856c138eff5762646384d37de)
Michael Adam [Wed, 21 Jan 2009 10:45:23 +0000 (11:45 +0100)]
s3:create-tarball: also include the VENDOR_PATCH in the version
Michael
(cherry picked from commit
ce3e34d37ce5592e0268be5d16240387d971585a)
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
05b83098ed49cee906a5b16d15dce9e6baf62b07)
Michael Adam [Wed, 21 Jan 2009 10:41:14 +0000 (11:41 +0100)]
s3:docs: fix distclean target and add realdistclean target
- remove stuff created by configure in distclean
- remove stuff created by autoconf in realdistclean
Michael
(cherry picked from commit
65c92fea3d18c3520ff2a1e53a0c5c8825c9788f)
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
58db911a3845c4a8475c413e5fd8d755498dd447)
Karolin Seeger [Wed, 21 Jan 2009 10:37:30 +0000 (11:37 +0100)]
build_docs: Use 'make distclean' instead of 'make clean'.
This fixes bug #6058.
Thanks to Christian Perrier for reporting!
Karolin
(cherry picked from commit
162e4b66601b41dd5adb24e192f3b5a91dfb41cc)
Karolin Seeger [Tue, 20 Jan 2009 10:35:55 +0000 (11:35 +0100)]
WHATSNEW: Update changes.
Karolin
(cherry picked from commit
28a80ea826aa53337817f9d0ce545b6ac3fd54f2)
Stefan Metzmacher [Tue, 20 Jan 2009 00:37:53 +0000 (16:37 -0800)]
socket_wrapper: fix PCAP support broken by
aaea68791cfea45c6fa69abc93ad6d0e832d0283
We should not close the fd after writing the first packet.
metze
(cherry picked from commit
53e8f92678428a0c3cbeefa83219609661d28831)
Stefan Metzmacher [Tue, 20 Jan 2009 00:26:00 +0000 (16:26 -0800)]
s3: reinit_after_fork() should reinit the event context before the
messaging context
Because messaging_reinit() may add events to the event context, which will
removed by event_context_reinit().
metze
(cherry picked from commit
56af6112d67aa9dd3757297fbe29ce1a3eabf00d)
Andreas Schneider [Mon, 19 Jan 2009 15:26:07 +0000 (16:26 +0100)]
Avoid flooding of syslog with failing pam_putenv messages.
Signed-off-by: Andreas Schneider <anschneider@suse.de>
Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit
acb1debf257c6c3df325267b2a4c8e2d40c1f850)
Karolin Seeger [Mon, 19 Jan 2009 09:22:46 +0000 (10:22 +0100)]
S3-ByExample: Use 'winbindd -D' instead of 'winbindd -B'.
The option '-B' does not exist at all.
Thanks to Jason Ellison for reporting!
Karolin
(cherry picked from commit
4b26c7bbf4fe93f5ffb92d3f04012be290be25be)
(cherry picked from commit
05c7d97e6cf25c05ba6a661c0a31c88946ffd5cd)
Karolin Seeger [Mon, 19 Jan 2009 07:55:30 +0000 (08:55 +0100)]
S3-HowTo: Change 'winbindd -B' to 'winbindd -D'.
There is no option '-B' at all.
Thanks to Jason Ellison for reporting!
Karolin
(cherry picked from commit
7c1e08518bfbe054db270e72476c642d5db93c0a)
(cherry picked from commit
3b5d2fd4cc5f7cbe22be1dfc593ca4ba29197b66)
Derrell Lipman [Sat, 17 Jan 2009 18:21:54 +0000 (13:21 -0500)]
Determine case sensitivity based on file system attributes.
- Most of the time, we can determine from the file system we're connecting to
whether it supports case sensitivity. In those cases, we now set the
internal case sensitivity flag automatically. For those cases where the
request to retrieve file system attributes fails, we'll use the
user-specified option value.
Derrell
(cherry picked from commit
005bd7eee44160e4531e46be85c67650821a8328)
Stefan Metzmacher [Wed, 14 Jan 2009 11:09:46 +0000 (12:09 +0100)]
s3:cluster: fix ctdb ipv6 support
We need to use CTDB_CONTROL_TCP_CLIENT instead of CTDB_CONTROL_TCP_ADD.
CTDB_CONTROL_TCP_CLIENT has support for 2 modes in newer ctdb versions:
- with struct ctdb_control_tcp it only supports ipv4.
- with struct ctdb_control_tcp_addr it supports ipv4 and ipv6.
You need new header files which defines struct ctdb_control_tcp_addr,
but at runtime it should be fine to work against older
ctdb versions (<= 1.0.68).
metze
(cherry picked from commit
dc6edf1ab4ae8e3fb3ef40b93135ff0ef5407e12)
(cherry picked from commit
c07bcd6efd3383fc3a46fce35fd34df85ab221c9)
Stefan Metzmacher [Wed, 14 Jan 2009 10:52:01 +0000 (11:52 +0100)]
s3:docs: vfs_fileid manpage
metze
(cherry picked from commit
6a94b7b9270f3d69595b93e2632051c9842645c9)
(cherry picked from commit
8e13be1db5c51002ae72c42c505a79406b2f4f63)
Stefan Metzmacher [Wed, 14 Jan 2009 12:59:09 +0000 (13:59 +0100)]
s3:vfs_fileid: readd "fileid:algorithm" as option.
"fileid:mapping" is still supported as fallback.
metze
(cherry picked from commit
554a89df0cf6d9832778e2913f9fe50b78baeedc)
(cherry picked from commit
fe9ad21b8cb5286845350fe2280da2cbe2647bb7)
Derrell Lipman [Sat, 17 Jan 2009 01:30:11 +0000 (20:30 -0500)]
[Bug 6022] smbc_urlencode and smbc_urldecode were not exported
- Since the revamp of libsmbclient, there has still been an external
declaration for smbc_urlencode and smbc_urldecode in libsmbclient.h, yet
those functions were renamed and made private. The two choices were to
remove the function names from libsmbclient.h or to make them public
again. The reported requested that they be public. This commit makes it so.
Derrell
(cherry picked from commit
bf7eb0164b0c69d5d0f3019f3aa524846f6a4394)
Derrell Lipman [Fri, 16 Jan 2009 20:55:08 +0000 (15:55 -0500)]
Treat file names in POSIX-like case-sensitive fashion by default
*** THIS COMMIT CAUSES A CHANGE OF DEFAULT BEHAVIOR IN libsmbclient!!! ***
- libsmbclient now calls cli_set_case_sensitive() for a new CLI. By default,
it requests case-sensitive, but the old behavior of case-insensitive can be
requested with smbc_setOptionCaseSensitive(context, False);
The change of behavior is considered a bug fix, as it was previously
possible to accidentally overwrite a file that had the same case-insensitive
name but a different case-sensitive name as a previously-existing file,
while creating a new file.
Derrell
(cherry picked from commit
20b765f0a20fe7329559e4bf2a9dac4fe8e13c18)
Andreas Schneider [Fri, 16 Jan 2009 20:24:58 +0000 (12:24 -0800)]
Fix a segfault if ? is there but the options are NULL. This is the case if SMBC_parse_path is called by SMBC_stat_ctx.
(cherry picked from commit
889d0dff4e4cfd4d4b4ed16ad64de303c795f879)
Jeremy Allison [Fri, 16 Jan 2009 19:55:57 +0000 (11:55 -0800)]
"First thing, kill all the language lawyers" :-). Ensure possible insane compilers
can't kill us later.
Jeremy.
(cherry picked from commit
54913913be90323889b2f4dbd6a3ab75f4fa7ccd)
Gerald (Jerry) Carter [Fri, 16 Jan 2009 18:06:49 +0000 (12:06 -0600)]
ads_connect: Return immediately on a failed GC connection.
ads_connect_gc() feeds an explicit server to ads_connect(). However, if the
resulting connection fails, the latter function was attempting to find a DC
on its own and continuing the connection. This resulting in GC searches being
sent over a connection using port 389 which would fail when using the base
search suffix outside of the domain naming context.
The fix is to fail immediately in ads_connect() since the GC lookup ordering
is handled already in ads_connect_gc().
(was commit
073e9f42f0c5f5de5d736ec7843d80a274c891ce in master)
(cherry picked from commit
2d0fd7543d0543ce59cb84db64afb99aa1f304b4)
Jeremy Allison [Thu, 15 Jan 2009 23:55:29 +0000 (15:55 -0800)]
Fix bug #6040 - Missing <th> header in Status page.
Based on a patch from pkg-samba-maint@lists.alioth.debian.org.
Jeremy.
(cherry picked from commit
3764e6ed2a683a69706d7654e46b998de9294883)
Jeremy Allison [Thu, 15 Jan 2009 23:50:50 +0000 (15:50 -0800)]
Allow reinit_after_fork to be called safely from within swat and other binaries that don't have
an event context or a msg context. Fixes crash bug in swat.
Jeremy.
(cherry picked from commit
45e6f9c5a4b5d9cdb89f398f1238872251ccbe54)
Stefan Metzmacher [Thu, 15 Jan 2009 12:46:38 +0000 (13:46 +0100)]
packaging(RHEL-CTDB): export CC - really use ccache...
metze
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
51e34b38959115e8a04795837b5c5983dc8d824c)