From 59c7a9b962487ef33a5fc5584a2a83ec50ff53a5 Mon Sep 17 00:00:00 2001 From: giovanni Date: Fri, 2 Jul 2010 14:42:29 +0000 Subject: [PATCH] Tell the user how to correctly enable samba as a Pdc ok Ian McWilliam (Maintainer) --- net/samba/Makefile | 4 ++-- net/samba/files/README.OpenBSD | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/net/samba/Makefile b/net/samba/Makefile index c00bff3e8fa..9255fb07f54 100644 --- a/net/samba/Makefile +++ b/net/samba/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.115 2010/06/25 17:39:12 sthen Exp $ +# $OpenBSD: Makefile,v 1.116 2010/07/02 14:42:29 giovanni Exp $ SHARED_ONLY= Yes @@ -6,7 +6,7 @@ COMMENT-main= SMB and CIFS client and server for UNIX COMMENT-docs= additional documentation and examples for Samba DISTNAME= samba-3.5.4 -PKGNAME-main= ${DISTNAME} +PKGNAME-main= ${DISTNAME}p0 FULLPKGNAME-docs= ${DISTNAME:S/-/-docs-/} FULLPKGPATH-docs= net/samba,-docs SHARED_LIBS= smbclient 2.0 \ diff --git a/net/samba/files/README.OpenBSD b/net/samba/files/README.OpenBSD index 93047efdc85..138040e0eac 100644 --- a/net/samba/files/README.OpenBSD +++ b/net/samba/files/README.OpenBSD @@ -72,3 +72,13 @@ $ sudo smbpasswd -a An EXPERIMENTAL implementation of the SMB2 protocol has been added. SMB2 can be enabled by setting "max protocol = smb2". SMB2 is a new implementation of the SMB protocol used by Windows Vista and higher. + +To use Samba as a PDC the values of openfiles-max in ${SYSCONFDIR}/login.conf +and kern.maxfiles should be increased to 16384. + +Rebuild the login.conf.db file if necessary: + + # cap_mkdb ${SYSCONFDIR}/login.conf + +Don't forget to add the entry kern.maxfiles=16384 to the ${SYSCONFDIR}/sysctl.conf +file to keep the change across reboots.