aboutsummaryrefslogtreecommitdiffstats
path: root/net/samba3
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2007-05-24 15:54:25 +0800
committerkrion <krion@FreeBSD.org>2007-05-24 15:54:25 +0800
commit1721c4204db7fc1d6861501f8ad3f7e43d2d8794 (patch)
tree22315bec38e7691def079958bb19ebcc2a02605b /net/samba3
parent5f409e37a1bed0f045ab5f39baf06753b45997f5 (diff)
downloadfreebsd-ports-gnome-1721c4204db7fc1d6861501f8ad3f7e43d2d8794.tar.gz
freebsd-ports-gnome-1721c4204db7fc1d6861501f8ad3f7e43d2d8794.tar.zst
freebsd-ports-gnome-1721c4204db7fc1d6861501f8ad3f7e43d2d8794.zip
An update of net/samba3 to the 3.0.25 version plus security fixes.
Major features included in the 3.0.25 code base are: o Significant improvements in the winbind off-line logon support. o Support for secure DDNS updates as part of the 'net ads join' process. o Rewritten IdMap interface which allows for TTL based caching and per domain backends. o New plug-in interface for the "winbind nss info" parameter. o New file change notify subsystem which is able to make use of inotify on Linux. o Support for passing Windows security descriptors to a VFS plug-in allowing for multiple Unix ACL implements to running side by side on the Same server. o Improved compatibility with Windows Vista clients including improved read performance with Linux servers. o Man pages for IdMap and VFS plug-ins. Security Fixes included in the Samba 3.0.25 release are: o CVE-2007-2444 Versions: Samba 3.0.23d - 3.0.25pre2 Local SID/Name translation bug can result in user privilege elevation o CVE-2007-2446 Versions: Samba 3.0.0 - 3.0.24 Multiple heap overflows allow remote code execution o CVE-2007-2447 Versions: Samba 3.0.0 - 3.0.24 Unescaped user input parameters are passed as arguments to /bin/sh allowing for remote command execution PR: ports/112836 Submitted by: maintainer Approved by: portmgr (self)
Diffstat (limited to 'net/samba3')
-rw-r--r--net/samba3/Makefile21
-rw-r--r--net/samba3/distinfo6
-rw-r--r--net/samba3/files/patch-Makefile.in11
-rw-r--r--net/samba3/files/patch-configure.in206
-rw-r--r--net/samba3/files/patch-include_includes.h6
-rw-r--r--net/samba3/files/patch-modules_vfs_posixacl.c15
-rw-r--r--net/samba3/files/patch-nsswitch_pam_winbind.c23
-rw-r--r--net/samba3/files/patch-pam_smbpass_pam_smb_auth.c4
-rw-r--r--net/samba3/files/patch-pam_smbpass_pam_smb_passwd.c4
-rw-r--r--net/samba3/files/patch-pam_smbpass_support.c4
-rw-r--r--net/samba3/files/patch-python_setup.py11
-rw-r--r--net/samba3/files/patch-script_installbin.sh.in4
-rw-r--r--net/samba3/files/patch-script_installswat.sh4
-rw-r--r--net/samba3/files/patch-smbd_aio.c6
-rw-r--r--net/samba3/files/patch-smbd_statvfs.c6
-rw-r--r--net/samba3/files/patch-utils_net_time.c6
-rw-r--r--net/samba3/files/patch-zb26
-rw-r--r--net/samba3/pkg-plist27
-rw-r--r--net/samba3/pkg-plist.swat24
19 files changed, 272 insertions, 142 deletions
diff --git a/net/samba3/Makefile b/net/samba3/Makefile
index e117e91ad7b6..d9cf70dc6ecc 100644
--- a/net/samba3/Makefile
+++ b/net/samba3/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= samba
-PORTVERSION?= 3.0.24
+PORTVERSION?= 3.0.25
PORTREVISION?= 0
PORTEPOCH?= 1
CATEGORIES?= net
@@ -22,6 +22,8 @@ CONFLICTS?= ja-samba-2.* ja-samba-3.* samba-2.* sharity-light-1.*
USE_ICONV= yes
GNU_CONFIGURE= yes
USE_AUTOTOOLS= autoconf:259 autoheader:259
+AUTOHEADER_ARGS= -I${WRKSRC} -I${WRKSRC}/lib/replace
+AUTOCONF_ARGS= -I${WRKSRC} -I${WRKSRC}/lib/replace
LATEST_LINK?= ${PKGNAMEPREFIX}${PORTNAME}3${PKGNAMESUFFIX}
EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}
@@ -71,6 +73,7 @@ OPTIONS= LDAP "With LDAP support" on \
MSDFS "With MSDFS support" off \
PAM_SMBPASS "With PAM authentication vs passdb backends" off \
CLUSTER "With experimental cluster support" off \
+ DNSUPDATE "With dynamic DNS update" off \
EXP_MODULES "With experimental modules" off \
POPT "With system-wide POPT library" on \
MAX_DEBUG "With maximum debuging" off
@@ -98,7 +101,8 @@ PLIST= ${WRKDIR}/.PLIST
CONFIGURE_ARGS+= --with-pam --with-readline --with-sendfile-support \
--without-libsmbclient --without-libmsrpc \
--without-libsmbsharemodes --without-python \
- --with-included-iniparser
+ --without-libaddns --with-included-iniparser \
+ --enable-largefile
.if !defined(WITHOUT_LDAP)
SAMBA_WANT_LDAP= yes
@@ -115,8 +119,8 @@ SUB_LIST+= CUPSD="@comment "
.if defined(WITH_MAX_DEBUG)
LIB_DEPENDS+= dmalloc.1:${PORTSDIR}/devel/dmalloc
-CPPFLAGS+= "-I${LOCALBASE}/include"
-LDFLAGS+= "-L${LOCALBASE}/lib"
+CPPFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS+= --enable-debug --enable-developer --enable-krb5developer --enable-dmalloc --with-profiling-data
.else
@@ -213,6 +217,13 @@ CONFIGURE_ARGS+= --with-cluster-support
CONFIGURE_ARGS+= --without-cluster-support
.endif
+.if defined(WITH_DNSUPDATE)
+LIB_DEPENDS+= uuid.1:${PORTSDIR}/misc/e2fsprogs-libuuid
+CONFIGURE_ARGS+= --with-dnsupdate
+.else
+CONFIGURE_ARGS+= --without-dnsupdate
+.endif
+
.if defined(WITH_AIO_SUPPORT)
IGNORE= broken kernel API until now (7-CURRENT). Disable AIO support
CONFIGURE_ARGS+= --with-aio-support
@@ -377,7 +388,7 @@ post-install:
${INSTALL_PROGRAM} "${WRKSRC}/bin/smbwrapper.so" "${SAMBA_MODULEDIR}"
.endif
# Lib
- @${FIND} "${SAMBA_MODULEDIR}" -type f | ${SED} -E 's|^${PREFIX}/?||;' | ${EGREP} -F -v -f ${WRKDIR}/.PLIST.exclude | ${SORT} >> ${TMPPLIST}
+ @${FIND} "${SAMBA_MODULEDIR}" -type f -o -type l | ${SED} -E 's|^${PREFIX}/?||;' | ${EGREP} -F -v -f ${WRKDIR}/.PLIST.exclude | ${SORT} >> ${TMPPLIST}
@for d in `${FIND} "${SAMBA_MODULEDIR}" -type d | ${SORT} -r`; do \
${ECHO_CMD} "@unexec ${RMDIR} \"$$d\" 2>/dev/null || true" >> ${TMPPLIST}; \
done
diff --git a/net/samba3/distinfo b/net/samba3/distinfo
index 764bd0e3cf74..6a24ecb95d7f 100644
--- a/net/samba3/distinfo
+++ b/net/samba3/distinfo
@@ -1,3 +1,3 @@
-MD5 (samba-3.0.24.tar.gz) = 89273f67a6d8067cbbecefaa13747153
-SHA256 (samba-3.0.24.tar.gz) = c4e8de3426fbbcee7f338f5cf09052cbdf9a36ae638aeeeca10498ef8d5343e2
-SIZE (samba-3.0.24.tar.gz) = 17708128
+MD5 (samba-3.0.25.tar.gz) = 267bd56b178a1b1285a41ec4cc1b75f0
+SHA256 (samba-3.0.25.tar.gz) = c88981d1ad221583ebcc96bcda81fb8f957ea82fe1828444fdef523ccf07db73
+SIZE (samba-3.0.25.tar.gz) = 18234944
diff --git a/net/samba3/files/patch-Makefile.in b/net/samba3/files/patch-Makefile.in
index cb0d950f7715..fec7b561bcd8 100644
--- a/net/samba3/files/patch-Makefile.in
+++ b/net/samba3/files/patch-Makefile.in
@@ -1,10 +1,11 @@
---- Makefile.in.orig Thu Apr 20 04:29:46 2006
-+++ Makefile.in Tue Apr 25 01:05:05 2006
-@@ -1410,7 +1410,7 @@
+--- ./Makefile.in.orig Mon Apr 9 19:31:00 2007
++++ ./Makefile.in Tue Apr 17 02:06:59 2007
+@@ -1558,8 +1558,7 @@
@echo Linking $@
- @$(CC) $(FLAGS) @PIE_LDFLAGS@ -o $@ $(DYNEXP) script/tests/timelimit.o
+ @$(CC) $(FLAGS) -o $@ $(DYNEXP) script/tests/timelimit.o
--install: installservers installbin @INSTALL_CIFSMOUNT@ installman installscripts installdat installswat installmodules @INSTALL_LIBSMBCLIENT@ @INSTALL_LIBMSRPC@ @INSTALL_PAM_MODULES@
+-install: installservers installbin @INSTALL_CIFSMOUNT@ installman installscripts installdat installswat installmodules @INSTALL_LIBSMBCLIENT@ @INSTALL_LIBMSRPC@ @INSTALL_PAM_MODULES@ @INSTALL_LIBSMBSHAREMODES@
+-
+install: installservers installbin installscripts installdat installswat installmodules
install-everything: install installmodules
diff --git a/net/samba3/files/patch-configure.in b/net/samba3/files/patch-configure.in
index 39dbdc586c23..2b72cbd289b8 100644
--- a/net/samba3/files/patch-configure.in
+++ b/net/samba3/files/patch-configure.in
@@ -1,6 +1,6 @@
---- configure.in.orig Tue Nov 14 15:42:15 2006
-+++ configure.in Sat Nov 18 03:19:57 2006
-@@ -1088,6 +1088,21 @@
+--- configure.in.orig Mon Apr 9 19:31:00 2007
++++ configure.in Wed Apr 18 03:30:37 2007
+@@ -1040,6 +1040,21 @@
AC_DEFINE(HAVE_SIG_ATOMIC_T_TYPE,1,[Whether we have the atomic_t variable type])
fi
@@ -22,67 +22,145 @@
AC_CACHE_CHECK([for struct timespec type],samba_cv_struct_timespec, [
AC_TRY_COMPILE([
#include <sys/types.h>
-@@ -2463,32 +2478,40 @@
- # Check if FAM notifications are available. For FAM info, see
- # http://oss.sgi.com/projects/fam/
- # http://savannah.nongnu.org/projects/fam/
-+AC_ARG_ENABLE(fam,
-+[ --enable-fam Turn on FAM support (default=auto)])
+@@ -5075,7 +5090,7 @@
+ #################################################
+ # check for ACL support
--AC_CHECK_HEADERS(fam.h, [samba_cv_HAVE_FAM_H=yes], [samba_cv_HAVE_FAM_H=no])
--if test x"$samba_cv_HAVE_FAM_H" = x"yes"; then
-- # On IRIX, libfam requires libC, but other FAM implementations might not
-- # need it.
-- AC_CHECK_LIB(fam, FAMOpen2,
-- [samba_cv_HAVE_LIBFAM=yes; samba_fam_libs="-lfam"],
-- [samba_cv_HAVE_LIBFAM=no])
--
-- if test x"$samba_cv_HAVE_LIBFAM" = x"no" ; then
-- samba_fam_xtra=-lC
-- AC_CHECK_LIB_EXT(fam, samba_fam_xtra, FAMOpen2,
-- [samba_cv_HAVE_LIBFAM=yes; samba_fam_libs="-lfam -lC"],
-- [samba_cv_HAVE_LIBFAM=no])
-- unset samba_fam_xtra
-+if test x$enable_fam != xno; then
-+ AC_CHECK_HEADERS(fam.h, [samba_cv_HAVE_FAM_H=yes], [samba_cv_HAVE_FAM_H=no])
-+ if test x"$samba_cv_HAVE_FAM_H" = x"yes"; then
-+ # On IRIX, libfam requires libC, but other FAM implementations
-+ # might not need it.
-+ AC_CHECK_LIB(fam, FAMOpen2,
-+ [samba_cv_HAVE_LIBFAM=yes; samba_fam_libs="-lfam"],
-+ [samba_cv_HAVE_LIBFAM=no])
-+
-+ if test x"$samba_cv_HAVE_LIBFAM" = x"no" ; then
-+ samba_fam_xtra=-lC
-+ AC_CHECK_LIB_EXT(fam, samba_fam_xtra, FAMOpen2,
-+ [samba_cv_HAVE_LIBFAM=yes; samba_fam_libs="-lfam -lC"],
-+ [samba_cv_HAVE_LIBFAM=no])
-+ unset samba_fam_xtra
-+ fi
- fi
--fi
+-AC_MSG_CHECKING(whether to support ACLs)
++AC_MSG_NOTICE(checking whether to support ACLs...)
+ AC_ARG_WITH(acl-support,
+ [ --with-acl-support Include ACL support (default=no)],
+ [ case "$withval" in
+@@ -5083,42 +5098,37 @@
--if test x"$samba_cv_HAVE_LIBFAM" = x"yes" ; then
-- AC_DEFINE(HAVE_FAM_CHANGE_NOTIFY, 1,
-- [Whether FAM is file notifications are available])
-- AC_TRY_COMPILE([#include <fam.h>],
-- [FAMCodes code = FAMChanged;],
-- AC_DEFINE(HAVE_FAM_H_FAMCODES_TYPEDEF, 1,
-- [Whether fam.h contains a typedef for enum FAMCodes]),
-- [])
-+ if test x"$samba_cv_HAVE_LIBFAM" = x"yes" ; then
-+ AC_DEFINE(HAVE_FAM_CHANGE_NOTIFY, 1,
-+ [Whether FAM file notifications are available])
-+ AC_TRY_COMPILE([#include <fam.h>],
-+ [FAMCodes code = FAMChanged;],
-+ AC_DEFINE(HAVE_FAM_H_FAMCODES_TYPEDEF, 1,
-+ [Whether fam.h contains a typedef for enum FAMCodes]),
-+ [])
-+ fi
-+
-+ if test x$enable_fam = xyes && test x"$samba_cv_HAVE_LIBFAM" != xyes ; then
-+ AC_MSG_ERROR(FAM support requested but FAM library not available )
-+ fi
- fi
+ case "$host_os" in
+ *sysv5*)
+- AC_MSG_RESULT(Using UnixWare ACLs)
++ AC_MSG_NOTICE(Using UnixWare ACLs)
+ AC_DEFINE(HAVE_UNIXWARE_ACLS,1,[Whether UnixWare ACLs are available])
+ default_static_modules="$default_static_modules vfs_solarisacl"
+ ;;
+ *solaris*)
+- AC_MSG_RESULT(Using solaris ACLs)
+- AC_DEFINE(HAVE_SOLARIS_ACLS,1,[Whether solaris ACLs are available])
++ AC_MSG_NOTICE(Using Solaris ACLs)
++ AC_DEFINE(HAVE_SOLARIS_ACLS,1,[Whether Solaris ACLs are available])
+ ACL_LIBS="$ACL_LIBS -lsec"
+ default_static_modules="$default_static_modules vfs_solarisacl"
+ ;;
+ *hpux*)
+- AC_MSG_RESULT(Using HPUX ACLs)
++ AC_MSG_NOTICE(Using HPUX ACLs)
+ AC_DEFINE(HAVE_HPUX_ACLS,1,[Whether HPUX ACLs are available])
+ default_static_modules="$default_static_modules vfs_hpuxacl"
+ ;;
+ *irix*)
+- AC_MSG_RESULT(Using IRIX ACLs)
++ AC_MSG_NOTICE(Using IRIX ACLs)
+ AC_DEFINE(HAVE_IRIX_ACLS,1,[Whether IRIX ACLs are available])
+ default_static_modules="$default_static_modules vfs_irixacl"
+ ;;
+ *aix*)
+- AC_MSG_RESULT(Using AIX ACLs)
++ AC_MSG_NOTICE(Using AIX ACLs)
+ AC_DEFINE(HAVE_AIX_ACLS,1,[Whether AIX ACLs are available])
+ default_static_modules="$default_static_modules vfs_aixacl"
+ ;;
+ *osf*)
+- AC_MSG_RESULT(Using Tru64 ACLs)
++ AC_MSG_NOTICE(Using Tru64 ACLs)
+ AC_DEFINE(HAVE_TRU64_ACLS,1,[Whether Tru64 ACLs are available])
+ ACL_LIBS="$ACL_LIBS -lpacl"
+ default_static_modules="$default_static_modules vfs_tru64acl"
+ ;;
+- *freebsd[[5-9]]*)
+- AC_MSG_RESULT(Using FreeBSD posix ACLs)
+- AC_DEFINE(HAVE_POSIX_ACLS,1,[Whether FreeBSD POSIX ACLs are available])
+- AC_DEFINE(HAVE_ACL_GET_PERM_NP,1,[Whether acl_get_perm_np() is available])
+- ;;
+ *linux*)
+ AC_CHECK_LIB(attr,getxattr,[ACL_LIBS="$ACL_LIBS -lattr"])
+ AC_CHECK_LIB(acl,acl_get_file,[ACL_LIBS="$ACL_LIBS -lacl"])
+@@ -5139,7 +5149,7 @@
+ LIBS=$acl_LIBS
+ ])
+ if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
+- AC_MSG_RESULT(Using posix ACLs)
++ AC_MSG_NOTICE(Using posix ACLs)
+ AC_DEFINE(HAVE_POSIX_ACLS,1,[Whether POSIX ACLs are available])
+ AC_CACHE_CHECK([for acl_get_perm_np],samba_cv_HAVE_ACL_GET_PERM_NP,[
+ acl_LIBS=$LIBS
+@@ -5160,12 +5170,18 @@
+ AC_DEFINE(HAVE_ACL_GET_PERM_NP,1,[Whether acl_get_perm_np() is available])
+ fi
+ fi
+- ;;
++ ;;
+ *)
+- AC_CHECK_LIB(acl,acl_get_file,[ACL_LIBS="$ACL_LIBS -lacl"])
+- AC_CACHE_CHECK([for ACL support],samba_cv_HAVE_POSIX_ACLS,[
++ AC_CHECK_LIB(acl,acl_get_file,[
++ ACL_LIBS="$ACL_LIBS -lacl"
++ samba_cv_acl_get_file=yes
++ ],[
++ AC_CHECK_FUNC(acl_get_file,[samba_cv_acl_get_file=yes])
++ ])
++ if test x"$samba_cv_acl_get_file" = x"yes"; then
++ AC_CACHE_CHECK([for POSIX ACL support],samba_cv_HAVE_POSIX_ACLS,[
+ acl_LIBS=$LIBS
+- LIBS="$LIBS -lacl"
++ LIBS="$LIBS $ACL_LIBS"
+ AC_TRY_LINK([
+ #include <sys/types.h>
+ #include <sys/acl.h>
+@@ -5178,20 +5194,20 @@
+ [samba_cv_HAVE_POSIX_ACLS=yes],
+ [samba_cv_HAVE_POSIX_ACLS=no])
+ LIBS=$acl_LIBS
+- ])
+- if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
+- AC_MSG_RESULT(Using posix ACLs)
++ ])
++ if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
++ AC_MSG_NOTICE(Using POSIX ACLs)
+ AC_DEFINE(HAVE_POSIX_ACLS,1,[Whether POSIX ACLs are available])
+ AC_CACHE_CHECK([for acl_get_perm_np],samba_cv_HAVE_ACL_GET_PERM_NP,[
+ acl_LIBS=$LIBS
+- LIBS="$LIBS -lacl"
++ LIBS="$LIBS $ACL_LIBS"
+ AC_TRY_LINK([
+ #include <sys/types.h>
+ #include <sys/acl.h>
+ ],[
+ acl_permset_t permset_d;
+ acl_perm_t perm;
+- return acl_get_perm_np( permset_d, perm);
++ return acl_get_perm_np(permset_d, perm);
+ ],
+ [samba_cv_HAVE_ACL_GET_PERM_NP=yes],
+ [samba_cv_HAVE_ACL_GET_PERM_NP=no])
+@@ -5200,17 +5216,22 @@
+ if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
+ AC_DEFINE(HAVE_ACL_GET_PERM_NP,1,[Whether acl_get_perm_np() is available])
+ fi
++ fi
++ fi
++ if test x"$samba_cv_HAVE_POSIX_ACLS" != x"yes"; then
++ AC_MSG_NOTICE(No POSIX ACLs support is availble)
++ AC_DEFINE(HAVE_NO_ACLS,1,[Whether no ACLs support is available])
+ fi
+ ;;
+ esac
+ ;;
+ *)
+- AC_MSG_RESULT(no)
++ AC_MSG_NOTICE(No ACLs support is availble)
+ AC_DEFINE(HAVE_NO_ACLS,1,[Whether no ACLs support is available])
+ ;;
+ esac ],
++ AC_MSG_NOTICE(No ACLs support is built in)
+ AC_DEFINE(HAVE_NO_ACLS,1,[Whether no ACLs support should be built in])
+- AC_MSG_RESULT(no)
+ )
- #################################################
+ if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
diff --git a/net/samba3/files/patch-include_includes.h b/net/samba3/files/patch-include_includes.h
index a9ae02a59eaf..b0267c0755cb 100644
--- a/net/samba3/files/patch-include_includes.h
+++ b/net/samba3/files/patch-include_includes.h
@@ -1,6 +1,6 @@
---- include/includes.h.orig Wed Aug 23 18:16:38 2006
-+++ include/includes.h Fri Sep 8 00:12:44 2006
-@@ -475,10 +475,10 @@
+--- ./include/includes.h.orig Mon Apr 9 19:30:59 2007
++++ ./include/includes.h Tue Apr 17 02:06:59 2007
+@@ -209,10 +209,10 @@
#undef HAVE_LDAP
#endif
diff --git a/net/samba3/files/patch-modules_vfs_posixacl.c b/net/samba3/files/patch-modules_vfs_posixacl.c
new file mode 100644
index 000000000000..faa908cd89be
--- /dev/null
+++ b/net/samba3/files/patch-modules_vfs_posixacl.c
@@ -0,0 +1,15 @@
+--- modules/vfs_posixacl.c.orig Wed Apr 18 11:51:22 2007
++++ modules/vfs_posixacl.c Wed Apr 18 11:51:48 2007
+@@ -200,9 +200,9 @@
+ return False;
+ }
+ ace->a_perm = 0;
+- ace->a_perm |= (acl_get_perm(permset, ACL_READ) ? SMB_ACL_READ : 0);
+- ace->a_perm |= (acl_get_perm(permset, ACL_WRITE) ? SMB_ACL_WRITE : 0);
+- ace->a_perm |= (acl_get_perm(permset, ACL_EXECUTE) ? SMB_ACL_EXECUTE : 0);
++ ace->a_perm |= (acl_get_perm_np(permset, ACL_READ) ? SMB_ACL_READ : 0);
++ ace->a_perm |= (acl_get_perm_np(permset, ACL_WRITE) ? SMB_ACL_WRITE : 0);
++ ace->a_perm |= (acl_get_perm_np(permset, ACL_EXECUTE) ? SMB_ACL_EXECUTE : 0);
+ return True;
+ }
+
diff --git a/net/samba3/files/patch-nsswitch_pam_winbind.c b/net/samba3/files/patch-nsswitch_pam_winbind.c
index 1e0c90546733..9c1a8f1bdee5 100644
--- a/net/samba3/files/patch-nsswitch_pam_winbind.c
+++ b/net/samba3/files/patch-nsswitch_pam_winbind.c
@@ -1,20 +1,11 @@
---- nsswitch/pam_winbind.c.orig Mon Aug 7 18:46:33 2006
-+++ nsswitch/pam_winbind.c Thu Aug 24 01:30:57 2006
-@@ -1016,7 +1016,7 @@
- }
- return PAM_USER_UNKNOWN;
+--- ./nsswitch/pam_winbind.c.orig Mon Apr 9 19:30:57 2007
++++ ./nsswitch/pam_winbind.c Tue Apr 17 02:06:59 2007
+@@ -1735,7 +1735,7 @@
+ ret = PAM_USER_UNKNOWN;
+ goto out;
case 0:
- pam_get_data( pamh, PAM_WINBIND_NEW_AUTHTOK_REQD, (const void **)&tmp);
+ pam_get_data( pamh, PAM_WINBIND_NEW_AUTHTOK_REQD, (void **)&tmp);
if (tmp != NULL) {
- retval = atoi(tmp);
- switch (retval) {
-@@ -1319,7 +1319,7 @@
- * By reaching here we have approved the passwords and must now
- * rebuild the password database file.
- */
-- pam_get_data( pamh, PAM_WINBIND_PWD_LAST_SET, (const void **)&pwdlastset_update);
-+ pam_get_data( pamh, PAM_WINBIND_PWD_LAST_SET, (void **)&pwdlastset_update);
-
- retval = winbind_chauthtok_request(pamh, ctrl, user, pass_old, pass_new, pwdlastset_update);
- if (retval) {
+ ret = atoi((const char *)tmp);
+ switch (ret) {
diff --git a/net/samba3/files/patch-pam_smbpass_pam_smb_auth.c b/net/samba3/files/patch-pam_smbpass_pam_smb_auth.c
index 502afeb2175d..3a704476ccd7 100644
--- a/net/samba3/files/patch-pam_smbpass_pam_smb_auth.c
+++ b/net/samba3/files/patch-pam_smbpass_pam_smb_auth.c
@@ -1,5 +1,5 @@
---- pam_smbpass/pam_smb_auth.c.orig Fri Jun 23 15:16:50 2006
-+++ pam_smbpass/pam_smb_auth.c Thu Aug 24 01:30:57 2006
+--- ./pam_smbpass/pam_smb_auth.c.orig Fri Jun 23 15:16:50 2006
++++ ./pam_smbpass/pam_smb_auth.c Tue Apr 17 02:06:59 2007
@@ -167,7 +167,7 @@
retval = PAM_SUCCESS;
diff --git a/net/samba3/files/patch-pam_smbpass_pam_smb_passwd.c b/net/samba3/files/patch-pam_smbpass_pam_smb_passwd.c
index f8d20936f884..60fb6b7f6b2c 100644
--- a/net/samba3/files/patch-pam_smbpass_pam_smb_passwd.c
+++ b/net/samba3/files/patch-pam_smbpass_pam_smb_passwd.c
@@ -1,5 +1,5 @@
---- pam_smbpass/pam_smb_passwd.c.orig Thu Apr 20 04:29:22 2006
-+++ pam_smbpass/pam_smb_passwd.c Thu Aug 24 01:30:57 2006
+--- ./pam_smbpass/pam_smb_passwd.c.orig Thu Apr 20 04:29:22 2006
++++ ./pam_smbpass/pam_smb_passwd.c Tue Apr 17 02:06:59 2007
@@ -226,7 +226,7 @@
(const void **)&pass_old );
} else {
diff --git a/net/samba3/files/patch-pam_smbpass_support.c b/net/samba3/files/patch-pam_smbpass_support.c
index 0c94db5550bb..ef06005e3824 100644
--- a/net/samba3/files/patch-pam_smbpass_support.c
+++ b/net/samba3/files/patch-pam_smbpass_support.c
@@ -1,5 +1,5 @@
---- pam_smbpass/support.c.orig Tue May 23 20:54:32 2006
-+++ pam_smbpass/support.c Thu Aug 24 01:30:57 2006
+--- ./pam_smbpass/support.c.orig Tue May 23 20:54:32 2006
++++ ./pam_smbpass/support.c Tue Apr 17 02:06:59 2007
@@ -384,7 +384,7 @@
if (newauth != NULL) {
diff --git a/net/samba3/files/patch-python_setup.py b/net/samba3/files/patch-python_setup.py
new file mode 100644
index 000000000000..fa195e473657
--- /dev/null
+++ b/net/samba3/files/patch-python_setup.py
@@ -0,0 +1,11 @@
+--- python/setup.py.orig Tue May 15 13:41:41 2007
++++ python/setup.py Tue May 15 13:43:03 2007
+@@ -67,6 +67,8 @@
+ libraries.append(lib[2:])
+ elif lib[0:8] == ("-pthread"):
+ pass # Skip linker flags
++ elif lib[0:4] == ("-pie"):
++ pass # Skip linker flags
+ elif lib[0:2] == "-L":
+ library_dirs.append(lib[2:])
+ elif lib[0:2] in ("-W","-s"):
diff --git a/net/samba3/files/patch-script_installbin.sh.in b/net/samba3/files/patch-script_installbin.sh.in
index 62743918b3e1..56766f98d8e1 100644
--- a/net/samba3/files/patch-script_installbin.sh.in
+++ b/net/samba3/files/patch-script_installbin.sh.in
@@ -1,5 +1,5 @@
---- script/installbin.sh.in.orig Sun Jun 25 04:08:55 2006
-+++ script/installbin.sh.in Sun Jun 25 04:10:00 2006
+--- ./script/installbin.sh.in.orig Tue Jun 13 03:52:17 2006
++++ ./script/installbin.sh.in Tue Apr 17 02:06:59 2007
@@ -13,11 +13,7 @@
for p in $*; do
p2=`basename $p`
diff --git a/net/samba3/files/patch-script_installswat.sh b/net/samba3/files/patch-script_installswat.sh
index 34af2088a74e..cbd26ed4668d 100644
--- a/net/samba3/files/patch-script_installswat.sh
+++ b/net/samba3/files/patch-script_installswat.sh
@@ -1,5 +1,5 @@
---- script/installswat.sh.orig Thu Apr 20 04:29:42 2006
-+++ script/installswat.sh Tue Apr 25 02:12:10 2006
+--- ./script/installswat.sh.orig Thu Mar 1 05:55:02 2007
++++ ./script/installswat.sh Tue Apr 17 02:06:59 2007
@@ -21,8 +21,7 @@
;;
esac
diff --git a/net/samba3/files/patch-smbd_aio.c b/net/samba3/files/patch-smbd_aio.c
index 785ea368425b..dbc63c6532c8 100644
--- a/net/samba3/files/patch-smbd_aio.c
+++ b/net/samba3/files/patch-smbd_aio.c
@@ -1,5 +1,5 @@
---- smbd/aio.c.orig Tue Jan 3 03:03:05 2006
-+++ smbd/aio.c Tue Jan 3 03:06:52 2006
+--- ./smbd/aio.c.orig Thu Mar 1 05:54:07 2007
++++ ./smbd/aio.c Tue Apr 17 02:06:59 2007
@@ -25,7 +25,17 @@
/* The signal we'll use to signify aio done. */
@@ -19,7 +19,7 @@
#endif
/****************************************************************************
-@@ -497,6 +507,11 @@
+@@ -531,6 +541,11 @@
static BOOL handle_aio_completed(struct aio_extra *aio_ex, int *perr)
{
int err;
diff --git a/net/samba3/files/patch-smbd_statvfs.c b/net/samba3/files/patch-smbd_statvfs.c
index bfd733806251..dc81c5ea67a8 100644
--- a/net/samba3/files/patch-smbd_statvfs.c
+++ b/net/samba3/files/patch-smbd_statvfs.c
@@ -1,5 +1,5 @@
---- smbd/statvfs.c.orig Wed Nov 9 19:28:55 2005
-+++ smbd/statvfs.c Thu Jan 5 04:26:54 2006
+--- ./smbd/statvfs.c.orig Thu Mar 1 05:54:06 2007
++++ ./smbd/statvfs.c Tue Apr 17 02:06:59 2007
@@ -3,6 +3,7 @@
VFS API's statvfs abstraction
Copyright (C) Alexander Bokovoy 2005
@@ -38,7 +38,7 @@
/*
@@ -53,6 +75,8 @@
{
- #if defined(LINUX)
+ #if defined(LINUX) && defined(HAVE_FSID_INT)
return linux_statvfs(path, statbuf);
+#elif defined(FREEBSD)
+ return bsd_statvfs(path, statbuf);
diff --git a/net/samba3/files/patch-utils_net_time.c b/net/samba3/files/patch-utils_net_time.c
index 9af23abe7230..a1e507c2deb6 100644
--- a/net/samba3/files/patch-utils_net_time.c
+++ b/net/samba3/files/patch-utils_net_time.c
@@ -1,6 +1,6 @@
---- utils/net_time.c.orig Fri Jun 23 15:16:53 2006
-+++ utils/net_time.c Thu Aug 24 01:30:57 2006
-@@ -79,9 +79,16 @@
+--- ./utils/net_time.c.orig Thu Mar 1 05:54:59 2007
++++ ./utils/net_time.c Tue Apr 17 02:06:59 2007
+@@ -83,9 +83,16 @@
return "unknown";
}
diff --git a/net/samba3/files/patch-zb b/net/samba3/files/patch-zb
deleted file mode 100644
index ce30f8757936..000000000000
--- a/net/samba3/files/patch-zb
+++ /dev/null
@@ -1,26 +0,0 @@
---- param/loadparm.c.orig Fri Aug 25 13:40:09 2006
-+++ param/loadparm.c Fri Aug 25 13:46:28 2006
-@@ -3852,7 +3852,7 @@
-
- BOOL dump_a_parameter(int snum, char *parm_name, FILE * f, BOOL isGlobal)
- {
-- service * pService = ServicePtrs[snum];
-+ service * pService = NULL;
- int i;
- BOOL result = False;
- parm_class p_class;
-@@ -3883,8 +3883,13 @@
- if (isGlobal) {
- p_class = P_GLOBAL;
- flag = FLAG_GLOBAL;
-- } else
-+ } else {
-+ if (!VALID_SNUM(snum)) {
-+ return False;
-+ }
-+ pService = ServicePtrs[snum];
- p_class = P_LOCAL;
-+ }
-
- for (i = 0; parm_table[i].label; i++) {
- if (strwicmp(parm_table[i].label, parm_name) == 0 &&
diff --git a/net/samba3/pkg-plist b/net/samba3/pkg-plist
index 5e57452aee34..37f7c4fba2f0 100644
--- a/net/samba3/pkg-plist
+++ b/net/samba3/pkg-plist
@@ -32,6 +32,7 @@ sbin/swat
%%SMBPASS%%%%EXAMPLESDIR%%/pam_smbpass/password-mature
%%SMBPASS%%%%EXAMPLESDIR%%/pam_smbpass/password-migration
%%SMBPASS%%%%EXAMPLESDIR%%/pam_smbpass/password-sync
+%%EXAMPLESDIR%%/%%SAMBA_CONFIG%%.sample
%%EXAMPLESDIR%%/LDAP/README
%%EXAMPLESDIR%%/LDAP/convertSambaAccount
%%EXAMPLESDIR%%/LDAP/get_next_oid
@@ -66,6 +67,7 @@ sbin/swat
%%EXAMPLESDIR%%/logon/ntlogon/ntlogon.py
%%EXAMPLESDIR%%/misc/adssearch.pl
%%EXAMPLESDIR%%/misc/check_multiple_LDAP_entries.pl
+%%EXAMPLESDIR%%/misc/cldap.pl
%%EXAMPLESDIR%%/misc/extra_smbstatus
%%EXAMPLESDIR%%/misc/swat.pl
%%EXAMPLESDIR%%/misc/wall.perl
@@ -73,6 +75,29 @@ sbin/swat
%%EXAMPLESDIR%%/nss/nss_winbind.h
%%EXAMPLESDIR%%/nss/wbtest.c
%%EXAMPLESDIR%%/pam_winbind/pam_winbind.conf
+%%EXAMPLESDIR%%/pcap2nbench/COPYING
+%%EXAMPLESDIR%%/pcap2nbench/Makefile
+%%EXAMPLESDIR%%/pcap2nbench/README
+%%EXAMPLESDIR%%/pcap2nbench/closerequest.cpp
+%%EXAMPLESDIR%%/pcap2nbench/closerequest.hpp
+%%EXAMPLESDIR%%/pcap2nbench/ethernet.cpp
+%%EXAMPLESDIR%%/pcap2nbench/ethernet.hpp
+%%EXAMPLESDIR%%/pcap2nbench/ip.cpp
+%%EXAMPLESDIR%%/pcap2nbench/ip.hpp
+%%EXAMPLESDIR%%/pcap2nbench/main.cpp
+%%EXAMPLESDIR%%/pcap2nbench/ntcreateandxrequest.cpp
+%%EXAMPLESDIR%%/pcap2nbench/ntcreateandxrequest.hpp
+%%EXAMPLESDIR%%/pcap2nbench/ntcreateandxresponse.cpp
+%%EXAMPLESDIR%%/pcap2nbench/ntcreateandxresponse.hpp
+%%EXAMPLESDIR%%/pcap2nbench/readandxrequest.cpp
+%%EXAMPLESDIR%%/pcap2nbench/readandxrequest.hpp
+%%EXAMPLESDIR%%/pcap2nbench/readandxresponse.hpp
+%%EXAMPLESDIR%%/pcap2nbench/smb.cpp
+%%EXAMPLESDIR%%/pcap2nbench/smb.hpp
+%%EXAMPLESDIR%%/pcap2nbench/tcp.cpp
+%%EXAMPLESDIR%%/pcap2nbench/tcp.hpp
+%%EXAMPLESDIR%%/pcap2nbench/writeandxrequest.cpp
+%%EXAMPLESDIR%%/pcap2nbench/writeandxrequest.hpp
%%EXAMPLESDIR%%/pdb/Makefile
%%EXAMPLESDIR%%/pdb/README
%%EXAMPLESDIR%%/pdb/test.c
@@ -110,7 +135,6 @@ sbin/swat
%%EXAMPLESDIR%%/scripts/shares/python/smbparm.py
%%EXAMPLESDIR%%/scripts/wins_hook/README
%%EXAMPLESDIR%%/scripts/wins_hook/dns_update
-%%EXAMPLESDIR%%/%%SAMBA_CONFIG%%.sample
%%EXAMPLESDIR%%/smb.conf.default
%%EXAMPLESDIR%%/tridge/README
%%EXAMPLESDIR%%/tridge/smb.conf
@@ -141,6 +165,7 @@ sbin/swat
@dirrm %%EXAMPLESDIR%%/printer-accounting
@dirrm %%EXAMPLESDIR%%/perfcounter
@dirrm %%EXAMPLESDIR%%/pdb
+@dirrm %%EXAMPLESDIR%%/pcap2nbench
@dirrm %%EXAMPLESDIR%%/pam_winbind
@dirrm %%EXAMPLESDIR%%/nss
@dirrm %%EXAMPLESDIR%%/misc
diff --git a/net/samba3/pkg-plist.swat b/net/samba3/pkg-plist.swat
index f94865911c22..90b01b772957 100644
--- a/net/samba3/pkg-plist.swat
+++ b/net/samba3/pkg-plist.swat
@@ -202,7 +202,13 @@ share/swat/help/Samba3-HOWTO/type.html
share/swat/help/Samba3-HOWTO/unicode.html
share/swat/help/Samba3-HOWTO/upgrading-to-3.0.html
share/swat/help/Samba3-HOWTO/winbind.html
+share/swat/help/manpages/eventlogadm.8.html
share/swat/help/manpages/findsmb.1.html
+share/swat/help/manpages/idmap_ad.8.html
+share/swat/help/manpages/idmap_ldap.8.html
+share/swat/help/manpages/idmap_nss.8.html
+share/swat/help/manpages/idmap_rid.8.html
+share/swat/help/manpages/idmap_tdb.8.html
share/swat/help/manpages/index.html
share/swat/help/manpages/lmhosts.5.html
share/swat/help/manpages/log2pcap.1.html
@@ -237,8 +243,26 @@ share/swat/help/manpages/smbumount.8.html
share/swat/help/manpages/swat.8.html
share/swat/help/manpages/tdbbackup.8.html
share/swat/help/manpages/tdbdump.8.html
+share/swat/help/manpages/tdbtool.8.html
share/swat/help/manpages/testparm.1.html
share/swat/help/manpages/umount.cifs.8.html
+share/swat/help/manpages/vfs_audit.8.html
+share/swat/help/manpages/vfs_cacheprime.8.html
+share/swat/help/manpages/vfs_cap.8.html
+share/swat/help/manpages/vfs_catia.8.html
+share/swat/help/manpages/vfs_commit.8.html
+share/swat/help/manpages/vfs_default_quota.8.html
+share/swat/help/manpages/vfs_extd_audit.8.html
+share/swat/help/manpages/vfs_fake_perms.8.html
+share/swat/help/manpages/vfs_full_audit.8.html
+share/swat/help/manpages/vfs_gpfs.8.html
+share/swat/help/manpages/vfs_netatalk.8.html
+share/swat/help/manpages/vfs_notify_fam.8.html
+share/swat/help/manpages/vfs_prealloc.8.html
+share/swat/help/manpages/vfs_readahead.8.html
+share/swat/help/manpages/vfs_readonly.8.html
+share/swat/help/manpages/vfs_recycle.8.html
+share/swat/help/manpages/vfs_shadow_copy.8.html
share/swat/help/manpages/vfstest.1.html
share/swat/help/manpages/wbinfo.1.html
share/swat/help/manpages/winbindd.8.html