[SCM] Samba Shared Repository - annotated tag release-3-4-4 created

2010-01-07 Thread Karolin Seeger
The annotated tag, release-3-4-4 has been created
at  ec2433c1577c7841c3174ebe7618f48a671a32b5 (tag)
   tagging  656624f2d643567451f8c7f1f9bb91a6262148fa (commit)
  replaces  release-3-4-3
 tagged by  Karolin Seeger
on  Thu Jan 7 09:33:56 2010 +0100

- Log -
tag release-3-4-4
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.12 (GNU/Linux)

iD8DBQBLRZyObzORW2Vot+oRAkHwAKC9FuyDM2WEk17sW5Njoq+4y7WM9wCfTByv
q8ECadZH7FSfrIj5MAX6VRE=
=nTwK
-END PGP SIGNATURE-

Andrew Tridgell (1):
  s3: fixed krb5 build problem on ubuntu karmic

Björn Jacke (2):
  s3:build: fix shared library build on QNX
  s3:build: remove redundant qnx block size definition

Günther Deschner (40):
  s3: Fix Bug #6869: Various annoying build warnings.
  s3-rpc_client: make sure cli_rpc_pipe_open_schannel() does not always 
return NT_STATUS_OK.
  s3-kerberos: add smb_krb5_principal_get_realm().
  cifs.upcall: Fix Bug #6868: support building with Heimdal we well as with 
MIT.
  docs: Fix Bug 6922: Add Registry patchfile for Win7 domain join.
  pidl:Samba3/ClientNDR: $size can be 'foo / 2' so we need to add '(' and 
')'
  pidl: fix handling of output arguments in s3 client stubs.
  s3: re-run make samba3-idl.
  nsswitch: fix the build of the winbind krb5 locator plugin.
  s3-build: really fix build of winbind_krb5_locator.
  cifs.upcall: 2nd part of fix for Bug #6868: support building with Heimdal 
we well as with MIT.
  nsswitch: fix compile of winbind_krb5_locator with recent Heimdal 
versions.
  s3-kerberos: add check for prerequisite krb5/krb5.h header while checking 
for krb5/locate_plugin.h.
  s3-kerberos: next step to resolve Bug #6929: build with recent heimdal.
  s3-kerberos: Fix Bug #6929: build with recent heimdal.
  s3-kerberos: only use krb5 headers where required.
  s3-kerberos: add a missing reference to authdata headers.
  s3-kerberos: fix the build on Mac OS X 10.6.2.
  winreg: add winreg_Data union to IDL.
  misc: mark winreg_Data little-endian except for a REG_DWORD_BIG_ENDIAN.
  s3-util: add push_reg_sz() and push_reg_multi_sz() convenience functions.
  s3-util: add pull_reg_sz() and pull_reg_multi_sz() convenience functions.
  spoolss: fix spoolss_EnumPrinterKey IDL.
  s3-spoolss: fix spoolss_EnumPrinterKey client and server code.
  s3-spoolss: fixes for _spoolss_EnumPrinterKey client and server.
  s3-spoolss: simplify _spoolss_EnumPrinterKey a little more.
  s3-kerberos: do not include authdata headers before including krb5 
headers.
  s4-smbtorture: fix spoolss_EnumPrinterKey client in RPC-SPOOLSS-WIN.
  s4-smbtorture: add tests for spoolss_EnumPrinterKey to 
RPC-SPOOLSS-PRINTER.
  spoolss: add spoolss_StringArray2.
  samba-spoolss: use spoolss_StringArray2 in spoolss_EnumPrinterKey.
  s3-spoolss: handle SEC_FLAG_MAXIMUM_ALLOWED in spoolss_OpenPrinterEx.
  spoolss: hand-marshall the spoolss_StringArray2 struct for 
spoolss_EnumPrinterKey.
  spoolss: add spoolss_KeyNames union.
  spoolss: use spoolss_KeyNames in spoolss_EnumPrinterKey.
  s3: re-run make samba3-idl.
  s3-spoolss: fix enumprinter key client and server.
  s4-smbtorture: enhance spoolss_EnumPrinterKey torture test.
  s4-smbtorture: fix and extend enum printerkey test.
  spoolss: remove unused spoolss_StringArray2.

Jelmer Vernooij (1):
  clikrb5: Prefer krb5_free_keytab_entry_contents to krb5_kt_free_entry.

Jeremy Allison (11):
  Fix bug 6867 - trans2findnext returns reply_nterror(req, ntstatus) In a 
directory with a lot of files. Jeremy.
  Fix bug 6880 - cannot list workgroup servers reported by Alban Browaeys 
pra...@yahoo.com with fix. Revert 2e989bab0764c298a2530a2d4c8690258eba210c 
with extra comments - this broke workgroup enumeration. Jeremy.
  Fix bug 6875 - trans2 FIND_FIRST2 response -- FIND_FIRST2 Data - Fille 
Attributes are returned as 0x220 for LANMAN2.1 dialect Jeremy.
  Fix bug 6861 - rfc1738_unescape converts '+' characters to spaces. Stop 
rfc1738_unescape() from mangling '+' characters to spaces. Noticed by Andrew 
Bartlett. Jeremy.
  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.
  Fix bug #6898 - Samba duplicates file content on appending. Move posix 
case semantics out from under the VFS. Jeremy.
  Second part of fix for 6875 - trans2 FIND_FIRST2 response -- FIND_FIRST2 
Data - Fille Attributes are returned as 0x220 for LANMAN2.1 dialect
  s3:posix_acls: Fix bug 6841 - map acl inherit = yes not working.
  Fix bug #6939 - mangling method = hash breaks long filenames.
  Fix bug 7005 - mangle method = hash truncates files with dot '.' character
  

svn commit: samba-web r1352 - in trunk: . devel history

2010-01-07 Thread kseeger
Author: kseeger
Date: 2010-01-07 02:04:08 -0700 (Thu, 07 Jan 2010)
New Revision: 1352

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=samba-webrev=1352

Log:
Announce Samba 3.4.4
Karolin
Added:
   trunk/history/samba-3.4.4.html
Modified:
   trunk/devel/index.html
   trunk/header_columns.html
   trunk/history/header_history.html
   trunk/index.html


Changeset:
Modified: trunk/devel/index.html
===
--- trunk/devel/index.html  2009-12-25 21:40:27 UTC (rev 1351)
+++ trunk/devel/index.html  2010-01-07 09:04:08 UTC (rev 1352)
@@ -20,8 +20,8 @@
 3.0.x and 2.2.x versions of Samba, which are no longer in active development.
 /p
 
-pThe latest production release is emSamba 3.4.3/em (a
-href=/samba/history/samba-3.4.3.htmlrelease notes/a and a
+pThe latest production release is emSamba 3.4.4/em (a
+href=/samba/history/samba-3.4.4.htmlrelease notes/a and a
 href=/samba/download/download/a)./p
 
 pWith the release of Samba 3.4.0, the 3.3 series has been turned into

Modified: trunk/header_columns.html
===
--- trunk/header_columns.html   2009-12-25 21:40:27 UTC (rev 1351)
+++ trunk/header_columns.html   2010-01-07 09:04:08 UTC (rev 1352)
@@ -120,9 +120,9 @@
   div class=releases
 h4Current Stable Release/h4
 ul
-lia href=/samba/ftp/stable/samba-3.4.3.tar.gzSamba 3.4.3 
(gzipped)/a/li
-lia href=/samba/history/samba-3.4.3.htmlRelease Notes/a/li
-lia href=/samba/ftp/stable/samba-3.4.3.tar.ascSignature/a/li
+lia href=/samba/ftp/stable/samba-3.4.4.tar.gzSamba 3.4.4 
(gzipped)/a/li
+lia href=/samba/history/samba-3.4.4.htmlRelease Notes/a/li
+lia href=/samba/ftp/stable/samba-3.4.4.tar.ascSignature/a/li
 /ul
 
 h4Historical/h4

Modified: trunk/history/header_history.html
===
--- trunk/history/header_history.html   2009-12-25 21:40:27 UTC (rev 1351)
+++ trunk/history/header_history.html   2010-01-07 09:04:08 UTC (rev 1352)
@@ -77,6 +77,7 @@
   div class=notes
 h6Release Notes/h6
 ul
+lia href=samba-3.4.4.htmlsamba-3.4.4/a/li
 lia href=samba-3.4.3.htmlsamba-3.4.3/a/li
 lia href=samba-3.4.2.htmlsamba-3.4.2/a/li
 lia href=samba-3.4.1.htmlsamba-3.4.1/a/li

Added: trunk/history/samba-3.4.4.html
===
--- trunk/history/samba-3.4.4.html  (rev 0)
+++ trunk/history/samba-3.4.4.html  2010-01-07 09:04:08 UTC (rev 1352)
@@ -0,0 +1,92 @@
+!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
+http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
+html xmlns=http://www.w3.org/1999/xhtml;
+
+head
+titleSamba - Release Notes Archive/title
+/head
+
+body
+
+   H2Samba 3.4.4 Available for Download/H2
+
+p
+pre
+   =
+   Release Notes for Samba 3.4.4
+January 7, 2009
+   =
+
+
+This is the latest stable release of Samba 3.4.
+
+Major enhancements in Samba 3.4.4 include:
+
+   o Fix interdomain trust relationships with Win2008R2 (bug #6697).
+   o Fix Winbind crashes when queried from nss (bug #6889).
+   o Fix Winbind crash when retrieving empty group members (bug #7014).
+   o Fix UID range full error in Winbind (bug #6901).
+   o Fix multiple LDAP servers in idmap backend and idmap alloc
+ backend (bug #6910).
+
+
+##
+Changes
+###
+
+Changes since 3.4.3
+---
+
+o   Michael Adam lt;ob...@samba.orggt;
+* BUG 6851: Add pdbedit --kickoff-time/-K to set the user's kickoff time.
+* BUG 6901: Fix UID range full error in Winbind.
+* BUG 6910: Fix multiple LDAP servers in idmap backend and idmap alloc
+  backend.
+
+
+o   Jeremy Allison lt;j...@samba.orggt;
+* BUG 6828: Fix infinite timeout when byte lock held outside of samba.
+* BUG 6837: Fix Too many open files message when trying to access a large
+  number of files with Windows 7.
+* BUG 6841: Fix map acl inherit = yes.
+* BUG 6867: Fix listing of directories with a lot of files.
+* BUG 6875: Fix DOS attributes on OS/2 clients.
+* BUG 6880: Fix listing of workgroup servers in libsmbclient.
+* BUG 6898: Samba duplicates file content on appending.
+* BUG 6939: Fix long filenames with mangling method = hash.
+* BUG 7005: Fix mangle method = hash truncates files with dot .
+  character.
+
+
+o   Kai Blin lt;k...@samba.orggt;
+* BUG 4832: Fix iconv checks.
+
+
+o   Günther Deschner lt;g...@samba.orggt;
+* BUG 6697: Fix interdomain trust relationships with Win2008R2.
+* BUG 6868: Support building with Heimdal we well as with MIT.
+* BUG 6889: Fix Winbind crashes when queried from nss.
+* BUG 6929: Fix build with recent 

svn commit: samba-web r1353 - in trunk/history: .

2010-01-07 Thread kseeger
Author: kseeger
Date: 2010-01-07 02:16:19 -0700 (Thu, 07 Jan 2010)
New Revision: 1353

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=samba-webrev=1353

Log:
Fix German umlaut
Karolin
Modified:
   trunk/history/samba-3.4.4.html


Changeset:
Modified: trunk/history/samba-3.4.4.html
===
--- trunk/history/samba-3.4.4.html  2010-01-07 09:04:08 UTC (rev 1352)
+++ trunk/history/samba-3.4.4.html  2010-01-07 09:16:19 UTC (rev 1353)
@@ -62,7 +62,7 @@
 * BUG 4832: Fix iconv checks.
 
 
-o   Günther Deschner lt;g...@samba.orggt;
+o   Guuml;nther Deschner lt;g...@samba.orggt;
 * BUG 6697: Fix interdomain trust relationships with Win2008R2.
 * BUG 6868: Support building with Heimdal we well as with MIT.
 * BUG 6889: Fix Winbind crashes when queried from nss.



[SCM] Samba Shared Repository - branch v3-5-test updated

2010-01-07 Thread Karolin Seeger
The branch, v3-5-test has been updated
   via  c330ae9... WHATSNEW: Update changes since 3.5.0pre2.
  from  0660945... s4-smbtorture: add test_ChangeID to RPC-SPOOLSS.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-5-test


- Log -
commit c330ae920ac86a6a9cc7fac129be62756b2da7c0
Author: Karolin Seeger ksee...@samba.org
Date:   Thu Jan 7 10:24:28 2010 +0100

WHATSNEW: Update changes since 3.5.0pre2.

Karolin

---

Summary of changes:
 WHATSNEW.txt |   18 ++
 1 files changed, 18 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index eb0c8f3..b4e40bc 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -104,22 +104,33 @@ o   Jeremy Allison j...@samba.org
 * BUG 6837: Fix Too many open files when trying to access large number of
   files with Windows 7.
 * BUG 6939: Fix long filenames when mangling method is set to hash.
+* BUG 7020: Fix smbd using 2G memory.
 * Ensure dos_mode can return FILE_ATTRIBUTE_NORMAL, then filter the 
returned
   attributes by protocol level.
 * Vector correctly through reply_openerror() (which uses the same logic).
 * Fix bugs with the full Windows ACL support.
 
 
+o   Kai Blin k...@samba.org
+* Add a few missing gettext calls to the 'net' command.
+* Fix up a share type translation and translate some more strings in 'net'.
+
+
 o   Günther Deschner g...@samba.org
 * Allow to call pdbedit -N description -u user without specifiyng -r.
 * Add spoolss_DriverInfo7.
 * Fix rpcclient after setprinter IDL fixes.
+* Use generated krb5.conf in 'net ads testjoin'.
 
 
 o   Jonas Gorski jonas.gorski+sa...@gmail.com
 * BUG 6992: make test for getgrouplist cacheable.
 
 
+o   André Hentschel n...@dawncrow.de
+* Add some German translations for the 'net' command.
+
+
 o   Suresh Jayaraman sjayara...@suse.de
 * Update mount.cifs man page with nounix option.
 
@@ -166,6 +177,13 @@ o   Kirill Smelkov k...@mns.spb.ru
 * Reset tdb-fd to -1 in tdb_close() in libtdb.
 
 
+o   Bo Yang boy...@samba.org
+* Fix infinite loop in NCACN_IP_TCP as there is no timeout.
+* Make winbindd_cache.c aware of domain offline to avoid unnecessary 
backend
+  query.
+* List trusted domains from wcache when domain is offline.
+
+
 Changes since 3.5.0pre1
 ---
 


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-5-test updated

2010-01-07 Thread Stefan Metzmacher
The branch, v3-5-test has been updated
   via  6a1786a... tdb: fix standalone 'make installdocs'
   via  3c5de3c... tdb: create symbol links to shared libraries see 
https://bugzilla.samba.org/show_bug.cgi?id=6991 for details
   via  d3e8baf... talloc: create symbol links to shared libraries see 
https://bugzilla.samba.org/show_bug.cgi?id=6991 for details
   via  b4f95b2... tevent: create symbol links to shared libraries see 
https://bugzilla.samba.org/show_bug.cgi?id=6991 for details
   via  2e0df7c... tdb: Also build and install tdb manpages from standalone 
tdb. (cherry picked from commit 0110990f01390c80b8db423ba7eed486883219de)
   via  dd35252... s4: Fix result check for getaddrinfo()
  from  c330ae9... WHATSNEW: Update changes since 3.5.0pre2.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-5-test


- Log -
commit 6a1786aaf88bbc38eebbd489cfe582602bd034e2
Author: Stefan Metzmacher me...@samba.org
Date:   Wed Jan 6 14:39:43 2010 +0100

tdb: fix standalone 'make installdocs'

metze
(cherry picked from commit c01f443ebca5e0b6f65fe8b3ab031da51dce2e89)

commit 3c5de3c3f8fb665a0e1e9c1982a6f98d8ae9a1ff
Author: Brian Lu brian...@sun.com
Date:   Thu Dec 17 14:39:09 2009 +0800

tdb: create symbol links to shared libraries see 
https://bugzilla.samba.org/show_bug.cgi?id=6991 for details

Signed-off-by: Stefan Metzmacher me...@samba.org
(cherry picked from commit 0a3a6bb8f910df02cb429fdeacf0ab8d683e0b89)

commit d3e8baf29756c7af38841b290ad67eb06a474bb3
Author: Brian Lu brian...@sun.com
Date:   Thu Dec 17 14:48:59 2009 +0800

talloc: create symbol links to shared libraries see 
https://bugzilla.samba.org/show_bug.cgi?id=6991 for details

Signed-off-by: Stefan Metzmacher me...@samba.org
(cherry picked from commit eff6022d51f578dfc48f1d66dd8ec1e860dfd7b3)

commit b4f95b214cf7a328f2656fa81395566e9905ff6e
Author: Brian Lu brian...@sun.com
Date:   Thu Dec 17 14:55:57 2009 +0800

tevent: create symbol links to shared libraries see 
https://bugzilla.samba.org/show_bug.cgi?id=6991 for details

Signed-off-by: Stefan Metzmacher me...@samba.org
(cherry picked from commit f408d58d95f5ac10849742fdcdf7e6160196e8e0)

commit 2e0df7c8ee5615cb8b1ea3abe727ab59c4bf1f95
Author: Jelmer Vernooij jel...@samba.org
Date:   Sun Dec 20 18:01:24 2009 +0100

tdb: Also build and install tdb manpages from standalone tdb.
(cherry picked from commit 0110990f01390c80b8db423ba7eed486883219de)

(Version changed to 3.5)
Signed-off-by: Stefan Metzmacher me...@samba.org

commit dd35252f4dbe3dc36b35c21915bf959524dc4930
Author: Kamen Mazdrashki kamen.mazdras...@postpath.com
Date:   Wed Jan 6 13:40:33 2010 +0200

s4: Fix result check for getaddrinfo()

I think this completes commit 50feca550eed7828198b7c0fc5f0e5ddc863313d.
Now result should be handled correctly both for systems that
support EAI_NODATA but returns EAI_NONAME (as my Ubuntu 9.x)
and systems that doesn't support EAI_NODATA at all.

Signed-off-by: Stefan Metzmacher me...@samba.org
(cherry picked from commit a2044b9a61d9c8ca66067b286ad9bc01cf0490b9)

---

Summary of changes:
 docs-xml/manpages-3/tdbbackup.8.xml|2 +-
 docs-xml/manpages-3/tdbdump.8.xml  |2 +-
 docs-xml/manpages-3/tdbtool.8.xml  |2 +-
 lib/talloc/talloc.mk   |5 +
 lib/tdb/Makefile.in|7 ++-
 lib/tdb/configure.ac   |7 +++
 lib/tdb/include/tdb.h  |2 +-
 .../tdb/manpages}/tdbbackup.8.xml  |0 
 .../manpages-3 = lib/tdb/manpages}/tdbdump.8.xml  |0 
 .../manpages-3 = lib/tdb/manpages}/tdbtool.8.xml  |0 
 lib/tdb/tdb.mk |   19 ++-
 lib/tevent/tevent.mk   |4 
 source4/libcli/resolve/dns_ex.c|   17 +++--
 13 files changed, 55 insertions(+), 12 deletions(-)
 copy {docs-xml/manpages-3 = lib/tdb/manpages}/tdbbackup.8.xml (100%)
 copy {docs-xml/manpages-3 = lib/tdb/manpages}/tdbdump.8.xml (100%)
 copy {docs-xml/manpages-3 = lib/tdb/manpages}/tdbtool.8.xml (100%)


Changeset truncated at 500 lines:

diff --git a/docs-xml/manpages-3/tdbbackup.8.xml 
b/docs-xml/manpages-3/tdbbackup.8.xml
index c3a6e2b..aaf46ac 100644
--- a/docs-xml/manpages-3/tdbbackup.8.xml
+++ b/docs-xml/manpages-3/tdbbackup.8.xml
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!DOCTYPE refentry PUBLIC -//Samba-Team//DTD DocBook V4.2-Based Variant 
V1.0//EN http://www.samba.org/samba/DTD/samba-doc;
+!DOCTYPE refentry PUBLIC -//OASIS//DTD DocBook XML V4.2//EN 
http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd;
 refentry id=tdbbackup.8
 
 

[SCM] Samba Shared Repository - branch v3-5-test updated

2010-01-07 Thread Karolin Seeger
The branch, v3-5-test has been updated
   via  22ee5d4... WHATSNEW: Update changes.
  from  6a1786a... tdb: fix standalone 'make installdocs'

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-5-test


- Log -
commit 22ee5d4921f28a4cba176ca629cf32f35b5956d6
Author: Karolin Seeger ksee...@samba.org
Date:   Thu Jan 7 11:01:17 2010 +0100

WHATSNEW: Update changes.

Karolin

---

Summary of changes:
 WHATSNEW.txt |   18 ++
 1 files changed, 14 insertions(+), 4 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index b4e40bc..26205e5 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -147,21 +147,23 @@ o   Volker Lendecke v...@samba.org
 
 o   Kamen Mazdrashki kamen.mazdras...@postpath.com
 * Fix write behind memory block in libtalloc.
-
-
-o   Simo Sorce i...@samba.org
-* Change the way mksysms work in libtalloc.
+* Fix result check for getaddrinfo().
 
 
 o   Jim McDonough j...@samba.org
 * BUG 7014: Fix Winbind crash when retrieving empty group members.
 
 
+o   Brian Lu brian...@sun.com
+* BUG 6991: Create symbol links to shared libraries.
+
+
 o   Stefan Metzmacher me...@samba.org
 * Add tsocket_address_bsd_sockaddr() and 
tsocket_address_bsd_from_sockaddr()
   to tsocket.
 * Always set tdb-tracefd to -1 to be safe on goto fail in libtdb.
 * Add TDB_DISALLOW_NESTING and make TDB_ALLOW_NESTING the default behavior.
+* Fix standalone 'make installdocs'.
 
 
 o   Peter Rosin p...@lysator.liu.se
@@ -177,6 +179,14 @@ o   Kirill Smelkov k...@mns.spb.ru
 * Reset tdb-fd to -1 in tdb_close() in libtdb.
 
 
+o   Simo Sorce i...@samba.org
+* Change the way mksysms work in libtalloc.
+
+
+o   Jelmer Vernooij jel...@samba.org
+* Also build and install tdb manpages from standalone tdb.
+
+
 o   Bo Yang boy...@samba.org
 * Fix infinite loop in NCACN_IP_TCP as there is no timeout.
 * Make winbindd_cache.c aware of domain offline to avoid unnecessary 
backend


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-5-stable updated

2010-01-07 Thread Karolin Seeger
The branch, v3-5-stable has been updated
   via  b097212... WHATSNEW: Update changes.
   via  a3ae5f4... tdb: fix standalone 'make installdocs'
   via  357eae5... tdb: create symbol links to shared libraries see 
https://bugzilla.samba.org/show_bug.cgi?id=6991 for details
   via  a1fb214... talloc: create symbol links to shared libraries see 
https://bugzilla.samba.org/show_bug.cgi?id=6991 for details
   via  1c1b3aa... tevent: create symbol links to shared libraries see 
https://bugzilla.samba.org/show_bug.cgi?id=6991 for details
   via  f8c058d... tdb: Also build and install tdb manpages from standalone 
tdb. (cherry picked from commit 0110990f01390c80b8db423ba7eed486883219de)
   via  a3ebe54... s4: Fix result check for getaddrinfo()
   via  25e126d... WHATSNEW: Update changes since 3.5.0pre2.
   via  d335029... s4-smbtorture: add test_ChangeID to RPC-SPOOLSS.
   via  95a8b65... s4-smbtorture: add test_SetPrinter to RPC-SPOOLSS.
   via  534ddef... s4-smbtorture: refactor test_GetPrinter in RPC-SPOOLSS.
   via  cf00de2... s3-net: use generated krb5.conf in 'net ads testjoin'
   via  52eb403... s3-docs: mention -M option and remove nonexisting -G 
option in pdbedit manpage.
   via  71f3b8d... Second part of the fix for bug #7020 - smbd using 2G 
memory.
  from  4e8c70e... Fix bug #7020 - smbd using 2G memory.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-5-stable


- Log -
commit b0972122102ea7163af5e2798be0127ab0c8b11c
Author: Karolin Seeger ksee...@samba.org
Date:   Thu Jan 7 11:01:17 2010 +0100

WHATSNEW: Update changes.

Karolin
(cherry picked from commit 22ee5d4921f28a4cba176ca629cf32f35b5956d6)

commit a3ae5f4094693ec126e45afa110ce65ef4b94c05
Author: Stefan Metzmacher me...@samba.org
Date:   Wed Jan 6 14:39:43 2010 +0100

tdb: fix standalone 'make installdocs'

metze
(cherry picked from commit c01f443ebca5e0b6f65fe8b3ab031da51dce2e89)
(cherry picked from commit 6a1786aaf88bbc38eebbd489cfe582602bd034e2)

commit 357eae56f1a4745ab605ad58e50bd89d8a351c20
Author: Brian Lu brian...@sun.com
Date:   Thu Dec 17 14:39:09 2009 +0800

tdb: create symbol links to shared libraries see 
https://bugzilla.samba.org/show_bug.cgi?id=6991 for details

Signed-off-by: Stefan Metzmacher me...@samba.org
(cherry picked from commit 0a3a6bb8f910df02cb429fdeacf0ab8d683e0b89)
(cherry picked from commit 3c5de3c3f8fb665a0e1e9c1982a6f98d8ae9a1ff)

commit a1fb214c503c5235eb838911ea8ba78b55b1ef74
Author: Brian Lu brian...@sun.com
Date:   Thu Dec 17 14:48:59 2009 +0800

talloc: create symbol links to shared libraries see 
https://bugzilla.samba.org/show_bug.cgi?id=6991 for details

Signed-off-by: Stefan Metzmacher me...@samba.org
(cherry picked from commit eff6022d51f578dfc48f1d66dd8ec1e860dfd7b3)
(cherry picked from commit d3e8baf29756c7af38841b290ad67eb06a474bb3)

commit 1c1b3aa1725d3bf0120ae52f79d311eeb0deef18
Author: Brian Lu brian...@sun.com
Date:   Thu Dec 17 14:55:57 2009 +0800

tevent: create symbol links to shared libraries see 
https://bugzilla.samba.org/show_bug.cgi?id=6991 for details

Signed-off-by: Stefan Metzmacher me...@samba.org
(cherry picked from commit f408d58d95f5ac10849742fdcdf7e6160196e8e0)
(cherry picked from commit b4f95b214cf7a328f2656fa81395566e9905ff6e)

commit f8c058d26b1533f9080991ef2104278641268c6f
Author: Jelmer Vernooij jel...@samba.org
Date:   Sun Dec 20 18:01:24 2009 +0100

tdb: Also build and install tdb manpages from standalone tdb.
(cherry picked from commit 0110990f01390c80b8db423ba7eed486883219de)

(Version changed to 3.5)
Signed-off-by: Stefan Metzmacher me...@samba.org
(cherry picked from commit 2e0df7c8ee5615cb8b1ea3abe727ab59c4bf1f95)

commit a3ebe54761d1c0d1c99edaf6e221612c23280bf2
Author: Kamen Mazdrashki kamen.mazdras...@postpath.com
Date:   Wed Jan 6 13:40:33 2010 +0200

s4: Fix result check for getaddrinfo()

I think this completes commit 50feca550eed7828198b7c0fc5f0e5ddc863313d.
Now result should be handled correctly both for systems that
support EAI_NODATA but returns EAI_NONAME (as my Ubuntu 9.x)
and systems that doesn't support EAI_NODATA at all.

Signed-off-by: Stefan Metzmacher me...@samba.org
(cherry picked from commit a2044b9a61d9c8ca66067b286ad9bc01cf0490b9)
(cherry picked from commit dd35252f4dbe3dc36b35c21915bf959524dc4930)

commit 25e126d6b462672d1150d2de25355d7e5f328492
Author: Karolin Seeger ksee...@samba.org
Date:   Thu Jan 7 10:24:28 2010 +0100

WHATSNEW: Update changes since 3.5.0pre2.

Karolin
(cherry picked from commit c330ae920ac86a6a9cc7fac129be62756b2da7c0)

commit d33502936793baa8c660d7399752af322414a5a3
Author: Günther Deschner g...@samba.org
Date:   Wed Jan 6 19:34:33 2010 +0100

s4-smbtorture: add test_ChangeID to RPC-SPOOLSS.

This tests 

[SCM] Samba Shared Repository - annotated tag release-3-5-0rc1 created

2010-01-07 Thread Karolin Seeger
The annotated tag, release-3-5-0rc1 has been created
at  6db736151777624ed7b5c8ef966a94618d1a87d6 (tag)
   tagging  b0972122102ea7163af5e2798be0127ab0c8b11c (commit)
  replaces  release-3-5-0pre2
 tagged by  Karolin Seeger
on  Thu Jan 7 11:33:23 2010 +0100

- Log -
tag release-3-5-0rc1
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.12 (GNU/Linux)

iD8DBQBLRbh8bzORW2Vot+oRAk31AKCS6DN/bT/FdF16WeHi5wkHCZNRdACgo1lv
mWJtgJIgqM2Akbb5RM+0Orw=
=MR6p
-END PGP SIGNATURE-

Andreas Schneider (3):
  tsocket: Fixed typo in LGPL header.
  tsocket: Fixed documentation for tsocket_address_bsd_sockaddr().
  tsocket: Fixed tsocket_guide.txt asciidoc syntax.

André Hentschel (1):
  net: Add some German translation

Bo Yang (3):
  s3: Fix infinite loop in NCACN_IP_TCP asa there is no timeout. Assume 
lsa_pipe_tcp is ok but network is down, then send request is ok, but select() 
on writeable fds loops forever since there is no response.
  s3: Make winbindd_cache.c aware of domain offline to avoid unnecessary 
backend query.
  s3: List trusted domains from wcache when domain is offline.

Brian Lu (3):
  tevent: create symbol links to shared libraries see 
https://bugzilla.samba.org/show_bug.cgi?id=6991 for details
  talloc: create symbol links to shared libraries see 
https://bugzilla.samba.org/show_bug.cgi?id=6991 for details
  tdb: create symbol links to shared libraries see 
https://bugzilla.samba.org/show_bug.cgi?id=6991 for details

Günther Deschner (25):
  s4-smbtorture: run GetPrinterDriver2 tests against each printer's driver.
  s3-pdbedit: allow to call pdbedit -N description -u user without 
specifiyng -r.
  spoolss: add spoolss_DriverInfo7.
  spoolss: more mork on SetPrinterInfo() levels.
  s3-spoolss: fix rpcclient after setprinter IDL fixes.
  s4-smbtorture: fix smbtorture after setprinter IDL fixes.
  tdbtool: avoid using c++ reserved words.
  s4-smbtorture: add a samr_GetAliasMembership test to RPC-SAMR.
  s4-smbtorture: skip GetAliasMembership against s4.
  s3-docs: add new pam_winbind.conf(5) manpage.
  s3-docs: mention pam_winbind.conf(5) manpage in pam_winbind(8) manpage.
  s3: re-run make samba3-idl.
  s3-docs: not working for SuSE anymore...
  s3-docs: mention all long option names in samba.entities file.
  s3-docs: mention long and undocumented option names in pdbedit manpage.
  s3-docs: mention long option names in smbtree manpage.
  s3-docs: mention -O, --stdout in smbget manpage.
  s3-docs: mention long and undocumented option names in smbclient manpage.
  s3-docs: mention long and undocumented option names in smbcacls manpage.
  s3-docs: mention long and undocumented option names in rpcclient manpage.
  s3-docs: mention -M option and remove nonexisting -G option in pdbedit 
manpage.
  s3-net: use generated krb5.conf in 'net ads testjoin'
  s4-smbtorture: refactor test_GetPrinter in RPC-SPOOLSS.
  s4-smbtorture: add test_SetPrinter to RPC-SPOOLSS.
  s4-smbtorture: add test_ChangeID to RPC-SPOOLSS.

Jelmer Vernooij (1):
  tdb: Also build and install tdb manpages from standalone tdb.

Jeremy Allison (18):
  Ensure dos_mode can return FILE_ATTRIBUTE_NORMAL, then filter the 
returned attributes by protocol level.
  Add helpful debug of DACL for errors on ACL access.
  Final part of the fix for 6837 - Too many open files when trying to 
access large number of files
  Fix bug #6939 - mangling method = hash breaks long filenames.
  Update default with correct value. Add a note about Win7 behavior
  Vector correctly through reply_openerror() (which uses the same logic).
  Always map EMFILE to ERRDOS, ERRnofids, *NOT* 
NT_STATUS_TOO_MANY_OPENED_FILES.
  reply_force_nterror() is not used anywhere. Remove it.
  reply_doserror() doesn't force DOS errors on the wire.
  Actually explain the twisty paths of tortured logic behind
  Rename 282 - ERReasnotsupported.
  Remove all calls to reply_doserror - turn them into
  Rename reply_doserror() - reply_force_doserror().
  Fix bug reported in mangle_hash code (no bugid yet).
  The posix acl version of set_nt_acl() could set the stat_ex
  Attempt to fix one of the last two bugs with the full Windows ACL support.
  Fix bug #7020 - smbd using 2G memory.
  Second part of the fix for bug #7020 - smbd using 2G memory.

Jim McDonough (1):
  Prevent NULL dereference if group has no members

Jonas Gorski (1):
  s3: Fix bug 6992, make test for getgrouplist cacheable

Kai Blin (2):
  s3 net: Add a few missing gettext calls.
  s3 net: Fix up a share type translation and translate some more strings

Kamen Mazdrashki (2):
  talloc: Fix write behind memory block
  s4: Fix result check for getaddrinfo()

Karolin Seeger (8):
  WHATSNEW: Fix typo.
  

[SCM] Samba Shared Repository - branch master updated

2010-01-07 Thread Michael Adam
The branch, master has been updated
   via  2fad148... s3:pdb_set_pw_history: free the old history before 
setting the new.
   via  71e3de6... s3:pdb_ldap:init_sam_from_ldap: untangle an assignment 
from the check
  from  71a40d7... s4/torture: fix small bug in lock test

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit 2fad148b271fe8623299af551d3ae103d85c5d5f
Author: Michael Adam ob...@samba.org
Date:   Tue Jan 5 17:24:17 2010 +0100

s3:pdb_set_pw_history: free the old history before setting the new.

This is not strictly necessary, since this only leaks into the
struct samu, and this is not so long-lived in the code path that
changes the password, but it definitely correct and does not harm.

Michael

commit 71e3de6c9fa50ce0035092da6b1a27017ee1bb56
Author: Michael Adam ob...@samba.org
Date:   Tue Jan 5 18:22:25 2010 +0100

s3:pdb_ldap:init_sam_from_ldap: untangle an assignment from the check

to enhance readability and denbuggability.

Michael

---

Summary of changes:
 source3/passdb/pdb_get_set.c |1 +
 source3/passdb/pdb_ldap.c|6 +++---
 2 files changed, 4 insertions(+), 3 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/passdb/pdb_get_set.c b/source3/passdb/pdb_get_set.c
index 30775e4..da65440 100644
--- a/source3/passdb/pdb_get_set.c
+++ b/source3/passdb/pdb_get_set.c
@@ -876,6 +876,7 @@ bool pdb_set_lanman_passwd(struct samu *sampass, const 
uint8 pwd[LM_HASH_LEN], e
 bool pdb_set_pw_history(struct samu *sampass, const uint8 *pwd, uint32 
historyLen, enum pdb_value_state flag)
 {
if (historyLen  pwd){
+   data_blob_free((sampass-nt_pw_his));
sampass-nt_pw_his = data_blob_talloc(sampass,
pwd, 
historyLen*PW_HISTORY_ENTRY_LEN);
if (!sampass-nt_pw_his.length) {
diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c
index 90ac8e5..1ab21e1 100644
--- a/source3/passdb/pdb_ldap.c
+++ b/source3/passdb/pdb_ldap.c
@@ -915,9 +915,9 @@ static bool init_sam_from_ldap(struct ldapsam_privates 
*ldap_state,
 
pwHistLen = MIN(pwHistLen, MAX_PW_HISTORY_LEN);
 
-   if ((pwhist = TALLOC_ARRAY(ctx, uint8,
-   pwHistLen * PW_HISTORY_ENTRY_LEN)) ==
-   NULL){
+   pwhist = TALLOC_ARRAY(ctx, uint8,
+ pwHistLen * PW_HISTORY_ENTRY_LEN);
+   if (pwhist == NULL) {
DEBUG(0, (init_sam_from_ldap: talloc failed!\n));
goto fn_exit;
}


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated

2010-01-07 Thread Michael Adam
The branch, master has been updated
   via  7248873... s3:auth:check_sam_security: improve calling and logging 
of pdb_update_sam_account
   via  5ad1b7e... s3:auth:check_sam_security: fix a leading tab/ws mixup
   via  970317c... s3:auth:check_sam_security: create (and use) a common 
exit point
   via  de4fb80... s3:auth:check_sam_security: null out sampass after it 
has been stolen.
   via  3634859... s3:auth:sam_password_ok: take username, acct_ctrl and 
nt/lm hashes, not sampass
   via  c0f404a... s3:auth: use data_blob_null instead of data_blob(NULL, 
0) in sam_password_ok()
   via  0172587... s3:auth:sam_password_ok: fix allocation of a data blob.
   via  7ac18c7... s3:auth:sam_password_ok: enhance readability (imho) by 
adding some pointers
   via  b5fcb34... s3:check_sam_security: untangle assignment from statement
   via  53a1ed9... s3: Factor password_in_history() out of 
check_passwd_history()
   via  be05d71... Simplify E_md5hash a bit
   via  5e2fc28... s3: Simplify pdb_set_plaintext_passwd: pwhistory==NULL 
can not happen anymore
   via  2a11f3b... s3: Simplify pdb_set_plaintext_passwd: pwHistLen==0 was 
checked above
   via  ec0998a... s3: Add a paranoia check to pdb_set_plaintext_passwd()
   via  a3f5222... s3: Simplify pdb_set_plaintext_passwd() by removing a 
redundant condition
   via  7633837... s3: Simplify pdb_set_plaintext_passwd: memcpy deals fine 
with 0 bytes
   via  864ed92... s3: Simplify pdb_set_plaintext_passwd by using 
talloc_zero_array
   via  e729025... s3: Make use of talloc_array in 
pdb_set_plaintext_passwd()
   via  7ba0064... s3: Simplify pdb_set_plaintext_passwd() a bit
   via  ca6c1cd... s3: Simplify pdb_set_plaintext_passwd() slightly
   via  3d83949... s3: Fix a typo
   via  147a2c0... s3: Avoid a memset(, 0, ) call
  from  2fad148... s3:pdb_set_pw_history: free the old history before 
setting the new.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit 7248873b48ac28c40809c949da0e7325ca63aef0
Author: Michael Adam ob...@samba.org
Date:   Wed Jan 6 13:53:10 2010 +0100

s3:auth:check_sam_security: improve calling and logging of 
pdb_update_sam_account

Log what went wrongl, and also call pdb_update_sam_account inside
become_root/unbecome_root: do the logging outside.

Michael

commit 5ad1b7e0c5aa7c8e0a0d55c2456e9d6354dc9bcc
Author: Michael Adam ob...@samba.org
Date:   Wed Jan 6 13:40:58 2010 +0100

s3:auth:check_sam_security: fix a leading tab/ws mixup

Michael

commit 970317c413eae52af9976e5652362412dd3038e3
Author: Michael Adam ob...@samba.org
Date:   Wed Jan 6 12:36:56 2010 +0100

s3:auth:check_sam_security: create (and use) a common exit point

for use after sam_password_ok() has been called.

Michael

commit de4fb80beec5dd9ce074d4fff0b310fb08da
Author: Michael Adam ob...@samba.org
Date:   Wed Jan 6 12:32:51 2010 +0100

s3:auth:check_sam_security: null out sampass after it has been stolen.

So that a later talloc_free would not harm. I could have used
talloc_move instead of talloc steal in make_server_info_sam(),
but this would have required a change of the signature.

Michael

commit 36348594505a5e7934d20d3b614f51023ae5740a
Author: Michael Adam ob...@samba.org
Date:   Mon Jan 4 18:15:24 2010 +0100

s3:auth:sam_password_ok: take username, acct_ctrl and nt/lm hashes, not 
sampass

This is in preparation to extending check_sam_security to also check
against the password history before updating the bad password count.
This way, sam_password_ok can more easily be reused for that purpose.

Michael

commit c0f404a2e46187424915a073142a0a218b48ec2c
Author: Michael Adam ob...@samba.org
Date:   Mon Jan 4 15:37:24 2010 +0100

s3:auth: use data_blob_null instead of data_blob(NULL, 0) in 
sam_password_ok()

This way it is more explicit that there is no allocated data here
that may leak.

Michael

commit 0172587d8d56e1163c27014e1e092580d0158e10
Author: Michael Adam ob...@samba.org
Date:   Wed Dec 30 15:37:23 2009 +0100

s3:auth:sam_password_ok: fix allocation of a data blob.

data_blob(mem_ctx, 16) does not use mem_ctx as a talloc ctx but
copies 16 bytes from mem_ctx into the newly allocated data blob.
This can not have been intentional. A blank uint8_t array of
length 16 is allocated by passing NULL instead of mem_ctx.
And using data_blob_talloc(mem_ctx, NULL, 16) adds the allocated
blank 16 byte array to mem_ctx - so this is what must have been
intended.

Michael

commit 7ac18c743b50b8cd63284326bd648675db63c557
Author: Michael Adam ob...@samba.org
Date:   Wed Dec 30 15:35:50 2009 +0100

s3:auth:sam_password_ok: enhance readability (imho) by adding some pointers

and removing bool variables and several 

svn commit: samba-web r1354 - in trunk: .

2010-01-07 Thread kseeger
Author: kseeger
Date: 2010-01-07 03:53:18 -0700 (Thu, 07 Jan 2010)
New Revision: 1354

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=samba-webrev=1354

Log:
Announce Samba 3.5.0rc1
Karolin
Modified:
   trunk/index.html


Changeset:
Modified: trunk/index.html
===
--- trunk/index.html2010-01-07 09:16:19 UTC (rev 1353)
+++ trunk/index.html2010-01-07 10:53:18 UTC (rev 1354)
@@ -24,6 +24,32 @@
 h2Latest News/h2
 !--#include virtual=/samba/news/headlines.html --
 
+h407 January 2010/h4
+p class=headlineSamba 3.5.0rc1 Available for Download/p
+
+pSamba 3.5.0rc1 is now available for download.  This the first
+release candidate of the next upgrade production release version of Samba.
+It is intended for testing purposes only.  Please test and
+a href=https://bugzilla.samba.org/;report any bugs that you
+find/a. Please read the changes in the
+a href=/samba/ftp/rc/WHATSNEW-3-5-0rc1.txtRelease Notes/a
+for details on new features and difference in behavior from
+previous releases./p
+
+pThe a href=/samba/ftp/rc/samba-3.5.0rc1.tar.gzSamba 3.5.0rc1
+source code/a can be downloaded now.  The a
+href=/samba/ftp/rc/samba-3.5.0rc1.tar.ascGnuPG
+signature is for the for the emun/emcompressed tarball/a.
+If you prefer, the a
+href=/samba/ftp/rc/patch-3.5.0pre2-3.5.0rc1.diffs.gzpatch
+file against Samba 3.3.0pre2/a
+(a href=/samba/ftp/rc/patch-3.5.0pre2-3.5.0rc1.diffs.ascGnuPG
+signature/a) is also available for download.
+Please read these a href=/samba/download/instructions on
+how to verify the gpg signature/a.  Precompiled packages will
+be made available on a volunteer basis and can be found in the
+a href=/samba/ftp/Binary_Packages/Binary_Packages download 
area/a./p
+
 h4a name=latest07 January 2010/a/h4
 p class=headlineSamba 3.4.4 Available for Download/p
 



[SCM] Samba Shared Repository - branch v3-5-test updated

2010-01-07 Thread Volker Lendecke
The branch, v3-5-test has been updated
   via  ea7d299... s3: Lock down some srvsvc calls according to what w2k3 
seems to do
  from  22ee5d4... WHATSNEW: Update changes.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-5-test


- Log -
commit ea7d2995f383e183ef4d8a21705a343581e71f4a
Author: Volker Lendecke v...@samba.org
Date:   Thu Jan 7 11:47:09 2010 +0100

s3: Lock down some srvsvc calls according to what w2k3 seems to do

---

Summary of changes:
 source3/rpc_server/srv_srvsvc_nt.c |   21 +
 1 files changed, 21 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/rpc_server/srv_srvsvc_nt.c 
b/source3/rpc_server/srv_srvsvc_nt.c
index d35557e..a2d1d07 100644
--- a/source3/rpc_server/srv_srvsvc_nt.c
+++ b/source3/rpc_server/srv_srvsvc_nt.c
@@ -1033,6 +1033,13 @@ WERROR _srvsvc_NetFileEnum(pipes_struct *p,
return WERR_UNKNOWN_LEVEL;
}
 
+   if (!nt_token_check_sid(global_sid_Builtin_Administrators,
+   p-server_info-ptok)) {
+   DEBUG(1, (Enumerating files only allowed for 
+ administrators\n));
+   return WERR_ACCESS_DENIED;
+   }
+
ctx = talloc_tos();
ctr3 = r-in.info_ctr-ctr.ctr3;
if (!ctr3) {
@@ -1185,6 +1192,13 @@ WERROR _srvsvc_NetConnEnum(pipes_struct *p,
 
DEBUG(5,(_srvsvc_NetConnEnum: %d\n, __LINE__));
 
+   if (!nt_token_check_sid(global_sid_Builtin_Administrators,
+   p-server_info-ptok)) {
+   DEBUG(1, (Enumerating connections only allowed for 
+ administrators\n));
+   return WERR_ACCESS_DENIED;
+   }
+
switch (r-in.info_ctr-level) {
case 0:
werr = init_srv_conn_info_0(r-in.info_ctr-ctr.ctr0,
@@ -1216,6 +1230,13 @@ WERROR _srvsvc_NetSessEnum(pipes_struct *p,
 
DEBUG(5,(_srvsvc_NetSessEnum: %d\n, __LINE__));
 
+   if (!nt_token_check_sid(global_sid_Builtin_Administrators,
+   p-server_info-ptok)) {
+   DEBUG(1, (Enumerating sessions only allowed for 
+ administrators\n));
+   return WERR_ACCESS_DENIED;
+   }
+
switch (r-in.info_ctr-level) {
case 0:
werr = init_srv_sess_info_0(p,


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated

2010-01-07 Thread Volker Lendecke
The branch, master has been updated
   via  8289b46... s3: Lock down some srvsvc calls according to what w2k3 
seems to do
  from  7248873... s3:auth:check_sam_security: improve calling and logging 
of pdb_update_sam_account

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit 8289b46173eabc316fa218a794122127c81c76f8
Author: Volker Lendecke v...@samba.org
Date:   Thu Jan 7 11:47:09 2010 +0100

s3: Lock down some srvsvc calls according to what w2k3 seems to do

---

Summary of changes:
 source3/rpc_server/srv_srvsvc_nt.c |   21 +
 1 files changed, 21 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/rpc_server/srv_srvsvc_nt.c 
b/source3/rpc_server/srv_srvsvc_nt.c
index d35557e..a2d1d07 100644
--- a/source3/rpc_server/srv_srvsvc_nt.c
+++ b/source3/rpc_server/srv_srvsvc_nt.c
@@ -1033,6 +1033,13 @@ WERROR _srvsvc_NetFileEnum(pipes_struct *p,
return WERR_UNKNOWN_LEVEL;
}
 
+   if (!nt_token_check_sid(global_sid_Builtin_Administrators,
+   p-server_info-ptok)) {
+   DEBUG(1, (Enumerating files only allowed for 
+ administrators\n));
+   return WERR_ACCESS_DENIED;
+   }
+
ctx = talloc_tos();
ctr3 = r-in.info_ctr-ctr.ctr3;
if (!ctr3) {
@@ -1185,6 +1192,13 @@ WERROR _srvsvc_NetConnEnum(pipes_struct *p,
 
DEBUG(5,(_srvsvc_NetConnEnum: %d\n, __LINE__));
 
+   if (!nt_token_check_sid(global_sid_Builtin_Administrators,
+   p-server_info-ptok)) {
+   DEBUG(1, (Enumerating connections only allowed for 
+ administrators\n));
+   return WERR_ACCESS_DENIED;
+   }
+
switch (r-in.info_ctr-level) {
case 0:
werr = init_srv_conn_info_0(r-in.info_ctr-ctr.ctr0,
@@ -1216,6 +1230,13 @@ WERROR _srvsvc_NetSessEnum(pipes_struct *p,
 
DEBUG(5,(_srvsvc_NetSessEnum: %d\n, __LINE__));
 
+   if (!nt_token_check_sid(global_sid_Builtin_Administrators,
+   p-server_info-ptok)) {
+   DEBUG(1, (Enumerating sessions only allowed for 
+ administrators\n));
+   return WERR_ACCESS_DENIED;
+   }
+
switch (r-in.info_ctr-level) {
case 0:
werr = init_srv_sess_info_0(p,


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated

2010-01-07 Thread Günther Deschner
The branch, master has been updated
   via  c1ca000... s3-docs: fix eventlogadm manpage typo.
  from  8289b46... s3: Lock down some srvsvc calls according to what w2k3 
seems to do

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit c1ca00047d26ace240fa5f34b428392b5d61e6c3
Author: Günther Deschner g...@samba.org
Date:   Thu Jan 7 12:05:18 2010 +0100

s3-docs: fix eventlogadm manpage typo.

Guenther

---

Summary of changes:
 docs-xml/manpages-3/eventlogadm.8.xml |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/docs-xml/manpages-3/eventlogadm.8.xml 
b/docs-xml/manpages-3/eventlogadm.8.xml
index 4c399a3..c104120 100644
--- a/docs-xml/manpages-3/eventlogadm.8.xml
+++ b/docs-xml/manpages-3/eventlogadm.8.xml
@@ -111,7 +111,7 @@
varlistentry
term
option-o/option
-   literalwrite/literal
+   literaldump/literal
replaceableEVENTLOG/replaceable
replaceableRECORD_NUMBER/replaceable
/term


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated

2010-01-07 Thread Volker Lendecke
The branch, master has been updated
   via  801edec... s3: Remove some code that has become unnecessary
  from  c1ca000... s3-docs: fix eventlogadm manpage typo.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit 801edeccc6f529647eaed0dd23728a257cf9479f
Author: Volker Lendecke v...@samba.org
Date:   Thu Jan 7 14:50:43 2010 +0100

s3: Remove some code that has become unnecessary

The code I just removed was checked in with e5466fffc286a99f as a bug fix 
for
https://bugzilla.samba.org/show_bug.cgi?id=3319. With the changes to
is_visible_file made with 9e8b8f8c16612 these lines have become unnecessary,
even with hide unreadable = yes dead msdfs symlinks show. This is because 
we
can not stat(2) them and default to showing them.

Why this change? I have a user who wants to use hide unreadable on msdfs
links. Because you can't edit acls on symlinks themselves, the user created 
the
targets as bogus, empty files that just exist as acl placeholders. With the
code in place that this patch removes, we never allow this to work.

Jeremy, please check! :-)

Thanks,

Volker

---

Summary of changes:
 source3/smbd/dir.c |8 
 1 files changed, 0 insertions(+), 8 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c
index 5ce4a7b..3fe3218 100644
--- a/source3/smbd/dir.c
+++ b/source3/smbd/dir.c
@@ -1227,14 +1227,6 @@ bool is_visible_file(connection_struct *conn, const char 
*dir_path,
goto out;
}
 
-   /* If it's a dfs symlink, ignore _hide _ options */
-   if (lp_host_msdfs() 
-   lp_msdfs_root(SNUM(conn)) 
-   is_msdfs_link(conn, entry, NULL)) {
-   ret = true;
-   goto out;
-   }
-
/* Create an smb_filename with stream_name == NULL. */
status = create_synthetic_smb_fname(talloc_tos(), entry, NULL,
pst, smb_fname_base);


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated

2010-01-07 Thread Michael Adam
The branch, master has been updated
   via  dc68982... s3:auth: don't update the bad pw count if pw is among 
last 2 history entries
   via  46111dc... s3:auth:check_sam_security: introduce a bool var to 
control pad_pw_count incrementation
   via  017ccd0... s3:passdb: store the plain nt passwords hashes in 
history, not salted md5
   via  667b6f3... s3:smbd:password_in_history: treat entry with 0 salt as 
0 + plain nt hash
  from  801edec... s3: Remove some code that has become unnecessary

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit dc689827114c46b3ca2a75082421dc2d98001ce7
Author: Michael Adam ob...@samba.org
Date:   Wed Jan 6 17:29:04 2010 +0100

s3:auth: don't update the bad pw count if pw is among last 2 history entries

This conforms to the behaviour of Windows 2003:

http://www.microsoft.com/technet/prodtechnol/windowsserver2003/technologies/security/bpactlck.mspx

This is supposed to fixes Bug #4347 .

Michael

commit 46111dc4e437f9cd4df1dbf2ecfe6a56eaf1ae39
Author: Michael Adam ob...@samba.org
Date:   Wed Jan 6 16:35:44 2010 +0100

s3:auth:check_sam_security: introduce a bool var to control pad_pw_count 
incrementation

This is a preparatory patch for the last part in fixing bug #4347 .

Michael

commit 017ccd0bda31059f7093f41d1537edd7b5430968
Author: Michael Adam ob...@samba.org
Date:   Tue Jan 5 18:28:48 2010 +0100

s3:passdb: store the plain nt passwords hashes in history, not salted md5

This is in order to be able to do challenge response with the history,
so that this can be checked when an invalid password was entered:
If the given password is wrong but in the history, then the bad password
count should not be updated...

The lucky bit here is that the md5 has and the nt hash (md4) both are
16 bytes long.

This is part of the fix for bug #4347 .

Michael

commit 667b6f3322ba97bc2e50067dccda9949bb21eaa0
Author: Michael Adam ob...@samba.org
Date:   Tue Jan 5 16:58:30 2010 +0100

s3:smbd:password_in_history: treat entry with 0 salt as 0 + plain nt hash

This is to introduce a new format of the password history, maintaining 
backwards
compatibility: The old format was 16 byte hash + 16 byte md5(salt + nt 
hash).
The new format is 16 zero bytes and 16 bytes nt hash.

This will allow us to respect the last X entries of the nt password history
when deciding whether to increment the bad password count.

This is part of the fix for bug #4347 .

Michael

---

Summary of changes:
 source3/auth/auth_sam.c  |   80 +-
 source3/passdb/pdb_get_set.c |   15 +---
 source3/smbd/chgpasswd.c |   30 ---
 3 files changed, 113 insertions(+), 12 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/auth/auth_sam.c b/source3/auth/auth_sam.c
index e7b9f2b..ef0cd97 100644
--- a/source3/auth/auth_sam.c
+++ b/source3/auth/auth_sam.c
@@ -281,6 +281,75 @@ static NTSTATUS sam_account_ok(TALLOC_CTX *mem_ctx,
return NT_STATUS_OK;
 }
 
+/**
+ * Check whether the given password is one of the last two
+ * password history entries. If so, the bad pwcount should
+ * not be incremented even thought the actual password check
+ * failed.
+ */
+static bool need_to_increment_bad_pw_count(
+   const struct auth_context *auth_context,
+   struct samu* sampass,
+   const auth_usersupplied_info *user_info)
+{
+   uint8_t i;
+   const uint8_t *pwhistory;
+   uint32_t pwhistory_len;
+   uint32_t policy_pwhistory_len;
+   uint32_t acct_ctrl;
+   const char *username;
+   TALLOC_CTX *mem_ctx = talloc_stackframe();
+   bool result = true;
+
+   pdb_get_account_policy(PDB_POLICY_PASSWORD_HISTORY,
+  policy_pwhistory_len);
+   if (policy_pwhistory_len == 0) {
+   goto done;
+   }
+
+   pwhistory = pdb_get_pw_history(sampass, pwhistory_len);
+   if (!pwhistory || pwhistory_len == 0) {
+   goto done;
+   }
+
+   acct_ctrl = pdb_get_acct_ctrl(sampass);
+   username = pdb_get_username(sampass);
+
+   for (i=1; i  MIN(MIN(3, policy_pwhistory_len), pwhistory_len); i++) {
+   static const uint8_t zero16[SALTED_MD5_HASH_LEN];
+   const uint8_t *salt;
+   const uint8_t *nt_pw;
+   NTSTATUS status;
+   DATA_BLOB user_sess_key = data_blob_null;
+   DATA_BLOB lm_sess_key = data_blob_null;
+
+   salt = pwhistory[i*PW_HISTORY_ENTRY_LEN];
+   nt_pw = salt + PW_HISTORY_SALT_LEN;
+
+   if (memcmp(zero16, nt_pw, NT_HASH_LEN) == 0) {
+   /* skip zero password hash */
+   

[SCM] SAMBA-CTDB repository - branch v3-4-ctdb updated - 3.4.2-ctdb-16-3-gb2e840b

2010-01-07 Thread Michael Adam
The branch, v3-4-ctdb has been updated
   via  b2e840b111b43736d14d359e89ee8a17487531f5 (commit)
  from  68747f49c7338a905ed9beac6300b20c0a8a064e (commit)

http://gitweb.samba.org/?p=obnox/samba-ctdb.git;a=shortlog;h=v3-4-ctdb


- Log -
commit b2e840b111b43736d14d359e89ee8a17487531f5
Author: Michael Adam ob...@samba.org
Date:   Thu Jan 7 13:59:38 2010 +0100

v3-4-ctdb: bump the ctdb vendor patch level to 17.

Michael

---

Summary of changes:
 source3/VERSION |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/VERSION b/source3/VERSION
index 4b54a33..6d4ff8c 100644
--- a/source3/VERSION
+++ b/source3/VERSION
@@ -85,7 +85,7 @@ SAMBA_VERSION_IS_GIT_SNAPSHOT=no
 #  #
 
 SAMBA_VERSION_VENDOR_SUFFIX=ctdb
-SAMBA_VERSION_VENDOR_PATCH=16
+SAMBA_VERSION_VENDOR_PATCH=17
 
 
 # This can be set by vendors if they want..#


-- 
SAMBA-CTDB repository


[SCM] SAMBA-CTDB repository - annotated tag 3.4.2-ctdb-17 created - 3.4.2-ctdb-17

2010-01-07 Thread Michael Adam
The annotated tag, 3.4.2-ctdb-17 has been created
at  afcf1c0344b50847efcf7cd9ccb21548c998a7f6 (tag)
   tagging  b2e840b111b43736d14d359e89ee8a17487531f5 (commit)
  replaces  3.4.2-ctdb-16
 tagged by  Michael Adam
on  Thu Jan 7 22:40:38 2010 +0100

- Log -
release 3.4.2-ctdb-17

Michael
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEABECAAYFAktGVOQACgkQyU9JOBhPkDRSqACfZPAWft853iq9kwJO/oTJazZt
4zoAnj77Q/H1nvl+FTvxKAL7zjnS1RwP
=VT3K
-END PGP SIGNATURE-

Michael Adam (3):
  s3:dbwrap_ctdb: fix an uninitialized variable.
  s3:dbwrap_ctdb: fix logic error in pull_newest_from_marshall_buffer().
  v3-4-ctdb: bump the ctdb vendor patch level to 17.

---


-- 
SAMBA-CTDB repository


[SCM] Samba Shared Repository - branch master updated

2010-01-07 Thread Tim Prouty
The branch, master has been updated
   via  57be1d0... s4 torture: Add RAW-OPEN-NTCREATEDIR to test error 
checking for open directories as files
   via  34f0cff... s3 torture: Prevent smbcli segfault when running 
smbtorture3 against an smbd with security=share
  from  dc68982... s3:auth: don't update the bad pw count if pw is among 
last 2 history entries

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit 57be1d07afc2a0725b79327636204a9238ab94aa
Author: Tim Prouty tpro...@samba.org
Date:   Mon Jan 4 13:01:23 2010 -0800

s4 torture: Add RAW-OPEN-NTCREATEDIR to test error checking for open 
directories as files

commit 34f0cff0664f1c160ee7442461e9f875e8d8f4dc
Author: Tim Prouty tpro...@samba.org
Date:   Mon Jan 4 12:57:34 2010 -0800

s3 torture: Prevent smbcli segfault when running smbtorture3 against an 
smbd with security=share

---

Summary of changes:
 source3/libsmb/cliconnect.c |5 +
 source4/torture/raw/open.c  |  198 +++
 2 files changed, 203 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c
index 31216b8..fa79ebc 100644
--- a/source3/libsmb/cliconnect.c
+++ b/source3/libsmb/cliconnect.c
@@ -1573,6 +1573,8 @@ struct tevent_req *cli_tcon_andx_create(TALLOC_CTX 
*mem_ctx,
char *tmp = NULL;
uint8_t *bytes;
 
+   *psmbreq = NULL;
+
req = tevent_req_create(mem_ctx, state, struct cli_tcon_andx_state);
if (req == NULL) {
return NULL;
@@ -1708,6 +1710,9 @@ struct tevent_req *cli_tcon_andx_send(TALLOC_CTX *mem_ctx,
if (req == NULL) {
return NULL;
}
+   if (subreq == NULL) {
+   return req;
+   }
status = cli_smb_req_send(subreq);
if (!NT_STATUS_IS_OK(status)) {
tevent_req_nterror(req, status);
diff --git a/source4/torture/raw/open.c b/source4/torture/raw/open.c
index 8c4311b..e37fd8e 100644
--- a/source4/torture/raw/open.c
+++ b/source4/torture/raw/open.c
@@ -1879,6 +1879,203 @@ done:
return ret;
 }
 
+/**
+ * Test what happens when trying to open a file with directory parameters and
+ * vice-versa.  Also test that NTCREATEX_OPTIONS_DIRECTORY is treated as
+ * mandatory and FILE_ATTRIBUTE_DIRECTORY is advisory for directory
+ * creation/opening.
+ */
+static bool test_ntcreatexdir(struct torture_context *tctx,
+struct smbcli_state *cli)
+{
+   union smb_open io;
+   union smb_fileinfo finfo;
+   const char *fname = BASEDIR \\torture_ntcreatex.txt;
+   const char *dname = BASEDIR \\torture_ntcreatex_dir;
+   NTSTATUS status, expected_status;
+   bool ret = true;
+   int i;
+   uint32_t access_mask = 0;
+
+   struct {
+   uint32_t open_disp;
+   uint32_t file_attr;
+   uint32_t create_options;
+   NTSTATUS correct_status;
+   } open_funcs[] = {
+   { NTCREATEX_DISP_SUPERSEDE, 0, NTCREATEX_OPTIONS_DIRECTORY,
+ NT_STATUS_INVALID_PARAMETER },
+   { NTCREATEX_DISP_OPEN,  0, NTCREATEX_OPTIONS_DIRECTORY,
+ NT_STATUS_OBJECT_NAME_NOT_FOUND },
+   { NTCREATEX_DISP_CREATE,0, NTCREATEX_OPTIONS_DIRECTORY,
+ NT_STATUS_OK },
+   { NTCREATEX_DISP_OPEN_IF,   0, NTCREATEX_OPTIONS_DIRECTORY,
+ NT_STATUS_OK },
+   { NTCREATEX_DISP_OVERWRITE, 0, NTCREATEX_OPTIONS_DIRECTORY,
+ NT_STATUS_INVALID_PARAMETER },
+   { NTCREATEX_DISP_OVERWRITE_IF,  0, NTCREATEX_OPTIONS_DIRECTORY,
+ NT_STATUS_INVALID_PARAMETER },
+   { NTCREATEX_DISP_SUPERSEDE, FILE_ATTRIBUTE_DIRECTORY, 0,
+ NT_STATUS_OK },
+   { NTCREATEX_DISP_OPEN,  FILE_ATTRIBUTE_DIRECTORY, 0,
+ NT_STATUS_OBJECT_NAME_NOT_FOUND },
+   { NTCREATEX_DISP_CREATE,FILE_ATTRIBUTE_DIRECTORY, 0,
+ NT_STATUS_OK },
+   { NTCREATEX_DISP_OPEN_IF,   FILE_ATTRIBUTE_DIRECTORY, 0,
+ NT_STATUS_OK },
+   { NTCREATEX_DISP_OVERWRITE, FILE_ATTRIBUTE_DIRECTORY, 0,
+ NT_STATUS_OBJECT_NAME_NOT_FOUND },
+   { NTCREATEX_DISP_OVERWRITE_IF,  FILE_ATTRIBUTE_DIRECTORY, 0,
+ NT_STATUS_OK },
+
+   };
+
+   if (!torture_setup_dir(cli, BASEDIR)) {
+   return false;
+   }
+
+   /* setup some base params. */
+   io.generic.level = RAW_OPEN_NTCREATEX;
+   io.ntcreatex.in.flags = NTCREATEX_FLAGS_EXTENDED;
+   io.ntcreatex.in.root_fid.fnum = 0;
+   io.ntcreatex.in.access_mask = SEC_RIGHTS_FILE_ALL;
+   io.ntcreatex.in.alloc_size = 0;
+   

[SCM] Samba Shared Repository - branch master updated

2010-01-07 Thread Günther Deschner
The branch, master has been updated
   via  9185fd0... testprogs: pass down architecture in spoolss test.
   via  487a03a... testprogs: add win32 spoolss testsuite.
  from  57be1d0... s4 torture: Add RAW-OPEN-NTCREATEDIR to test error 
checking for open directories as files

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit 9185fd0a93e2530c778b7d31f90311f8618b4fb7
Author: Günther Deschner g...@samba.org
Date:   Wed Jan 6 23:15:09 2010 +0100

testprogs: pass down architecture in spoolss test.

Guenther

commit 487a03a1586e478baaadada184836be98c609aa0
Author: Günther Deschner g...@samba.org
Date:   Mon Dec 14 23:54:42 2009 +0100

testprogs: add win32 spoolss testsuite.

Guenther

---

Summary of changes:
 testprogs/win32/spoolss/Makefile|   38 ++
 testprogs/win32/spoolss/Makefile.mingw  |   22 +
 testprogs/win32/spoolss/README  |1 +
 testprogs/win32/spoolss/error.c |  115 +
 testprogs/win32/spoolss/error.h |   36 ++
 testprogs/win32/spoolss/spoolss.c   |  780 +++
 testprogs/win32/spoolss/spoolss.h   |   50 ++
 testprogs/win32/spoolss/string.h|   15 +
 testprogs/win32/spoolss/torture.c   |  106 +
 testprogs/win32/spoolss/torture.h   |   91 
 testprogs/win32/spoolss/torture_proto.h |   32 ++
 11 files changed, 1286 insertions(+), 0 deletions(-)
 create mode 100644 testprogs/win32/spoolss/Makefile
 create mode 100644 testprogs/win32/spoolss/Makefile.mingw
 create mode 100644 testprogs/win32/spoolss/README
 create mode 100644 testprogs/win32/spoolss/error.c
 create mode 100644 testprogs/win32/spoolss/error.h
 create mode 100644 testprogs/win32/spoolss/spoolss.c
 create mode 100644 testprogs/win32/spoolss/spoolss.h
 create mode 100644 testprogs/win32/spoolss/string.h
 create mode 100644 testprogs/win32/spoolss/torture.c
 create mode 100644 testprogs/win32/spoolss/torture.h
 create mode 100644 testprogs/win32/spoolss/torture_proto.h


Changeset truncated at 500 lines:

diff --git a/testprogs/win32/spoolss/Makefile b/testprogs/win32/spoolss/Makefile
new file mode 100644
index 000..96efcea
--- /dev/null
+++ b/testprogs/win32/spoolss/Makefile
@@ -0,0 +1,38 @@
+CFLAGS = /nologo /Zi /MT /Gm- /W4 /FR /D_CRT_SECURE_NO_WARNINGS
+LIBS = kernel32.lib gdi32.lib user32.lib shell32.lib \
+   advapi32.lib ole32.lib ws2_32.lib rpcrt4.lib
+WINSPOOL_LIBS = winspool.lib
+
+all: spoolss.exe
+
+.cpp.obj:
+   cl /c $(CFLAGS) $*.cpp
+
+.c.obj:
+   cl /c $(CFLAGS) $*.c
+
+clean: cleantmp
+   -del *.dll 2nul
+
+cleantmp:
+   -del *~ *.o *.obj *.sbr *.bsc *.pdb *.lib *.ilk *.exp 2nul
+   -del test_s.c test_c.c test.h 2nul
+
+###
+# helpers
+###
+
+error.obj: error.c
+
+torture.obj: torture.c
+
+###
+# binaries
+###
+
+spoolss.obj: spoolss.c
+
+spoolss.exe: spoolss.obj error.obj torture.obj
+   cl $(CFLAGS) /Fe$@ spoolss.obj error.obj torture.obj \
+   /link /incremental:no /subsystem:console $(LIBS) $(WINSPOOL_LIBS)
+
diff --git a/testprogs/win32/spoolss/Makefile.mingw 
b/testprogs/win32/spoolss/Makefile.mingw
new file mode 100644
index 000..82fc7ed
--- /dev/null
+++ b/testprogs/win32/spoolss/Makefile.mingw
@@ -0,0 +1,22 @@
+MAKE=mingw32-make
+CFLAGS=-I../../../ -I/usr/i686-pc-mingw32/sys-root/mingw/include
+LDFLAGS=-L/usr/i686-pc-mingw32/sys-root/mingw/lib
+CC=/usr/bin/i686-pc-mingw32-gcc
+LIBS=-lwinspool
+
+all: spoolss.exe
+
+clean:
+   rm -vf *.exe tags
+
+ctags:
+   ctags `find . -name *.[ch] | grep -v include/proto.h`
+   ctags --c-kinds=-p -a `find /usr/i686-pc-mingw32/sys-root/mingw/include 
-name *.[ch] | grep -v /CVS/`
+
+proto:
+   mkproto.pl torture.c --private=torture_proto.h 
--public=torture_proto_pub.h --srcdir=. --builddir=.
+
+spoolss.exe: spoolss.c torture.c error.c
+   @echo Compiling spoolss.exe
+   @$(CC) $(CFLAGS) $(LDFLAGS) spoolss.c torture.c error.c $(LIBS) -o 
spoolss.exe
+
diff --git a/testprogs/win32/spoolss/README b/testprogs/win32/spoolss/README
new file mode 100644
index 000..9d6cf4b
--- /dev/null
+++ b/testprogs/win32/spoolss/README
@@ -0,0 +1 @@
+FIXME
diff --git a/testprogs/win32/spoolss/error.c b/testprogs/win32/spoolss/error.c
new file mode 100644
index 000..e523c15
--- /dev/null
+++ b/testprogs/win32/spoolss/error.c
@@ -0,0 +1,115 @@
+/*
+   Unix SMB/CIFS implementation.
+   test suite for spoolss rpc operations
+
+   Copyright (C) Guenther Deschner 2009
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 3 of the License, or
+   (at your option) any later version.
+
+   This program is 

[SCM] Samba Shared Repository - branch master updated

2010-01-07 Thread Günther Deschner
The branch, master has been updated
   via  339afda... testprogs: add support for print option in win32 
spoolss torture test.
  from  9185fd0... testprogs: pass down architecture in spoolss test.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit 339afda877138ebe3869aa971361b88f196ff9d8
Author: Günther Deschner g...@samba.org
Date:   Wed Dec 16 22:36:18 2009 +0100

testprogs: add support for print option in win32 spoolss torture test.

Guenther

---

Summary of changes:
 testprogs/win32/spoolss/Makefile |6 +-
 testprogs/win32/spoolss/Makefile.mingw   |5 +-
 testprogs/win32/spoolss/printlib.c   |  608 ++
 testprogs/win32/spoolss/printlib_proto.h |   46 +++
 testprogs/win32/spoolss/spoolss.c|4 +
 testprogs/win32/spoolss/spoolss.h|1 +
 6 files changed, 666 insertions(+), 4 deletions(-)
 create mode 100644 testprogs/win32/spoolss/printlib.c
 create mode 100644 testprogs/win32/spoolss/printlib_proto.h


Changeset truncated at 500 lines:

diff --git a/testprogs/win32/spoolss/Makefile b/testprogs/win32/spoolss/Makefile
index 96efcea..8c9d716 100644
--- a/testprogs/win32/spoolss/Makefile
+++ b/testprogs/win32/spoolss/Makefile
@@ -22,6 +22,8 @@ cleantmp:
 # helpers
 ###
 
+printlib.obj: printlib.c
+
 error.obj: error.c
 
 torture.obj: torture.c
@@ -32,7 +34,7 @@ torture.obj: torture.c
 
 spoolss.obj: spoolss.c
 
-spoolss.exe: spoolss.obj error.obj torture.obj
-   cl $(CFLAGS) /Fe$@ spoolss.obj error.obj torture.obj \
+spoolss.exe: spoolss.obj printlib.obj error.obj torture.obj
+   cl $(CFLAGS) /Fe$@ spoolss.obj printlib.obj error.obj torture.obj \
/link /incremental:no /subsystem:console $(LIBS) $(WINSPOOL_LIBS)
 
diff --git a/testprogs/win32/spoolss/Makefile.mingw 
b/testprogs/win32/spoolss/Makefile.mingw
index 82fc7ed..4ff7155 100644
--- a/testprogs/win32/spoolss/Makefile.mingw
+++ b/testprogs/win32/spoolss/Makefile.mingw
@@ -14,9 +14,10 @@ ctags:
ctags --c-kinds=-p -a `find /usr/i686-pc-mingw32/sys-root/mingw/include 
-name *.[ch] | grep -v /CVS/`
 
 proto:
+   mkproto.pl printlib.c --private=printlib_proto.h 
--public=printlib_proto_pub.h --srcdir=. --builddir=.
mkproto.pl torture.c --private=torture_proto.h 
--public=torture_proto_pub.h --srcdir=. --builddir=.
 
-spoolss.exe: spoolss.c torture.c error.c
+spoolss.exe: spoolss.c printlib.c torture.c error.c
@echo Compiling spoolss.exe
-   @$(CC) $(CFLAGS) $(LDFLAGS) spoolss.c torture.c error.c $(LIBS) -o 
spoolss.exe
+   @$(CC) $(CFLAGS) $(LDFLAGS) spoolss.c printlib.c torture.c error.c 
$(LIBS) -o spoolss.exe
 
diff --git a/testprogs/win32/spoolss/printlib.c 
b/testprogs/win32/spoolss/printlib.c
new file mode 100644
index 000..c40ca6c
--- /dev/null
+++ b/testprogs/win32/spoolss/printlib.c
@@ -0,0 +1,608 @@
+/*
+   Unix SMB/CIFS implementation.
+   test suite for spoolss rpc operations
+
+   Copyright (C) Gerald (Jerry) Carter 2007
+   Copyright (C) Guenther Deschner 2009-2010
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program.  If not, see http://www.gnu.org/licenses/.
+*/
+
+#include windows.h
+#include stdio.h
+
+void print_devmode(DEVMODE *pDevModeIn)
+{
+   if (pDevModeIn == NULL) {
+   printf(\tDevice Mode\t= (null)\n);
+   return;
+   }
+
+   printf(\tDEVMODE:--\n);
+   printf(\tDeviceName:  [%s]\n, pDevModeIn-dmDeviceName);
+   printf(\tSpecVersion: %d\n,   pDevModeIn-dmSpecVersion);
+   printf(\tDriverVersion:   %d\n,   pDevModeIn-dmDriverVersion);
+   printf(\tSize:%d\n,   pDevModeIn-dmSize);
+   printf(\tDriverExtra: %d\n,   pDevModeIn-dmDriverExtra);
+   printf(\tFields:  0x%x\n, pDevModeIn-dmFields);
+
+   if (pDevModeIn-dmFields  DM_ORIENTATION)
+   printf(\tOrientation: %d\n, pDevModeIn-dmOrientation);
+   if (pDevModeIn-dmFields  DM_PAPERSIZE)
+   printf(\tPaperSize:   %d\n, pDevModeIn-dmPaperSize);
+   if (pDevModeIn-dmFields  DM_PAPERLENGTH)
+   printf(\tPaperLength: %d\n, pDevModeIn-dmPaperLength);
+   if (pDevModeIn-dmFields  DM_PAPERWIDTH)
+   printf(\tPaperWidth:  %d\n, 

[SCM] Samba Shared Repository - branch master updated

2010-01-07 Thread Jelmer Vernooij
The branch, master has been updated
   via  c915bd8... linked_attributes: Fix missing dependency on util.
  from  339afda... testprogs: add support for print option in win32 
spoolss torture test.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit c915bd87185f37f95272b3332aecb470d93a5548
Author: Jelmer Vernooij jel...@samba.org
Date:   Sun Jan 3 23:08:46 2010 +0100

linked_attributes: Fix missing dependency on util.

---

Summary of changes:
 source4/dsdb/samdb/ldb_modules/config.mk |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/dsdb/samdb/ldb_modules/config.mk 
b/source4/dsdb/samdb/ldb_modules/config.mk
index 6128dc9..8f7b5d3 100644
--- a/source4/dsdb/samdb/ldb_modules/config.mk
+++ b/source4/dsdb/samdb/ldb_modules/config.mk
@@ -337,7 +337,7 @@ ldb_subtree_delete_OBJ_FILES = 
$(dsdbsrcdir)/samdb/ldb_modules/subtree_delete.o
 [MODULE::ldb_linked_attributes]
 INIT_FUNCTION = LDB_MODULE(linked_attributes)
 CFLAGS = -Ilib/ldb/include
-PRIVATE_DEPENDENCIES = LIBTALLOC LIBEVENTS SAMDB
+PRIVATE_DEPENDENCIES = LIBTALLOC LIBEVENTS SAMDB DSDB_MODULE_HELPERS
 SUBSYSTEM = LIBLDB
 # End MODULE ldb_linked_attributes
 


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated

2010-01-07 Thread Andrew Tridgell
The branch, master has been updated
   via  5ccf8ae... s4-samba3samtest: we need to force netbios name as well
   via  dde2b66... s4-samba3sid: fixed error returns when res-count != 1 
and oom
   via  9aed099... s4-samba3samtest: force workgroup so the domain is right
   via  f68c43e... s4-samba3sid: the sambaNextRid attribute is actually the 
previous RID
   via  d6f92db... s4-samba3sam: use samba3sid module
   via  dd61336... s4-dsdb: added a samba3sid module
   via  66f161d... s4-acl: fixed acl.py test to use correct ldif
   via  81c0b01... s4-secdesc: fixed the sec_descriptor.py test
   via  43a815c... s4-samba3samtest: use system credentials for creating 
users
   via  8b8bb15... s4-dsdb: fixed const misuse in acl module
   via  baa8793... s4-dsdb: use dsdb_module_am_system() in acl module
   via  595fad2... s4-dsdb: allow specification of a SID if we are system
   via  f118f54... s4-dsdb: added dsdb_module_am_system()
   via  d22a9e5... s4-dsdb: squash some unknown structure warnings
   via  5d6032e... s4-partition: fixed selection of partitions on exact 
match
   via  59f314d... s4-scripting: we need to use a base search for the NTDS 
GUID
   via  501dd4a... s4:dsdb/repl: convert dreplsrv_op_pull_source_send/recv 
to tevent_req
   via  278d2f7... s4-smbd: setup the default event contexts for other 
process models
   via  5803253... s4-drs: we need to wrap extended operations in 
transactions
   via  2d10f3a... s4-dsdb: poke the RID Manager when completely out of 
RIDs too
   via  a65823e... s4-dsdb: ensure we will in all the attributes for RID Set
   via  308a479... s4-dsdb: added DSDB_FLAG_TOP_MODULE
   via  5f36f03... s4-dsdb: no longer need special invocationID handling 
for standalone servers
   via  a7fffe8... s4-provision: do a self join for all server types
   via  f6cf895... s4-schema: added generic attributeID conversion functions
   via  f7517e6... s4-schema: added 
dsdb_attribute_by_lDAPDisplayName_ldb_val
   via  cd65ce8... s4-schema: make ldb_val to string comparison safer with 
nul termination
   via  ff968e4... s4-idl: regenerate DRS IDL
   via  4c7bf05... s4-idl: added some more wellknown attributeIDs
   via  3352e5d... s4/dsdb_schema: Load msDS-IntId value separately when 
loading from LDB
   via  2523811... Revert s4-schema: Set ATTID in schema cache from 
msDS-IntId
   via  6247a13... s4/schema: Do not assign msDS-IntId value if 
LDB_CONTROL_RELAX_OID is passed
   via  73838b3... s4-libnet: better error messages in libnet_vampire.c
   via  9871f52... s4/dsdb_schema: use msDS-IntId value for attribute 
look-up
   via  a44ae10... s4/dsdb_schema: fetch msDS-IntId value during SCHEMA 
replication
   via  a7b3891... s4/dsdb_schema: GET_UINT32_DS() macro to use supplied 
default value instead of 0
   via  f7756c8... s4-partition: don't ignore errors from other modules
   via  9672a3d... s4-devel: a useful script to setup bin/ and st/ as tmpfs 
filesystems
   via  1f25d0a... s4-provision: re-open sam.ldb after creating the schema
   via  42f0bda... s4-provision: RID 1000 is consumed by the machine account
   via  fdf12a6... s4-ldb: improve error handling in indexing code
   via  c4fa4d1... s4-dsdb: improve error messages in schema and pdc_fsmo 
modules
   via  ac5d426... s4-drs: added some debug messages
   via  dcbba58... s4-event: added s4_event_context_set_default()
   via  f254091... s4-dsdb: added support for DRSUAPI_EXOP_FSMO_RID_ALLOC
   via  b1f97b7... s4-dsdb: added an extended operation for allocating a 
new RID pool
   via  2590b77... s4-repl: implement MSG_DREPL_ALLOCATE_RID
   via  cc7967b... s4-repl: allow for callbacks when a repl operation 
completes
   via  7a40cac... s4-dsdb: the dsdb ldb modules now need messagiing
   via  dc11414... s4-dsdb: send a message to the drepl task when we need 
another RID pool
   via  805ab0e... s4-messaging: added a new msg type MSG_DREPL_ALLOCATE_RID
   via  19e515a... s4-repl: added request for RID allocation in drepl task
   via  8cd2bed... s4-dsdb: added dsdb_find_guid_attr_by_dn()
   via  37340d5... s4-ridalloc: copy with missing rIDNextRid and 
rIDAllocationPool
   via  45550f8... s4-dsdb: added dsdb_module_set_integer()
   via  c12b9ab... s4-dsdb: clarify who is responsible for each attribute
   via  dd8cb3c... s4-dsdb: fixed usage of rIDAllocationPool and 
rIDPreviousAllocationPool
   via  5136438... s4-dsdb: implement refresh of RID Set pool for a local 
RID Manager
   via  53d10d1... s4-provision: don't hard wire the creation of the RID 
Set object
   via  1053ce5... s4-dsdb: implement creation of the RID Set object
   via  439ee5a... s4-dsdb: use dsdb_next_callback()
   via  d0bd6e7... s4-dsdb: added dsdb_next_callback()
   via  e6f14ac... s4-dsdb: added 

Build status as of Fri Jan 8 07:00:04 2010

2010-01-07 Thread build
URL: http://build.samba.org/

--- /home/build/master/cache/broken_results.txt.old 2010-01-07 
00:00:26.0 -0700
+++ /home/build/master/cache/broken_results.txt 2010-01-08 00:00:05.0 
-0700
@@ -1,22 +1,22 @@
-Build status as of Thu Jan  7 07:00:03 2010
+Build status as of Fri Jan  8 07:00:04 2010
 
 Build counts:
 Tree Total  Broken Panic 
 build_farm   0  0  0 
 ccache   0  0  0 
 distcc   0  0  0 
-ldb  29 29 0 
+ldb  29 28 0 
 libreplace   0  0  0 
 lorikeet 0  0  0 
 pidl 0  0  0 
 ppp  0  0  0 
-rsync1  0  0 
+rsync0  0  0 
 samba-docs   0  0  0 
 samba-web0  0  0 
-samba_3_current 27 26 0 
+samba_3_current 27 27 2 
 samba_3_master 27 26 5 
-samba_3_next 27 27 2 
-samba_4_0_test 29 26 2 
+samba_3_next 25 25 5 
+samba_4_0_test 29 25 3 
 talloc   28 10 0 
 tdb  26 17 0 
 


[SCM] Samba Shared Repository - branch master updated

2010-01-07 Thread Andrew Tridgell
The branch, master has been updated
   via  8d87c0a... s4-drs: added two more SPNs in addentry
   via  ad11deb... s4-schema: fixes for W2K8-R2 schema
   via  ebec499... s4-schema: added msDS-NcType to schema container
   via  ce21151... s4-schema: fixed attributes of aggregate schema
   via  38909a4... s4-schema: switch to W2K8-R2 schema
   via  d371b0e... s4-schema: added adminDisplayName and adminDescription
   via  c93a182... s4-schema: added some debug for bad attributes
   via  9d296e6... s4-provision: added W2K8-R2 schema as provided by WSPP
  from  5ccf8ae... s4-samba3samtest: we need to force netbios name as well

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit 8d87c0a0c32ca49ae7b68953e4313c7313a68871
Author: Andrew Tridgell tri...@samba.org
Date:   Fri Jan 8 18:03:09 2010 +1100

s4-drs: added two more SPNs in addentry

w2k8r2 wants these after a DCPROMO

Pair-Programmed-With: Andrew Bartlett abart...@samba.org

commit ad11deb9bd825d699e2b6799b40d98c28c95910e
Author: Andrew Tridgell tri...@samba.org
Date:   Fri Jan 8 17:58:26 2010 +1100

s4-schema: fixes for W2K8-R2 schema

The schema from WSPP had a number of typos that prevented it from
working. These changes allow it to work with Samba, and allow w2k8r2
to run DCPROMO against Samba successfully

Pair-Programmed-With: Andrew Bartlett abart...@samba.org

commit ebec49965b70795d610be70fe1bab91ac2c19765
Author: Andrew Tridgell tri...@samba.org
Date:   Fri Jan 8 17:01:32 2010 +1100

s4-schema: added msDS-NcType to schema container

Pair-Programmed-With: Andrew Bartlett abart...@samba.org

commit ce21151d226829a33b2b7f6524f36b7d7f04c50e
Author: Andrew Tridgell tri...@samba.org
Date:   Fri Jan 8 17:00:54 2010 +1100

s4-schema: fixed attributes of aggregate schema

Pair-Programmed-With: Andrew Bartlett abart...@samba.org

commit 38909a4ae5a2dc3b18a797933586d35cc679d667
Author: Andrew Tridgell tri...@samba.org
Date:   Fri Jan 8 17:00:28 2010 +1100

s4-schema: switch to W2K8-R2 schema

Pair-Programmed-With: Andrew Bartlett abart...@samba.org

commit d371b0eabe360f7c184a10282f63a64b0cfc550f
Author: Andrew Tridgell tri...@samba.org
Date:   Fri Jan 8 16:59:27 2010 +1100

s4-schema: added adminDisplayName and adminDescription

These are missing from the WSPP schemas

Pair-Programmed-With: Andrew Bartlett abart...@samba.org

commit c93a182a0d14862d960aee57f9af4baabe518549
Author: Andrew Tridgell tri...@samba.org
Date:   Fri Jan 8 16:57:56 2010 +1100

s4-schema: added some debug for bad attributes

commit 9d296e6776c96401f2285602f939256d9cbe7c48
Author: Andrew Tridgell tri...@samba.org
Date:   Fri Jan 8 16:56:01 2010 +1100

s4-provision: added W2K8-R2 schema as provided by WSPP

---

Summary of changes:
 source4/dsdb/schema/schema_init.c  |8 +
 source4/rpc_server/drsuapi/addentry.c  |   45 +-
 source4/scripting/python/samba/ms_schema.py|2 +
 source4/scripting/python/samba/schema.py   |4 +-
 .../ad-schema/MS-AD_Schema_2K8_R2_Attributes.txt   |16060 
 .../ad-schema/MS-AD_Schema_2K8_R2_Classes.txt  | 3577 +
 source4/setup/aggregate_schema.ldif|2 +
 source4/setup/provision_schema_basedn.ldif |1 +
 8 files changed, 19684 insertions(+), 15 deletions(-)
 create mode 100644 source4/setup/ad-schema/MS-AD_Schema_2K8_R2_Attributes.txt
 create mode 100644 source4/setup/ad-schema/MS-AD_Schema_2K8_R2_Classes.txt


Changeset truncated at 500 lines:

diff --git a/source4/dsdb/schema/schema_init.c 
b/source4/dsdb/schema/schema_init.c
index 99d4106..77b4e2a 100644
--- a/source4/dsdb/schema/schema_init.c
+++ b/source4/dsdb/schema/schema_init.c
@@ -619,10 +619,14 @@ WERROR dsdb_attribute_from_ldb(struct ldb_context *ldb,
 
attr-syntax = dsdb_syntax_for_attribute(attr);
if (!attr-syntax) {
+   DEBUG(0,(__location__ : Unknown schema syntax for %s\n,
+attr-lDAPDisplayName));
return WERR_DS_ATT_SCHEMA_REQ_SYNTAX;
}
 
if (dsdb_schema_setup_ldb_schema_attribute(ldb, attr) != LDB_SUCCESS) {
+   DEBUG(0,(__location__ : Unknown schema syntax for %s\n,
+attr-lDAPDisplayName));
return WERR_DS_ATT_SCHEMA_REQ_SYNTAX;
}
 
@@ -1064,10 +1068,14 @@ WERROR dsdb_attribute_from_drsuapi(struct ldb_context 
*ldb,
 
attr-syntax = dsdb_syntax_for_attribute(attr);
if (!attr-syntax) {
+   DEBUG(0,(__location__ : Unknown schema syntax for %s\n,
+attr-lDAPDisplayName));
return WERR_DS_ATT_SCHEMA_REQ_SYNTAX;
}
 
if (dsdb_schema_setup_ldb_schema_attribute(ldb, attr) !=