[Samba] libsmb error

2009-08-02 Thread Chris Lavin
Can anyone point me in the right direction as to how to cure this compile
error?
 
 
Compiling libsmb/libsmb_cache.c
In file included from libsmb/libsmb_cache.c:24:
include/libsmbclient.h:78:25: sys/statvfs.h: No such file or directory
In file included from libsmb/libsmb_cache.c:24:
include/libsmbclient.h:875: warning: `struct statvfs' declared inside
parameter list
include/libsmbclient.h:875: warning: its scope is only this definition or
declaration, which is probably not what you want
include/libsmbclient.h:881: warning: `struct statvfs' declared inside
parameter list
include/libsmbclient.h:1643: warning: `struct statvfs' declared inside
parameter list
include/libsmbclient.h:1666: warning: `struct statvfs' declared inside
parameter list
In file included from libsmb/libsmb_cache.c:25:
include/libsmb_internal.h:509: warning: `struct statvfs' declared inside
parameter list
include/libsmb_internal.h:515: warning: `struct statvfs' declared inside
parameter list
The following command failed:
gcc -I. -I/altroot/samba-3.3.7/source  -O -O -D_SAMBA_BUILD_=3
-I/altroot/samba-3.3.7/source/popt
-I/altroot/samba-3.3.7/source/iniparser/src -Iinclude -I./include  -I. -I.
-I./lib/replace -I./lib/talloc -I./lib/tdb/include -I./libaddns -I./librpc
-DHAVE_CONFIG_H  -I/usr/include/kerberosV -Iinclude -I./include -I. -I.
-I./lib/replace -I./lib/talloc -I./lib/tdb/include -I./libaddns -I./librpc
-I./popt -I/usr/local/include -DLDAP_DEPRECATED   -I/include
-I/altroot/samba-3.3.7/source/lib -D_SAMBA_BUILD_=3 -fPIC -c
libsmb/libsmb_cache.c -o libsmb/libsmb_cache.o
make: *** [libsmb/libsmb_cache.o] Error 1
 
Thanks
Chris Lavin
 
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] libsmb error

2009-08-02 Thread Eero Volotinen

Chris Lavin kirjoitti:

Can anyone point me in the right direction as to how to cure this compile
error?
 
 
include/libsmbclient.h:78:25: sys/statvfs.h: No such file or directory


You are possibly missing linux-headers or kernel-headers package, try to 
install it and then try to compile samba.


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


Re: [Samba] Reverse Veto Files - let's try again!

2009-08-02 Thread Illtud Daniel

Jeremy Allison wrote:


veto files should take precedence.


How would that work if you wanted to veto everything except
(as Charles suggested) jpeg files? If I did:

Veto Files= /*/
Allowed Files= /*.jpg/

If Veto takes precedence, this isn't going to do it, is it?

I think I'm answering my own question - without a not operator
in 'veto files', the allowed files must take precedence, mustn't
it?

--
Illtud Daniel illtud.dan...@llgc.org.uk
Prif Swyddog Technoleg  Chief Technical Officer
Llyfrgell Genedlaethol Cymru  National Library of Wales
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] TOSHAG-ChangeNotes.xml translate finished and some typo found

2009-08-02 Thread OPC oota
Now, TOSHARG-ChangeNotes.xml translate to Japanese finished(3.4.0 base).
 
And some typo found.

--
Assume that a group named emphasisdevelopers/emphasis exists with a UNIX 
GID of 782. In this
case this user does not exist in Samba's group mapping table. It would be 
perfectly normal for
  group?
this group to be appear in an ACL editor.  Prior to Samba-3.0.23, the group SID 
might appear as
literalS-1-5-21-647511796-4126122067-3123570092-2565/literal.


The smbconfoption name=passdb backend/ parameter no long accepts multiple 
passdb backends in a
 --- no longer?

chained configuration.  Also be aware that the SQL and XML based passdb modules 
have been
removed in the Samba-3.0.23 release.  More information regarding external 
support for a SQL
passdb module can be found on the  ulink 
url=http://pdbsql.sourceforge.net/;pdbsql/ulink web site.

--
--- Oota Toshiya ---  t-oota at dh.jp.nec.com
NEC Computers Software Operations Unit  Shiba,Minato,Tokyo
Open Source Software Platform Development Division  Japan,Earth,Solar system
(samba-jp/ldap-jp Staff,mutt-j/samba-jp postmaster)
-- 
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 Sun Aug 2 06:00:02 2009

2009-08-02 Thread build
URL: http://build.samba.org/

--- /home/build/master/cache/broken_results.txt.old 2009-08-01 
00:00:02.0 -0600
+++ /home/build/master/cache/broken_results.txt 2009-08-02 00:00:03.0 
-0600
@@ -1,21 +1,21 @@
-Build status as of Sat Aug  1 06:00:01 2009
+Build status as of Sun Aug  2 06:00:02 2009
 
 Build counts:
 Tree Total  Broken Panic 
 build_farm   0  0  0 
-ccache   1  1  0 
+ccache   2  1  0 
 distcc   0  0  0 
 ldb  29 29 0 
 libreplace   2  1  0 
 lorikeet 0  0  0 
-pidl 22 3  0 
+pidl 19 3  0 
 ppp  0  0  0 
-rsync1  1  0 
+rsync29 12 0 
 samba-docs   0  0  0 
 samba-web0  0  0 
-samba_3_current 29 17 0 
-samba_3_master 30 25 4 
-samba_3_next 30 28 1 
+samba_3_current 1  0  0 
+samba_3_master 30 23 5 
+samba_3_next 26 24 1 
 samba_4_0_test 32 26 3 
 talloc   29 29 0 
 tdb  27 27 0 


[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha8-759-g4f14738

2009-08-02 Thread Volker Lendecke
The branch, master has been updated
   via  4f147388c0512fc291cc53764c017d7117154afc (commit)
  from  62fec968193e8a96ccffef216aba30ffb681d33a (commit)

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


- Log -
commit 4f147388c0512fc291cc53764c017d7117154afc
Author: Volker Lendecke v...@samba.org
Date:   Sun Aug 2 10:43:05 2009 +0200

Refactor 9b78af1f: Fix lookupname recursion

Pass a flags argument instead of the original winbind command down the
name_to_sid chain. This way we are independent of the winbind commands and
can take the decision at a much higher level

---

Summary of changes:
 source3/winbindd/winbindd.h   |2 +-
 source3/winbindd/winbindd_ads.c   |6 +++---
 source3/winbindd/winbindd_cache.c |6 +++---
 source3/winbindd/winbindd_passdb.c|   16 +++-
 source3/winbindd/winbindd_reconnect.c |   11 +--
 source3/winbindd/winbindd_rpc.c   |2 +-
 source3/winbindd/winbindd_util.c  |   11 ---
 7 files changed, 24 insertions(+), 30 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/winbindd/winbindd.h b/source3/winbindd/winbindd.h
index 732b9a3..64fb885 100644
--- a/source3/winbindd/winbindd.h
+++ b/source3/winbindd/winbindd.h
@@ -247,9 +247,9 @@ struct winbindd_methods {
/* convert one user or group name to a sid */
NTSTATUS (*name_to_sid)(struct winbindd_domain *domain,
TALLOC_CTX *mem_ctx,
-   enum winbindd_cmd orig_cmd,
const char *domain_name,
const char *name,
+   uint32_t flags,
DOM_SID *sid,
enum lsa_SidType *type);
 
diff --git a/source3/winbindd/winbindd_ads.c b/source3/winbindd/winbindd_ads.c
index 08afb46..137a885 100644
--- a/source3/winbindd/winbindd_ads.c
+++ b/source3/winbindd/winbindd_ads.c
@@ -404,14 +404,14 @@ static NTSTATUS enum_local_groups(struct winbindd_domain 
*domain,
 /* convert a single name to a sid in a domain - use rpc methods */
 static NTSTATUS name_to_sid(struct winbindd_domain *domain,
TALLOC_CTX *mem_ctx,
-   enum winbindd_cmd orig_cmd,
const char *domain_name,
const char *name,
+   uint32_t flags,
DOM_SID *sid,
enum lsa_SidType *type)
 {
-   return reconnect_methods.name_to_sid(domain, mem_ctx, orig_cmd,
-domain_name, name,
+   return reconnect_methods.name_to_sid(domain, mem_ctx,
+domain_name, name, flags,
 sid, type);
 }
 
diff --git a/source3/winbindd/winbindd_cache.c 
b/source3/winbindd/winbindd_cache.c
index 6c14f9d..b8872a1 100644
--- a/source3/winbindd/winbindd_cache.c
+++ b/source3/winbindd/winbindd_cache.c
@@ -1608,9 +1608,9 @@ skip_save:
 /* convert a single name to a sid in a domain */
 static NTSTATUS name_to_sid(struct winbindd_domain *domain,
TALLOC_CTX *mem_ctx,
-   enum winbindd_cmd orig_cmd,
const char *domain_name,
const char *name,
+   uint32_t flags,
DOM_SID *sid,
enum lsa_SidType *type)
 {
@@ -1657,8 +1657,8 @@ do_query:
DEBUG(10,(name_to_sid: [Cached] - doing backend query for name for 
domain %s\n,
domain-name ));
 
-   status = domain-backend-name_to_sid(domain, mem_ctx, orig_cmd, 
- domain_name, name, sid, type);
+   status = domain-backend-name_to_sid(domain, mem_ctx, domain_name,
+ name, flags, sid, type);
 
/* and save it */
refresh_sequence_number(domain, false);
diff --git a/source3/winbindd/winbindd_passdb.c 
b/source3/winbindd/winbindd_passdb.c
index b959bfc..b6e572d 100644
--- a/source3/winbindd/winbindd_passdb.c
+++ b/source3/winbindd/winbindd_passdb.c
@@ -88,25 +88,15 @@ static NTSTATUS enum_local_groups(struct winbindd_domain 
*domain,
 /* convert a single name to a sid in a domain */
 static NTSTATUS name_to_sid(struct winbindd_domain *domain,
TALLOC_CTX *mem_ctx,
-   enum winbindd_cmd original_cmd,
const char *domain_name,
const char *name,
+   uint32_t flags,
DOM_SID *sid,
enum lsa_SidType *type)
 {
const char 

[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha8-760-g20d93b5

2009-08-02 Thread Alexander Bokovoy
The branch, master has been updated
   via  20d93b5b604da8a81d6435983fe2e3c33673b06c (commit)
  from  4f147388c0512fc291cc53764c017d7117154afc (commit)

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


- Log -
commit 20d93b5b604da8a81d6435983fe2e3c33673b06c
Author: Alexander Bokovoy a...@samba.org
Date:   Sun Aug 2 17:42:49 2009 +0300

Fix breakage for connect function after API change (connect - connect_fn)

---

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


Changeset truncated at 500 lines:

diff --git a/source3/modules/vfs_prealloc.c b/source3/modules/vfs_prealloc.c
index 4e6e5d9..c6333be 100644
--- a/source3/modules/vfs_prealloc.c
+++ b/source3/modules/vfs_prealloc.c
@@ -209,7 +209,7 @@ static int prealloc_ftruncate(vfs_handle_struct * handle,
 static struct vfs_fn_pointers prealloc_fns = {
.open = prealloc_open,
.ftruncate = prealloc_ftruncate,
-   .connect = prealloc_connect,
+   .connect_fn = prealloc_connect,
 };
 
 NTSTATUS vfs_prealloc_init(void);
diff --git a/source3/modules/vfs_tsmsm.c b/source3/modules/vfs_tsmsm.c
index e8ae7a2..19dc79b 100644
--- a/source3/modules/vfs_tsmsm.c
+++ b/source3/modules/vfs_tsmsm.c
@@ -363,7 +363,7 @@ static uint32_t tsmsm_fs_capabilities(struct 
vfs_handle_struct *handle)
 }
 
 static struct vfs_fn_pointers tsmsm_fns = {
-   .connect = tsmsm_connect,
+   .connect_fn = tsmsm_connect,
.fs_capabilities = tsmsm_fs_capabilities,
.aio_force = tsmsm_aio_force,
.aio_return = tsmsm_aio_return,


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha8-761-g4fa28af

2009-08-02 Thread Volker Lendecke
The branch, master has been updated
   via  4fa28af91db993e3d7d2996287dba97247b87e55 (commit)
  from  20d93b5b604da8a81d6435983fe2e3c33673b06c (commit)

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


- Log -
commit 4fa28af91db993e3d7d2996287dba97247b87e55
Author: Volker Lendecke v...@samba.org
Date:   Sun Aug 2 22:28:49 2009 +0200

Fix some nonempty blank lines

---

Summary of changes:
 source3/winbindd/winbindd_ads.c   |   56 ++--
 source3/winbindd/winbindd_creds.c |   14 
 source3/winbindd/winbindd_rpc.c   |   42 ++--
 3 files changed, 56 insertions(+), 56 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/winbindd/winbindd_ads.c b/source3/winbindd/winbindd_ads.c
index 137a885..50985cc 100644
--- a/source3/winbindd/winbindd_ads.c
+++ b/source3/winbindd/winbindd_ads.c
@@ -6,17 +6,17 @@
Copyright (C) Andrew Tridgell 2001
Copyright (C) Andrew Bartlett abart...@samba.org 2003
Copyright (C) Gerald (Jerry) Carter 2004
-   
+
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
-   
+
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
-   
+
You should have received a copy of the GNU General Public License
along with this program.  If not, see http://www.gnu.org/licenses/.
 */
@@ -174,7 +174,7 @@ static NTSTATUS query_user_list(struct winbindd_domain 
*domain,
}
 
ads = ads_cached_connection(domain);
-   
+
if (!ads) {
domain-last_status = NT_STATUS_SERVER_DISABLED;
goto done;
@@ -226,7 +226,7 @@ static NTSTATUS query_user_list(struct winbindd_domain 
*domain,
if (gecos == NULL) {
gecos = ads_pull_string(ads, mem_ctx, msg, name);
}
-   
+
if (!ads_pull_sid(ads, msg, objectSid,
  (*info)[i].user_sid)) {
DEBUG(1,(No sid for %s !?\n, name));
@@ -343,7 +343,7 @@ static NTSTATUS enum_dom_groups(struct winbindd_domain 
*domain,
}
 
i = 0;
-   
+
for (msg = ads_first_entry(ads, res); msg; msg = ads_next_entry(ads, 
msg)) {
char *name, *gecos;
DOM_SID sid;
@@ -397,7 +397,7 @@ static NTSTATUS enum_local_groups(struct winbindd_domain 
*domain,
 * to be split out
 */
*num_entries = 0;
-   
+
return NT_STATUS_OK;
 }
 
@@ -471,25 +471,25 @@ static NTSTATUS query_user(struct winbindd_domain *domain,
info-primary_gid = (gid_t)-1;
 
/* try netsamlogon cache first */
-   
+
if ( (user = netsamlogon_cache_get( mem_ctx, sid )) != NULL ) 
{
-   
+
DEBUG(5,(query_user: Cache lookup succeeded for %s\n, 
 sid_string_dbg(sid)));
 
sid_compose(info-user_sid, domain-sid, user-base.rid);
sid_compose(info-group_sid, domain-sid, 
user-base.primary_gid);
-   
+
info-acct_name = talloc_strdup(mem_ctx, 
user-base.account_name.string);
info-full_name = talloc_strdup(mem_ctx, 
user-base.full_name.string);
-   
+
nss_get_info_cached( domain, sid, mem_ctx, NULL, NULL, 
  info-homedir, info-shell, info-full_name, 
  info-primary_gid ); 
 
TALLOC_FREE(user);
-   
+
return NT_STATUS_OK;
}
 
@@ -628,14 +628,14 @@ static NTSTATUS lookup_usergroups_member(struct 
winbindd_domain *domain,
TALLOC_FREE(escaped_dn);
 
rc = ads_search_retry(ads, res, ldap_exp, group_attrs);
-   
+
if (!ADS_ERR_OK(rc) || !res) {
DEBUG(1,(lookup_usergroups ads_search member=%s: %s\n, 
user_dn, ads_errstr(rc)));
return ads_ntstatus(rc);
}
-   
+
count = ads_count_replies(ads, res);
-   
+
*user_sids = NULL;
num_groups = 0;
 
@@ -650,12 +650,12 @@ static NTSTATUS lookup_usergroups_member(struct 
winbindd_domain *domain,
for (msg = ads_first_entry(ads, res); msg;
 msg = ads_next_entry(ads, msg)) {
DOM_SID group_sid;
-   
+
if (!ads_pull_sid(ads, msg, objectSid, group_sid)) {
  

[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha8-762-ge215194

2009-08-02 Thread Bo Yang
The branch, master has been updated
   via  e21519403318acea3424516afc12730fe9e9d432 (commit)
  from  4fa28af91db993e3d7d2996287dba97247b87e55 (commit)

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


- Log -
commit e21519403318acea3424516afc12730fe9e9d432
Author: Bo Yang boy...@samba.org
Date:   Mon Aug 3 08:16:21 2009 +0800

s3: check in .po files for pam_winbind.

Signed-off-by: Bo Yang boy...@samba.org

---

Summary of changes:
 source3/locale/pam_winbind/ar.po|  153 +
 source3/locale/pam_winbind/cs.po|  153 +
 source3/locale/pam_winbind/da.po|  178 ++
 source3/locale/pam_winbind/es.po|  153 +
 source3/locale/pam_winbind/fi.po|  181 ++
 source3/locale/pam_winbind/fr.po|  153 +
 source3/locale/pam_winbind/hu.po|  166 +++
 source3/locale/pam_winbind/it.po|  153 +
 source3/locale/pam_winbind/ja.po|  153 +
 source3/locale/pam_winbind/ko.po|  153 +
 source3/locale/pam_winbind/nb.po|  183 +++
 source3/locale/pam_winbind/nl.po|  153 +
 source3/locale/pam_winbind/pl.po|  153 +
 source3/locale/pam_winbind/pt_BR.po |  153 +
 source3/locale/pam_winbind/ru.po|  153 +
 source3/locale/pam_winbind/sv.po|  153 +
 source3/locale/pam_winbind/zh_CN.po |  153 +
 source3/locale/pam_winbind/zh_TW.po |  153 +
 18 files changed, 2850 insertions(+), 0 deletions(-)
 create mode 100644 source3/locale/pam_winbind/ar.po
 create mode 100644 source3/locale/pam_winbind/cs.po
 create mode 100644 source3/locale/pam_winbind/da.po
 create mode 100644 source3/locale/pam_winbind/es.po
 create mode 100644 source3/locale/pam_winbind/fi.po
 create mode 100644 source3/locale/pam_winbind/fr.po
 create mode 100644 source3/locale/pam_winbind/hu.po
 create mode 100644 source3/locale/pam_winbind/it.po
 create mode 100644 source3/locale/pam_winbind/ja.po
 create mode 100644 source3/locale/pam_winbind/ko.po
 create mode 100644 source3/locale/pam_winbind/nb.po
 create mode 100644 source3/locale/pam_winbind/nl.po
 create mode 100644 source3/locale/pam_winbind/pl.po
 create mode 100644 source3/locale/pam_winbind/pt_BR.po
 create mode 100644 source3/locale/pam_winbind/ru.po
 create mode 100644 source3/locale/pam_winbind/sv.po
 create mode 100644 source3/locale/pam_winbind/zh_CN.po
 create mode 100644 source3/locale/pam_winbind/zh_TW.po


Changeset truncated at 500 lines:

diff --git a/source3/locale/pam_winbind/ar.po b/source3/locale/pam_winbind/ar.po
new file mode 100644
index 000..1cd622b
--- /dev/null
+++ b/source3/locale/pam_winbind/ar.po
@@ -0,0 +1,153 @@
+# This file is distributed under the same license as the package.
+#
+# Copyright (C) 2009 Lars Mueller l...@samba.org
+msgid 
+msgstr 
+Project-Id-Version: pam_winbind\n
+Report-Msgid-Bugs-To: \n
+POT-Creation-Date: 2008-07-16 15:30+0800\n
+PO-Revision-Date: 2009-02-06 08:04\n
+Last-Translator: Novell Language langu...@novell.com\n
+Language-Team: Novell Language langu...@novell.com\n
+MIME-Version: 1.0\n
+Content-Type: text/plain; charset=UTF-8\n
+Content-Transfer-Encoding: 8bit\n
+
+#: pam_winbind.c:326
+msgid Success
+msgstr نجاح
+
+#: pam_winbind.c:327
+msgid No primary Domain Controler available
+msgstr جهاز التحكم في المجال الرئيسي غير 
متوفر
+
+#: pam_winbind.c:328
+msgid No domain controllers found
+msgstr لم يتم العثور على أجهزة تحكم في المجال
+
+#: pam_winbind.c:329
+msgid No logon servers
+msgstr لا توجد خوادم تسجيل الدخول
+
+#: pam_winbind.c:330
+msgid Password too short
+msgstr كلمة السر قصيرة جدًا
+
+#: pam_winbind.c:331
+msgid The password of this user is too recent to change
+msgstr كلمة سر هذا المستخدم حديثة جدًا على 
التغيير
+
+#: pam_winbind.c:332
+msgid Password is already in password history
+msgstr كلمة السر موجودة بالفعل في سجل كلمات 
السر
+
+#: pam_winbind.c:333
+msgid Your password has expired
+msgstr انتهت صلاحية كلمة السر الخاصة بك
+
+#: pam_winbind.c:334
+msgid You need to change your password now
+msgstr يلزم تغيير كلمة السر الآن
+
+#: pam_winbind.c:335
+msgid You are not allowed to logon from this workstation
+msgstr غير مسموح لك بتسجيل الدخول من محطة 
العمل هذه
+
+#: