LDAP : LDAP Server is not connection.

363 views
Skip to first unread message

Golu

unread,
Mar 9, 2010, 1:44:12 AM3/9/10
to simpleSAMLphp
Hi All,

Greetings !!!

Since 2 days my LDAP is not reachable I guess. I am using LDAP
authentication to gapps. Since 2 days no user can login to mail. When
I tried to found out the problem, I m unable to connect my LDAP
server. Apache Directory Studio is giving some errors. I checked all
the LDAP configuration on my server (slapd.conf) and all but they all
are seems to me fine.

When I am trying to connect to LDAP through Apache Directory Studio,
its giving this error :

Error while opening connection
- my-ip-address:389
javax.naming.CommunicationException: my-ip-address:389 [Root
exception is java.net.SocketTimeoutException: connect timed out]
at com.sun.jndi.ldap.Connection.<init>(Unknown Source)
at com.sun.jndi.ldap.LdapClient.<init>(Unknown Source)
at com.sun.jndi.ldap.LdapClient.getInstance(Unknown Source)
at com.sun.jndi.ldap.LdapCtx.connect(Unknown Source)
at com.sun.jndi.ldap.LdapCtx.<init>(Unknown Source)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(Unknown Source)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(Unknown Source)
at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(Unknown
Source)
at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(Unknown Source)
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.ldap.InitialLdapContext.<init>(Unknown Source)
at
org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper
$6.run(JNDIConnectionWrapper.java:872)
at
org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper.runAndMonitor(JNDIConnectionWrapper.java:
1272)
at
org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper.doConnect(JNDIConnectionWrapper.java:
914)
at
org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper.connect(JNDIConnectionWrapper.java:
209)
at
org.apache.directory.studio.connection.core.jobs.OpenConnectionsRunnable.run(OpenConnectionsRunnable.java:
111)
at
org.apache.directory.studio.connection.core.jobs.StudioConnectionJob.run(StudioConnectionJob.java:
114)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: java.net.SocketTimeoutException: connect timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.jndi.ldap.Connection.createSocket(Unknown Source)
... 20 more
174.121.0.121:389


Please help me out if anyone can?

Regards,
Jitendra

Olav Morken

unread,
Mar 9, 2010, 4:13:19 AM3/9/10
to simple...@googlegroups.com
On Mon, Mar 08, 2010 at 22:44:12 -0800, Golu wrote:
> Hi All,
>
> Greetings !!!
>
> Since 2 days my LDAP is not reachable I guess. I am using LDAP
> authentication to gapps. Since 2 days no user can login to mail. When
> I tried to found out the problem, I m unable to connect my LDAP
> server. Apache Directory Studio is giving some errors. I checked all
> the LDAP configuration on my server (slapd.conf) and all but they all
> are seems to me fine.

This is more of a LDAP problem than a simpleSAMLphp problem. The
error you receive says that the connect timed out. You need to figure
out why you are unable to connect to the LDAP server. Maybe there is
a misconfiguration in a firewall somewhere?

--
Olav Morken
UNINETT / Feide

Reply all
Reply to author
Forward
0 new messages