[SCM] CTDB repository - branch master updated - ctdb-1.0.76

2009-03-24 Thread Ronnie Sahlberg
The branch, master has been updated
   via  56b7095994d1de95e40a223ed503b5572ea9d1b9 (commit)
   via  cd78765f9400d7abce7929a2dd199f65226e7664 (commit)
   via  e059df6d3cd81c67e5505e8ef2d6d0ef9a287b31 (commit)
   via  1046885cd22b5001e0251de2e536b5f6793459be (commit)
  from  95d22e4cf265d2119f72200ab0ec708f095853df (commit)

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


- Log -
commit 56b7095994d1de95e40a223ed503b5572ea9d1b9
Author: Ronnie Sahlberg 
Date:   Wed Mar 25 14:52:08 2009 +1100

new version 1.0.76

commit cd78765f9400d7abce7929a2dd199f65226e7664
Author: Ronnie Sahlberg 
Date:   Wed Mar 25 14:46:05 2009 +1100

change the ctdb command table to allow us to describe commands which can be 
run independtly of the ctdb daemon.

create a new debugging command xpnn which discovers the pnn of the local 
node and which works even if the local daemon is not running

commit e059df6d3cd81c67e5505e8ef2d6d0ef9a287b31
Author: Ronnie Sahlberg 
Date:   Wed Mar 25 13:46:41 2009 +1100

iupdate the documentation for NATGW to reflect that you can now use
multiple natgw groups in one cluster

commit 1046885cd22b5001e0251de2e536b5f6793459be
Author: Ronnie Sahlberg 
Date:   Wed Mar 25 13:37:57 2009 +1100

update how the NATGW configuration works.

allow the cluster to be partitioned into multiple disjoint natgw subsets

---

Summary of changes:
 config/ctdb.sysconfig|5 +
 config/events.d/11.natgw |   20 +--
 doc/ctdbd.1  |   24 +++-
 doc/ctdbd.1.html |   55 +---
 doc/ctdbd.1.xml  |   40 --
 packaging/RPM/ctdb.spec  |5 +-
 tools/ctdb.c |  330 --
 7 files changed, 354 insertions(+), 125 deletions(-)


Changeset truncated at 500 lines:

diff --git a/config/ctdb.sysconfig b/config/ctdb.sysconfig
index c3b5f16..ef3b0dc 100644
--- a/config/ctdb.sysconfig
+++ b/config/ctdb.sysconfig
@@ -172,11 +172,16 @@
 # and thus no proper routes to the external world it will instead
 # route all packets through the nat-gw node.
 #
+# NATGW_NODES is the list of nodes that belong to this natgw group.
+# You can have multiple natgw groups in one cluster but each node
+# can only belong to one single natgw group.
+#
 # NATGW_PUBLIC_IP=10.0.0.227/24
 # NATGW_PUBLIC_IFACE=eth0
 # NATGW_DEFAULT_GATEWAY=10.0.0.1
 # NATGW_PRIVATE_IFACE=eth1
 # NATGW_PRIVATE_NETWORK=10.1.1.0/24
+# NATGW_NODES=/etc/ctdb/natgw_nodes
 
 # where to log messages
 # the default is /var/log/log.ctdb
diff --git a/config/events.d/11.natgw b/config/events.d/11.natgw
index 254a8c1..2d256ba 100644
--- a/config/events.d/11.natgw
+++ b/config/events.d/11.natgw
@@ -29,16 +29,14 @@ delete_all() {
 case $cmd in 
  recovered)
MYPNN=`ctdb pnn | cut -d: -f2`
+   NATGWMASTER=`ctdb natgwlist | head -1`
+   NATGWIP=`ctdb natgwlist | tail --lines=+2 | head -1 | cut -d: -f3`
 
-   # Find the first connected node
-   FIRST=`ctdb status -Y | grep ":0:$" | head -1`
-   FIRSTNODE=`echo $FIRST | cut -d: -f2`
-   FIRSTIP=`echo $FIRST | cut -d: -f3`
NATGW_PUBLIC_IP_HOST=`echo $NATGW_PUBLIC_IP | sed -e "s/\/.*/\/32/"`
 
delete_all
 
-   if [ "$FIRSTNODE" == "$MYPNN" ]; then
+   if [ "$MYPNN" == "$NATGWMASTER" ]; then
# This is the first node, set it up as the NAT GW
echo 1 >/proc/sys/net/ipv4/ip_forward
iptables -A POSTROUTING -t nat -s $NATGW_PRIVATE_NETWORK -d ! 
$NATGW_PRIVATE_NETWORK -j MASQUERADE
@@ -51,14 +49,12 @@ case $cmd in
# We do this so that the ip address will exist on a
# non-loopback interface so that samba may send it along in the
# KDC requests.
-
-   # Set the scope up as host and make sure we dont respond to ARP
-   # for this ip
-   echo 3 > /proc/sys/net/ipv4/conf/all/arp_ignore
-   ip addr add $NATGW_PUBLIC_IP_HOST dev $NATGW_PRIVATE_IFACE 
scope host
-   
-   ip route add 0.0.0.0/0 via $FIRSTIP metric 10
+   ip addr add $NATGW_PUBLIC_IP_HOST dev $NATGW_PRIVATE_IFACE
+   ip route add 0.0.0.0/0 via $NATGWIP metric 10
fi
+
+   # flush our route cache
+   echo 1 > /proc/sys/net/ipv4/route/flush
;;
 
  shutdown)
diff --git a/doc/ctdbd.1 b/doc/ctdbd.1
index e379128..13e4a6b 100644
--- a/doc/ctdbd.1
+++ b/doc/ctdbd.1
@@ -1,11 +1,11 @@
 .\" Title: ctdbd
 .\"Author: 
 .\" Generator: DocBook XSL Stylesheets v1.73.2 
-.\"  Date: 03/19/2009
+.\"  Date: 03/25/2009
 .\"Manual: 
 .\"Source: 
 .\"
-.TH "CTDBD" "1" "03/19/2009" "" ""
+.TH "CTDBD" "1" "03/25/2009" "" ""
 .\" disable hyphenation
 .nh
 .\" disable justification (adjust text to left margin only)
@@ -42

[SCM] CTDB repository - annotated tag ctdb-1.0.76 created - ctdb-1.0.76

2009-03-24 Thread Ronnie Sahlberg
The annotated tag, ctdb-1.0.76 has been created
at  da0e365ec04ea3224bcecaccb1006d96ded36be7 (tag)
   tagging  56b7095994d1de95e40a223ed503b5572ea9d1b9 (commit)
  replaces  ctdb-1.0.72
 tagged by  Ronnie Sahlberg
on  Wed Mar 25 16:44:44 2009 +1100

- Log -
tag for the 1.0.76 release
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQBJycTd2aJ36aon/y8RAo5yAJ9PGEbFpEFMp7T1cncwq0hVoQnlhgCdF+ti
uvYYFy3B7+M8x+8ofY8Jwhc=
=R7W5
-END PGP SIGNATURE-

Mathieu PARENT (3):
  build: Make log-directory configurable indepently of VARDIR
  smnotify: fix popt.h include to allow use of system lib
  correct ctdbd(1) manpage warning

Michael Adam (13):
  events.d/41.httpd: fix a typo in the fix of the comment typo
  make: add a "showlayout" target for diagnostics
  build: print default in help for --with-logdir
  events 41.httpd: support suse and ubuntu/debian systems for managing 
apache
  Merge commit 'ctdb-ronnie/master'
  Merge commit 'ctdb-ronnie/master'
  move common code of system_linux.c and system_aix.c into new 
system_common.c
  Merge commit 'ctdb-ronnie/master'
  Merge commit 'ctdb-ronnie/master'
  ctdb.sysconfig: add CTDB_INIT_STYLE with explanation
  events.d/50.samba: allow CTDB_SERVICE_{SMB,NMB,WINBIND} to be overriden 
from sysconfig
  ctdb.sysconfig: add CTDB_MANAGES_HTTPD comment section
  Merge commit 'ctdb-ronnie/master'

Ronnie Sahlberg (20):
  From Sumit Bose 
  new version 1.0.73
  From C Cowan, AIX needs to set sockaddr.sa_len to a consistent value for
  new version 1.0.74
  add documentation for the NAT-GW feature
  update the natgw eventscript and documentation
  The wbinfo --sequence command has been depreciated in favor of the new
  add michael adams as one of the ctdb developers on the main ctdb webpage
  we need to set the port properly in the parse_ip helper
  set --single-public-ip when lvs is used
  create a varient of kill_tcp_connections that only kills off the local 
side of a connection
  new version 1.0.75
  Merge branch 'obnox'
  fix the html so that mine and obnox names are shown
  update the documentatio n with all the new commands we supprot in the
  web: fix typo
  update how the NATGW configuration works.
  iupdate the documentation for NATGW to reflect that you can now use
  change the ctdb command table to allow us to describe commands which can 
be run independtly of the ctdb daemon.
  new version 1.0.76

root (10):
  check the static-routes file   if it exists
  collect net conf list in ctdb_diagnostics
  make it possible to disable checking all samba shares.
  Add a variable CTDB_NFS_SKIP_SHARE_CHECK to sysconfig that can disable 
the check that all shares are accessable.
  make sure we can collect proper mmfs data
  NAT-GW updates. Describe the functionality in the sysconfig file
  change the NATGW_ example in sysconfig to make it more realistic
  redo how the natgw is done. just use a default route with a high metric 
instead of fancy policyrouting
  create a helper function that converts a ctdb instance in daemon mode to 
become
  add a new command "ctdb scriptstatus"

---


-- 
CTDB repository


[SCM] Samba Shared Repository - branch v3-4-test updated - release-4-0-0alpha7-573-g7d5996e

2009-03-24 Thread Tim Prouty
The branch, v3-4-test has been updated
   via  7d5996e1d5eca454f651ca49a357d28077446309 (commit)
   via  0f01296bbb08d75ce693a65ea6cb0df80c1b4927 (commit)
  from  17616dddfaa26688387f671c870873056896f6b7 (commit)

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


- Log -
commit 7d5996e1d5eca454f651ca49a357d28077446309
Author: David Kwan 
Date:   Fri Mar 20 16:03:08 2009 +

s3 onefs: Change error status to NT_ACCESS_DENIED for errors in 
SET_SECURITY_DESC
(cherry picked from commit ad98eae02e623a8ca8aa6a1c46d5aedea50e2e4b)

commit 0f01296bbb08d75ce693a65ea6cb0df80c1b4927
Author: Tim Prouty 
Date:   Tue Mar 24 17:05:16 2009 -0700

s3: parse_packet can return NULL which is then dereferenced in 
match_mailslot_name
(cherry picked from commit db5677d071fc58f38cab4ab800111455a8637edb)

---

Summary of changes:
 source3/libsmb/unexpected.c |2 ++
 source3/modules/onefs_acl.c |   10 +-
 2 files changed, 7 insertions(+), 5 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/libsmb/unexpected.c b/source3/libsmb/unexpected.c
index df4d211..d123e24 100644
--- a/source3/libsmb/unexpected.c
+++ b/source3/libsmb/unexpected.c
@@ -162,6 +162,8 @@ static int traverse_match(TDB_CONTEXT *ttdb, TDB_DATA kbuf, 
TDB_DATA dbuf,
state->match_type,
ip,
port);
+   if (!p)
+   return 0;
 
if ((state->match_type == NMB_PACKET &&
 p->packet.nmb.header.name_trn_id == state->match_id) ||
diff --git a/source3/modules/onefs_acl.c b/source3/modules/onefs_acl.c
index 6f23d60..8ee31ab 100644
--- a/source3/modules/onefs_acl.c
+++ b/source3/modules/onefs_acl.c
@@ -825,7 +825,7 @@ NTSTATUS onefs_samba_sd_to_sd(uint32 security_info_sent, 
SEC_DESC *psd,
/* Setup owner */
if (security_info_sent & OWNER_SECURITY_INFORMATION) {
if (!onefs_og_to_identity(psd->owner_sid, &owner, false, snum))
-   return NT_STATUS_UNSUCCESSFUL;
+   return NT_STATUS_ACCESS_DENIED;
 
SMB_ASSERT(owner.id.uid >= 0);
 
@@ -835,7 +835,7 @@ NTSTATUS onefs_samba_sd_to_sd(uint32 security_info_sent, 
SEC_DESC *psd,
/* Setup group */
if (security_info_sent & GROUP_SECURITY_INFORMATION) {
if (!onefs_og_to_identity(psd->group_sid, &group, true, snum))
-   return NT_STATUS_UNSUCCESSFUL;
+   return NT_STATUS_ACCESS_DENIED;
 
SMB_ASSERT(group.id.gid >= 0);
 
@@ -846,7 +846,7 @@ NTSTATUS onefs_samba_sd_to_sd(uint32 security_info_sent, 
SEC_DESC *psd,
if ((security_info_sent & DACL_SECURITY_INFORMATION) && (psd->dacl)) {
if (!onefs_samba_acl_to_acl(psd->dacl, &daclp, &ignore_aces,
snum))
-   return NT_STATUS_UNSUCCESSFUL;
+   return NT_STATUS_ACCESS_DENIED;
 
if (ignore_aces == true)
security_info_sent &= ~DACL_SECURITY_INFORMATION;
@@ -863,7 +863,7 @@ NTSTATUS onefs_samba_sd_to_sd(uint32 security_info_sent, 
SEC_DESC *psd,
if (psd->sacl) {
if (!onefs_samba_acl_to_acl(psd->sacl,
&saclp, &ignore_aces, snum))
-   return NT_STATUS_UNSUCCESSFUL;
+   return NT_STATUS_ACCESS_DENIED;
 
if (ignore_aces == true) {
security_info_sent &=
@@ -877,7 +877,7 @@ NTSTATUS onefs_samba_sd_to_sd(uint32 security_info_sent, 
SEC_DESC *psd,
DEBUG(5,("Setting up SD\n"));
if (aclu_initialize_sd(sd, psd->type, ownerp, groupp,
(daclp ? &daclp : NULL), (saclp ? &saclp : NULL), false))
-   return NT_STATUS_UNSUCCESSFUL;
+   return NT_STATUS_ACCESS_DENIED;
 
return NT_STATUS_OK;
 }


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha7-711-gad98eae

2009-03-24 Thread Tim Prouty
The branch, master has been updated
   via  ad98eae02e623a8ca8aa6a1c46d5aedea50e2e4b (commit)
   via  db5677d071fc58f38cab4ab800111455a8637edb (commit)
  from  c653e8daaf3e842544d7f9561557d1ab9449971c (commit)

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


- Log -
commit ad98eae02e623a8ca8aa6a1c46d5aedea50e2e4b
Author: David Kwan 
Date:   Fri Mar 20 16:03:08 2009 +

s3 onefs: Change error status to NT_ACCESS_DENIED for errors in 
SET_SECURITY_DESC

commit db5677d071fc58f38cab4ab800111455a8637edb
Author: Tim Prouty 
Date:   Tue Mar 24 17:05:16 2009 -0700

s3: parse_packet can return NULL which is then dereferenced in 
match_mailslot_name

---

Summary of changes:
 source3/libsmb/unexpected.c |2 ++
 source3/modules/onefs_acl.c |   10 +-
 2 files changed, 7 insertions(+), 5 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/libsmb/unexpected.c b/source3/libsmb/unexpected.c
index df4d211..d123e24 100644
--- a/source3/libsmb/unexpected.c
+++ b/source3/libsmb/unexpected.c
@@ -162,6 +162,8 @@ static int traverse_match(TDB_CONTEXT *ttdb, TDB_DATA kbuf, 
TDB_DATA dbuf,
state->match_type,
ip,
port);
+   if (!p)
+   return 0;
 
if ((state->match_type == NMB_PACKET &&
 p->packet.nmb.header.name_trn_id == state->match_id) ||
diff --git a/source3/modules/onefs_acl.c b/source3/modules/onefs_acl.c
index 6f23d60..8ee31ab 100644
--- a/source3/modules/onefs_acl.c
+++ b/source3/modules/onefs_acl.c
@@ -825,7 +825,7 @@ NTSTATUS onefs_samba_sd_to_sd(uint32 security_info_sent, 
SEC_DESC *psd,
/* Setup owner */
if (security_info_sent & OWNER_SECURITY_INFORMATION) {
if (!onefs_og_to_identity(psd->owner_sid, &owner, false, snum))
-   return NT_STATUS_UNSUCCESSFUL;
+   return NT_STATUS_ACCESS_DENIED;
 
SMB_ASSERT(owner.id.uid >= 0);
 
@@ -835,7 +835,7 @@ NTSTATUS onefs_samba_sd_to_sd(uint32 security_info_sent, 
SEC_DESC *psd,
/* Setup group */
if (security_info_sent & GROUP_SECURITY_INFORMATION) {
if (!onefs_og_to_identity(psd->group_sid, &group, true, snum))
-   return NT_STATUS_UNSUCCESSFUL;
+   return NT_STATUS_ACCESS_DENIED;
 
SMB_ASSERT(group.id.gid >= 0);
 
@@ -846,7 +846,7 @@ NTSTATUS onefs_samba_sd_to_sd(uint32 security_info_sent, 
SEC_DESC *psd,
if ((security_info_sent & DACL_SECURITY_INFORMATION) && (psd->dacl)) {
if (!onefs_samba_acl_to_acl(psd->dacl, &daclp, &ignore_aces,
snum))
-   return NT_STATUS_UNSUCCESSFUL;
+   return NT_STATUS_ACCESS_DENIED;
 
if (ignore_aces == true)
security_info_sent &= ~DACL_SECURITY_INFORMATION;
@@ -863,7 +863,7 @@ NTSTATUS onefs_samba_sd_to_sd(uint32 security_info_sent, 
SEC_DESC *psd,
if (psd->sacl) {
if (!onefs_samba_acl_to_acl(psd->sacl,
&saclp, &ignore_aces, snum))
-   return NT_STATUS_UNSUCCESSFUL;
+   return NT_STATUS_ACCESS_DENIED;
 
if (ignore_aces == true) {
security_info_sent &=
@@ -877,7 +877,7 @@ NTSTATUS onefs_samba_sd_to_sd(uint32 security_info_sent, 
SEC_DESC *psd,
DEBUG(5,("Setting up SD\n"));
if (aclu_initialize_sd(sd, psd->type, ownerp, groupp,
(daclp ? &daclp : NULL), (saclp ? &saclp : NULL), false))
-   return NT_STATUS_UNSUCCESSFUL;
+   return NT_STATUS_ACCESS_DENIED;
 
return NT_STATUS_OK;
 }


-- 
Samba Shared Repository


Build status as of Wed Mar 25 00:00:02 2009

2009-03-24 Thread build
URL: http://build.samba.org/

--- /home/build/master/cache/broken_results.txt.old 2009-03-24 
00:00:30.0 +
+++ /home/build/master/cache/broken_results.txt 2009-03-25 00:00:44.0 
+
@@ -1,22 +1,22 @@
-Build status as of Tue Mar 24 00:00:02 2009
+Build status as of Wed Mar 25 00:00:02 2009
 
 Build counts:
 Tree Total  Broken Panic 
 build_farm   0  0  0 
-ccache   29 5  0 
+ccache   30 5  0 
 ctdb 0  0  0 
 distcc   0  0  0 
-ldb  29 30 0 
+ldb  30 30 0 
 libreplace   30 12 0 
 lorikeet-heimdal 27 14 0 
 pidl 21 3  0 
 ppp  13 0  0 
 rsync30 10 0 
 samba-docs   0  0  0 
-samba-gtk5  5  0 
-samba_3_X_devel 29 26 0 
+samba-gtk6  6  0 
+samba_3_X_devel 29 28 0 
 samba_3_X_test 28 25 0 
-samba_4_0_test 28 29 1 
+samba_4_0_test 29 29 1 
 smb-build29 6  0 
 talloc   30 30 0 
 tdb  27 9  0 


[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-3519-g4a99f2f

2009-03-24 Thread Jeremy Allison
The branch, v3-2-test has been updated
   via  4a99f2f006e6324cf38b68f0f390daf52f24b1b3 (commit)
  from  525af716cd52500a4e3dccf9eeb9ea85f86be7ca (commit)

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


- Log -
commit 4a99f2f006e6324cf38b68f0f390daf52f24b1b3
Author: Volker Lendecke 
Date:   Tue Mar 24 15:34:13 2009 -0700

winbind_pam: fix gcc 4.4 compile warning

---

Summary of changes:
 source/winbindd/winbindd_pam.c |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/winbindd/winbindd_pam.c b/source/winbindd/winbindd_pam.c
index f376d16..fea1075 100644
--- a/source/winbindd/winbindd_pam.c
+++ b/source/winbindd/winbindd_pam.c
@@ -1832,7 +1832,7 @@ enum winbindd_result winbindd_dual_pam_auth_crap(struct 
winbindd_domain *domain,
 
if (state->request.data.auth_crap.lm_resp_len > 
sizeof(state->request.data.auth_crap.lm_resp)
|| state->request.data.auth_crap.nt_resp_len > 
sizeof(state->request.data.auth_crap.nt_resp)) {
-   if (!state->request.flags & WBFLAG_BIG_NTLMV2_BLOB ||
+   if (!(state->request.flags & WBFLAG_BIG_NTLMV2_BLOB) ||
 state->request.extra_len != 
state->request.data.auth_crap.nt_resp_len) {
DEBUG(0, ("winbindd_pam_auth_crap: invalid password 
length %u/%u\n",
  state->request.data.auth_crap.lm_resp_len,


-- 
Samba Shared Repository


Re: [SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha7-709-gc653e8d

2009-03-24 Thread Jeremy Allison
On Tue, Mar 24, 2009 at 04:00:56PM -0500, Volker Lendecke wrote:
> The branch, master has been updated
>via  c653e8daaf3e842544d7f9561557d1ab9449971c (commit)
>   from  2bc9ffa9fb5c69416b00f46a59b59e0f523634d1 (commit)
> 
> http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master
> 
> 
> - Log -
> commit c653e8daaf3e842544d7f9561557d1ab9449971c
> Author: Volker Lendecke 
> Date:   Tue Mar 24 21:57:01 2009 +0100
> 
> Fix two memleaks in the encryption code
> 
> ntlmssp_seal_packet creates its own signature data blob, which we then
> have to free.
> 
> Jeremy, please check and merge appropriately (Yes, I'm asking you to do 
> the
> janitor work, I want you to *look* at this :-))

Pushed appropriately - thanks !

Jeremy.


[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-3518-g525af71

2009-03-24 Thread Jeremy Allison
The branch, v3-2-test has been updated
   via  525af716cd52500a4e3dccf9eeb9ea85f86be7ca (commit)
  from  e217138a36b1ba1eff164aecfa52ba6fe8864747 (commit)

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


- Log -
commit 525af716cd52500a4e3dccf9eeb9ea85f86be7ca
Author: Volker Lendecke 
Date:   Tue Mar 24 15:29:35 2009 -0700

Fix two memleaks in the encryption code

ntlmssp_seal_packet creates its own signature data blob, which we then
have to free.

Jeremy, please check and merge appropriately (Yes, I'm asking you to do the
janitor work, I want you to *look* at this :-))

Volker

---

Summary of changes:
 source/libsmb/smb_seal.c |3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/libsmb/smb_seal.c b/source/libsmb/smb_seal.c
index 795c8bc..2f7305c 100644
--- a/source/libsmb/smb_seal.c
+++ b/source/libsmb/smb_seal.c
@@ -136,7 +136,7 @@ NTSTATUS common_ntlm_encrypt_buffer(NTLMSSP_STATE 
*ntlmssp_state,
 
smb_set_enclen(buf_out, smb_len(buf) + NTLMSSP_SIG_SIZE, enc_ctx_num);
 
-   sig = data_blob(NULL, NTLMSSP_SIG_SIZE);
+   ZERO_STRUCT(sig);
 
status = ntlmssp_seal_packet(ntlmssp_state,
(unsigned char *)buf_out + 8 + NTLMSSP_SIG_SIZE, /* 4 byte len 
+ 0xFF 'S'   */
@@ -153,6 +153,7 @@ NTSTATUS common_ntlm_encrypt_buffer(NTLMSSP_STATE 
*ntlmssp_state,
 
/* First 16 data bytes are signature for SSPI compatibility. */
memcpy(buf_out + 8, sig.data, NTLMSSP_SIG_SIZE);
+   data_blob_free(&sig);
*ppbuf_out = buf_out;
return NT_STATUS_OK;
 }


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-5166-g4d0cfb4

2009-03-24 Thread Jeremy Allison
The branch, v3-3-test has been updated
   via  4d0cfb46e449e85646e05df2c4efe7dffa670edd (commit)
  from  97cdf68a42bd9d5ec312151bcca9830228caeee1 (commit)

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


- Log -
commit 4d0cfb46e449e85646e05df2c4efe7dffa670edd
Author: Volker Lendecke 
Date:   Tue Mar 24 15:25:56 2009 -0700

Fix two memleaks in the encryption code

ntlmssp_seal_packet creates its own signature data blob, which we then
have to free.

Jeremy, please check and merge appropriately (Yes, I'm asking you to do the
janitor work, I want you to *look* at this :-))

Volker

---

Summary of changes:
 source/libsmb/smb_seal.c |3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/libsmb/smb_seal.c b/source/libsmb/smb_seal.c
index 795c8bc..2f7305c 100644
--- a/source/libsmb/smb_seal.c
+++ b/source/libsmb/smb_seal.c
@@ -136,7 +136,7 @@ NTSTATUS common_ntlm_encrypt_buffer(NTLMSSP_STATE 
*ntlmssp_state,
 
smb_set_enclen(buf_out, smb_len(buf) + NTLMSSP_SIG_SIZE, enc_ctx_num);
 
-   sig = data_blob(NULL, NTLMSSP_SIG_SIZE);
+   ZERO_STRUCT(sig);
 
status = ntlmssp_seal_packet(ntlmssp_state,
(unsigned char *)buf_out + 8 + NTLMSSP_SIG_SIZE, /* 4 byte len 
+ 0xFF 'S'   */
@@ -153,6 +153,7 @@ NTSTATUS common_ntlm_encrypt_buffer(NTLMSSP_STATE 
*ntlmssp_state,
 
/* First 16 data bytes are signature for SSPI compatibility. */
memcpy(buf_out + 8, sig.data, NTLMSSP_SIG_SIZE);
+   data_blob_free(&sig);
*ppbuf_out = buf_out;
return NT_STATUS_OK;
 }


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-4-test updated - release-4-0-0alpha7-571-g17616dd

2009-03-24 Thread Jeremy Allison
The branch, v3-4-test has been updated
   via  17616dddfaa26688387f671c870873056896f6b7 (commit)
  from  e4f3d75432dbe372e164962a993b6e882fe44e83 (commit)

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


- Log -
commit 17616dddfaa26688387f671c870873056896f6b7
Author: Volker Lendecke 
Date:   Tue Mar 24 21:57:01 2009 +0100

Fix two memleaks in the encryption code

ntlmssp_seal_packet creates its own signature data blob, which we then
have to free.

Jeremy, please check and merge appropriately (Yes, I'm asking you to do the
janitor work, I want you to *look* at this :-))

Volker

---

Summary of changes:
 source3/libsmb/smb_seal.c |3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/libsmb/smb_seal.c b/source3/libsmb/smb_seal.c
index 795c8bc..2f7305c 100644
--- a/source3/libsmb/smb_seal.c
+++ b/source3/libsmb/smb_seal.c
@@ -136,7 +136,7 @@ NTSTATUS common_ntlm_encrypt_buffer(NTLMSSP_STATE 
*ntlmssp_state,
 
smb_set_enclen(buf_out, smb_len(buf) + NTLMSSP_SIG_SIZE, enc_ctx_num);
 
-   sig = data_blob(NULL, NTLMSSP_SIG_SIZE);
+   ZERO_STRUCT(sig);
 
status = ntlmssp_seal_packet(ntlmssp_state,
(unsigned char *)buf_out + 8 + NTLMSSP_SIG_SIZE, /* 4 byte len 
+ 0xFF 'S'   */
@@ -153,6 +153,7 @@ NTSTATUS common_ntlm_encrypt_buffer(NTLMSSP_STATE 
*ntlmssp_state,
 
/* First 16 data bytes are signature for SSPI compatibility. */
memcpy(buf_out + 8, sig.data, NTLMSSP_SIG_SIZE);
+   data_blob_free(&sig);
*ppbuf_out = buf_out;
return NT_STATUS_OK;
 }


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha7-709-gc653e8d

2009-03-24 Thread Volker Lendecke
The branch, master has been updated
   via  c653e8daaf3e842544d7f9561557d1ab9449971c (commit)
  from  2bc9ffa9fb5c69416b00f46a59b59e0f523634d1 (commit)

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


- Log -
commit c653e8daaf3e842544d7f9561557d1ab9449971c
Author: Volker Lendecke 
Date:   Tue Mar 24 21:57:01 2009 +0100

Fix two memleaks in the encryption code

ntlmssp_seal_packet creates its own signature data blob, which we then
have to free.

Jeremy, please check and merge appropriately (Yes, I'm asking you to do the
janitor work, I want you to *look* at this :-))

Volker

---

Summary of changes:
 source3/libsmb/smb_seal.c |3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/libsmb/smb_seal.c b/source3/libsmb/smb_seal.c
index 795c8bc..2f7305c 100644
--- a/source3/libsmb/smb_seal.c
+++ b/source3/libsmb/smb_seal.c
@@ -136,7 +136,7 @@ NTSTATUS common_ntlm_encrypt_buffer(NTLMSSP_STATE 
*ntlmssp_state,
 
smb_set_enclen(buf_out, smb_len(buf) + NTLMSSP_SIG_SIZE, enc_ctx_num);
 
-   sig = data_blob(NULL, NTLMSSP_SIG_SIZE);
+   ZERO_STRUCT(sig);
 
status = ntlmssp_seal_packet(ntlmssp_state,
(unsigned char *)buf_out + 8 + NTLMSSP_SIG_SIZE, /* 4 byte len 
+ 0xFF 'S'   */
@@ -153,6 +153,7 @@ NTSTATUS common_ntlm_encrypt_buffer(NTLMSSP_STATE 
*ntlmssp_state,
 
/* First 16 data bytes are signature for SSPI compatibility. */
memcpy(buf_out + 8, sig.data, NTLMSSP_SIG_SIZE);
+   data_blob_free(&sig);
*ppbuf_out = buf_out;
return NT_STATUS_OK;
 }


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-5165-g97cdf68

2009-03-24 Thread Jeremy Allison
The branch, v3-3-test has been updated
   via  97cdf68a42bd9d5ec312151bcca9830228caeee1 (commit)
  from  c38c80fcd3f63e60450fd95c27d842082e8e00fd (commit)

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


- Log -
commit 97cdf68a42bd9d5ec312151bcca9830228caeee1
Author: Stefan Metzmacher 
Date:   Tue Mar 24 12:36:10 2009 -0700

s3:smbd: if we allow trans2 on the IPC$ share, then we have to allow 
transs2 too.

Otherwise we'll confuse the client signing engine, when we reply an error 
to each transs2.

metze

---

Summary of changes:
 source/smbd/process.c |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/smbd/process.c b/source/smbd/process.c
index aeb0fc4..365c972 100644
--- a/source/smbd/process.c
+++ b/source/smbd/process.c
@@ -1039,7 +1039,7 @@ static const struct smb_message_struct {
 /* 0x30 */ { NULL, NULL, 0 },
 /* 0x31 */ { NULL, NULL, 0 },
 /* 0x32 */ { "SMBtrans2",reply_trans2, AS_USER | CAN_IPC },
-/* 0x33 */ { "SMBtranss2",reply_transs2, AS_USER},
+/* 0x33 */ { "SMBtranss2",reply_transs2, AS_USER | CAN_IPC},
 /* 0x34 */ { "SMBfindclose",reply_findclose,AS_USER},
 /* 0x35 */ { "SMBfindnclose",reply_findnclose,AS_USER},
 /* 0x36 */ { NULL, NULL, 0 },


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-3517-ge217138

2009-03-24 Thread Jeremy Allison
The branch, v3-2-test has been updated
   via  e217138a36b1ba1eff164aecfa52ba6fe8864747 (commit)
  from  bb76066e8797599e5ca75821a686e32dd0c97a74 (commit)

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


- Log -
commit e217138a36b1ba1eff164aecfa52ba6fe8864747
Author: Stefan Metzmacher 
Date:   Tue Mar 24 11:50:49 2009 -0700

s3:smbd: if we allow trans2 on the IPC$ share, then we have to allow 
transs2 too.

Otherwise we'll confuse the client signing engine, when we reply an error 
to each transs2.

metze

---

Summary of changes:
 source/smbd/process.c |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/smbd/process.c b/source/smbd/process.c
index 82d5cc9..ad01a52 100644
--- a/source/smbd/process.c
+++ b/source/smbd/process.c
@@ -1033,7 +1033,7 @@ static const struct smb_message_struct {
 /* 0x30 */ { NULL, NULL, 0 },
 /* 0x31 */ { NULL, NULL, 0 },
 /* 0x32 */ { "SMBtrans2",reply_trans2, AS_USER | CAN_IPC },
-/* 0x33 */ { "SMBtranss2",reply_transs2, AS_USER},
+/* 0x33 */ { "SMBtranss2",reply_transs2, AS_USER | CAN_IPC},
 /* 0x34 */ { "SMBfindclose",reply_findclose,AS_USER},
 /* 0x35 */ { "SMBfindnclose",reply_findnclose,AS_USER},
 /* 0x36 */ { NULL, NULL, 0 },


-- 
Samba Shared Repository


[SCM] SAMBA-CTDB repository - branch v3-2-ctdb updated - build_3.2.8_ctdb.56-36-gdd23148

2009-03-24 Thread Michael Adam
The branch, v3-2-ctdb has been updated
   via  dd23148118fb058b65748cc5fda47474aa8515eb (commit)
   via  448443fb31dcb1c830dcb1e66187ed6d0970369c (commit)
   via  aeabd7ba7294807d608f1e2fa30cdf33844b0248 (commit)
   via  ec05e2079ad9405507aaa4e51a3f895a2b5f3b09 (commit)
   via  cbd8c505084bf74b7a2b5869680cfc521dc208b4 (commit)
   via  3428fa22e1d111f7372b488bf362d454e83b3cd7 (commit)
   via  8ff0e4cf26961cfd7ebe87c7729f70694dc9ad95 (commit)
   via  4e27f5fd46c16e7dfcf8a9b66ed86099e2836521 (commit)
   via  fc435e8b4b75b1d750c703f0fbbd44b1fba6873b (commit)
   via  4f24bc02c45bfda9352e14fa6605242c18c3e7b6 (commit)
   via  be0a09ea769e8132678e73d35ffdc029236e01de (commit)
   via  28bbb327d808eb6f8299fbfa44c03c3c3360bfa6 (commit)
   via  7368d3b07d5aad57a2bdadc87bb9c02700481303 (commit)
   via  2cde6d78de3cd7e01415533d9ecfde96f0e1bbfb (commit)
   via  b37bf89aadc4393ca804fa4fe4c4a1f6fe958d9f (commit)
   via  20e95a8dca1a7ebc8a4d649b6cdfc69e6bdd4277 (commit)
   via  b84d487e3d0277a994f4016168ec16034873e729 (commit)
   via  95dfe11d0f0ec5f9c08e8779d40341dbac58d921 (commit)
   via  e70a5f4d05327ef83f3907fff6bbb0a6f7ec0d34 (commit)
   via  ba768f67f3884b60f5229d34a4af93b01e8deac3 (commit)
   via  a5a5b5b052567e79233e2fdf279cf0ac06e7b7aa (commit)
   via  9a03b64f81fc9c4d21b3a1bf6d52128ae9d91c7a (commit)
   via  8e462c99ca80a8f68db1f8040fab3b55b1578f6d (commit)
   via  1250dba2b2aafa5109f4a658b7fcf34fe3ed99c7 (commit)
   via  ad792a49ee3bfc2101d8e9d986ae5c2f048c9b79 (commit)
   via  19037498aa60b3b0f7a17674b3db3f9e7cc26c42 (commit)
   via  4079839e50ec845a6ce193d528306f3407445df3 (commit)
   via  c9458a4022b6bb6506694fb184e287da88fc92c3 (commit)
   via  04e05e884c4e67d45cbee75803819610fbd08fbd (commit)
   via  eba73c8d91144193ec288b7fe8f9e5214dc8d383 (commit)
   via  bd34ea450f02f3e96385d0e6bc9718ab91c78e29 (commit)
   via  57290aede977914a5c2171c1560e95676f90b672 (commit)
   via  e860df584b462f306ca75bcb9bb289946b8cae87 (commit)
  from  1ebd6ce818f70d8108319231d67d6e4de54d2855 (commit)

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


- Log -
commit dd23148118fb058b65748cc5fda47474aa8515eb
Author: Jeremy Allison 
Date:   Wed Feb 25 14:55:19 2009 -0800

Fix more POSIX path lstat calls. Fix bug where close can return
failure if we have a pending modtime and the containing directory
of the file has been renamed (there is no POSIX "update time by
fd" call). This can't happen on Windows as the rename will fail
if there are open files beneath it. Will add a torture test
for this.
Jeremy.
(cherry picked from commit 5fb3b5e903c08013074ba473399ddee30f6c328f)

Signed-off-by: Michael Adam 

commit 448443fb31dcb1c830dcb1e66187ed6d0970369c
Author: Jeremy Allison 
Date:   Wed Feb 25 13:48:30 2009 -0800

Fix use of streams modules with CIFSFS client.
Jeremy.
(cherry picked from commit 161dc96c1147f637b5ef78bb3f543f6d5e0618c6)

Signed-off-by: Michael Adam 

commit aeabd7ba7294807d608f1e2fa30cdf33844b0248
Author: Jeremy Allison 
Date:   Tue Feb 24 17:59:19 2009 -0800

Allow set attributes on a stream fnum to be redirected to the base filename.
Fixes the new RAW-STREAMS torture test.
Jeremy.
(cherry picked from commit 73d0c3143eedb5a9fd4d154aaf42d20ba6a19a1f)

Signed-off-by: Michael Adam 

commit ec05e2079ad9405507aaa4e51a3f895a2b5f3b09
Author: Steve French 
Date:   Tue Feb 24 17:10:19 2009 -0600

Fix guest mounts
 guest session setup, login (user id) as anonymous.
This patch is for samba bugzilla bug 4640.

Signed-off-by: Shirish Pargaonkar 
Acked-by: Jeff Layton 
Signed-off-by: Steve French 
(cherry picked from commit 5e6b019d70fef2ad082fc414053c131294bdeb49)

Signed-off-by: Michael Adam 

commit cbd8c505084bf74b7a2b5869680cfc521dc208b4
Author: Steve French 
Date:   Tue Feb 24 12:52:08 2009 -0600

cifs mount fix for handling -V parameter

also syncs with 3-3 mount.cifs

Acked-by: Jeff Layton 
Signed-off-by: Steve French 
(cherry picked from commit e831cd78ee3cf89abee058a475540955fad423ce)

Signed-off-by: Michael Adam 

commit 3428fa22e1d111f7372b488bf362d454e83b3cd7
Author: Björn Jacke 
Date:   Sun Feb 22 19:46:40 2009 +0100

prefer gssapi header files from subdirectory

this fixes some compile time noise on FreeBSD 7
(cherry picked from commit 1bfdbb093f7c5e434ea3e653d389e1ccec578af6)
(cherry picked from commit de96e1a82d6e92c00a0ab3020db8d7c0284aadb1)

Signed-off-by: Michael Adam 

commit 8ff0e4cf26961cfd7ebe87c7729f70694dc9ad95
Author: Björn Jacke 
Date:   Sun Feb 22 00:43:38 2009 +0100

all BSDs use this evironment variable

Signed-off-by: Stefan Metzmacher 
(cherry picked from comm

[SCM] SAMBA-CTDB repository - branch v3-2-ctdb updated - build_3.2.8_ctdb.56-3-g1ebd6ce

2009-03-24 Thread Michael Adam
The branch, v3-2-ctdb has been updated
   via  1ebd6ce818f70d8108319231d67d6e4de54d2855 (commit)
  from  06c9926c50941bbbc0fd0b96fdadded3cbed0769 (commit)

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


- Log -
commit 1ebd6ce818f70d8108319231d67d6e4de54d2855
Author: Michael Adam 
Date:   Tue Mar 24 16:19:01 2009 +0100

v3-2-ctdb: bump version number to 3.2.8_ctdb.57

Michael

---

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


Changeset truncated at 500 lines:

diff --git a/source/VERSION b/source/VERSION
index 8189440..ecacdba 100644
--- a/source/VERSION
+++ b/source/VERSION
@@ -96,4 +96,4 @@ SAMBA_VERSION_IS_GIT_SNAPSHOT=
 #  ->  "CVS 3.0.0rc2-VendorVersion"#
 
 SAMBA_VERSION_VENDOR_SUFFIX="ctdb"
-SAMBA_VERSION_VENDOR_PATCH=56
+SAMBA_VERSION_VENDOR_PATCH=57


-- 
SAMBA-CTDB repository


[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha7-708-g2bc9ffa

2009-03-24 Thread Günther Deschner
The branch, master has been updated
   via  2bc9ffa9fb5c69416b00f46a59b59e0f523634d1 (commit)
  from  2ff2ceffd256b7709d8ee807517f856cfdad5d9e (commit)

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


- Log -
commit 2bc9ffa9fb5c69416b00f46a59b59e0f523634d1
Author: Günther Deschner 
Date:   Tue Mar 24 16:07:46 2009 +0100

s4-install: add new location of generated dcerpc headers to headermap file.

Guenther

---

Summary of changes:
 source4/headermap.txt |2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/headermap.txt b/source4/headermap.txt
index 280d60b..1c86f9e 100644
--- a/source4/headermap.txt
+++ b/source4/headermap.txt
@@ -86,6 +86,8 @@ librpc/gen_ndr/nbt.h: gen_ndr/nbt.h
 librpc/gen_ndr/svcctl.h: gen_ndr/svcctl.h
 librpc/gen_ndr/ndr_svcctl.h: gen_ndr/ndr_svcctl.h
 librpc/gen_ndr/ndr_svcctl_c.h: gen_ndr/ndr_svcctl_c.h
+../librpc/gen_ndr/dcerpc.h: gen_ndr/dcerpc.h
+../librpc/gen_ndr/ndr_dcerpc.h: gen_ndr/ndr_dcerpc.h
 ../librpc/gen_ndr/netlogon.h: gen_ndr/netlogon.h
 ../librpc/gen_ndr/ndr_misc.h: gen_ndr/ndr_misc.h
 ../librpc/gen_ndr/mgmt.h: gen_ndr/mgmt.h


-- 
Samba Shared Repository


[SCM] SAMBA-CTDB repository - annotated tag build_3.2.8_ctdb.56 created - build_3.2.8_ctdb.56

2009-03-24 Thread Michael Adam
The annotated tag, build_3.2.8_ctdb.56 has been created
at  ced343df2c17e1c217c60ff492c542ae987f5d18 (tag)
   tagging  352fca67a831e061ed3c126d7513611aa4c1fcf3 (commit)
  replaces  build_3.2.7_ctdb.54
 tagged by  Michael Adam
on  Tue Mar 24 16:03:39 2009 +0100

- Log -
tag build_3.2.8_ctdb.56

Michael
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (GNU/Linux)

iEYEABECAAYFAknI9lwACgkQyU9JOBhPkDRBOgCfSnG0XEYzFAQZMab5aRL6T2+t
reAAmwSV/hAZtiu5jhnYL5MrobBDkFVP
=6uCf
-END PGP SIGNATURE-

Andreas Schneider (4):
  Fix a segfault if ? is there but the options are NULL. This is the case 
if SMBC_parse_path is called by SMBC_stat_ctx.
  Avoid flooding of syslog with failing pam_putenv messages.
  Document default of the printing config variable.
  Use talloc_tos() instead of the talloc NULL context.

Andrew Tridgell (1):
  keep compatibility with v3-0-ctdb name for fileid:mapping option

Aravind Srinivasan (1):
  Have nmbd check all available interfaces for WINS before failing

Björn Jacke (8):
  give configure check "sub-second timestamps without struct timespec" a 
chance to succeed
  rather cosmetic fix for failed birthtime configure checks
  add configure check for AIX style sub-second resolution support
  add missing semicolons
  add configure check for Tru64 sub-second timestamp resolution
  add Tru64 sub-second resolution timestamp support
  fix build with external dns_sd libraries
  enable IPv6 support for NetBSD, FreeBSD

Bo Yang (2):
  Don't send message to any other child in child process.
  Fix bug in get_dc_name_via_netlogon(), null pointer refrence.

Derrell Lipman (3):
  Treat file names in POSIX-like case-sensitive fashion by default
  [Bug 6022] smbc_urlencode and smbc_urldecode were not exported
  Determine case sensitivity based on file system attributes.

Günter Kukkukk (1):
  Don't try and delete a default ACL from a file.

Günther Deschner (6):
  s3-eventlog: fix buffer allocation in eventlog read call.
  s3-eventlog: fix various invalid memcpy in read_package_entry().
  s3-docs: fix typo in eventlogadm manpage.
  s3-net: remove unused ENUM_HND.
  s3-spoolss: fix memleak in get_remote_printer_publishing_data().
  errors: add WERR_NOT_FOUND.

Jeff Layton (1):
  mount.cifs: initialize rc to 0 in main

Jelmer Vernooij (4):
  Make the make output a bit less chatty.
  Add test target in Makefile.
  Use double colon targets.
  Depend on latexfigures files directly as using a rule in between causes 
problems.

Jeremy Allison (15):
  Merge branch 'v3-2-test' of ssh://j...@git.samba.org/data/git/samba into 
v3-2-test
  Fix bug #6019 File corruption in Clustered SMB/NFS environment managed 
via CTDB
  From boyang - ensure we never "return" from a forked child, always 
_exit().
  Fix bug #6035 - Possible race between fcntl F_SETLKW and alarm delivery.
  Fix bug #6040 - Calling Samba print server with an aliased DNS-name fails.
  Allow reinit_after_fork to be called safely from within swat and other 
binaries that don't have
  Fix bug #6040 -  Missing  header in Status page.
  "First thing, kill all the language lawyers" :-). Ensure possible insane 
compilers
  Merge branch 'v3-2-test' of ssh://j...@git.samba.org/data/git/samba into 
v3-2-test
  Another attempt to fix bug #4308 - Excel save operation corrupts file 
ACLs.
  Second part of the attemt to fix #4308 - Excel save operation corrupts 
file ACLs.
  Fix logic error in try_chown - we shouldn't arbitrarily chown
  Apply same logic fix for #4308 Excel save operation corrupts file ACLs
  Fix detection of dns_sd libraries.
  Following Björn JACKE's patch, unify the detection of the timespec code 
in configure.in, and the application of it in time.c

Karolin Seeger (12):
  S3-HowTo: Change 'winbindd -B' to 'winbindd -D'.
  S3-ByExample: Use 'winbindd -D' instead of 'winbindd -B'.
  build_docs: Use 'make distclean' instead of 'make clean'.
  docs: Fix formatting issue in man libsmbclient.
  docs: Add manpage for vfs_shadow_copy2.
  WHATSNEW: Prepare WHATSNEW for 3.2.8.
  VERSION: Raise version number up to 3.2.8.
  WHATSNEW: Update changes since 3.2.7.
  WHATSNEW: Update changes since 3.2.7.
  docs: Describe "service" in man mount.cifs.
  WHATSNEW: Update changes since 3.2.7.
  WHATSNEW: Update changes since 3.2.7.

Lars Müller (2):
  Conditional install of the cifs.upcall man page
  Adjust regex to match variable names including underscores

Michael Adam (102):
  packaging(RHEL-CTDB): Bump release number to ctdb.55 for the next RPM 
build.
  Remove proto.h that got accidentially committet to v3-2-test
  Merge commit 'origin/v3-2-test' into v3-2-ctdb
  s3:docs: fix distclean target and add realdistclean target

[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha7-707-g2ff2cef

2009-03-24 Thread Kai Blin
The branch, master has been updated
   via  2ff2ceffd256b7709d8ee807517f856cfdad5d9e (commit)
  from  5f753e22f1f536e0e227db0f453809ad6cfacaf6 (commit)

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


- Log -
commit 2ff2ceffd256b7709d8ee807517f856cfdad5d9e
Author: Kai Blin 
Date:   Tue Mar 24 14:59:11 2009 +0100

wbclient: Fix use of wb_int_trans_send, queue parameter must not be NULL

---

Summary of changes:
 source3/lib/wbclient.c |   12 ++--
 1 files changed, 6 insertions(+), 6 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/lib/wbclient.c b/source3/lib/wbclient.c
index 3cf992c..c22e168 100644
--- a/source3/lib/wbclient.c
+++ b/source3/lib/wbclient.c
@@ -449,8 +449,8 @@ static void wb_open_pipe_connect_nonpriv_done(struct 
tevent_req *subreq)
ZERO_STRUCT(state->wb_req);
state->wb_req.cmd = WINBINDD_INTERFACE_VERSION;
 
-   subreq = wb_int_trans_send(state, state->ev, NULL, state->wb_ctx->fd,
-  &state->wb_req);
+   subreq = wb_int_trans_send(state, state->ev, state->wb_ctx->queue,
+  state->wb_ctx->fd, &state->wb_req);
if (tevent_req_nomem(subreq, req)) {
return;
}
@@ -480,8 +480,8 @@ static void wb_open_pipe_ping_done(struct tevent_req 
*subreq)
 
state->wb_req.cmd = WINBINDD_PRIV_PIPE_DIR;
 
-   subreq = wb_int_trans_send(state, state->ev, NULL, state->wb_ctx->fd,
-  &state->wb_req);
+   subreq = wb_int_trans_send(state, state->ev, state->wb_ctx->queue,
+  state->wb_ctx->fd, &state->wb_req);
if (tevent_req_nomem(subreq, req)) {
return;
}
@@ -673,8 +673,8 @@ static void wb_trans_connect_done(struct tevent_req *subreq)
return;
}
 
-   subreq = wb_int_trans_send(state, state->ev, NULL, state->wb_ctx->fd,
-  state->wb_req);
+   subreq = wb_int_trans_send(state, state->ev, state->wb_ctx->queue,
+  state->wb_ctx->fd, state->wb_req);
if (tevent_req_nomem(subreq, req)) {
return;
}


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha7-706-g5f753e2

2009-03-24 Thread Volker Lendecke
The branch, master has been updated
   via  5f753e22f1f536e0e227db0f453809ad6cfacaf6 (commit)
   via  fa6283683981c61406967ede7ad48910b602f5a4 (commit)
   via  8e0d9d002a4b0266c9d910bf7ce9c0510c89b09f (commit)
   via  22badee4bf7d75a4337a3826847070ebd7464ce8 (commit)
   via  1724f2ff316d20dd7e67fed59f467d4a3e187114 (commit)
   via  f88990ec7ec92f0b8371419bfdf777d1d624abf9 (commit)
   via  545ed5b52e41f495a48370ba4218834337b85dd2 (commit)
   via  7a429fb369f608c0aaad20a89baf86aebf615440 (commit)
   via  7573bb758e843912335af7ee3a60b21a31b5118e (commit)
   via  1dd08834586484f0a463ba9378e03f742871d517 (commit)
   via  6a2e71b12dbfed195859f0fc521ec5a5c145e1f5 (commit)
  from  f91565544f96be60cb6464d739008f8241e55d5c (commit)

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


- Log -
commit 5f753e22f1f536e0e227db0f453809ad6cfacaf6
Author: Volker Lendecke 
Date:   Mon Mar 23 23:38:04 2009 +0100

Convert rpc_pipe_bind to tevent_req

commit fa6283683981c61406967ede7ad48910b602f5a4
Author: Volker Lendecke 
Date:   Mon Mar 23 23:30:18 2009 +0100

Convert rpc_cli_transport->trans to tevent_req

commit 8e0d9d002a4b0266c9d910bf7ce9c0510c89b09f
Author: Volker Lendecke 
Date:   Mon Mar 23 23:20:03 2009 +0100

Convert rpc_cli_transport->write to tevent_req

commit 22badee4bf7d75a4337a3826847070ebd7464ce8
Author: Volker Lendecke 
Date:   Mon Mar 23 23:03:37 2009 +0100

Convert rpc_cli_transport->read to tevent_req

commit 1724f2ff316d20dd7e67fed59f467d4a3e187114
Author: Volker Lendecke 
Date:   Mon Mar 23 22:49:29 2009 +0100

Convert rpc_api_pipe_req to tevent_req

commit f88990ec7ec92f0b8371419bfdf777d1d624abf9
Author: Volker Lendecke 
Date:   Mon Mar 23 22:33:00 2009 +0100

Convert rpc_api_pipe to tevent_req

commit 545ed5b52e41f495a48370ba4218834337b85dd2
Author: Volker Lendecke 
Date:   Mon Mar 23 22:13:44 2009 +0100

Convert cli_api_pipe to tevent_req

commit 7a429fb369f608c0aaad20a89baf86aebf615440
Author: Volker Lendecke 
Date:   Mon Mar 23 21:57:19 2009 +0100

Convert get_complete_frag to tevent_req

commit 7573bb758e843912335af7ee3a60b21a31b5118e
Author: Volker Lendecke 
Date:   Mon Mar 23 21:49:19 2009 +0100

Convert rpc_write to tevent_req

commit 1dd08834586484f0a463ba9378e03f742871d517
Author: Volker Lendecke 
Date:   Mon Mar 23 21:37:27 2009 +0100

Convert rpc_read to tevent_req

commit 6a2e71b12dbfed195859f0fc521ec5a5c145e1f5
Author: Volker Lendecke 
Date:   Sun Mar 1 22:25:51 2009 +0100

Add tevent_req_simple_recv_ntstatus()

---

Summary of changes:
 lib/util/tevent_ntstatus.c  |   10 +
 lib/util/tevent_ntstatus.h  |1 +
 source3/include/client.h|   32 +-
 source3/include/proto.h |   22 +-
 source3/rpc_client/cli_pipe.c   |  580 +++
 source3/rpc_client/rpc_transport_np.c   |  127 
 source3/rpc_client/rpc_transport_smbd.c |   93 +++---
 source3/rpc_client/rpc_transport_sock.c |   82 +++---
 8 files changed, 465 insertions(+), 482 deletions(-)


Changeset truncated at 500 lines:

diff --git a/lib/util/tevent_ntstatus.c b/lib/util/tevent_ntstatus.c
index 1a34e9c..4e43399 100644
--- a/lib/util/tevent_ntstatus.c
+++ b/lib/util/tevent_ntstatus.c
@@ -49,3 +49,13 @@ bool tevent_req_is_nterror(struct tevent_req *req, NTSTATUS 
*status)
}
return true;
 }
+
+NTSTATUS tevent_req_simple_recv_ntstatus(struct tevent_req *req)
+{
+   NTSTATUS status;
+
+   if (tevent_req_is_nterror(req, &status)) {
+   return status;
+   }
+   return NT_STATUS_OK;
+}
diff --git a/lib/util/tevent_ntstatus.h b/lib/util/tevent_ntstatus.h
index 84c275f..d7194a9 100644
--- a/lib/util/tevent_ntstatus.h
+++ b/lib/util/tevent_ntstatus.h
@@ -28,5 +28,6 @@
 
 bool tevent_req_nterror(struct tevent_req *req, NTSTATUS status);
 bool tevent_req_is_nterror(struct tevent_req *req, NTSTATUS *pstatus);
+NTSTATUS tevent_req_simple_recv_ntstatus(struct tevent_req *req);
 
 #endif
diff --git a/source3/include/client.h b/source3/include/client.h
index db19f34..73a1d7b 100644
--- a/source3/include/client.h
+++ b/source3/include/client.h
@@ -71,26 +71,26 @@ struct rpc_cli_transport {
/**
 * Trigger an async read from the server. May return a short read.
 */
-   struct async_req *(*read_send)(TALLOC_CTX *mem_ctx,
-  struct event_context *ev,
-   uint8_t *data, size_t size,
-  void *priv);
+   struct tevent_req *(*read_send)(TALLOC_CTX *mem_ctx,
+   struct event_context *ev,
+   uint8_t *data, size_t size,
+   void *priv);
/**
 * G

[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha7-695-gf915655

2009-03-24 Thread Volker Lendecke
The branch, master has been updated
   via  f91565544f96be60cb6464d739008f8241e55d5c (commit)
  from  de2a7c8e4caa4898a3ff5cfd85d21cddec8188f2 (commit)

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


- Log -
commit f91565544f96be60cb6464d739008f8241e55d5c
Author: Volker Lendecke 
Date:   Tue Mar 24 11:07:16 2009 +0100

Fix bug 6097

A client sent a SID with authority 0 and 0 sub-authorities. W2k3 replies 
with
NT_STATUS_INVALID_SID, even if other SIDs in the list are valid.

Thanks to Pavel  for the bug report!

---

Summary of changes:
 source3/passdb/lookup_sid.c |2 +-
 source3/rpc_server/srv_lsa_nt.c |4 
 2 files changed, 5 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/passdb/lookup_sid.c b/source3/passdb/lookup_sid.c
index 9c20042..a5c2d50 100644
--- a/source3/passdb/lookup_sid.c
+++ b/source3/passdb/lookup_sid.c
@@ -804,7 +804,7 @@ NTSTATUS lookup_sids(TALLOC_CTX *mem_ctx, int num_sids,
} else {
/* This is a normal SID with rid component */
if (!sid_split_rid(&sid, &rid)) {
-   result = NT_STATUS_INVALID_PARAMETER;
+   result = NT_STATUS_INVALID_SID;
goto fail;
}
}
diff --git a/source3/rpc_server/srv_lsa_nt.c b/source3/rpc_server/srv_lsa_nt.c
index ed54c3a..5fdcaf2 100644
--- a/source3/rpc_server/srv_lsa_nt.c
+++ b/source3/rpc_server/srv_lsa_nt.c
@@ -827,6 +827,10 @@ NTSTATUS _lsa_LookupSids(pipes_struct *p,
   &names,
   &mapped_count);
 
+   if (NT_STATUS_IS_ERR(status)) {
+   return status;
+   }
+
/* Convert from lsa_TranslatedName2 to lsa_TranslatedName */
names_out = TALLOC_ARRAY(p->mem_ctx, struct lsa_TranslatedName,
 num_sids);


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-4-test updated - release-4-0-0alpha7-570-ge4f3d75

2009-03-24 Thread Volker Lendecke
The branch, v3-4-test has been updated
   via  e4f3d75432dbe372e164962a993b6e882fe44e83 (commit)
  from  87cf381dc3bd020dc043419f4ca18a3ff118458d (commit)

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


- Log -
commit e4f3d75432dbe372e164962a993b6e882fe44e83
Author: Volker Lendecke 
Date:   Tue Mar 24 11:07:16 2009 +0100

Fix bug 6097

A client sent a SID with authority 0 and 0 sub-authorities. W2k3 replies 
with
NT_STATUS_INVALID_SID, even if other SIDs in the list are valid.

Thanks to Pavel  for the bug report!

---

Summary of changes:
 source3/passdb/lookup_sid.c |2 +-
 source3/rpc_server/srv_lsa_nt.c |4 
 2 files changed, 5 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/passdb/lookup_sid.c b/source3/passdb/lookup_sid.c
index 9c20042..a5c2d50 100644
--- a/source3/passdb/lookup_sid.c
+++ b/source3/passdb/lookup_sid.c
@@ -804,7 +804,7 @@ NTSTATUS lookup_sids(TALLOC_CTX *mem_ctx, int num_sids,
} else {
/* This is a normal SID with rid component */
if (!sid_split_rid(&sid, &rid)) {
-   result = NT_STATUS_INVALID_PARAMETER;
+   result = NT_STATUS_INVALID_SID;
goto fail;
}
}
diff --git a/source3/rpc_server/srv_lsa_nt.c b/source3/rpc_server/srv_lsa_nt.c
index ed54c3a..5fdcaf2 100644
--- a/source3/rpc_server/srv_lsa_nt.c
+++ b/source3/rpc_server/srv_lsa_nt.c
@@ -827,6 +827,10 @@ NTSTATUS _lsa_LookupSids(pipes_struct *p,
   &names,
   &mapped_count);
 
+   if (NT_STATUS_IS_ERR(status)) {
+   return status;
+   }
+
/* Convert from lsa_TranslatedName2 to lsa_TranslatedName */
names_out = TALLOC_ARRAY(p->mem_ctx, struct lsa_TranslatedName,
 num_sids);


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-5164-gc38c80f

2009-03-24 Thread Volker Lendecke
The branch, v3-3-test has been updated
   via  c38c80fcd3f63e60450fd95c27d842082e8e00fd (commit)
  from  deba6c883965f99bf70744a5a4fb8124a73910fd (commit)

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


- Log -
commit c38c80fcd3f63e60450fd95c27d842082e8e00fd
Author: Volker Lendecke 
Date:   Tue Mar 24 11:07:16 2009 +0100

Fix bug 6097

A client sent a SID with authority 0 and 0 sub-authorities. W2k3 replies 
with
NT_STATUS_INVALID_SID, even if other SIDs in the list are valid.

Thanks to Pavel  for the bug report!

---

Summary of changes:
 source/passdb/lookup_sid.c |2 +-
 source/rpc_server/srv_lsa_nt.c |4 
 2 files changed, 5 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/passdb/lookup_sid.c b/source/passdb/lookup_sid.c
index 2a5eacd..f4fc7b5 100644
--- a/source/passdb/lookup_sid.c
+++ b/source/passdb/lookup_sid.c
@@ -804,7 +804,7 @@ NTSTATUS lookup_sids(TALLOC_CTX *mem_ctx, int num_sids,
} else {
/* This is a normal SID with rid component */
if (!sid_split_rid(&sid, &rid)) {
-   result = NT_STATUS_INVALID_PARAMETER;
+   result = NT_STATUS_INVALID_SID;
goto fail;
}
}
diff --git a/source/rpc_server/srv_lsa_nt.c b/source/rpc_server/srv_lsa_nt.c
index 0176d16..f9cfeed 100644
--- a/source/rpc_server/srv_lsa_nt.c
+++ b/source/rpc_server/srv_lsa_nt.c
@@ -828,6 +828,10 @@ NTSTATUS _lsa_LookupSids(pipes_struct *p,
   &names,
   &mapped_count);
 
+   if (NT_STATUS_IS_ERR(status)) {
+   return status;
+   }
+
/* Convert from lsa_TranslatedName2 to lsa_TranslatedName */
names_out = TALLOC_ARRAY(p->mem_ctx, struct lsa_TranslatedName,
 num_sids);


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-3516-gbb76066

2009-03-24 Thread Volker Lendecke
The branch, v3-2-test has been updated
   via  bb76066e8797599e5ca75821a686e32dd0c97a74 (commit)
  from  ca58d12b6513beb40c14fcab2758cf21af0179f3 (commit)

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


- Log -
commit bb76066e8797599e5ca75821a686e32dd0c97a74
Author: Volker Lendecke 
Date:   Tue Mar 24 11:07:16 2009 +0100

Fix bug 6097

A client sent a SID with authority 0 and 0 sub-authorities. W2k3 replies 
with
NT_STATUS_INVALID_SID, even if other SIDs in the list are valid.

Thanks to Pavel  for the bug report!

---

Summary of changes:
 source/passdb/lookup_sid.c |2 +-
 source/rpc_server/srv_lsa_nt.c |4 
 2 files changed, 5 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/passdb/lookup_sid.c b/source/passdb/lookup_sid.c
index a7175b9..d767fa4 100644
--- a/source/passdb/lookup_sid.c
+++ b/source/passdb/lookup_sid.c
@@ -804,7 +804,7 @@ NTSTATUS lookup_sids(TALLOC_CTX *mem_ctx, int num_sids,
} else {
/* This is a normal SID with rid component */
if (!sid_split_rid(&sid, &rid)) {
-   result = NT_STATUS_INVALID_PARAMETER;
+   result = NT_STATUS_INVALID_SID;
goto fail;
}
}
diff --git a/source/rpc_server/srv_lsa_nt.c b/source/rpc_server/srv_lsa_nt.c
index 9ce992c..9d411ec 100644
--- a/source/rpc_server/srv_lsa_nt.c
+++ b/source/rpc_server/srv_lsa_nt.c
@@ -830,6 +830,10 @@ NTSTATUS _lsa_LookupSids(pipes_struct *p,
   &names,
   &mapped_count);
 
+   if (NT_STATUS_IS_ERR(status)) {
+   return status;
+   }
+
/* Convert from lsa_TranslatedName2 to lsa_TranslatedName */
names_out = TALLOC_ARRAY(p->mem_ctx, struct lsa_TranslatedName,
 num_sids);


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha7-694-gde2a7c8

2009-03-24 Thread Günther Deschner
The branch, master has been updated
   via  de2a7c8e4caa4898a3ff5cfd85d21cddec8188f2 (commit)
   via  31db53c3586339b7469802a454a3b983807ec518 (commit)
   via  8d901caf353ce99dfdde4e9e8ad5937f91df7c49 (commit)
  from  c388efdbcb9ef1ecd5a81f7731ce56c7f79b2579 (commit)

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


- Log -
commit de2a7c8e4caa4898a3ff5cfd85d21cddec8188f2
Author: Günther Deschner 
Date:   Sat Mar 21 00:10:14 2009 +0100

s3: use generated dcerpc code.

Guenther

commit 31db53c3586339b7469802a454a3b983807ec518
Author: Günther Deschner 
Date:   Fri Mar 20 23:27:15 2009 +0100

s3: add generated dcerpc files.

Guenther

commit 8d901caf353ce99dfdde4e9e8ad5937f91df7c49
Author: Günther Deschner 
Date:   Fri Mar 20 23:25:53 2009 +0100

move dcerpc.idl to main directory.

Guenther

---

Summary of changes:
 librpc/gen_ndr/dcerpc.h   |  343 
 librpc/gen_ndr/ndr_dcerpc.c   | 1834 +
 librpc/gen_ndr/ndr_dcerpc.h   |   65 ++
 librpc/idl/dcerpc.idl |  306 +++
 source3/Makefile.in   |3 +-
 source3/include/rpc_dce.h |   10 -
 source3/include/smb.h |2 +
 source4/librpc/config.mk  |4 +-
 source4/librpc/idl/dcerpc.idl |  306 ---
 9 files changed, 2554 insertions(+), 319 deletions(-)
 create mode 100644 librpc/gen_ndr/dcerpc.h
 create mode 100644 librpc/gen_ndr/ndr_dcerpc.c
 create mode 100644 librpc/gen_ndr/ndr_dcerpc.h
 create mode 100644 librpc/idl/dcerpc.idl
 delete mode 100644 source4/librpc/idl/dcerpc.idl


Changeset truncated at 500 lines:

diff --git a/librpc/gen_ndr/dcerpc.h b/librpc/gen_ndr/dcerpc.h
new file mode 100644
index 000..78834f6
--- /dev/null
+++ b/librpc/gen_ndr/dcerpc.h
@@ -0,0 +1,343 @@
+/* header auto-generated by pidl */
+
+#include 
+
+#include "libcli/util/ntstatus.h"
+
+#include "librpc/gen_ndr/misc.h"
+#ifndef _HEADER_dcerpc
+#define _HEADER_dcerpc
+
+#define DCERPC_REQUEST_LENGTH  ( 24 )
+#define DCERPC_BIND_REASON_ASYNTAX ( 1 )
+#define DCERPC_BIND_PROVIDER_REJECT( 2 )
+#define DECRPC_BIND_PROTOCOL_VERSION_NOT_SUPPORTED ( 4 )
+#define DCERPC_BIND_REASON_INVALID_AUTH_TYPE   ( 8 )
+#define DCERPC_RESPONSE_LENGTH ( 24 )
+#define DCERPC_FAULT_OP_RNG_ERROR  ( 0x1c010002 )
+#define DCERPC_FAULT_UNK_IF( 0x1c010003 )
+#define DCERPC_FAULT_NDR   ( 0x06f7 )
+#define DCERPC_FAULT_INVALID_TAG   ( 0x1c06 )
+#define DCERPC_FAULT_CONTEXT_MISMATCH  ( 0x1c1a )
+#define DCERPC_FAULT_OTHER ( 0x0001 )
+#define DCERPC_FAULT_ACCESS_DENIED ( 0x0005 )
+#define DCERPC_FAULT_CANT_PERFORM  ( 0x06d8 )
+#define DCERPC_FAULT_TODO  ( 0x0042 )
+#define DCERPC_AUTH_LEVEL_DEFAULT  ( DCERPC_AUTH_LEVEL_CONNECT )
+#define DCERPC_AUTH_TRAILER_LENGTH ( 8 )
+#define DCERPC_PFC_FLAG_FIRST  ( 0x01 )
+#define DCERPC_PFC_FLAG_LAST   ( 0x02 )
+#define DCERPC_PFC_FLAG_PENDING_CANCEL ( 0x04 )
+#define DCERPC_PFC_FLAG_SUPPORT_HEADER_SIGN( 
DCERPC_PFC_FLAG_PENDING_CANCEL )
+#define DCERPC_PFC_FLAG_CONC_MPX   ( 0x10 )
+#define DCERPC_PFC_FLAG_DID_NOT_EXECUTE( 0x20 )
+#define DCERPC_PFC_FLAG_MAYBE  ( 0x40 )
+#define DCERPC_PFC_FLAG_OBJECT_UUID( 0x80 )
+#define DCERPC_PFC_OFFSET  ( 3 )
+#define DCERPC_DREP_OFFSET ( 4 )
+#define DCERPC_FRAG_LEN_OFFSET ( 8 )
+#define DCERPC_AUTH_LEN_OFFSET ( 10 )
+#define DCERPC_DREP_LE ( 0x10 )
+struct dcerpc_ctx_list {
+   uint16_t context_id;
+   uint8_t num_transfer_syntaxes;
+   struct ndr_syntax_id abstract_syntax;
+   struct ndr_syntax_id *transfer_syntaxes;
+};
+
+struct dcerpc_bind {
+   uint16_t max_xmit_frag;
+   uint16_t max_recv_frag;
+   uint32_t assoc_group_id;
+   uint8_t num_contexts;
+   struct dcerpc_ctx_list *ctx_list;
+   DATA_BLOB _pad;/* [flag(LIBNDR_FLAG_ALIGN4)] */
+   DATA_BLOB auth_info;/* [flag(LIBNDR_FLAG_REMAINING)] */
+};
+
+struct dcerpc_empty {
+   char _empty_;
+};
+
+union dcerpc_object {
+   struct dcerpc_empty empty;/* [default] */
+   struct GUID object;/* [case(LIBNDR_FLAG_OBJECT_PRESENT)] */
+}/* [nodiscriminant] */;
+
+struct dcerpc_request {
+   uint32_t alloc_hint;
+   uint16_t context_id;
+   uint16_t opnum;
+   union dcerpc_object object;/* 
[switch_is(ndr->flags&LIBNDR_FLAG_OBJECT_PRESENT)] */
+   DATA_BLOB _pad;/* [flag(LIBNDR_FLAG_ALIGN8)] */
+   DATA_BLOB stub_and_verifier;/* [flag(LIBNDR_FLAG_REMAINING)] */
+};
+
+struct dcerpc_ack_ctx {
+   uint16_t result;
+   uint16_t reason;
+   struct ndr_syntax_id syntax;
+};
+
+struct dcerpc_bind_ack {
+   uint16_t max_xmit_frag;
+   uint16_t max_recv_frag;
+   uint32_t assoc_group_id;
+   uint16_t secondary_address_size;/* [value(strlen(secondary_address)+1)] 
*/
+   const char *secondary_address

[SCM] Samba Shared Repository - branch v3-4-test updated - release-4-0-0alpha7-569-g87cf381

2009-03-24 Thread Günther Deschner
The branch, v3-4-test has been updated
   via  87cf381dc3bd020dc043419f4ca18a3ff118458d (commit)
  from  a2e138419138a2f675f6370426a6caeda0a314b4 (commit)

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


- Log -
commit 87cf381dc3bd020dc043419f4ca18a3ff118458d
Author: Günther Deschner 
Date:   Tue Mar 24 11:02:40 2009 +0100

s3: add missing prototype for auth_wbc_init().

Guenther
(cherry picked from commit c388efdbcb9ef1ecd5a81f7731ce56c7f79b2579)

---

Summary of changes:
 source3/include/proto.h |4 
 1 files changed, 4 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/include/proto.h b/source3/include/proto.h
index e6e925e..36b8d5e 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -150,6 +150,10 @@ bool is_trusted_domain(const char* dom_name);
 
 NTSTATUS auth_winbind_init(void);
 
+/* The following definitions come from auth/auth_wbc.c  */
+
+NTSTATUS auth_wbc_init(void);
+
 /* The following definitions come from auth/pampass.c  */
 
 bool smb_pam_claim_session(char *user, char *tty, char *rhost);


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha7-691-gc388efd

2009-03-24 Thread Günther Deschner
The branch, master has been updated
   via  c388efdbcb9ef1ecd5a81f7731ce56c7f79b2579 (commit)
  from  87b428e424e2e3cca975ecd0efed327e72950a1d (commit)

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


- Log -
commit c388efdbcb9ef1ecd5a81f7731ce56c7f79b2579
Author: Günther Deschner 
Date:   Tue Mar 24 11:02:40 2009 +0100

s3: add missing prototype for auth_wbc_init().

Guenther

---

Summary of changes:
 source3/include/proto.h |4 
 1 files changed, 4 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/include/proto.h b/source3/include/proto.h
index c8dce13..d15e45a 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -150,6 +150,10 @@ bool is_trusted_domain(const char* dom_name);
 
 NTSTATUS auth_winbind_init(void);
 
+/* The following definitions come from auth/auth_wbc.c  */
+
+NTSTATUS auth_wbc_init(void);
+
 /* The following definitions come from auth/pampass.c  */
 
 bool smb_pam_claim_session(char *user, char *tty, char *rhost);


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-3515-gca58d12

2009-03-24 Thread Günther Deschner
The branch, v3-2-test has been updated
   via  ca58d12b6513beb40c14fcab2758cf21af0179f3 (commit)
  from  66faa809847ad60b8027ae86068f8d62c0d181ed (commit)

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


- Log -
commit ca58d12b6513beb40c14fcab2758cf21af0179f3
Author: Björn Jacke 
Date:   Mon Mar 23 12:26:03 2009 +0100

s3:dsgetdcname: use parentheses in if condition to make negation clear

Signed-off-by: Günther Deschner 
(cherry picked from commit 87b428e424e2e3cca975ecd0efed327e72950a1d)

---

Summary of changes:
 source/libsmb/dsgetdcname.c |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/libsmb/dsgetdcname.c b/source/libsmb/dsgetdcname.c
index 72c3c73..e191307 100644
--- a/source/libsmb/dsgetdcname.c
+++ b/source/libsmb/dsgetdcname.c
@@ -439,7 +439,7 @@ static uint32_t get_cldap_reply_server_flags(union 
nbt_cldap_netlogon *r,
 /
 /
 
-#define RETURN_ON_FALSE(x) if (!x) return false;
+#define RETURN_ON_FALSE(x) if (!(x)) return false;
 
 static bool check_cldap_reply_required_flags(uint32_t ret_flags,
 uint32_t req_flags)


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-5163-gdeba6c8

2009-03-24 Thread Günther Deschner
The branch, v3-3-test has been updated
   via  deba6c883965f99bf70744a5a4fb8124a73910fd (commit)
  from  b0ad52693d4ee548a2d3870e28f6499f827bed31 (commit)

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


- Log -
commit deba6c883965f99bf70744a5a4fb8124a73910fd
Author: Björn Jacke 
Date:   Mon Mar 23 12:26:03 2009 +0100

s3:dsgetdcname: use parentheses in if condition to make negation clear

Signed-off-by: Günther Deschner 
(cherry picked from commit 87b428e424e2e3cca975ecd0efed327e72950a1d)

---

Summary of changes:
 source/libsmb/dsgetdcname.c |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/libsmb/dsgetdcname.c b/source/libsmb/dsgetdcname.c
index a33f684..77c2dcf 100644
--- a/source/libsmb/dsgetdcname.c
+++ b/source/libsmb/dsgetdcname.c
@@ -311,7 +311,7 @@ static uint32_t get_cldap_reply_server_flags(struct 
netlogon_samlogon_response *
 /
 /
 
-#define RETURN_ON_FALSE(x) if (!x) return false;
+#define RETURN_ON_FALSE(x) if (!(x)) return false;
 
 static bool check_cldap_reply_required_flags(uint32_t ret_flags,
 uint32_t req_flags)


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-4-test updated - release-4-0-0alpha7-568-ga2e1384

2009-03-24 Thread Günther Deschner
The branch, v3-4-test has been updated
   via  a2e138419138a2f675f6370426a6caeda0a314b4 (commit)
  from  55b7bf7338c13701944169df02ab8e9def6d43a1 (commit)

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


- Log -
commit a2e138419138a2f675f6370426a6caeda0a314b4
Author: Björn Jacke 
Date:   Mon Mar 23 12:26:03 2009 +0100

s3:dsgetdcname: use parentheses in if condition to make negation clear

Signed-off-by: Günther Deschner 
(cherry picked from commit 87b428e424e2e3cca975ecd0efed327e72950a1d)

---

Summary of changes:
 source3/libsmb/dsgetdcname.c |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/libsmb/dsgetdcname.c b/source3/libsmb/dsgetdcname.c
index 3491544..1064a63 100644
--- a/source3/libsmb/dsgetdcname.c
+++ b/source3/libsmb/dsgetdcname.c
@@ -311,7 +311,7 @@ static uint32_t get_cldap_reply_server_flags(struct 
netlogon_samlogon_response *
 /
 /
 
-#define RETURN_ON_FALSE(x) if (!x) return false;
+#define RETURN_ON_FALSE(x) if (!(x)) return false;
 
 static bool check_cldap_reply_required_flags(uint32_t ret_flags,
 uint32_t req_flags)


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha7-690-g87b428e

2009-03-24 Thread Günther Deschner
The branch, master has been updated
   via  87b428e424e2e3cca975ecd0efed327e72950a1d (commit)
  from  34ee56eadce9f84d52a1c9668cf321e04ede2bc0 (commit)

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


- Log -
commit 87b428e424e2e3cca975ecd0efed327e72950a1d
Author: Björn Jacke 
Date:   Mon Mar 23 12:26:03 2009 +0100

s3:dsgetdcname: use parentheses in if condition to make negation clear

Signed-off-by: Günther Deschner 

---

Summary of changes:
 source3/libsmb/dsgetdcname.c |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/libsmb/dsgetdcname.c b/source3/libsmb/dsgetdcname.c
index 3491544..1064a63 100644
--- a/source3/libsmb/dsgetdcname.c
+++ b/source3/libsmb/dsgetdcname.c
@@ -311,7 +311,7 @@ static uint32_t get_cldap_reply_server_flags(struct 
netlogon_samlogon_response *
 /
 /
 
-#define RETURN_ON_FALSE(x) if (!x) return false;
+#define RETURN_ON_FALSE(x) if (!(x)) return false;
 
 static bool check_cldap_reply_required_flags(uint32_t ret_flags,
 uint32_t req_flags)


-- 
Samba Shared Repository


[SCM] CTDB repository - branch master updated - ctdb-1.0.72-42-g95d22e4

2009-03-24 Thread Ronnie Sahlberg
The branch, master has been updated
   via  95d22e4cf265d2119f72200ab0ec708f095853df (commit)
   via  ae317b2013eee01c4c0a5108c03f4024bea9e313 (commit)
   via  0840aa2bd31b2da95342dca8ff35786a3d998688 (commit)
  from  972036a5d510fb9b399f1ee34a8861dee4221267 (commit)

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


- Log -
commit 95d22e4cf265d2119f72200ab0ec708f095853df
Author: Ronnie Sahlberg 
Date:   Tue Mar 24 19:02:00 2009 +1100

web: fix typo

Conflicts:

web/index.html

commit ae317b2013eee01c4c0a5108c03f4024bea9e313
Author: Ronnie Sahlberg 
Date:   Tue Mar 24 18:59:27 2009 +1100

update the documentatio n with all the new commands we supprot in the
ctdb tool

commit 0840aa2bd31b2da95342dca8ff35786a3d998688
Author: Ronnie Sahlberg 
Date:   Tue Mar 24 18:23:56 2009 +1100

fix the html so that mine and obnox names are shown

---

Summary of changes:
 doc/ctdb.1  |   95 ++--
 doc/ctdb.1.html |  146 ---
 doc/ctdb.1.xml  |  135 +-
 web/index.html  |4 +-
 4 files changed, 332 insertions(+), 48 deletions(-)


Changeset truncated at 500 lines:

diff --git a/doc/ctdb.1 b/doc/ctdb.1
index 5da61bf..91c1b64 100644
--- a/doc/ctdb.1
+++ b/doc/ctdb.1
@@ -1,11 +1,11 @@
 .\" Title: ctdb
 .\"Author: 
 .\" Generator: DocBook XSL Stylesheets v1.73.2 
-.\"  Date: 09/15/2008
+.\"  Date: 03/24/2009
 .\"Manual: 
 .\"Source: 
 .\"
-.TH "CTDB" "1" "09/15/2008" "" ""
+.TH "CTDB" "1" "03/24/2009" "" ""
 .\" disable hyphenation
 .nh
 .\" disable justification (adjust text to left margin only)
@@ -171,6 +171,43 @@ Recovery master:0
   
 .fi
 .RE
+.SS "recmaster"
+.PP
+This command shows the pnn of the node which is currently the recmaster\.
+.SS "uptime"
+.PP
+This command shows the uptime for the ctdb daemon\. When the last recovery 
completed and how long the last recovery took\. If the "duration" is shown as a 
negative number, this indicates that there is a recovery in progress and it 
started that many seconds ago\.
+.PP
+Example: ctdb uptime
+.PP
+Example output:
+.sp
+.RS 4
+.nf
+Current time of node  : Tue Mar 24 18:27:54 2009
+Ctdbd start time  : (000 00:00:05) Tue Mar 24 18:27:49 2009
+Time of last recovery : (000 00:00:05) Tue Mar 24 18:27:49 2009
+Duration of last recovery : 0\.00 seconds
+  
+.fi
+.RE
+.SS "listnodes"
+.PP
+This command shows lists the ip addresses of all the nodes in the cluster\.
+.PP
+Example: ctdb listnodes
+.PP
+Example output:
+.sp
+.RS 4
+.nf
+10\.0\.0\.71
+10\.0\.0\.72
+10\.0\.0\.73
+10\.0\.0\.74
+  
+.fi
+.RE
 .SS "ping"
 .PP
 This command will "ping" all CTDB daemons in the cluster to verify that they 
are processing commands correctly\.
@@ -190,7 +227,7 @@ response from 3 time=0\.000114 sec  (2 clients)
 .RE
 .SS "ip"
 .PP
-This command will display the list of public addresses that are provided by 
the cluster and which physical node is currently serving this ip\.
+This command will display the list of public addresses that are provided by 
the cluster and which physical node is currently serving this ip\. By default 
this command will ONLY show those public addresses that are known to the node 
itself\. To see the full list of all public ips across the cluster you must use 
"ctdb ip \-n all"\.
 .PP
 Example: ctdb ip
 .PP
@@ -206,6 +243,28 @@ Number of addresses:4
   
 .fi
 .RE
+.SS "scriptstatus"
+.PP
+This command displays which scripts where run in the previous monitoring cycle 
and the result of each script\. If a script failed with an error, causing the 
node to become unhealthy, the output from that script is also shown\.
+.PP
+Example: ctdb scriptstatus
+.PP
+Example output:
+.sp
+.RS 4
+.nf
+7 scripts were executed last monitoring cycle
+00\.ctdb  Status:OKDuration:0\.056 Tue Mar 24 18:56:57 2009
+10\.interface Status:OKDuration:0\.077 Tue Mar 24 18:56:57 2009
+11\.natgw Status:OKDuration:0\.039 Tue Mar 24 18:56:57 2009
+20\.multipathdStatus:OKDuration:0\.038 Tue Mar 24 18:56:57 2009
+40\.vsftpdStatus:OKDuration:0\.045 Tue Mar 24 18:56:57 2009
+41\.httpd Status:OKDuration:0\.039 Tue Mar 24 18:56:57 2009
+50\.samba Status:ERRORDuration:0\.082 Tue Mar 24 18:56:57 2009
+   OUTPUT:ERROR: Samba tcp port 445 is not responding
+  
+.fi
+.RE
 .SS "getvar "
 .PP
 Get the runtime value of a tuneable variable\.
@@ -374,6 +433,16 @@ Administratively ban a node for bantime seconds\. A 
bantime of 0 means that the
 A banned node does not participate in the cluster and does not host any 
records for the clustered TDB\. Its ip address has been taken over by an other 
node and no serv