samba.git
14 years agoWHATSNEW: Update changes. samba-3.4.4
Karolin Seeger [Mon, 4 Jan 2010 12:59:21 +0000 (13:59 +0100)]
WHATSNEW: Update changes.

Karolin
(cherry picked from commit 945b2d1982d4e47aed2552a29e522b3c03b931f4)

14 years agoPrevent NULL dereference if group has no members
Jim McDonough [Wed, 30 Dec 2009 20:04:55 +0000 (15:04 -0500)]
Prevent NULL dereference if group has no members

Fix bug #7014 (domain mode winbind crashes retriveing empty group members).
(cherry picked from commit 7ea471ba8db84b4fb2f02672e59a9f2a9932b4fa)

14 years agoWHATSNEW: Update changes.
Karolin Seeger [Wed, 30 Dec 2009 09:01:29 +0000 (10:01 +0100)]
WHATSNEW: Update changes.

Karolin
(cherry picked from commit 958367d09384731ad3330e396869b12770b11231)

14 years agoFix bug 6837 - "Too many open files" when trying to access large number of files
Jeremy Allison [Fri, 18 Dec 2009 00:59:56 +0000 (16:59 -0800)]
Fix bug 6837 - "Too many open files" when trying to access large number of files

Win7 needs the Windows server open file handle number of 16384 handles.

Jeremy.
(cherry picked from commit bbdc2c017ca5abb35897ab61717b806133e0af0b)

14 years agoWHATSNEW: Update changes.
Karolin Seeger [Tue, 29 Dec 2009 10:53:15 +0000 (11:53 +0100)]
WHATSNEW: Update changes.

Karolin
(cherry picked from commit 29b923666294cb615059a20ec761ae309238e789)

14 years agoFix bug 7005 - mangle method = hash truncates files with dot '.' character
Jeremy Allison [Tue, 22 Dec 2009 05:12:33 +0000 (21:12 -0800)]
Fix bug 7005 - mangle method = hash truncates files with dot '.' character

Don't change the contents of a const string via a pointer
alias (or if you do, change it back.....).

Jeremy.
(cherry picked from commit a5bfbad790870ff66d4b09f99f0835ccb61c10ed)

14 years agoWHATSNEW: Start release notes for Samba 3.4.4.
Karolin Seeger [Wed, 23 Dec 2009 11:02:45 +0000 (12:02 +0100)]
WHATSNEW: Start release notes for Samba 3.4.4.

Karolin
(cherry picked from commit 3439ae9005ee3c6be05f0d173d26d3f11a427b06)

14 years agoFix bug #6939 - mangling method = hash breaks long filenames.
Jeremy Allison [Fri, 18 Dec 2009 00:21:46 +0000 (16:21 -0800)]
Fix bug #6939 - mangling method = hash breaks long filenames.

We were returning the wrong sense of the bool. must_mangle()
has to return !NT_STATUS_IS_OK, not NT_STATUS_IS_OK.

Jeremy.
(cherry picked from commit 2f1a66a72a6bd9f3e160b01982171dd66835990e)

14 years agos3: Fix _samr_GetAliasMembership for results with 0 rids
Volker Lendecke [Tue, 15 Dec 2009 13:01:43 +0000 (14:01 +0100)]
s3: Fix _samr_GetAliasMembership for results with 0 rids
(cherry picked from commit 20bcdf85f16216c45ded886217fedc4516cc591c)

Fix bug #6997 (Fix _samr_GetAliasMembership for results with 0 rids).
(cherry picked from commit e4e143e8fccc09b6543c4f765d0824f0472f95e9)

14 years agos3:posix_acls: Fix bug 6841 - "map acl inherit = yes" not working.
Jeremy Allison [Fri, 18 Dec 2009 12:46:13 +0000 (13:46 +0100)]
s3:posix_acls: Fix bug 6841 - "map acl inherit = yes" not working.

The code to read the new V2 SAMBA_PAI entries had
two errors.

Jeremy.
(cherry picked from commit ce060ae48d71e8988282b16f8348ca0b0434cfde)

14 years agoSecond part of fix for 6875 - trans2 FIND_FIRST2 response --> FIND_FIRST2 Data -...
Jeremy Allison [Wed, 16 Dec 2009 02:36:36 +0000 (18:36 -0800)]
Second part of fix for 6875 - trans2 FIND_FIRST2 response --> FIND_FIRST2 Data -> Fille Attributes are returned as 0x220 for LANMAN2.1 dialect

Ensure dos_mode can return FILE_ATTRIBUTE_NORMAL, then filter the returned attributes by protocol level.
This makes us consistant in returning DOS attrs across all replies. Tested on OS/2 by Günter Kukkukk.
Jeremy.
(cherry picked from commit 22332e08ab5b406ca603576b29fcaf0c1f786708)

14 years agospoolss: remove unused spoolss_StringArray2.
Günther Deschner [Thu, 10 Dec 2009 13:23:49 +0000 (14:23 +0100)]
spoolss: remove unused spoolss_StringArray2.

Guenther

The last 13 commits address bug #6883 (Add Printer fails with 0x000006f7 on
Windows 7).
(cherry picked from commit 874a4e34ff6222a4d387815f3ec896a24822f94e)

14 years agos4-smbtorture: fix and extend enum printerkey test.
Günther Deschner [Thu, 10 Dec 2009 13:21:12 +0000 (14:21 +0100)]
s4-smbtorture: fix and extend enum printerkey test.

Guenther
(cherry picked from commit b1097e33ba4828d1dd7bf7409aa3880e6359c96e)

14 years agos4-smbtorture: enhance spoolss_EnumPrinterKey torture test.
Günther Deschner [Wed, 9 Dec 2009 14:31:51 +0000 (15:31 +0100)]
s4-smbtorture: enhance spoolss_EnumPrinterKey torture test.

This demonstrates that s3 still does not have that call implemented correctly.

Guenther
(cherry picked from commit 532376914d0852ab599a6275910ab315935f37d0)

14 years agos3-spoolss: fix enumprinter key client and server.
Günther Deschner [Thu, 10 Dec 2009 13:20:22 +0000 (14:20 +0100)]
s3-spoolss: fix enumprinter key client and server.

Guenther
(cherry picked from commit f20effc437970d826c5bd4f047ff47e23e7a1a73)
(cherry picked from commit ef1c97b8c252feabd02f68493f1d83cab9a852d0)

14 years agos3: re-run make samba3-idl.
Günther Deschner [Fri, 11 Dec 2009 10:02:55 +0000 (11:02 +0100)]
s3: re-run make samba3-idl.

Guenther
(cherry picked from commit c5e9df56b3b588f2c7f6f0876204aaf9b9289ee4)

14 years agospoolss: use spoolss_KeyNames in spoolss_EnumPrinterKey.
Günther Deschner [Thu, 10 Dec 2009 13:19:28 +0000 (14:19 +0100)]
spoolss: use spoolss_KeyNames in spoolss_EnumPrinterKey.

Guenther
(cherry picked from commit 0ecb7f6ab28d7b7c1844554289f5ae8e876b1dcf)
(cherry picked from commit ab71e84ab446eb074a56f7d5d8e7ad69f02ed504)

14 years agospoolss: add spoolss_KeyNames union.
Günther Deschner [Thu, 10 Dec 2009 13:18:46 +0000 (14:18 +0100)]
spoolss: add spoolss_KeyNames union.

Guenther
(cherry picked from commit cf2561473f7bd0bcef5c562c1e901d4ad17e6ee3)
(cherry picked from commit 969623c7963219ae3db3058349c257e00adc237b)

14 years agospoolss: hand-marshall the spoolss_StringArray2 struct for spoolss_EnumPrinterKey.
Günther Deschner [Wed, 2 Dec 2009 20:26:10 +0000 (21:26 +0100)]
spoolss: hand-marshall the spoolss_StringArray2 struct for spoolss_EnumPrinterKey.

This call is just driving me nuts :-)

Guenther
(cherry picked from commit fc4b43089e08578f99b99de8eff1eecebaa4ae01)

14 years agos3-spoolss: handle SEC_FLAG_MAXIMUM_ALLOWED in spoolss_OpenPrinterEx.
Günther Deschner [Thu, 3 Dec 2009 22:23:36 +0000 (23:23 +0100)]
s3-spoolss: handle SEC_FLAG_MAXIMUM_ALLOWED in spoolss_OpenPrinterEx.

In case someone (smbtorture4) requests SEC_FLAG_MAXIMUM_ALLOWED, translate it
to a request of PRINTER_ACCESS_ADMINISTER.

Guenther
(cherry picked from commit 459a968fb4d6f96ea7f310f331d3547e2e466d6a)
(cherry picked from commit 7974ab9337c7de209f1cdafbd09fd2b71ef45f19)

14 years agosamba-spoolss: use spoolss_StringArray2 in spoolss_EnumPrinterKey.
Günther Deschner [Wed, 2 Dec 2009 13:53:39 +0000 (14:53 +0100)]
samba-spoolss: use spoolss_StringArray2 in spoolss_EnumPrinterKey.

This should finally resolve the endian issues we were seeing on sparc and is
much cleaner for spoolss clients and servers.

Guenther
(cherry picked from commit 191167fce3cb07e286c3b1cedf4fb70126e6daf7)

14 years agospoolss: add spoolss_StringArray2.
Günther Deschner [Wed, 2 Dec 2009 13:22:52 +0000 (14:22 +0100)]
spoolss: add spoolss_StringArray2.

The difference to spoolss_StringArray is that in spoolss_StringArray2 the string
array is put into a subcontext of _ndr_size.

Guenther
(cherry picked from commit a6bd5d61685f5582a72d24ac72c6e3753f232f90)

14 years agos4-smbtorture: add tests for spoolss_EnumPrinterKey to RPC-SPOOLSS-PRINTER.
Günther Deschner [Fri, 20 Nov 2009 15:33:29 +0000 (16:33 +0100)]
s4-smbtorture: add tests for spoolss_EnumPrinterKey to RPC-SPOOLSS-PRINTER.

Guenther
(cherry picked from commit f190de033b9b13b5ffaaf98e86a336bc48ce84e4)

14 years agos4-smbtorture: fix spoolss_EnumPrinterKey client in RPC-SPOOLSS-WIN.
Günther Deschner [Mon, 23 Nov 2009 12:35:32 +0000 (13:35 +0100)]
s4-smbtorture: fix spoolss_EnumPrinterKey client in RPC-SPOOLSS-WIN.

Guenther
(cherry picked from commit a990887d02de6c92f7d97631bd3f04c49007df2e)

14 years agos3:packaging: Fix version detection.
Karolin Seeger [Thu, 10 Dec 2009 13:57:08 +0000 (14:57 +0100)]
s3:packaging: Fix version detection.

Adapted from 728b01fc03.
Thanks god I was not root! It would have delted /*!

Karolin
(cherry picked from commit 0604c696a05773a439538d88f1b45aa6637766a7)
(cherry picked from commit fd30552aab88572b2d5944b9b87ee8ca76d29b35)
(cherry picked from commit 24f3fb1395673883e4435ffbf999b2f309c35306)

14 years agos3:packaging: Fix source dir.
Karolin Seeger [Thu, 10 Dec 2009 13:26:58 +0000 (14:26 +0100)]
s3:packaging: Fix source dir.

Karolin
(cherry picked from commit 85e79a2a03e8c1c6275363c39b0fa71283214562)
(cherry picked from commit 1ed3172d10ca96816ec548996953579ec55da660)
(cherry picked from commit f39cde691c0f19d8851b056d5f625967155d35cf)

14 years agos3:packaging: Fix typo in comment.
Karolin Seeger [Thu, 10 Dec 2009 13:08:43 +0000 (14:08 +0100)]
s3:packaging: Fix typo in comment.

Karolin
(cherry picked from commit b5011ba2c897fa177f1e22dde075055b9ffd271d)
(cherry picked from commit 3b812b134d819097df51bb20bdb4fd856f4ad00d)
(cherry picked from commit c504e7f0d464944836d04db3f288ee786431b553)

14 years agos3:pdb_ldap: Fix large paged search.
Volker Lendecke [Mon, 18 May 2009 14:04:04 +0000 (16:04 +0200)]
s3:pdb_ldap: Fix large paged search.

Fix bug #6981 (Paged Search with DirX LDAP server broken).
(cherry picked from commit 0a3b576c0a4298cbe600ad8943e401e3a0639359)

14 years agofix bogus "out of memory" winbind msg
Volker Lendecke [Wed, 13 May 2009 08:12:26 +0000 (10:12 +0200)]
fix bogus "out of memory" winbind msg

Fix bug #6982 (Erroneous out of memory error path in lookup_sid).
(cherry picked from commit a6d9c2161859fff61bdd0539d9428615da3da655)

14 years agos3 aclocal.m4: Fix iconv checks, clean up m4 code
Kai Blin [Fri, 4 Dec 2009 08:47:25 +0000 (09:47 +0100)]
s3 aclocal.m4: Fix iconv checks, clean up m4 code

The check for iconv requiring giconv.h and libgiconv as well as
the check for iconv requiring biconv.h and libbiconv were using the wrong
variable to check for previous successful test results. This caused the checks
to always fall back to libbiconv on systems where that library was available.

In the course of fixing this, I had to clean up the indentation in that piece of
code, and I also rewrote/added some comments.

Many thanks to Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp> for the initial
patch and diagnosis.
(cherry picked from commit f5aff324cb9d965bbc75634596c3c40ffc588183)

Fix bug #4832 (iconv library is not used).
(cherry picked from commit 886a90cccbc5cf757c1037ee167282315055c358)

14 years agos3:docs: Document "directory name cache size".
Karolin Seeger [Mon, 7 Dec 2009 15:28:30 +0000 (16:28 +0100)]
s3:docs: Document "directory name cache size".

Karolin
(cherry picked from commit 5055ba140d03189a3c8181d57ad920e68c6e387c)
(cherry picked from commit a9077c77b7119fb15cbc74d9b160a363932b0bde)
(cherry picked from commit 95d8039cb064d23a9f1f28484b08e00b93c152e2)

14 years agocreate-tarball: Readd RFCs (fixes the merged build).
Karolin Seeger [Mon, 7 Dec 2009 15:06:29 +0000 (16:06 +0100)]
create-tarball: Readd RFCs (fixes the merged build).

See http://lists.samba.org/archive/samba-technical/2009-December/068235.html
for more information.

Karolin
(cherry picked from commit 08b692828ed6a9929dc6098fabc8aa47a0e32f93)
(cherry picked from commit 7470559ce27af469cd57af0fd41b30aaee9a585a)

14 years agos3: Prevent glibc errors: talloc()ed memory should not be SAFE_FREE()ed.
Jim McDonough [Fri, 4 Dec 2009 17:31:53 +0000 (12:31 -0500)]
s3: Prevent glibc errors: talloc()ed memory should not be SAFE_FREE()ed.

Fix bug #6967 (net ads join with OU fails with glibc error on free()).
(cherry picked from commit 779ebd6a6800ceb0d192232b2ec9687115115c73)

14 years agos3:build: remove redundant qnx block size definition
Björn Jacke [Wed, 2 Dec 2009 23:12:53 +0000 (00:12 +0100)]
s3:build: remove redundant qnx block size definition
(cherry picked from commit a2929a638fa6824e38beec7eaa78ac108c522f50)

Part of a fix for bug #6860.
(cherry picked from commit 6b430b4fd88eb033098366f9a6b204c55ca7f79e)

14 years agos3:build: fix shared library build on QNX
Björn Jacke [Wed, 2 Dec 2009 23:02:44 +0000 (00:02 +0100)]
s3:build: fix shared library build on QNX

Fixes #6860. Thanks to Matt Kraai!
(cherry picked from commit 1d013fd03295433698f2b301dbf8324a3db528eb)
(cherry picked from commit 6ba6370c9f8d76a59b6a59f6e083c109eb5fba53)

14 years agos3:auth: Fix typo in debug message.
Karolin Seeger [Mon, 7 Dec 2009 13:38:18 +0000 (14:38 +0100)]
s3:auth: Fix typo in debug message.

Karolin
(cherry picked from commit 71018ebe5303ca6e0f3e3e4b96ae45fb32d3e195)
(cherry picked from commit 626ae39f3952087e05cbcd42a049119860072bc8)
(cherry picked from commit e7e66fd949d970b03bce0812c6b934193ac9ff1c)

14 years agos3-kerberos: do not include authdata headers before including krb5 headers.
Günther Deschner [Fri, 27 Nov 2009 17:30:18 +0000 (18:30 +0100)]
s3-kerberos: do not include authdata headers before including krb5 headers.

Guenther

Part of a fix for bug #6929.
(cherry picked from commit 579ac85a8e8f640790878cef5a35debec999dd0e)

14 years agoFix bug #6898 - Samba duplicates file content on appending. Move posix case semantics...
Jeremy Allison [Tue, 24 Nov 2009 03:19:07 +0000 (19:19 -0800)]
Fix bug #6898 - Samba duplicates file content on appending. Move posix case semantics out from under the VFS. Jeremy.
(cherry picked from commit 24282f2a282ba4ef78108d983d1ef4a6ad4cbf89)

14 years agos3: Fix shadow copy display on Windows 7
Volker Lendecke [Thu, 8 Oct 2009 12:02:39 +0000 (14:02 +0200)]
s3: Fix shadow copy display on Windows 7

Windows 7 is a bit more picky on our NT_STATUS_BUFFER_TOO_SMALL. Announce the
right buffer size, the same amount we later check for.

Fix bug #6850 (Shadow Copy Support for VISTA / Windows 7).
(cherry picked from commit b1243ff12d4f4b948dc7bbd85795f8ee8f7621d9)

14 years agos3-spoolss: simplify _spoolss_EnumPrinterKey a little more.
Günther Deschner [Thu, 26 Nov 2009 18:01:54 +0000 (19:01 +0100)]
s3-spoolss: simplify _spoolss_EnumPrinterKey a little more.

Guenther
(cherry picked from commit e512ccb5b677fa7f285829ec645fc067837c0e11)

Part of a fix for bug #6883 (Add Printer fails with 0x000006f7 on Windows 7).
(cherry picked from commit ab9e7e9ac813f4bbadf1ebf86dfaac2f47e75de2)

14 years agos3-spoolss: fixes for _spoolss_EnumPrinterKey client and server.
Günther Deschner [Tue, 24 Nov 2009 14:22:04 +0000 (15:22 +0100)]
s3-spoolss: fixes for _spoolss_EnumPrinterKey client and server.

Thanks Metze for review!

Guenther
(cherry picked from commit 846aa18648f3b34ab5cbc4dc4ba334bbedeab2f4)
(cherry picked from commit 29c22e159352bcb334dfb7c5846e865967d77cb0)

14 years agos3-spoolss: fix spoolss_EnumPrinterKey client and server code.
Günther Deschner [Fri, 20 Nov 2009 15:34:00 +0000 (16:34 +0100)]
s3-spoolss: fix spoolss_EnumPrinterKey client and server code.

Guenther
(cherry picked from commit d464151f3b47c675664f464b1645ca85de663655)
(cherry picked from commit 5b86641b5003379208d8d55f2d6eac6aac6e1488)

14 years agospoolss: fix spoolss_EnumPrinterKey IDL.
Günther Deschner [Fri, 20 Nov 2009 11:57:13 +0000 (12:57 +0100)]
spoolss: fix spoolss_EnumPrinterKey IDL.

Guenther
(cherry picked from commit 167a9ea770a38ffbe121da522bfdab79aa60413d)

14 years agos3-util: add pull_reg_sz() and pull_reg_multi_sz() convenience functions.
Günther Deschner [Thu, 24 Sep 2009 22:56:17 +0000 (00:56 +0200)]
s3-util: add pull_reg_sz() and pull_reg_multi_sz() convenience functions.

Guenther
(cherry picked from commit f8016cfee922cba97b70f56c752827e4584da6c6)
(cherry picked from commit 560b7a45ff8257b7d9994199218edfa3ea4e8dae)

14 years agos3-util: add push_reg_sz() and push_reg_multi_sz() convenience functions.
Günther Deschner [Wed, 23 Sep 2009 18:42:20 +0000 (20:42 +0200)]
s3-util: add push_reg_sz() and push_reg_multi_sz() convenience functions.

Guenther
(cherry picked from commit fcee9d2c97a673347baf58f749f35785a896e468)
(cherry picked from commit 20b43200885d7e4cef5e26ad249c9a4c6529dca5)

14 years agomisc: mark winreg_Data little-endian except for a REG_DWORD_BIG_ENDIAN.
Günther Deschner [Fri, 27 Nov 2009 10:18:30 +0000 (11:18 +0100)]
misc: mark winreg_Data little-endian except for a REG_DWORD_BIG_ENDIAN.

Guenther
(cherry picked from commit 09d1d639da808b94c25749423675925fbe3b3660)

14 years agowinreg: add winreg_Data union to IDL.
Günther Deschner [Wed, 23 Sep 2009 18:41:44 +0000 (20:41 +0200)]
winreg: add winreg_Data union to IDL.

Guenther
(cherry picked from commit a15f3cb7c72eebecce48db83e045739f771ab4d7)

14 years agos3-kerberos: fix the build on Mac OS X 10.6.2.
Günther Deschner [Fri, 27 Nov 2009 19:08:44 +0000 (20:08 +0100)]
s3-kerberos: fix the build on Mac OS X 10.6.2.

Guenther
(cherry picked from commit 51328a7056918bc75a7c1c442f47cf0271075542)
(cherry picked from commit 200462730f39d7eaee3917801046b120bc807c3f)

14 years agos3-kerberos: add a missing reference to authdata headers.
Günther Deschner [Fri, 27 Nov 2009 17:51:56 +0000 (18:51 +0100)]
s3-kerberos: add a missing reference to authdata headers.

Guenther
(cherry picked from commit da79cbb0800dd647be864e8bbb5fe1132708174b)
(cherry picked from commit a9a3504ede1306ceb86d99bceb5e8bf4d48f40c2)

14 years agos3-kerberos: only use krb5 headers where required.
Günther Deschner [Fri, 27 Nov 2009 14:52:57 +0000 (15:52 +0100)]
s3-kerberos: only use krb5 headers where required.

This seems to be the only way to deal with mixed heimdal/MIT setups during
merged build.

Guenther
(cherry picked from commit 41fb263aacc5dce50d3554598d08cb497ffd929f)

14 years agos3-kerberos: Fix Bug #6929: build with recent heimdal.
Günther Deschner [Fri, 27 Nov 2009 00:06:36 +0000 (01:06 +0100)]
s3-kerberos: Fix Bug #6929: build with recent heimdal.

Heimdal changed the KRB5_DEPRECATED define (which now may not take an identifier
for activation) in new releases (like 1.3.1).

Guenther
(cherry picked from commit 1a8f8382740e352a83133b8c49aaedd4716210cd)
(cherry picked from commit 83ee139ddde91bffc7b5921eb5e6a4364a408d38)

14 years agos3-kerberos: next step to resolve Bug #6929: build with recent heimdal.
Günther Deschner [Thu, 26 Nov 2009 09:15:45 +0000 (10:15 +0100)]
s3-kerberos: next step to resolve Bug #6929: build with recent heimdal.

Based on patch from Allan <allan@archlinux.org>.

Also should fix the FreeBSD build on the buildfarm.

Guenther
(cherry picked from commit 5b3a32be97a37c119e837bdee8f049684565458c)
(cherry picked from commit 9ea9c2089ed0835f4cf8f5fb6fecf4f156b19520)

14 years agos3-kerberos: add check for prerequisite krb5/krb5.h header while checking for krb5...
Günther Deschner [Wed, 25 Nov 2009 20:33:48 +0000 (21:33 +0100)]
s3-kerberos: add check for prerequisite krb5/krb5.h header while checking for krb5/locate_plugin.h.

(Needed for new Heimdal versions).

Guenther
(cherry picked from commit c438b2b3923db66672ec82e795eef543de5fcb8a)
(cherry picked from commit 124c695872a6630cc6670a0547e1c3e6507be748)

14 years agonsswitch: fix compile of winbind_krb5_locator with recent Heimdal versions.
Günther Deschner [Wed, 25 Nov 2009 14:21:54 +0000 (15:21 +0100)]
nsswitch: fix compile of winbind_krb5_locator with recent Heimdal versions.

Guenther
(cherry picked from commit 51864219cc12ceb66c281355f3e1191d5e32842d)
(cherry picked from commit 0d19596e123d63343d31ca1783cc1f56d4f21684)

14 years agocifs.upcall: 2nd part of fix for Bug #6868: support building with Heimdal we well...
Günther Deschner [Wed, 25 Nov 2009 14:06:19 +0000 (15:06 +0100)]
cifs.upcall: 2nd part of fix for Bug #6868: support building with Heimdal we well as with MIT.

Guenther
(cherry picked from commit 660ee2e74523194e5f6b2b6428d76628beb74717)
(cherry picked from commit e3a06f282d5e5c06bd006497dd8736a531e6cb3b)

14 years agos3-build: really fix build of winbind_krb5_locator.
Günther Deschner [Thu, 19 Nov 2009 12:44:33 +0000 (13:44 +0100)]
s3-build: really fix build of winbind_krb5_locator.

Guenther
(cherry picked from commit fc9f199f2619635f73e8ee7f3b5359521d63f325)
(cherry picked from commit 15832c25f0d252646045b292530556239805e737)

14 years agonsswitch: fix the build of the winbind krb5 locator plugin.
Günther Deschner [Wed, 21 Oct 2009 00:44:44 +0000 (02:44 +0200)]
nsswitch: fix the build of the winbind krb5 locator plugin.

Guenther
(cherry picked from commit b9d9353b548d9b2ab684aa171f511174e6414762)
(cherry picked from commit 8900c0a1c8dd16cd98bfd219232d3bc57acb033a)

14 years agos3:docs: Fix typo in man mount.cifs.
Karolin Seeger [Mon, 30 Nov 2009 13:53:23 +0000 (14:53 +0100)]
s3:docs: Fix typo in man mount.cifs.

Fix bug #6844 (wrong credential file format in mount.cifs manpage).
Thanks to the Debian Samba package maintainers for reporting!

Karolin
(cherry picked from commit 3b7f8a759f57f32a8c1bc2db85236e88f616ffd9)
(cherry picked from commit 54e2e0ae51e2e126696570104ed64d0458beb4ce)
(cherry picked from commit dbe41dce7491df93a26bb0f4bd2a33b53fe90188)

14 years agos3: re-run make samba3-idl.
Günther Deschner [Fri, 27 Nov 2009 15:49:48 +0000 (16:49 +0100)]
s3: re-run make samba3-idl.

Guenther

Fix bug #6934.
(cherry picked from commit b89d902b6ab0ab14c95cf7b7bbe37b3884fefea5)

14 years agopidl: fix handling of output arguments in s3 client stubs.
Günther Deschner [Fri, 27 Nov 2009 15:44:39 +0000 (16:44 +0100)]
pidl: fix handling of output arguments in s3 client stubs.

a20e095 used (uint8_t) instead of (uint8_t *).

Guenther
(cherry picked from commit 11f5df11cc6998688cadc034b3e1e249d98bf3e1)

14 years agopidl:Samba3/ClientNDR: $size can be 'foo / 2' so we need to add '(' and ')'
Günther Deschner [Fri, 27 Nov 2009 10:37:01 +0000 (11:37 +0100)]
pidl:Samba3/ClientNDR: $size can be 'foo / 2' so we need to add '(' and ')'

foo / 5 * sizeof(bar)' isn't the same as
'(foo / 2) * sizeof(bar)'.

metze
(cherry picked from commit 4f14da8ddb1c903b75917cefaaea3e9b405a633a)

14 years agopidl:NDR/Parser: $size can be 'foo / 2' so we need to add '(' and ')'
Stefan Metzmacher [Wed, 25 Nov 2009 13:21:32 +0000 (14:21 +0100)]
pidl:NDR/Parser: $size can be 'foo / 2' so we need to add '(' and ')'

foo / 5 * sizeof(bar)' isn't the same as
'(foo / 2) * sizeof(bar)'.

metze
(cherry picked from commit ab1c92950f3cfdc8c52b772ecef23a5477f48f9d)
(cherry picked from commit d0d77d830072fbb5bda1c45f9df0722718f89096)

14 years agos3:docs: Document "aio write behind".
Karolin Seeger [Mon, 30 Nov 2009 12:34:34 +0000 (13:34 +0100)]
s3:docs: Document "aio write behind".

Part of a fix for bug #6890 (Some smb.conf parameters are undocumented).

Karolin
(cherry picked from commit fde7c2ab19bc7442d8ee9d85ab2fe54e0cfb4782)
(cherry picked from commit 267ebc03b43dd8c11f5aebf341620b0d94d95135)
(cherry picked from commit 93bbbd3cc776e4aa69239cb086067ec953fc8c8e)

14 years agos3:docs: Document "ldap page size".
Karolin Seeger [Mon, 30 Nov 2009 11:29:27 +0000 (12:29 +0100)]
s3:docs: Document "ldap page size".

Part of a fix for bug #6890 (Some smb.conf parameters are undocumented).

Karolin
(cherry picked from commit 9478ec35b5349f50a61bbe2aa88af88577918e91)
(cherry picked from commit 940121d666b9e0645584c93db178b763ac5c8c04)
(cherry picked from commit a1d8a6127448fbdc25d1d87a2541a2ea8e430e17)

14 years agos3:docs: Document "enable core files".
Karolin Seeger [Mon, 30 Nov 2009 10:40:06 +0000 (11:40 +0100)]
s3:docs: Document "enable core files".

Part of a fix for bug #6890 (Some smb.conf parameters are undocumented).

Karolin
(cherry picked from commit b03ad70848e6ea889f382c0cb9f21057370f1ab6)
(cherry picked from commit 15f7b70b0e6b6bd2604255cff1c351bb0425e9f3)
(cherry picked from commit 5832bc1c5896b391131952a06013154cbdafe3f9)

14 years agos3:docs: Document "cache directory" and "state directory".
Karolin Seeger [Mon, 30 Nov 2009 10:04:50 +0000 (11:04 +0100)]
s3:docs: Document "cache directory" and "state directory".

Part of a fix for bug #6890 (Some smb.conf parameters are undocumented).

Karolin
(cherry picked from commit 0003b5fad1dee687bc15dfad9f71b6dfc40556d7)
(cherry picked from commit d677cea90f0b28d65ddba551acaed9157ea30c2e)
(cherry picked from commit 7e9537792a8c5b8aad27a14ca5968aa8327a89bd)

14 years agocreate-tarball: Make it more comfortable to use the --copy-docs option.
Karolin Seeger [Thu, 26 Nov 2009 10:18:39 +0000 (11:18 +0100)]
create-tarball: Make it more comfortable to use the --copy-docs option.

Now you can directly specify the 'make release' output dir without any
modifications.

Karolin
(cherry picked from commit 77e2d2f1d29b69699f4539abfce7b2f32db843e4)
(cherry picked from commit 62df932f9dc333f69bf901fe88bfac6fc4e59bcd)
(cherry picked from commit f35a774cd0a6837e5440acf51ef1fc032d434007)

14 years agos3: Fix bug 6338 -- net rpc trustdom list always display "none"
Volker Lendecke [Sun, 22 Nov 2009 21:38:45 +0000 (22:38 +0100)]
s3: Fix bug 6338 -- net rpc trustdom list always display "none"
(cherry picked from commit e3dc0f527700a8be5e239dacedb880ca88c47312)

14 years agodocs: Fix Bug 6922: Add Registry patchfile for Win7 domain join.
Günther Deschner [Tue, 24 Nov 2009 10:36:14 +0000 (11:36 +0100)]
docs: Fix Bug 6922: Add Registry patchfile for Win7 domain join.

Patchfile from SATOH Fumiyasu <fumiyas@osstech.co.jp>.

Thanks!

Guenther
(cherry picked from commit 95d0f0aab01fdd751841d57cebe6150cd6fdf80c)
(cherry picked from commit 12dcd59dd9cf412bc45f4943f96ec9e1ab9efcf8)

14 years agoclikrb5: Prefer krb5_free_keytab_entry_contents to krb5_kt_free_entry.
Jelmer Vernooij [Thu, 4 Jun 2009 21:43:31 +0000 (23:43 +0200)]
clikrb5: Prefer krb5_free_keytab_entry_contents to krb5_kt_free_entry.

Both functions exist in MIT Kerberos >= 1.7, but only
krb5_free_keytab_entry_contents has a prototype.
(cherry picked from commit b65ba0e26c781647e097f3f6fa279c7f3f7f4bd2)

Part of a fix for bug #6918 (Build breaks with krb5-client-1.7-6.1.i586).
(cherry picked from commit af52655be1852151421417035007cf3a127fdf34)

14 years agocifs.upcall: Fix Bug #6868: support building with Heimdal we well as with MIT.
Günther Deschner [Wed, 11 Nov 2009 23:52:38 +0000 (00:52 +0100)]
cifs.upcall: Fix Bug #6868: support building with Heimdal we well as with MIT.

Guenther
(cherry picked from commit b29eed492f1c056adb0b53510be10e738276ca11)
(cherry picked from commit f9a9e3268212b0430588d7e727b37998ace23ba7)

14 years agos3-kerberos: add smb_krb5_principal_get_realm().
Günther Deschner [Wed, 11 Nov 2009 23:51:46 +0000 (00:51 +0100)]
s3-kerberos: add smb_krb5_principal_get_realm().

Guenther
(cherry picked from commit 80d2ad88d8deac953346d1ce98fb519d7f2bf3de)

14 years agos3: fixed krb5 build problem on ubuntu karmic
Andrew Tridgell [Thu, 15 Oct 2009 23:40:50 +0000 (10:40 +1100)]
s3: fixed krb5 build problem on ubuntu karmic

Karmic has MIT krb5 1.7-beta3, which has the symbol
krb5_auth_con_set_req_cksumtype but no prototype for it.

See also http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=531635
(cherry picked from commit a6e4cb500b4162cae1d906a1762507370b4ee89e)

Part of a fix for bug #6918.
(cherry picked from commit 8c2dfcd24f69aa8d71a2854feaf2e8ea1802537e)

14 years agos3:idmap_ldap: trim the " chars from the location string in idmap_ldap_db_init
Michael Adam [Fri, 20 Nov 2009 11:44:43 +0000 (12:44 +0100)]
s3:idmap_ldap: trim the " chars from the location string in idmap_ldap_db_init

Fix bug #6910 (idmap_ldap stumbles over idmap backend = ldap:"ldap://ldap1
ldap://ldap2"=.

When idmap backend is specified as
idmap backend = ldap:"ldap://server1 ldap://server2"
then currently "ldap://server1 ldap://server2" was passed to
ldap_initialize including the quotes, leading to an ldap error.

Michael
(cherry picked from commit 5d6ea139d413cb05370137e4d04c4db391a06ac1)

14 years agos3:idmap_ldap: trim the " chars from the location string in idmap_ldap_alloc_init
Michael Adam [Fri, 20 Nov 2009 11:38:44 +0000 (12:38 +0100)]
s3:idmap_ldap: trim the " chars from the location string in idmap_ldap_alloc_init

When idmap alloc backend is specified as
idmap alloc backend = ldap:"ldap://server1 ldap://server2"
then currently "ldap://server1 ldap://server2" was passed to
ldap_initialize including the quotes, leading to an ldap error.

Michael
(cherry picked from commit 210fc5a8cf384eea62cd51d398523d37723f72fb)

14 years agos3:fix endianness bug in dbwrap_change_int32_atomic() (bug #6901)
Michael Adam [Fri, 20 Nov 2009 23:23:22 +0000 (00:23 +0100)]
s3:fix endianness bug in dbwrap_change_int32_atomic() (bug #6901)

Michael
(cherry picked from commit d96bc12a8634d50c0c74f583c264cf8f89e22637)

14 years agos3:fix endianness bug in dbwrap_change_uint32_atomic() (bug #6901)
Michael Adam [Fri, 20 Nov 2009 23:21:56 +0000 (00:21 +0100)]
s3:fix endianness bug in dbwrap_change_uint32_atomic() (bug #6901)

Michael
(cherry picked from commit d3db4b2d3a56975b0170714828921e0871bfa4a2)

14 years agos3/docs: Document "enable spoolss".
Karolin Seeger [Wed, 11 Nov 2009 14:42:21 +0000 (15:42 +0100)]
s3/docs: Document "enable spoolss".

Karolin
(cherry picked from commit f3646ff392ab736ed82d2982490aa9d57e11ec6b)
(cherry picked from commit 2bef1fd0ef59bbb3d52c1fb475842ae3ca55308a)
(cherry picked from commit a23ff8b8f8c805bc052e531067733d283e4ebaee)

14 years agos3-rpc_client: make sure cli_rpc_pipe_open_schannel() does not always return NT_STATU...
Günther Deschner [Tue, 10 Nov 2009 12:10:12 +0000 (13:10 +0100)]
s3-rpc_client: make sure cli_rpc_pipe_open_schannel() does not always return NT_STATUS_OK.

Guenther

Part of a fix for bug #6697.
And hopefully a fix for bug #6889.
(cherry picked from commit bb86aea5007b8ccf6f2f01e5f3c7a32b74eb7d74)

14 years agoSecond part of the fix for bug 6828 - infinite timeout occurs when byte lock held...
Jeremy Allison [Tue, 27 Oct 2009 18:25:02 +0000 (11:25 -0700)]
Second part of the fix for bug 6828 - infinite timeout occurs when byte lock held outside of samba. Fixes case where a connection with a pending lock can me marked "idle", and ensures that the lock queue timeout is always recalculated. Jeremy.
(cherry picked from commit aecf2dba0b2bfd65a307d9edae1792b3896fc73f)

14 years agoFix bug 6861 - rfc1738_unescape converts '+' characters to spaces. Stop rfc1738_unesc...
Jeremy Allison [Fri, 30 Oct 2009 21:16:03 +0000 (14:16 -0700)]
Fix bug 6861 - rfc1738_unescape converts '+' characters to spaces. Stop rfc1738_unescape() from mangling '+' characters to spaces. Noticed by Andrew Bartlett. Jeremy.
(cherry picked from commit 66e356a4864373d63eee3dda00c826eaf69c7a82)

14 years agoFix bug 6875 - trans2 FIND_FIRST2 response --> FIND_FIRST2 Data -> Fille Attributes...
Jeremy Allison [Fri, 6 Nov 2009 22:08:09 +0000 (14:08 -0800)]
Fix bug 6875 - trans2 FIND_FIRST2 response --> FIND_FIRST2 Data -> Fille Attributes are returned as 0x220 for LANMAN2.1 dialect Jeremy.
(cherry picked from commit dc9b226d8ced06b8b24eb38b411eac11eace41be)

14 years agos3: Do not redefine strupr.
Matt Kraai [Wed, 26 Aug 2009 21:50:28 +0000 (14:50 -0700)]
s3: Do not redefine strupr.

Fixes bug #6751 (Fails to compile on QNX because of conflicting types for
strupr).

Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit 6657598168724d4fe076f9014c2b5c16a034fe52)
(cherry picked from commit 268fb0106c892c4dd22e0e9bd5392a1e04121d2e)

14 years agoFix bug 6880 - cannot list workgroup servers reported by Alban Browaeys <prahal@yahoo...
Jeremy Allison [Mon, 9 Nov 2009 18:45:50 +0000 (10:45 -0800)]
Fix bug 6880 - cannot list workgroup servers reported by Alban Browaeys <prahal@yahoo.com> with fix. Revert 2e989bab0764c298a2530a2d4c8690258eba210c with extra comments - this broke workgroup enumeration. Jeremy.
(cherry picked from commit 6be57c378c0dbc4c4ab732fffee0d6a74011fd14)

14 years agos3: Fix Bug #6869: Various annoying build warnings.
Günther Deschner [Wed, 4 Nov 2009 14:58:08 +0000 (15:58 +0100)]
s3: Fix Bug #6869: Various annoying build warnings.

Guenther
(cherry picked from commit c59898d5e6ba2569e6691338a73c5ccffc08af0e)

14 years agoFix bug 6867 - trans2findnext returns reply_nterror(req, ntstatus) In a directory...
Jeremy Allison [Mon, 2 Nov 2009 20:53:46 +0000 (12:53 -0800)]
Fix bug 6867 - trans2findnext returns reply_nterror(req, ntstatus) In a directory with a lot of files. Jeremy.
(cherry picked from commit a6e7be60322b981f9eb81f2b686d28223bd735bc)

14 years agos3:configure: Fix typo in libtalloc check.
Karolin Seeger [Tue, 27 Oct 2009 15:29:20 +0000 (16:29 +0100)]
s3:configure: Fix typo in libtalloc check.

Fix bug #6849. Thanks to Mike Frysinger <vapier@gentoo.org> for reporting
and providing the patch!

Karolin
(cherry picked from commit 5897c3de95b8f9fad4e136d2fc1a390fb366b7b9)

14 years agos3/docs: Fix typo.
Karolin Seeger [Fri, 30 Oct 2009 15:47:22 +0000 (16:47 +0100)]
s3/docs: Fix typo.

Fix bug #4250. Thanks to TAKAHASHI Motonobu <monyo@samba.gr.jp> for reporting!

Karolin
(cherry picked from commit d1ad143a707b36b3aafcbb498554b73d2013f6e8)
(cherry picked from commit 5087e0ce311c68420c68c285fcdffc5174690621)
(cherry picked from commit 2a58988f5824e6561957ab916cbc72909040f9c7)

14 years agos3/docs: Remove reference to nonexistent file.
Karolin Seeger [Fri, 30 Oct 2009 15:31:55 +0000 (16:31 +0100)]
s3/docs: Remove reference to nonexistent file.

Fix bug #4252. Thanks to TAKAHASHI Motonobu <monyo@samba.gr.jp> for reporting!

Karolin
(cherry picked from commit 52aa522a550de45aa28969d0a679ff4e9b6575d6)
(cherry picked from commit f6a1bcb69aea271a7afed409530da02595064f71)
(cherry picked from commit 50d54597e71cd6c4aafc117cd41ecb0e13346711)

14 years agos3:configure: only check for gpfs_gpl.h
Stefan Metzmacher [Wed, 28 Oct 2009 10:21:27 +0000 (11:21 +0100)]
s3:configure: only check for gpfs_gpl.h

The header is everything we need in order to build vfs_gpfs.

metze

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

Fix bug #6856.
(cherry picked from commit b71f0e5f6f715d7c061d3a845f1e983e2472c1b0)

14 years agos3/docs: Document new pdbedit -K option.
Karolin Seeger [Tue, 27 Oct 2009 15:04:35 +0000 (16:04 +0100)]
s3/docs: Document new pdbedit -K option.

Karolin
(cherry picked from commit 354038f170f2541318336aa72c9f2a0426c6607e)

Part of a fix for bug #6851.
(cherry picked from commit dbcacda71d59bb5e5587d241ae034adee38f5b67)

14 years agos3: pdbedit: add option --kickoff-time/-K to set the user's kickoff time
Michael Adam [Mon, 26 Oct 2009 15:07:58 +0000 (16:07 +0100)]
s3: pdbedit: add option --kickoff-time/-K to set the user's kickoff time

Use "never" as argument to set this to unlimited.

Michael
(cherry picked from commit 8fdef14305ae1e32d61c80cb10859d41c5754023)

Fix bug #6851.
(cherry picked from commit 53c32c7f182266e73cd606a8de02bce9d6db16e8)

14 years agoWHATSNEW: Start 3.4.4 release notes.
Karolin Seeger [Thu, 29 Oct 2009 10:50:23 +0000 (11:50 +0100)]
WHATSNEW: Start 3.4.4 release notes.

Karolin
(cherry picked from commit 976763fd2cbafb79adb67409349498ffac9b07aa)

14 years agoVERSION: Raise version number up to 3.4.4.
Karolin Seeger [Thu, 29 Oct 2009 10:48:22 +0000 (11:48 +0100)]
VERSION: Raise version number up to 3.4.4.

Karolin
(cherry picked from commit 4a4871251b576a0d2c707b8688fb1d7940b126cd)

14 years agoWHATSNEW: Complete release notes. samba-3.4.3
Karolin Seeger [Thu, 29 Oct 2009 07:45:36 +0000 (08:45 +0100)]
WHATSNEW: Complete release notes.

Karolin
(cherry picked from commit 508ef0261c56a6d93257d4e2b4cb917cb8bd10bb)

14 years agoWHATSNEW: Update release notes.
Karolin Seeger [Mon, 26 Oct 2009 11:02:40 +0000 (12:02 +0100)]
WHATSNEW: Update release notes.

Karolin
(cherry picked from commit 5158bdcc222cb38b7cf4939e09f6d0fbb7868de2)

14 years agos3:docs: Public is not a synonym for access based shareenum.
Karolin Seeger [Mon, 26 Oct 2009 09:14:51 +0000 (10:14 +0100)]
s3:docs: Public is not a synonym for access based shareenum.

Fix build warning.

Karolin
(cherry picked from commit 35dc481289c28a77f354dd76193d6298de32c66d)
(cherry picked from commit 7601427a2db1263b0192c1a78d8bacb7eb0b74da)
(cherry picked from commit d6ecfb23cfc841ad0bfe8ae677ddbbba7fd36f31)

14 years agos3: Fix crash in pam_winbind, another reference to freed memory.
Bo Yang [Sat, 24 Oct 2009 01:20:00 +0000 (09:20 +0800)]
s3: Fix crash in pam_winbind, another reference to freed memory.

Fix bug #6840.

Signed-off-by: Bo Yang <boyang@samba.org>
(cherry picked from commit b9a3f1dd85d168c15df846dba525f4f882d1acf8)
(cherry picked from commit a0fbf067011ae50d63c6ed2a79f1ff00c2ce2d11)

14 years agoFix bug 6829 - smbclient does not show special characters properly. All successful...
Jeremy Allison [Thu, 22 Oct 2009 22:30:47 +0000 (15:30 -0700)]
Fix bug 6829 - smbclient does not show special characters properly. All successful calls to cli_session_setup() *must* be followed by calls to cli_init_creds() to stash the credentials we successfully connected with. There were 2 codepaths where this was missing. This caused smbclient to be unable to open the \srvsvc pipe to do an RPC netserverenum, and cause it to fall back to a RAP netserverenum, which uses DOS codepage conversion rather than the full UCS2 of RPC, so the returned characters were not correct (unless the DOS codepage was set correctly). Phew. That was fun to track down :-). Includes logic simplification in libsmb_server.c Jeremy.
(cherry picked from commit 587ca743bf1491e97c984ce4bec5a9bd0a1ae69a)

14 years agoFix bug 6828 - infinite timeout occurs when byte lock held outside of samba Jeremy.
Jeremy Allison [Wed, 21 Oct 2009 01:10:30 +0000 (18:10 -0700)]
Fix bug 6828 - infinite timeout occurs when byte lock held outside of samba Jeremy.
(cherry picked from commit a572c28ca3daa199d78fc340819c5c9ff53a3ed6)