ldap: Update OpenBSD's login.conf template

Also, increase dovecot's open files limit.
This commit is contained in:
Ossi Salmi 2016-12-28 16:22:43 +02:00
parent 8b00cd4071
commit 2664108efd

View file

@ -1,4 +1,4 @@
# $OpenBSD: login.conf,v 1.2 2014/04/22 11:03:40 reyk Exp $ # $OpenBSD: login.conf,v 1.7 2016/06/26 20:32:31 tedu Exp $
# #
# Sample login.conf file. See login.conf(5) for details. # Sample login.conf file. See login.conf(5) for details.
@ -47,8 +47,7 @@ default:\
:maxproc-cur=128:\ :maxproc-cur=128:\
:openfiles-cur=512:\ :openfiles-cur=512:\
:stacksize-cur=4M:\ :stacksize-cur=4M:\
:localcipher=blowfish,8:\ :localcipher=blowfish,a:\
:ypcipher=old:\
:tc=auth-defaults:\ :tc=auth-defaults:\
:tc=auth-ftp-defaults: :tc=auth-ftp-defaults:
@ -61,19 +60,19 @@ daemon:\
:ignorenologin:\ :ignorenologin:\
:datasize=infinity:\ :datasize=infinity:\
:maxproc=infinity:\ :maxproc=infinity:\
:openfiles-cur=1024:\ :openfiles-cur=128:\
:stacksize-cur=8M:\ :stacksize-cur=8M:\
:localcipher=blowfish,9:\ :localcipher=blowfish,a:\
:tc=default: :tc=default:
# #
# Staff have fewer restrictions and can login even when nologins are set. # Staff have fewer restrictions and can login even when nologins are set.
# #
staff:\ staff:\
:datasize-cur=512M:\ :datasize-cur=1536M:\
:datasize-max=infinity:\ :datasize-max=infinity:\
:maxproc-max=512:\ :maxproc-max=512:\
:maxproc-cur=128:\ :maxproc-cur=256:\
:ignorenologin:\ :ignorenologin:\
:requirehome@:\ :requirehome@:\
:tc=default: :tc=default:
@ -86,6 +85,16 @@ authpf:\
:shell=/usr/sbin/authpf:\ :shell=/usr/sbin/authpf:\
:tc=default: :tc=default:
#
# Building ports with DPB uses raised limits
#
pbuild:\
:datasize-max=infinity:\
:datasize-cur=4096M:\
:maxproc-max=1024:\
:maxproc-cur=256:\
:tc=default:
# #
# Override resource limits for certain daemons started by rc.d(8) # Override resource limits for certain daemons started by rc.d(8)
# #
@ -93,6 +102,14 @@ bgpd:\
:openfiles-cur=512:\ :openfiles-cur=512:\
:tc=daemon: :tc=daemon:
unbound:\
:openfiles-cur=512:\
:tc=daemon:
dovecot:\
:openfiles-cur=1024:\
:tc=daemon:
<% <%
require 'uri' require 'uri'