Re: [Samba] invalid computer name when accessing a Samba server from a Samba client

2009-09-28 Thread Andrew Masterson
 Domain=[CPTTM] OS=[Unix] Server=[Samba 3.0.20b]

Does the NAS have a machine account in the domain?
 
-=Andrew

 

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] winbind and smb tries to auth as pdc$ rather than local name when using ADS

2009-09-28 Thread Andrew Masterson
 [r...@presidio3 ~]# net ads join -U Administrator
 Enter Administrator's password:
 [2009/09/23 23:58:48,  0] libads/kerberos.c:ads_kinit_password(362)
   kerberos_kinit_password administra...@garnser.se failed: Cannot find
 KDC for requested realm
 Failed to join domain: failed to connect to AD: Cannot find KDC for
 requested realm

 Any idea why this is?

Do you have 
DOMAIN.NAME = {
kdc = pdc.domain.name:88
...
}
In your krb5.conf?  Is your firewall allowing traffic to/from on port 88? Or do 
you have 
dns_lookup_kdc = no
in your krb5.conf file? (the default is supposed to be yes)
And can you ping the kdc from your box?  Is DNS resolving properly?
-=Andrew
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Can't run an application as normaler USer in Samba-Domain

2009-09-28 Thread Daniel Spannbauer

Hello,

I installed a Samba-PDC with LDAP-Backand,. WIth a XP-Machine I joined 
the domain sucessfully, can login as a Domain-User and also as Domain-Admin.
As Domain-User I can't start any Application. Windows says I have 
insufficent rights.

But I'm in the group of normal Domain Users.

Here is the Group-Mapping:
net groupmap list
[2009/09/28 13:56:34, 0, effective(0, 0), real(0, 0)] 
lib/smbldap_util.c:smbldap_search_domain_info(249)
  smbldap_search_domain_info: Adding domain info for MARCO failed with 
NT_STATUS_UNSUCCESSFUL

Domain Users (S-1-5-21-1503800369-2525905260-2224306923-513) - entw
Domain Guests (S-1-5-21-1503800369-2525905260-2224306923-514) - Domain 
Guests
Domain Computers (S-1-5-21-1503800369-2525905260-2224306923-515) - 
Domain Computers
Administrators (S-1-5-21-1503800369-2525905260-2224306923-2089) - 
Administrators
Account Operators (S-1-5-21-1503800369-2525905260-2224306923-2097) - 
Account Operators
Print Operators (S-1-5-21-1503800369-2525905260-2224306923-2101) - 
Print Operators
Backup Operators (S-1-5-21-1503800369-2525905260-2224306923-2103) - 
Backup Operators

Replicators (S-1-5-21-1503800369-2525905260-2224306923-2105) - Replicators
Domain Admins (S-1-5-21-1503800369-2525905260-2224306923-512) - root

I'm in the unix-Group entw, which is mapped to Domain Users.

Anny Ideas?

Regards

Daniel




--
Daniel Spannbauer Software Entwicklung
marco Systemanalyse und Entwicklung GmbH  Tel   +49 8333 9233-27 Fax -11
Rechbergstr. 4 - 6, D 87727 Babenhausen   Mobil +49 171 4033220
http://www.marco.de/  Email d...@marco.de
Geschäftsführer Martin Reuter HRB 171775 Amtsgericht München
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] samba ACL open-for-delete problem

2009-09-28 Thread Shaochun Wang
All my fault. I forget to execute make clean before compiling samba
with ACL support.


-- 
Shaochun Wang(王绍春) scw...@ios.ac.cn
PH.D Candidate
State Key Laboratory of Computer Science,
Institute of Software,
Chinese Academy of Sciences
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

[Samba] Unix Kerberos authentication - how?

2009-09-28 Thread Alf Wachsmann

Hi,

I managed to set up a Samba server that accepts Kerberos 5 TGTs via
SPNEGO/GSSAPI for login. However, when I don't have a TGT it fails for
Unix clients. It asks for username/password for Windows clients and then
fails trying to do NTLMv2 authentication.

How can I set up a Samba server that asks for username/password and
then uses a Unix Kerberos KDC (Heimdal v. 1.2 in my case) for 
authentication?


Many thanks,
Alf.

---
  Alf Wachsmann   | e-mail: a...@slac.stanford.edu
  SLAC - Scientific Computing | Phone:  +1-650-926-4802
  2575 Sand Hill Road, M/S 97 | FAX:+1-650-926-3329
  Menlo Park, CA 94025, USA   | Office: Bldg. 50/323
---
http://www.slac.stanford.edu/~alfw (PGP)
---
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] New Samba Team Blog post up !

2009-09-28 Thread Michael Wood
 o  Watching Tridge and Andrew Bartlett demonstrate Active Directory 
 replication to a Windows AD server.

This sounds interesting :)

How does replication work in the other direction?  Does the vampire
support relate to this at all?

-- 
Michael Wood esiot...@gmail.com
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Problem using local groups when winbind is running

2009-09-28 Thread David Mitchell
Adam Nielsen wrote:
 Even after getting all such errors cleared though, I still can't access
 the shares which are using the 'valid users = @localgroup'
 configuration. I've tried changing that to 'valid users = +localgroup'
 which should only check NSS but that also fails.
 
 Since you're on a domain you might have to specify that the groups are
 local, e.g. @MACHINENAME\localgroup, as it might default to your domain
 if one is not given explicitly.
 
 I'm not sure how this works when winbind isn't running, but it should be
 okay.

I couldn't get that configuration syntax to work with or without winbindd.


I did do some more digging. This seems to be a symptom, not a cause but
perhaps it helps identify the source of the problem.  When it works, ie,
without winbind, this produces reasonable output listing my correct unix
UID and group membership:

 [2009/09/28 12:09:32,  5] auth/token_util.c:debug_nt_user_token(470)
   NT user token of user S-1-22-1-1000
   contains 12 SIDs
   SID[  0]: S-1-22-1-1000
   SID[  1]: S-1-22-2-96
   SID[  2]: S-1-1-0
   SID[  3]: S-1-5-2
   SID[  4]: S-1-5-11
   SID[  5]: S-1-22-2-20
   SID[  6]: S-1-22-2-24
   SID[  7]: S-1-22-2-25
   SID[  8]: S-1-22-2-29
   SID[  9]: S-1-22-2-44
   SID[ 10]: S-1-22-2-46
   SID[ 11]: S-1-22-2-
   SE_PRIV  0x0 0x0 0x0 0x0
 [2009/09/28 12:09:32,  5] auth/token_util.c:debug_unix_user_token(490)
   UNIX token of user 1000
   Primary group is 96 and contains 8 supplementary groups
   Group[  0]: 96
   Group[  1]: 20
   Group[  2]: 24
   Group[  3]: 25
   Group[  4]: 29
   Group[  5]: 44
   Group[  6]: 46
   Group[  7]: 
 [2009/09/28 12:09:32,  5] smbd/uid.c:change_to_user(272)
   change_to_user uid=(0,1000) gid=(0,96)

But when it fails, I get the much more suspicious output for similar
debug calls. I haven't dug into when the user_token stuff is
initialized, but clearly it isn't happening properly when winbind is
running in my case.

 [2009/09/28 12:19:32,  5] auth/token_util.c:debug_nt_user_token(464)
   NT user token: (NULL)
 [2009/09/28 12:19:32,  5] auth/token_util.c:debug_unix_user_token(490)
   UNIX token of user 0
   Primary group is 0 and contains 0 supplementary groups
 [2009/09/28 12:19:32,  5] smbd/uid.c:change_to_root_user(287)
   change_to_root_user: now uid=(0,0) gid=(0,0)

Out of curiousity, I added 'root' to 'testgroup' in /etc/group but that
didn't help. It doesn't find the supplementary group for root.

-David

 
 Cheers,
 Adam.
 


-- 
-
| David Mitchell (mitch...@ucar.edu)   Network Engineer IV  |
| Tel: (303) 497-1845  National Center for  |
| FAX: (303) 497-1818  Atmospheric Research |
-
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] samba authentication via pam_pwdfile

2009-09-28 Thread Charles Yost
I'm attempting to setup samba authentication via PAM and more  
specifically the pam_pwdfile module. So far I have had trouble  
determining the right mix of global settings to get this to work. I  
have read through many tutorials online, but so far I have not found  
good documentation on how to achieve this. What I am really attempting  
to do is unify the credentials for access to the server though ftp,  
apache, and samba. I _do not_ want to link the linux shell credentials  
to this for various reasons including security. Any helpful  
suggestions would be appreciated.

=Charles
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] invalid computer name when accessing a Samba server from a Samba client

2009-09-28 Thread Kent Tong


Andrew Masterson wrote:
 
 Does the NAS have a machine account in the domain?
 

Yes, I can see an account named ho-nas01 in the Computers folder in AD.

-
--
Kent Tong
Wicket tutorials freely available at http://www.agileskills2.org/EWDW
Axis2 tutorials freely available at http://www.agileskills2.org/DWSAA
-- 
View this message in context: 
http://www.nabble.com/invalid-computer-name-when-accessing-a-Samba-server-from-a-Samba-client-tp25608649p25655616.html
Sent from the Samba - General mailing list archive at Nabble.com.

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Build status as of Mon Sep 28 06:00:02 2009

2009-09-28 Thread build
URL: http://build.samba.org/

--- /home/build/master/cache/broken_results.txt.old 2009-09-27 
00:00:03.0 -0600
+++ /home/build/master/cache/broken_results.txt 2009-09-28 00:00:08.0 
-0600
@@ -1,11 +1,11 @@
-Build status as of Sun Sep 27 06:00:02 2009
+Build status as of Mon Sep 28 06:00:02 2009
 
 Build counts:
 Tree Total  Broken Panic 
 build_farm   0  0  0 
 ccache   1  1  0 
 distcc   0  0  0 
-ldb  28 28 0 
+ldb  26 26 0 
 libreplace   1  1  0 
 lorikeet 0  0  0 
 pidl 17 16 0 
@@ -14,7 +14,7 @@
 samba-docs   0  0  0 
 samba-web0  0  0 
 samba_3_current 0  0  0 
-samba_3_master 26 25 5 
+samba_3_master 26 26 5 
 samba_3_next 1  1  0 
 samba_4_0_test 28 28 0 
 talloc   1  1  0 


[SCM] Samba Shared Repository - branch master updated - tevent-0-9-8-765-g5c0edba

2009-09-28 Thread Jelmer Vernooij
The branch, master has been updated
   via  5c0edba8c2ade663d630a3b9f3ff0c4862129783 (commit)
   via  166f849a5155d821706942e30a6cb7a4724d2348 (commit)
  from  4a230b5e6ccbd7e8ac3dce875014715b733bb210 (commit)

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


- Log -
commit 5c0edba8c2ade663d630a3b9f3ff0c4862129783
Author: Jelmer Vernooij jel...@samba.org
Date:   Mon Sep 28 12:25:13 2009 +0200

Move samba-specific variable to s4 Makefile.

commit 166f849a5155d821706942e30a6cb7a4724d2348
Author: Jelmer Vernooij jel...@samba.org
Date:   Mon Sep 28 12:21:06 2009 +0200

make: Use $(base_srcdirs) in 'make clean' rather than keeping a separate
list.

---

Summary of changes:
 source4/Makefile|4 +++-
 source4/build/make/rules.mk |2 --
 2 files changed, 3 insertions(+), 3 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/Makefile b/source4/Makefile
index 959d0f4..03b4e73 100644
--- a/source4/Makefile
+++ b/source4/Makefile
@@ -47,6 +47,8 @@ ALL_PREDEP = basics
 .NOTPARALLEL:
 endif
 
+base_srcdirs = $(srcdir) ../librpc/ ../lib/ ../libcli ../libgpo ../nsswitch 
../libds
+
 include $(srcdir)/build/make/rules.mk
 include $(srcdir)/build/make/python.mk
 zlibsrcdir := ../lib/zlib
@@ -153,7 +155,7 @@ include $(srcdir)/static_deps.mk
 endif
 
 clean::
-   @find ../libds ../lib ../libcli ../librpc ../libgpo ../nsswitch -name 
'*.o' -o -name '*.ho' | xargs rm -f
+   @find $(base_srcdirs) -name '*.o' -o -name '*.ho' | xargs rm -f
 
 PUBLIC_HEADERS += ./version.h
 
diff --git a/source4/build/make/rules.mk b/source4/build/make/rules.mk
index 78b4240..b922f7c 100644
--- a/source4/build/make/rules.mk
+++ b/source4/build/make/rules.mk
@@ -182,8 +182,6 @@ showflags::
@echo '  MDLD_FLAGS = $(MDLD_FLAGS)'
@echo '  SHLIBEXT   = $(SHLIBEXT)'
 
-base_srcdirs = $(srcdir) ../librpc/ ../lib/ ../libcli ../libgpo ../nsswitch 
../libds
-
 etags:
etags $(ETAGS_OPTIONS) `find $(base_srcdirs) -name *.[ch]`
 


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated - tevent-0-9-8-766-g830adcd

2009-09-28 Thread Jelmer Vernooij
The branch, master has been updated
   via  830adcd58d6b1fbc3e693762ab2e8a8cfd7ecab3 (commit)
  from  5c0edba8c2ade663d630a3b9f3ff0c4862129783 (commit)

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


- Log -
commit 830adcd58d6b1fbc3e693762ab2e8a8cfd7ecab3
Author: Jelmer Vernooij jel...@samba.org
Date:   Mon Sep 28 15:03:17 2009 +0200

pidl: Avoid using talloc_free as function pointer, since it may be a
macro.

---

Summary of changes:
 lib/talloc/pytalloc.c|   10 ++
 lib/talloc/pytalloc.h|2 ++
 pidl/lib/Parse/Pidl/Samba4/Python.pm |4 ++--
 3 files changed, 14 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/lib/talloc/pytalloc.c b/lib/talloc/pytalloc.c
index 646aac8..c6decf3 100644
--- a/lib/talloc/pytalloc.c
+++ b/lib/talloc/pytalloc.c
@@ -81,3 +81,13 @@ PyObject *py_talloc_default_repr(PyObject *obj)
return PyString_FromFormat(%s talloc object at 0x%p, 
   type-tp_name, talloc_obj-ptr);
 }
+
+static void py_cobject_talloc_free(void *ptr)
+{
+   talloc_free(ptr);
+}
+
+PyObject *PyCObject_FromTallocPtr(void *ptr)
+{
+   return PyCObject_FromVoidPtr(ptr, py_cobject_talloc_free);
+}
diff --git a/lib/talloc/pytalloc.h b/lib/talloc/pytalloc.h
index 3bfb272..9b65872 100644
--- a/lib/talloc/pytalloc.h
+++ b/lib/talloc/pytalloc.h
@@ -52,4 +52,6 @@ PyObject *py_talloc_default_repr(PyObject *py_obj);
 
 #define py_talloc_new(type, typeobj) py_talloc_steal(typeobj, 
talloc_zero(NULL, type))
 
+PyObject *PyCObject_FromTallocPtr(void *);
+
 #endif /* _PY_TALLOC_H_ */
diff --git a/pidl/lib/Parse/Pidl/Samba4/Python.pm 
b/pidl/lib/Parse/Pidl/Samba4/Python.pm
index eb8bd31..c785619 100644
--- a/pidl/lib/Parse/Pidl/Samba4/Python.pm
+++ b/pidl/lib/Parse/Pidl/Samba4/Python.pm
@@ -998,10 +998,10 @@ sub ConvertScalarToPython($$$)
}
 
# Not yet supported
-   if ($ctypename eq string_array) { return 
PyCObject_FromVoidPtr($cvar, talloc_free); }
+   if ($ctypename eq string_array) { return 
PyCObject_FromTallocPtr($cvar); }
if ($ctypename eq ipv4address) { return PyString_FromString($cvar); 
}
if ($ctypename eq pointer) {
-   return PyCObject_FromVoidPtr($cvar, talloc_free);
+   return PyCObject_FromTallocPtr($cvar);
}
 
die(Unknown scalar type $ctypename);


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated - tevent-0-9-8-767-gde0f3b6

2009-09-28 Thread Volker Lendecke
The branch, master has been updated
   via  de0f3b657d29a22dc3e20d6e33c15d362800b995 (commit)
  from  830adcd58d6b1fbc3e693762ab2e8a8cfd7ecab3 (commit)

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


- Log -
commit de0f3b657d29a22dc3e20d6e33c15d362800b995
Author: Christian Ambach christian.amb...@de.ibm.com
Date:   Sun Sep 27 23:34:04 2009 +0200

changed debuglevel for two messages in the GPFS module from 0 to 10 they 
spammed the logs on a test machine and they are just debug messages, so let's 
move them to the level of the other debug messages in the file

Signed-off-by: Christian Ambach christian.amb...@de.ibm.com

---

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


Changeset truncated at 500 lines:

diff --git a/source3/modules/gpfs.c b/source3/modules/gpfs.c
index a8b5576..e059808 100644
--- a/source3/modules/gpfs.c
+++ b/source3/modules/gpfs.c
@@ -160,7 +160,7 @@ int get_gpfs_winattrs(char *pathname,struct gpfs_winattr 
*attrs)
 errno = ENOSYS;
 return -1;
 }
-DEBUG(0, (gpfs_get_winattrs_path:open call %s\n,pathname));
+DEBUG(10, (gpfs_get_winattrs_path:open call %s\n,pathname));
 return gpfs_get_winattrs_path_fn(pathname, attrs);
 }
 
@@ -182,7 +182,7 @@ int set_gpfs_winattrs(char *pathname,int flags,struct 
gpfs_winattr *attrs)
 return -1;
 }
 
-DEBUG(0, (gpfs_set_winattrs_path:open call %s\n,pathname));
+DEBUG(10, (gpfs_set_winattrs_path:open call %s\n,pathname));
 return gpfs_set_winattrs_path_fn(pathname,flags, attrs);
 }
 


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated - tevent-0-9-8-768-g388470f

2009-09-28 Thread Karolin Seeger
The branch, master has been updated
   via  388470f1f34111f7027e2abae5dbdf490f0992df (commit)
  from  de0f3b657d29a22dc3e20d6e33c15d362800b995 (commit)

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


- Log -
commit 388470f1f34111f7027e2abae5dbdf490f0992df
Author: Karolin Seeger ksee...@samba.org
Date:   Mon Sep 28 16:57:29 2009 +0200

s3/VERSION: Raise version up to 3.5.0.

Karolin

---

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 180d04e..5296aff 100644
--- a/source3/VERSION
+++ b/source3/VERSION
@@ -24,7 +24,7 @@
 #  -  3.0.0 #
 
 SAMBA_VERSION_MAJOR=3
-SAMBA_VERSION_MINOR=4
+SAMBA_VERSION_MINOR=5
 SAMBA_VERSION_RELEASE=0
 
 


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated - tevent-0-9-8-772-gdc8538b

2009-09-28 Thread Volker Lendecke
The branch, master has been updated
   via  dc8538b405c506c7a84682b2bb984dc01a05b8f9 (commit)
   via  f18d0b036c00ff24f082855a4fbb28681c39de70 (commit)
   via  def5bf57c550862196528515cbedc8bbc79db59a (commit)
   via  93db77adcb140d2510af07dab5002709dd14549f (commit)
  from  388470f1f34111f7027e2abae5dbdf490f0992df (commit)

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


- Log -
commit dc8538b405c506c7a84682b2bb984dc01a05b8f9
Author: Volker Lendecke v...@samba.org
Date:   Sun Sep 27 12:47:24 2009 +0200

s3:winbind: Make check_info3_in_group, sanitize its memory handling

commit f18d0b036c00ff24f082855a4fbb28681c39de70
Author: Volker Lendecke v...@samba.org
Date:   Sun Sep 27 11:51:07 2009 +0200

s3:winbind: Make check_request_flags publically available

commit def5bf57c550862196528515cbedc8bbc79db59a
Author: Volker Lendecke v...@samba.org
Date:   Sun Sep 27 11:49:11 2009 +0200

s3:winbind: Sanitize the args for find_auth_domain: It only needs the flags

commit 93db77adcb140d2510af07dab5002709dd14549f
Author: Volker Lendecke v...@samba.org
Date:   Sun Sep 27 11:39:38 2009 +0200

s3:winbind: Make append_data publically available as append_auth_data

---

Summary of changes:
 source3/winbindd/winbindd_ccache_access.c |2 +-
 source3/winbindd/winbindd_pam.c   |   68 
 source3/winbindd/winbindd_proto.h |   11 -
 3 files changed, 49 insertions(+), 32 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/winbindd/winbindd_ccache_access.c 
b/source3/winbindd/winbindd_ccache_access.c
index ffb20ac..86017e2 100644
--- a/source3/winbindd/winbindd_ccache_access.c
+++ b/source3/winbindd/winbindd_ccache_access.c
@@ -169,7 +169,7 @@ void winbindd_ccache_ntlm_auth(struct winbindd_cli_state 
*state)
return;
}
 
-   domain = find_auth_domain(state, name_domain);
+   domain = find_auth_domain(state-request-flags, name_domain);
 
if (domain == NULL) {
DEBUG(5,(winbindd_ccache_ntlm_auth: can't get domain [%s]\n,
diff --git a/source3/winbindd/winbindd_pam.c b/source3/winbindd/winbindd_pam.c
index b87d2a8..b58a9da 100644
--- a/source3/winbindd/winbindd_pam.c
+++ b/source3/winbindd/winbindd_pam.c
@@ -231,9 +231,8 @@ static NTSTATUS append_afs_token(TALLOC_CTX *mem_ctx,
return NT_STATUS_OK;
 }
 
-static NTSTATUS check_info3_in_group(TALLOC_CTX *mem_ctx,
-struct netr_SamInfo3 *info3,
-const char *group_sid)
+NTSTATUS check_info3_in_group(struct netr_SamInfo3 *info3,
+ const char *group_sid)
 /**
  * Check whether a user belongs to a group or list of groups.
  *
@@ -253,7 +252,7 @@ static NTSTATUS check_info3_in_group(TALLOC_CTX *mem_ctx,
DOM_SID sid;
size_t i;
struct nt_user_token *token;
-   TALLOC_CTX *frame = NULL;
+   TALLOC_CTX *frame = talloc_stackframe();
NTSTATUS status;
 
/* Parse the 'required group' SID */
@@ -263,8 +262,10 @@ static NTSTATUS check_info3_in_group(TALLOC_CTX *mem_ctx,
return NT_STATUS_OK;
}
 
-   if (!(token = TALLOC_ZERO_P(mem_ctx, struct nt_user_token))) {
+   token = talloc_zero(talloc_tos(), struct nt_user_token);
+   if (token == NULL) {
DEBUG(0, (talloc failed\n));
+   TALLOC_FREE(frame);
return NT_STATUS_NO_MEMORY;
}
 
@@ -273,8 +274,7 @@ static NTSTATUS check_info3_in_group(TALLOC_CTX *mem_ctx,
 
p = group_sid;
 
-   frame = talloc_stackframe();
-   while (next_token_talloc(frame, p, req_sid, ,)) {
+   while (next_token_talloc(talloc_tos(), p, req_sid, ,)) {
if (!string_to_sid(sid, req_sid)) {
DEBUG(0, (check_info3_in_group: could not parse %s 
  as a SID!, req_sid));
@@ -282,7 +282,7 @@ static NTSTATUS check_info3_in_group(TALLOC_CTX *mem_ctx,
return NT_STATUS_INVALID_PARAMETER;
}
 
-   status = add_sid_to_array(mem_ctx, sid,
+   status = add_sid_to_array(talloc_tos(), sid,
  require_membership_of_sid,
  num_require_membership_of_sid);
if (!NT_STATUS_IS_OK(status)) {
@@ -292,13 +292,12 @@ static NTSTATUS check_info3_in_group(TALLOC_CTX *mem_ctx,
}
}
 
-   TALLOC_FREE(frame);
-
-   status = sid_array_from_info3(mem_ctx, info3,
+   status = sid_array_from_info3(talloc_tos(), info3,
  token-user_sids,
  token-num_sids,
  true, false);
if (!NT_STATUS_IS_OK(status)) 

[SCM] Samba Shared Repository - branch master updated - tevent-0-9-8-773-g2185490

2009-09-28 Thread Volker Lendecke
The branch, master has been updated
   via  218549017644aee9a7bed1905908ffdb774efd06 (commit)
  from  dc8538b405c506c7a84682b2bb984dc01a05b8f9 (commit)

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


- Log -
commit 218549017644aee9a7bed1905908ffdb774efd06
Author: Volker Lendecke v...@samba.org
Date:   Sun Sep 20 18:10:01 2009 +0200

s3:gencache: Add my copyright

---

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


Changeset truncated at 500 lines:

diff --git a/source3/lib/gencache.c b/source3/lib/gencache.c
index d3631b9..6de653f 100644
--- a/source3/lib/gencache.c
+++ b/source3/lib/gencache.c
@@ -5,6 +5,7 @@
by various parts of the Samba code
 
Copyright (C) Rafal Szczesniak2002
+   Copyright (C) Volker Lendecke 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


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated - tevent-0-9-8-774-g80ef513

2009-09-28 Thread Volker Lendecke
The branch, master has been updated
   via  80ef513e90569e5e559fa0dcb62b75423b096a89 (commit)
  from  218549017644aee9a7bed1905908ffdb774efd06 (commit)

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


- Log -
commit 80ef513e90569e5e559fa0dcb62b75423b096a89
Author: Volker Lendecke v...@samba.org
Date:   Mon Sep 28 19:50:24 2009 +0200

s3:winbind: remove a pointless initialization

---

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


Changeset truncated at 500 lines:

diff --git a/source3/winbindd/winbindd_pam.c b/source3/winbindd/winbindd_pam.c
index b58a9da..178b3ea 100644
--- a/source3/winbindd/winbindd_pam.c
+++ b/source3/winbindd/winbindd_pam.c
@@ -524,7 +524,7 @@ static void setup_return_cc_name(struct winbindd_cli_state 
*state, const char *c
 
 static uid_t get_uid_from_state(struct winbindd_cli_state *state)
 {
-   uid_t uid = -1;
+   uid_t uid;
 
uid = state-request-data.auth.uid;
 


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated - tevent-0-9-8-775-g2e989ba

2009-09-28 Thread Jeremy Allison
The branch, master has been updated
   via  2e989bab0764c298a2530a2d4c8690258eba210c (commit)
  from  80ef513e90569e5e559fa0dcb62b75423b096a89 (commit)

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


- Log -
commit 2e989bab0764c298a2530a2d4c8690258eba210c
Author: Jeremy Allison j...@samba.org
Date:   Mon Sep 28 11:23:30 2009 -0700

Second part of fix for bug #6235 - domain enumeration breaks if master 
browser has space in name.
Ensure we ask for the #20 name as we're using it as a server.
Jeremy.

---

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


Changeset truncated at 500 lines:

diff --git a/source3/libsmb/libsmb_dir.c b/source3/libsmb/libsmb_dir.c
index 7a6632a..436b3e8 100644
--- a/source3/libsmb/libsmb_dir.c
+++ b/source3/libsmb/libsmb_dir.c
@@ -625,7 +625,7 @@ SMBC_opendir_ctx(SMBCCTX *context,
/*
 * Get the backup list ...
 */
-   if (!name_status_find(server, 0, 0,
+   if (!name_status_find(server, 0x20, 0x20,
   rem_ss, buserver)) {
 
 DEBUG(0,(Could not get name of 


-- 
Samba Shared Repository


[SCM] CTDB repository - branch master updated - ctdb-1.0.90-28-gd1332f4

2009-09-28 Thread Ronnie Sahlberg
The branch, master has been updated
   via  d1332f4d5d3d3e4b4e0cd362a6903d09e0d5fcbb (commit)
   via  95a3ee551241aa164967991fe5efe078e1714bde (commit)
  from  6e35feb06ec036b9036c5d1cdd94f7cef140d8a6 (commit)

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


- Log -
commit d1332f4d5d3d3e4b4e0cd362a6903d09e0d5fcbb
Author: Ronnie Sahlberg ronniesahlb...@gmail.com
Date:   Tue Sep 29 13:31:41 2009 +1000

New version 1.0.91

commit 95a3ee551241aa164967991fe5efe078e1714bde
Author: Ronnie Sahlberg ronniesahlb...@gmail.com
Date:   Tue Sep 29 13:20:18 2009 +1000

From Wolfgang Mueller-Friedt

Remove the explicit vacuum/repack commands from the 00.ctdb eventscript
and implement this in the ctdb daemon.

Combine vacuuming and repacking into one
cheap read traverse to enumerate all candidate records
and one write traverse that both repacks the database and also deletes the 
record locally where we are lmaster and where the records have already been 
deleted remotely.

this code also adds initial autotuning heuristics for the vacuum intervals 
and how many records to delete in each iteration.

minor stylish changes made by ronnie s

---

Summary of changes:
 config/events.d/00.ctdb |   23 --
 include/ctdb_private.h  |3 +
 packaging/RPM/ctdb.spec |9 +-
 server/ctdb_tunables.c  |5 +-
 server/ctdb_vacuum.c|  630 +++
 5 files changed, 600 insertions(+), 70 deletions(-)


Changeset truncated at 500 lines:

diff --git a/config/events.d/00.ctdb b/config/events.d/00.ctdb
index 8821995..90fd92f 100755
--- a/config/events.d/00.ctdb
+++ b/config/events.d/00.ctdb
@@ -18,18 +18,6 @@ PATH=/bin:/usr/bin:$PATH
 cmd=$1
 shift
 
-# set default samba cleanup period - in minutes
-[ -z $CTDB_VACUUM_PERIOD ]  {
-CTDB_VACUUM_PERIOD=5
-}
-
-###
-# periodic vacuum function
-periodic_vacuum() {
-# this cleans up dead records and repacks the databases
-( time ctdb vacuum 20 -T 30 )  $CTDB_BASE/state/vacuum.log 21 
-}
-
 case $cmd in 
  startup)
 # make sure we have a blank state directory for the scripts to work 
with
@@ -47,17 +35,6 @@ case $cmd in
;;
 
 monitor)
-   # Create a dummy file to track when we need to do periodic cleanup
-   # of samba databases
-   [ -f $CTDB_BASE/state/periodic_vacuum ] || {
-   touch $CTDB_BASE/state/periodic_vacuum
-   }
-   [ `/usr/bin/find $CTDB_BASE/state/periodic_vacuum -mmin 
+$CTDB_VACUUM_PERIOD | wc -l` -eq 1 ]  {
-   # vacuum the databases
-   touch $CTDB_BASE/state/periodic_vacuum
-   periodic_vacuum
-   }
-
# monitor that we are not running out of memory
[ -z $CTDB_MONITOR_FREE_MEMORY ] || {
FREE_MEM=`free -m | grep buffers/cache | while read A B C D 
;do /bin/echo -n $D ; done`
diff --git a/include/ctdb_private.h b/include/ctdb_private.h
index 3528a5c..a9b4e22 100644
--- a/include/ctdb_private.h
+++ b/include/ctdb_private.h
@@ -111,6 +111,9 @@ struct ctdb_tunable {
uint32_t vacuum_default_interval;
uint32_t vacuum_max_run_time;
uint32_t repack_limit;
+   uint32_t vacuum_limit;
+   uint32_t vacuum_min_interval;
+   uint32_t vacuum_max_interval;
 };
 
 /*
diff --git a/packaging/RPM/ctdb.spec b/packaging/RPM/ctdb.spec
index 0954f74..5ddf836 100644
--- a/packaging/RPM/ctdb.spec
+++ b/packaging/RPM/ctdb.spec
@@ -4,7 +4,7 @@ Summary: Clustered TDB
 Vendor: Samba Team
 Packager: Samba Team sa...@samba.org
 Name: ctdb
-Version: 1.0.90
+Version: 1.0.91
 Release: 1
 Epoch: 0
 License: GNU GPL version 3
@@ -132,6 +132,13 @@ fi
 %{_libdir}/pkgconfig/ctdb.pc
 
 %changelog
+* Tue Sep 29 2009 : Version 1.0.91
+ - New vacuum and repack design from Wolgang Mueller.
+ - Add a new eventscript 01.reclock that will first mark a node unhealthy and 
later ban the node if the reclock file can not be accessed.
+ - Add machinereadable output to the ctdb getreclock command
+ - merge transaction updates from Michael Adam
+ - In the new banning code, reset the culprit count to 0 for all nodes that 
could successfully compelte a full recovery.
+ - dont mark the recovery master as a ban culprit because a node in the 
cluster needs a recovery. this happens naturally when using ctdb recover 
command so dont make this cause a node to be banned.
 * Sat Sep 12 2009 : Version 1.0.90
  - Be more forgiving for eventscripts that hang during startup
  - Fix for a banning bug in the new banning logic
diff --git a/server/ctdb_tunables.c b/server/ctdb_tunables.c
index 85cbc11..a321789 100644
--- a/server/ctdb_tunables.c
+++ b/server/ctdb_tunables.c
@@ -56,9 +56,12 @@ static const struct {
{ RecLockLatencyMs,  1000,  offsetof(struct ctdb_tunable, 
reclock_latency_ms) 

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

2009-09-28 Thread Ronnie Sahlberg
The annotated tag, ctdb-1.0.91 has been created
at  3ea59c1a057805c9053b73f53d1ad90102606b28 (tag)
   tagging  d1332f4d5d3d3e4b4e0cd362a6903d09e0d5fcbb (commit)
  replaces  ctdb-1.0.90
 tagged by  Ronnie Sahlberg
on  Tue Sep 29 13:34:56 2009 +1000

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

iD8DBQBKwYBu2aJ36aon/y8RAqzVAJwI1POVfcEBhq3ZOJb9uT6Z3CwrWACfSyRe
p68IW33ALMz+uMaKDiSskaE=
=/lK/
-END PGP SIGNATURE-

Martin Schwenke (3):
  Test suite: Rework the cluster (re)start code.
  Test suite: wait_until_node_has_status() now uses onnode any.
  Test suite: Update complex tests for wait_until_node_has_status() 
change.

Mathieu Parent (5):
  Fix bashism in natgw eventscript.
  Fix bashisms in multipathd event script.
  Fix bashisms in samba event script.
  Fix bashism in nfstickle event script.
  Update outdated autotools helper files.

Michael Adam (6):
  Rename the CTDB_INIT_STYLE ubuntu to debian - this is where it comes 
from.
  ctdb_logging: fix a comment typo.
  Introduce sysconfig variable CTDB_SYSLOG=yes/no (default no).
  ctdb_client: fix race in starting concurrent transactions on a single node
  Revert allow the transaction commit to fail
  Revert dont check if commit failed, we do allow the commit to fail 
sometimes

Ronnie Sahlberg (14):
  Merge commit 'obnox/master-rebase'
  try to restart statd everytime it fails, not just the first time
  Revert try to restart statd everytime it fails, not just the first time
  try restarting ststd indefinitely   not just once
  dont mark the recovery daemon as a ban culprit just because a node in the 
cluster was set to recvoery mode == ACTIVE.
  Merge commit 'martins/master'
  with the new banning logic with one struct for each node we no longer 
forget the other culprits as often as we used to do, which means that things 
like ctdb recover can now actually lead to a node becomming banned if we 
perform too many recoveries too frequently.
  Merge r...@10.1.1.27:/shared/ctdb/ctdb-git
  Merge commit 'obnox/master-rebase'
  add machinereadable output for the ctdb getreclock command
  add a new eventscript 01.reclock
  change the reclock fail count to 19 monitor intervals before we shut down 
ctdbd
  From Wolfgang Mueller-Friedt
  New version 1.0.91

---


-- 
CTDB repository


svn commit: samba-web r1328 - in trunk/team: .

2009-09-28 Thread rusty
Author: rusty
Date: 2009-09-28 22:27:35 -0600 (Mon, 28 Sep 2009)
New Revision: 1328

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

Log:
Rusty Russell lines up the Team Member columns.

Modified:
   trunk/team/index.html


Changeset:
Modified: trunk/team/index.html
===
--- trunk/team/index.html   2009-09-25 17:03:50 UTC (rev 1327)
+++ trunk/team/index.html   2009-09-29 04:27:35 UTC (rev 1328)
@@ -58,11 +58,11 @@
 lia href=mailto:ku...@samba.org;Guuml;nter Kukkukk/a/li
 lia href=mailto:jlay...@samba.org;Jeff Layton/a/li
 lia href=mailto:vlen...@samba.org;Volker Lendecke/a/li
+lia href=mailto:h...@samba.org;Herb Lewis/a/li
 /ul
 /td
 td valign=top
 ul
-lia href=mailto:h...@samba.org;Herb Lewis/a/li
 lispan style=color:#EE;Derrell Lipman/span/li
 lia href=mailto:j...@samba.org;Jim McDonough/a/li
 lia href=mailto:me...@samba.org;Stefan Metzmacher/a/li
@@ -70,6 +70,7 @@
 lia href=mailto:jpe...@samba.org;James Peach/a/li
 lia href=mailto:t...@samba.org;Tim Potter/a/li
 lia href=http://samba.org/~tprouty/;Tim Prouty/a/li
+lia href=http://ozlabs.org/~rusty/;Rusty Russell/a/li
 lia href=mailto:ksee...@samba.org;Karolin Seeger/a/li
 lia href=http://www.richardsharpe.com;Richard Sharpe/a/li
 lia href=mailto:d...@samba.org;Dan Shearer/a/li



[SCM] Samba Shared Repository - branch master updated - tevent-0-9-8-776-g325baf3

2009-09-28 Thread Jeremy Allison
The branch, master has been updated
   via  325baf37fffde738dcbb37a096d79f07b23586b2 (commit)
  from  2e989bab0764c298a2530a2d4c8690258eba210c (commit)

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


- Log -
commit 325baf37fffde738dcbb37a096d79f07b23586b2
Author: Jeremy Allison j...@samba.org
Date:   Mon Sep 28 21:36:15 2009 -0700

Don't defer a talloc_move'd pointer.
Jeremy.

---

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


Changeset truncated at 500 lines:

diff --git a/source3/smbd/aio.c b/source3/smbd/aio.c
index ed415c5..c0367a5 100644
--- a/source3/smbd/aio.c
+++ b/source3/smbd/aio.c
@@ -295,7 +295,7 @@ bool schedule_aio_write_and_X(connection_struct *conn,
if (!srv_send_smb(smbd_server_fd(),aio_ex-outbuf,
true, aio_ex-req-seqnum+1,
IS_CONN_ENCRYPTED(fsp-conn),
-   req-pcd)) {
+   aio_ex-req-pcd)) {
exit_server_cleanly(handle_aio_write: srv_send_smb 
failed.);
}


-- 
Samba Shared Repository