[SCM] Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-4963-gf11d4d0
The branch, v3-3-test has been updated via f11d4d088c17db77ba259972c05de72da0d3ac93 (commit) from c0aa23d119737bbb197eaadaa2eedc853b5179a1 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test - Log - commit f11d4d088c17db77ba259972c05de72da0d3ac93 Author: Derrell Lipman derrell.lip...@unwireduniverse.com Date: Sun Feb 15 15:00:25 2009 -0500 Remove compiler warnings about unknown structure pointer --- Summary of changes: source/include/libsmbclient.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) Changeset truncated at 500 lines: diff --git a/source/include/libsmbclient.h b/source/include/libsmbclient.h index a3a5d70..f8a6c8a 100644 --- a/source/include/libsmbclient.h +++ b/source/include/libsmbclient.h @@ -75,6 +75,7 @@ extern C { /* Make sure we have the following includes for now ... */ #include sys/types.h #include sys/stat.h +#include sys/statvfs.h #include fcntl.h #include utime.h -- Samba Shared Repository
Build status as of Mon Feb 16 00:00:03 2009
URL: http://build.samba.org/ --- /home/build/master/cache/broken_results.txt.old 2009-02-15 00:00:49.0 + +++ /home/build/master/cache/broken_results.txt 2009-02-16 00:00:32.0 + @@ -1,4 +1,4 @@ -Build status as of Sun Feb 15 00:00:02 2009 +Build status as of Mon Feb 16 00:00:03 2009 Build counts: Tree Total Broken Panic @@ -6,18 +6,18 @@ ccache 29 6 0 ctdb 0 0 0 distcc 1 0 0 -ldb 29 29 0 -libreplace 28 11 0 +ldb 28 29 0 +libreplace 27 11 0 lorikeet-heimdal 26 14 0 -pidl 16 3 0 -ppp 10 0 0 +pidl 19 3 0 +ppp 12 0 0 rsync29 8 0 samba-docs 0 0 0 -samba-gtk4 4 0 -samba_3_X_devel 26 23 0 -samba_3_X_test 25 23 1 -samba_4_0_test 28 25 1 -smb-build26 7 0 -talloc 29 29 0 -tdb 26 9 0 +samba-gtk5 5 0 +samba_3_X_devel 27 27 0 +samba_3_X_test 25 24 1 +samba_4_0_test 29 24 1 +smb-build28 5 0 +talloc 28 29 0 +tdb 27 8 0
[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha6-912-g9a5d5cc
The branch, master has been updated via 9a5d5cc1db0ee60486f932e34cd7961b90c70a56 (commit) from f608588ea3facd3f2e567d2c356a3a7466a0d1b0 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 9a5d5cc1db0ee60486f932e34cd7961b90c70a56 Author: Jeremy Allison j...@samba.org Date: Sun Feb 15 18:12:20 2009 -0800 Attempt to fix bug #6099. According to Microsoft Windows 7 looks at the negotiate_flags returned in this structure *even if the call fails with access denied ! So in order to allow Win7 to connect to a Samba NT style PDC we set the flags before we know if it's an error or not. Jeremy. --- Summary of changes: source3/rpc_server/srv_netlog_nt.c | 43 +-- 1 files changed, 26 insertions(+), 17 deletions(-) Changeset truncated at 500 lines: diff --git a/source3/rpc_server/srv_netlog_nt.c b/source3/rpc_server/srv_netlog_nt.c index add4a43..8f7c8d6 100644 --- a/source3/rpc_server/srv_netlog_nt.c +++ b/source3/rpc_server/srv_netlog_nt.c @@ -510,6 +510,32 @@ NTSTATUS _netr_ServerAuthenticate3(pipes_struct *p, struct netr_Credential srv_chal_out; const char *fn; + /* According to Microsoft (see bugid #6099) +* Windows 7 looks at the negotiate_flags +* returned in this structure *even if the +* call fails with access denied ! So in order +* to allow Win7 to connect to a Samba NT style +* PDC we set the flags before we know if it's +* an error or not. +*/ + + /* 0x01ff */ + srv_flgs = NETLOGON_NEG_ACCOUNT_LOCKOUT | + NETLOGON_NEG_PERSISTENT_SAMREPL | + NETLOGON_NEG_ARCFOUR | + NETLOGON_NEG_PROMOTION_COUNT | + NETLOGON_NEG_CHANGELOG_BDC | + NETLOGON_NEG_FULL_SYNC_REPL | + NETLOGON_NEG_MULTIPLE_SIDS | + NETLOGON_NEG_REDO | + NETLOGON_NEG_PASSWORD_CHANGE_REFUSAL; + + if (lp_server_schannel() != false) { + srv_flgs |= NETLOGON_NEG_SCHANNEL; + } + + *r-out.negotiate_flags = srv_flgs; + switch (p-hdr_req.opnum) { case NDR_NETR_SERVERAUTHENTICATE2: fn = _netr_ServerAuthenticate2; @@ -568,26 +594,9 @@ NTSTATUS _netr_ServerAuthenticate3(pipes_struct *p, r-in.account_name)); return NT_STATUS_ACCESS_DENIED; } - - /* 0x01ff */ - srv_flgs = NETLOGON_NEG_ACCOUNT_LOCKOUT | - NETLOGON_NEG_PERSISTENT_SAMREPL | - NETLOGON_NEG_ARCFOUR | - NETLOGON_NEG_PROMOTION_COUNT | - NETLOGON_NEG_CHANGELOG_BDC | - NETLOGON_NEG_FULL_SYNC_REPL | - NETLOGON_NEG_MULTIPLE_SIDS | - NETLOGON_NEG_REDO | - NETLOGON_NEG_PASSWORD_CHANGE_REFUSAL; - - if (lp_server_schannel() != false) { - srv_flgs |= NETLOGON_NEG_SCHANNEL; - } - /* set up the LSA AUTH 2 response */ memcpy(r-out.return_credentials-data, srv_chal_out.data, sizeof(r-out.return_credentials-data)); - *r-out.negotiate_flags = srv_flgs; fstrcpy(p-dc-mach_acct, r-in.account_name); fstrcpy(p-dc-remote_machine, r-in.computer_name); -- Samba Shared Repository
[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-3465-geb82149
The branch, v3-2-test has been updated via eb82149dc7f6bbcca85e8ef97f3e23952b438770 (commit) from 0c4b1974a19d1ee78d3973808e9b854c19847a2b (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log - commit eb82149dc7f6bbcca85e8ef97f3e23952b438770 Author: Jeremy Allison j...@samba.org Date: Sun Feb 15 18:18:21 2009 -0800 Attempt to fix bug #6099. According to Microsoft Windows 7 looks at the negotiate_flags returned in this structure *even if the call fails with access denied ! So in order to allow Win7 to connect to a Samba NT style PDC we set the flags before we know if it's an error or not. Jeremy. --- Summary of changes: source/rpc_server/srv_netlog_nt.c | 33 ++--- 1 files changed, 26 insertions(+), 7 deletions(-) Changeset truncated at 500 lines: diff --git a/source/rpc_server/srv_netlog_nt.c b/source/rpc_server/srv_netlog_nt.c index 203f538..fa329d3 100644 --- a/source/rpc_server/srv_netlog_nt.c +++ b/source/rpc_server/srv_netlog_nt.c @@ -474,6 +474,32 @@ NTSTATUS _netr_ServerAuthenticate2(pipes_struct *p, uint32_t srv_flgs; struct netr_Credential srv_chal_out; + /* According to Microsoft (see bugid #6099) +* Windows 7 looks at the negotiate_flags +* returned in this structure *even if the +* call fails with access denied ! So in order +* to allow Win7 to connect to a Samba NT style +* PDC we set the flags before we know if it's +* an error or not. +*/ + + /* 0x01ff */ + srv_flgs = NETLOGON_NEG_ACCOUNT_LOCKOUT | + NETLOGON_NEG_PERSISTENT_SAMREPL | + NETLOGON_NEG_ARCFOUR | + NETLOGON_NEG_PROMOTION_COUNT | + NETLOGON_NEG_CHANGELOG_BDC | + NETLOGON_NEG_FULL_SYNC_REPL | + NETLOGON_NEG_MULTIPLE_SIDS | + NETLOGON_NEG_REDO | + NETLOGON_NEG_PASSWORD_CHANGE_REFUSAL; + + if (lp_server_schannel() != false) { + srv_flgs |= NETLOGON_NEG_SCHANNEL; + } + + *r-out.negotiate_flags = srv_flgs; + /* We use this as the key to store the creds: */ /* r-in.computer_name */ @@ -521,16 +547,9 @@ NTSTATUS _netr_ServerAuthenticate2(pipes_struct *p, return NT_STATUS_ACCESS_DENIED; } - srv_flgs = 0x01ff; - - if (lp_server_schannel() != false) { - srv_flgs |= NETLOGON_NEG_SCHANNEL; - } - /* set up the LSA AUTH 2 response */ memcpy(r-out.return_credentials-data, srv_chal_out.data, sizeof(r-out.return_credentials-data)); - *r-out.negotiate_flags = srv_flgs; fstrcpy(p-dc-mach_acct, r-in.account_name); fstrcpy(p-dc-remote_machine, r-in.computer_name); -- Samba Shared Repository
[SCM] Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-4964-gcafc9ef
The branch, v3-3-test has been updated via cafc9efceadcefa9154874e9846158cf23ee1645 (commit) from f11d4d088c17db77ba259972c05de72da0d3ac93 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test - Log - commit cafc9efceadcefa9154874e9846158cf23ee1645 Author: Jeremy Allison j...@samba.org Date: Sun Feb 15 18:18:38 2009 -0800 Attempt to fix bug #6099. According to Microsoft Windows 7 looks at the negotiate_flags returned in this structure *even if the call fails with access denied ! So in order to allow Win7 to connect to a Samba NT style PDC we set the flags before we know if it's an error or not. Jeremy. --- Summary of changes: source/rpc_server/srv_netlog_nt.c | 43 ++-- 1 files changed, 26 insertions(+), 17 deletions(-) Changeset truncated at 500 lines: diff --git a/source/rpc_server/srv_netlog_nt.c b/source/rpc_server/srv_netlog_nt.c index d375101..2efef7f 100644 --- a/source/rpc_server/srv_netlog_nt.c +++ b/source/rpc_server/srv_netlog_nt.c @@ -474,6 +474,32 @@ NTSTATUS _netr_ServerAuthenticate2(pipes_struct *p, uint32_t srv_flgs; struct netr_Credential srv_chal_out; + /* According to Microsoft (see bugid #6099) +* Windows 7 looks at the negotiate_flags +* returned in this structure *even if the +* call fails with access denied ! So in order +* to allow Win7 to connect to a Samba NT style +* PDC we set the flags before we know if it's +* an error or not. +*/ + + /* 0x01ff */ + srv_flgs = NETLOGON_NEG_ACCOUNT_LOCKOUT | + NETLOGON_NEG_PERSISTENT_SAMREPL | + NETLOGON_NEG_ARCFOUR | + NETLOGON_NEG_PROMOTION_COUNT | + NETLOGON_NEG_CHANGELOG_BDC | + NETLOGON_NEG_FULL_SYNC_REPL | + NETLOGON_NEG_MULTIPLE_SIDS | + NETLOGON_NEG_REDO | + NETLOGON_NEG_PASSWORD_CHANGE_REFUSAL; + + if (lp_server_schannel() != false) { + srv_flgs |= NETLOGON_NEG_SCHANNEL; + } + + *r-out.negotiate_flags = srv_flgs; + /* We use this as the key to store the creds: */ /* r-in.computer_name */ @@ -520,26 +546,9 @@ NTSTATUS _netr_ServerAuthenticate2(pipes_struct *p, r-in.account_name)); return NT_STATUS_ACCESS_DENIED; } - - /* 0x01ff */ - srv_flgs = NETLOGON_NEG_ACCOUNT_LOCKOUT | - NETLOGON_NEG_PERSISTENT_SAMREPL | - NETLOGON_NEG_ARCFOUR | - NETLOGON_NEG_PROMOTION_COUNT | - NETLOGON_NEG_CHANGELOG_BDC | - NETLOGON_NEG_FULL_SYNC_REPL | - NETLOGON_NEG_MULTIPLE_SIDS | - NETLOGON_NEG_REDO | - NETLOGON_NEG_PASSWORD_CHANGE_REFUSAL; - - if (lp_server_schannel() != false) { - srv_flgs |= NETLOGON_NEG_SCHANNEL; - } - /* set up the LSA AUTH 2 response */ memcpy(r-out.return_credentials-data, srv_chal_out.data, sizeof(r-out.return_credentials-data)); - *r-out.negotiate_flags = srv_flgs; fstrcpy(p-dc-mach_acct, r-in.account_name); fstrcpy(p-dc-remote_machine, r-in.computer_name); -- Samba Shared Repository
[SCM] Samba Shared Repository - branch v3-0-test updated - release-3-0-32-152-g194fdee
The branch, v3-0-test has been updated via 194fdee65f91e8ea88196d2cff1c678f868bb3df (commit) from 3086400b61ee3dda639c5520b539d4ff76e4d9c5 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-0-test - Log - commit 194fdee65f91e8ea88196d2cff1c678f868bb3df Author: Jeremy Allison j...@samba.org Date: Sun Feb 15 18:23:09 2009 -0800 Attempt to fix bug #6099. According to Microsoft Windows 7 looks at the negotiate_flags returned in this structure *even if the call fails with access denied ! So in order to allow Win7 to connect to a Samba NT style PDC we set the flags before we know if it's an error or not. Jeremy. --- Summary of changes: source/nsswitch/wins.c| 82 - source/rpc_server/srv_netlog_nt.c | 27 +--- 2 files changed, 83 insertions(+), 26 deletions(-) Changeset truncated at 500 lines: diff --git a/source/nsswitch/wins.c b/source/nsswitch/wins.c index 697bc15..a8736f0 100644 --- a/source/nsswitch/wins.c +++ b/source/nsswitch/wins.c @@ -26,6 +26,14 @@ #include ns_daemon.h #endif +#if HAVE_PTHREAD_H +#include pthread.h +#endif + +#if HAVE_PTHREAD +static pthread_mutex_t wins_nss_mutex = PTHREAD_MUTEX_INITIALIZER; +#endif + #ifndef INADDRSZ #define INADDRSZ 4 #endif @@ -297,11 +305,16 @@ NSS_STATUS _nss_wins_gethostbyname_r(const char *hostname, struct hostent *he, char *buffer, size_t buflen, int *h_errnop) { + NSS_STATUS nss_status = NSS_STATUS_SUCCESS; struct in_addr *ip_list; int i, count; fstring name; size_t namelen; +#if HAVE_PTHREAD + pthread_mutex_lock(wins_nss_mutex); +#endif + memset(he, '\0', sizeof(*he)); fstrcpy(name, hostname); @@ -309,15 +322,19 @@ _nss_wins_gethostbyname_r(const char *hostname, struct hostent *he, ip_list = lookup_byname_backend(name, count); - if (!ip_list) - return NSS_STATUS_NOTFOUND; + if (!ip_list) { + nss_status = NSS_STATUS_NOTFOUND; + goto out; + } /* Copy h_name */ namelen = strlen(name) + 1; - if ((he-h_name = get_static(buffer, buflen, namelen)) == NULL) - return NSS_STATUS_TRYAGAIN; + if ((he-h_name = get_static(buffer, buflen, namelen)) == NULL) { + nss_status = NSS_STATUS_TRYAGAIN; + goto out; + } memcpy(he-h_name, name, namelen); @@ -326,17 +343,23 @@ _nss_wins_gethostbyname_r(const char *hostname, struct hostent *he, if ((i = (unsigned long)(buffer) % sizeof(char*)) != 0) i = sizeof(char*) - i; - if (get_static(buffer, buflen, i) == NULL) - return NSS_STATUS_TRYAGAIN; + if (get_static(buffer, buflen, i) == NULL) { + nss_status = NSS_STATUS_TRYAGAIN; + goto out; + } if ((he-h_addr_list = (char **)get_static( -buffer, buflen, (count + 1) * sizeof(char *))) == NULL) - return NSS_STATUS_TRYAGAIN; +buffer, buflen, (count + 1) * sizeof(char *))) == NULL) { + nss_status = NSS_STATUS_TRYAGAIN; + goto out; + } for (i = 0; i count; i++) { if ((he-h_addr_list[i] = get_static(buffer, buflen, -INADDRSZ)) == NULL) - return NSS_STATUS_TRYAGAIN; +INADDRSZ)) == NULL) { + nss_status = NSS_STATUS_TRYAGAIN; + goto out; + } memcpy(he-h_addr_list[i], ip_list[i], INADDRSZ); } @@ -355,16 +378,27 @@ _nss_wins_gethostbyname_r(const char *hostname, struct hostent *he, if ((i = (unsigned long)(buffer) % sizeof(char*)) != 0) i = sizeof(char*) - i; - if (get_static(buffer, buflen, i) == NULL) - return NSS_STATUS_TRYAGAIN; + if (get_static(buffer, buflen, i) == NULL) { + nss_status = NSS_STATUS_TRYAGAIN; + goto out; + } if ((he-h_aliases = (char **)get_static( -buffer, buflen, sizeof(char *))) == NULL) - return NSS_STATUS_TRYAGAIN; +buffer, buflen, sizeof(char *))) == NULL) { + nss_status = NSS_STATUS_TRYAGAIN; + goto out; + } he-h_aliases[0] = NULL; - return NSS_STATUS_SUCCESS; + nss_status = NSS_STATUS_SUCCESS; + + out: + +#if HAVE_PTHREAD + pthread_mutex_unlock(wins_nss_mutex); +#endif + return nss_status; } @@ -372,12 +406,22 @@ NSS_STATUS _nss_wins_gethostbyname2_r(const char *name, int af, struct hostent *he,
[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha6-913-g6211162
The branch, master has been updated via 6211162d3eeebcfde86a039c67119e6388e6dfbc (commit) from 9a5d5cc1db0ee60486f932e34cd7961b90c70a56 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 6211162d3eeebcfde86a039c67119e6388e6dfbc Author: Stefan Metzmacher me...@samba.org Date: Mon Feb 16 08:52:06 2009 +0100 lib/tevent: change to LGPLv3+ metze --- Summary of changes: lib/tevent/pytevent.c| 28 lib/tevent/tests.py | 28 lib/tevent/testsuite.c | 32 ++-- lib/tevent/tevent.c | 29 + lib/tevent/tevent.h | 28 lib/tevent/tevent_debug.c| 22 +- lib/tevent/tevent_epoll.c| 30 +- lib/tevent/tevent_fd.c | 24 ++-- lib/tevent/tevent_internal.h | 30 +- lib/tevent/tevent_liboop.c | 28 lib/tevent/tevent_req.c | 22 +- lib/tevent/tevent_select.c | 30 +- lib/tevent/tevent_signal.c | 28 lib/tevent/tevent_standard.c | 30 +- lib/tevent/tevent_timed.c| 30 +- lib/tevent/tevent_util.c | 22 +- 16 files changed, 253 insertions(+), 188 deletions(-) Changeset truncated at 500 lines: diff --git a/lib/tevent/pytevent.c b/lib/tevent/pytevent.c index 5c34064..9bffe3d 100644 --- a/lib/tevent/pytevent.c +++ b/lib/tevent/pytevent.c @@ -1,19 +1,23 @@ /* Unix SMB/CIFS implementation. Copyright (C) Jelmer Vernooij jel...@samba.org 2007-2008 - - 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, + + ** NOTE! The following LGPL license applies to the tevent + ** library. This does NOT imply that all of Samba is released + ** under the LGPL + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 3 of the License, or (at your option) any later version. + + This library 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/. + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, see http://www.gnu.org/licenses/. */ #include replace.h diff --git a/lib/tevent/tests.py b/lib/tevent/tests.py index bf594a1..53e00b0 100644 --- a/lib/tevent/tests.py +++ b/lib/tevent/tests.py @@ -2,19 +2,23 @@ # Unix SMB/CIFS implementation. # Copyright (C) Jelmer Vernooij jel...@samba.org 2007 -# -# 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, +# +# ** NOTE! The following LGPL license applies to the tevent +# ** library. This does NOT imply that all of Samba is released +# ** under the LGPL +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 3 of the License, or (at your option) any later version. +# +# This library 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/. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General