<div dir="ltr"><div>This ticket is filed upstream: <a href="https://bugzilla.samba.org/show_bug.cgi?id=10669">https://bugzilla.samba.org/show_bug.cgi?id=10669</a><br><br></div>The preferred solution from the Samba developers seems to be to use libpam-winbind instead, though that doesn't necessarily work for all cases.<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jul 18, 2014 at 2:58 PM, Matthew Gabeler-Lee <span dir="ltr"><<a href="mailto:cheetah@fastcat.org" target="_blank">cheetah@fastcat.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Package: libpam-smbpass<br>
Version: 2:4.1.9+dfsg-1<br>
Severity: important<br>
<br>
It appears that libpam-smbpass, at least when used in some services, leaks<br>
file descriptors. This eventually causes the service in question to become<br>
non-functional when the open FD limit is exceeded.<br>
<br>
In my case, the service is openvpn.<br>
<br>
I see many many copies of this set of file descriptors:<br>
<br>
lr-x------ 1 root root 64 Jul 18 06:39 979 -> /dev/urandom<br>
lrwx------ 1 root root 64 Jul 18 06:39 98 -> /var/lib/samba/private/passdb.tdb<br>
lrwx------ 1 root root 64 Jul 18 06:39 980 -> /var/lib/samba/private/passdb.tdb<br>
lrwx------ 1 root root 64 Jul 18 06:39 981 -> /var/lib/samba/account_policy.tdb<br>
lrwx------ 1 root root 64 Jul 18 06:39 982 -> /var/cache/samba/gencache.tdb<br>
lrwx------ 1 root root 64 Jul 18 06:39 983 -> /run/samba/gencache_notrans.tdb<br>
lrwx------ 1 root root 64 Jul 18 06:39 984 -> /var/lib/samba/group_mapping.tdb<br>
lrwx------ 1 root root 64 Jul 18 06:39 985 -> /var/lib/samba/private/secrets.tdb<br>
<br>
Once the FD limit is reached, nobody can connect to the VPN until it is restarted.<br>
<br>
-- System Information:<br>
Debian Release: jessie/sid<br>
APT prefers testing<br>
APT policy: (990, 'testing'), (500, 'unstable')<br>
Architecture: amd64 (x86_64)<br>
<br>
Kernel: Linux 3.14-1-amd64 (SMP w/12 CPU cores)<br>
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)<br>
Shell: /bin/sh linked to /bin/dash<br>
<br>
Versions of packages libpam-smbpass depends on:<br>
ii dpkg 1.17.10<br>
ii libbsd0 0.6.0-2<br>
ii libc6 2.19-5<br>
ii libpam-runtime 1.1.8-3<br>
ii libpam0g 1.1.8-3<br>
ii libtalloc2 2.1.1-1<br>
ii libwbclient0 2:4.1.9+dfsg-1<br>
ii samba-common 2:4.1.9+dfsg-1<br>
ii samba-libs 2:4.1.9+dfsg-1<br>
<br>
libpam-smbpass recommends no packages.<br>
<br>
Versions of packages libpam-smbpass suggests:<br>
ii samba 2:4.1.9+dfsg-1<br>
<br>
-- no debconf information<br>
<br>
</blockquote></div><br></div>