I am running a Red Hat 8 server on a small LAN in my home. I am using Samba and LDAP to emulate a Windows NT PDC. I am using the same LDAP database with PAM for authentication on the Linux server itself, so that login information is consistent among my computers. Plus, I have several Samba shares on which I have placed domain-level permissions, also using the same LDAP authentication database of course.
The problem is that, over time, I am seeing more and more open LDAP connections. After several days, there are hundreds, and eventually after a couple weeks there will be so many connections that I run out of file descriptors, rendering my machine unusable.
If I restart the nscd service, I temporarily see these connections go away, but I need to know a permanent solution. We don't do anything very intensive on these computers. I should mention that my wife does leave Outlook Express open pretty much 24/7, which accesses my Courier-IMAP server, so it also is constantly opening LDAP connections for PAM authentication.
The problem is that, over time, I am seeing more and more open LDAP connections. After several days, there are hundreds, and eventually after a couple weeks there will be so many connections that I run out of file descriptors, rendering my machine unusable.
If I restart the nscd service, I temporarily see these connections go away, but I need to know a permanent solution. We don't do anything very intensive on these computers. I should mention that my wife does leave Outlook Express open pretty much 24/7, which accesses my Courier-IMAP server, so it also is constantly opening LDAP connections for PAM authentication.