You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@archiva.apache.org by dgreenbean <da...@ltx.com> on 2008/07/23 22:56:46 UTC

Too many open files due to excessive LDAP authentication

Hi,

I switched to LDAP authentication for Archiva (1.0.2) today, and it
authenticates correctly, but it seems to be checking LDAP for the admin user
more than is necessary.  Also, does it open a new connection to the LDAP
server for every check?  Does it clean up connections once they are no
longer being used?

This is the (abridged) exception from my Tomcat 6.0.16 logs:
INFO  org.codehaus.plexus.redback.users.ldap.ctl.LdapController:default  -
Searching for users with filter:
'(&(objectClass=[objClass])(sAMAccountName=[my admin account]))' from base
dn: [my base dn]
org.codehaus.plexus.redback.common.ldap.connection.LdapException: Could not
connect to the server. [Root exception is
javax.naming.CommunicationException: [my LDAP server]:[my LDAP port] [Root
exception is java.net.SocketException: Too many open files]]
        at
org.codehaus.plexus.redback.common.ldap.connection.LdapConnection.<init>(LdapConnection.java:81)
        at
org.codehaus.plexus.redback.common.ldap.connection.ConfigurableLdapConnectionFactory.getConnection(ConfigurableLdapConnectionFactory.java:123)
        at
org.codehaus.plexus.redback.users.ldap.LdapUserManager.newDirContext(LdapUserManager.java:342)
        at
org.codehaus.plexus.redback.users.ldap.LdapUserManager.findUser(LdapUserManager.java:217)
        at
org.codehaus.plexus.redback.users.configurable.ConfigurableUserManager.findUser(ConfigurableUserManager.java:111)

I have enabled caching using EHCache as my implementation.  Any help is
appreciated.

Thank you,
David

-- 
View this message in context: http://www.nabble.com/Too-many-open-files-due-to-excessive-LDAP-authentication-tp18619654p18619654.html
Sent from the archiva-users mailing list archive at Nabble.com.


Re: Too many open files due to excessive LDAP authentication

Posted by Maria Odea Ching <oc...@apache.org>.
Hi David,

There were some LDAP fixes in Redback 1.0.2 (which is the version Archiva
1.1 is using),
I'm not sure if upgrading to Redback 1.0.2 would fix your problem but it
might be worth a try :)

Thanks,
Deng

On Thu, Jul 24, 2008 at 4:56 AM, dgreenbean <da...@ltx.com> wrote:

>
> Hi,
>
> I switched to LDAP authentication for Archiva (1.0.2) today, and it
> authenticates correctly, but it seems to be checking LDAP for the admin
> user
> more than is necessary.  Also, does it open a new connection to the LDAP
> server for every check?  Does it clean up connections once they are no
> longer being used?
>
> This is the (abridged) exception from my Tomcat 6.0.16 logs:
> INFO  org.codehaus.plexus.redback.users.ldap.ctl.LdapController:default  -
> Searching for users with filter:
> '(&(objectClass=[objClass])(sAMAccountName=[my admin account]))' from base
> dn: [my base dn]
> org.codehaus.plexus.redback.common.ldap.connection.LdapException: Could not
> connect to the server. [Root exception is
> javax.naming.CommunicationException: [my LDAP server]:[my LDAP port] [Root
> exception is java.net.SocketException: Too many open files]]
>        at
>
> org.codehaus.plexus.redback.common.ldap.connection.LdapConnection.<init>(LdapConnection.java:81)
>        at
>
> org.codehaus.plexus.redback.common.ldap.connection.ConfigurableLdapConnectionFactory.getConnection(ConfigurableLdapConnectionFactory.java:123)
>        at
>
> org.codehaus.plexus.redback.users.ldap.LdapUserManager.newDirContext(LdapUserManager.java:342)
>        at
>
> org.codehaus.plexus.redback.users.ldap.LdapUserManager.findUser(LdapUserManager.java:217)
>        at
>
> org.codehaus.plexus.redback.users.configurable.ConfigurableUserManager.findUser(ConfigurableUserManager.java:111)
>
> I have enabled caching using EHCache as my implementation.  Any help is
> appreciated.
>
> Thank you,
> David
>
> --
> View this message in context:
> http://www.nabble.com/Too-many-open-files-due-to-excessive-LDAP-authentication-tp18619654p18619654.html
> Sent from the archiva-users mailing list archive at Nabble.com.
>
>