New config for samba 4 ebuild

git-svn-id: svn+ssh://svnintern.kmrc.de/projects/gentoo/iwm-overlay@9303 cbe59ace-07ea-0310-918e-868702b5370d
This commit is contained in:
2009-04-30 11:47:22 +00:00
parent 187d2426ef
commit da04ecf29b
8 changed files with 40 additions and 226 deletions
-79
View File
@@ -1,79 +0,0 @@
#-------------------------------------------------------------------------
# WHATSNEW
#-------------------------------------------------------------------------
3.0.2:
If you are upgrading from a Samba version prior to 3.0.2, and you
use Samba's password database, you must run the following command:
pdbedit --force-initialized-passwords
3.0.10:
LIBs flags changes for suid bins: LDFLAGS+='-Wl,-z,now'
3.0.12:
libsmbclient shared library retrocompatibility is not assured: please
rebuild all samba-linked third part packages
/etc/samba/private moved to ${PRIVATE_DST}
for better File System Hierarchy adeherence
3.0.20:
--with-idmap configure option removed
(historical: it is already included if dynamic id/gid mapping is used)
New USE flags:
async: async input/output
automount: automount support (previously default)
syslog: log to syslog daemon (previously default)
3.0.22:
*sql backend: they were experimental, and now are marked as "deprecated"
upstream
CVE-2006-1059 security fix: 3.0.21* shipped with a bug in the debug
functions of winbind (debug>=5 reveals secret ids in logs)
3.0.23:
*sql and xml backends have been removed by upstream devs. SQL is
temporarily continued on SourceForge (http://pdbsql.sourceforge.net),
but it will be removed with samba 4.x (and maybe 3.2.x)
see also ldap changes below
CAN-2006-1059: memory exaustion DoS against smbd in all samba versions
between 3.0.x and 3.0.23
General:
If you experience client locks in file transfers _only_, try the parameter
use sendfile = no (man smb.conf(5), man sendfile(2))
There also seem some problems with the smbfs implementation of the recent
2.6.x kernels. If you experience problems (lockups) with smbfs, try
'mount -t cifs' as an alternative
#-------------------------------------------------------------------------
# WINBIND
#-------------------------------------------------------------------------
3.0.7: param: 'winbind enable local accounts' is now disabled by default
#-------------------------------------------------------------------------
# LDAP
#-------------------------------------------------------------------------
3.0.2:
If you are upgrading from prior to 3.0.2, and you are using LDAP for Samba
authentication, you must check the sambaPwdLastSet attribute on all
accounts, and ensure it is not 0.
3.0.12:
smbldap-tools is now a separate package for ease of upgrade
3.0.23:
a new index is required: 'index sambaSID sub' (run slapindex afterwards)
use an updated samba.schema containing the correct 'sambaSID' definition
#-------------------------------------------------------------------------
# DOCS
#-------------------------------------------------------------------------
General:
Beside [1], there is a good HOWTO about setting up samba3 with cups and
clamav at [2]
Ldap:
Beside the Samba Guide ad [1], try to look at smbldap-tools docs [3]
[1] http://www.samba.org
[2] http://www.gentoo.org/doc/en/quick-samba-howto.xml
[3] http://www.idealx.org/prj/samba/smbldap-howto.fr.html
+2
View File
@@ -0,0 +1,2 @@
# Command line options for the samba daemon
samba_start_options="-D"
+31
View File
@@ -0,0 +1,31 @@
#!/sbin/runscript
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: $
opts="reload"
depend() {
after slapd
need net
}
start() {
ebegin "Starting Samba 4.x daemon... "
start-stop-daemon --start --quiet \
--exec ${DAEMON} -- ${samba_start_options}
eend $?
}
stop() {
ebegin "Stopping Samba 4.x daemon... "
start-stop-daemon --stop --quiet \
--pidfile /var/run/samba/samba.pid
eend $?
}
reload() {
ebegin "Reloading Samba 4.x daemon... "
killall -HUP smbd
eend $?
}
-28
View File
@@ -1,28 +0,0 @@
#add "winbind" to the daemon_list if you also want winbind to start
daemon_list="smbd nmbd"
#----------------------------------------------------------------------------
# Daemons calls: <daemon_name>_<command_option>
#----------------------------------------------------------------------------
my_service_name="samba"
my_service_PRE="unset TMP TMPDIR"
my_service_POST=""
#----------------------------------------------------------------------------
# Daemons calls: <daemon_name>_<command_option>
#----------------------------------------------------------------------------
smbd_start_options="-D"
smbd_start="start-stop-daemon --start --quiet --exec /usr/sbin/smbd -- ${smbd_start_options}"
smbd_stop="start-stop-daemon --stop --quiet --pidfile /var/run/samba/smbd.pid"
smbd_reload="killall -HUP smbd"
nmbd_start_options="-D"
nmbd_start="start-stop-daemon --start --quiet --exec /usr/sbin/nmbd -- ${nmbd_start_options}"
nmbd_stop="start-stop-daemon --stop --quiet --pidfile /var/run/samba/nmbd.pid"
nmbd_reload="killall -HUP nmbd"
winbind_start_options=""
winbind_start="start-stop-daemon --start --quiet --exec /usr/sbin/winbindd -- ${winbind_start_options}"
winbind_stop="start-stop-daemon --stop --quiet --oknodo --exec /usr/sbin/winbindd"
winbind_reload="killall -HUP winbindd"
-53
View File
@@ -1,53 +0,0 @@
#!/sbin/runscript
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/files/samba-init,v 1.17 2007/09/11 22:55:08 uberlord Exp $
opts="reload"
depend() {
after slapd
need net
use cupsd
}
DAEMONNAME="${SVCNAME##samba.}"
[ "${DAEMONNAME}" != "samba" ] && daemon_list=${DAEMONNAME}
signal_do() {
local signal="$1"
[ -z "${signal}" ] && return 0
local result=0 last_result=0 daemon= cmd_exec=
for daemon in ${daemon_list} ; do
eval cmd_exec=\$${daemon}_${signal}
if [ -n "${cmd_exec}" ]; then
ebegin "${my_service_name} -> ${signal}: ${daemon}"
#echo ${cmd} '->' ${!cmd}
${cmd_exec} > /dev/null
last_result=$?
eend ${last_result}
fi
result=$(( ${result} + ${last_result} ))
done
return ${result}
}
start() {
${my_service_PRE}
signal_do start && return 0
eerror "Error: starting services (see system logs)"
signal_do stop
return 1
}
stop() {
${my_service_PRE}
if signal_do stop ; then
${my_service_POST}
return 0
fi
}
reload() {
${my_service_PRE}
signal_do reload
}
-12
View File
@@ -1,12 +0,0 @@
# Samba smb service with ipv6 support (for samba3)
# Remember to stop samba service starting smbd before you activate this.
service microsoft-ds
{
flags = REUSE IPV6
socket_type = stream
wait = no
user = root
server = /usr/sbin/smbd
log_on_failure += USERID
disable = yes
}