Hi Kiran,
Thanks for you swift reply.
--
dn:
ads-transportid=ldap,ou=transports,ads-serverId=ldapServer,ou=servers,ads-directoryServiceId=default,ou=config
ads-systemport: 10389
ads-transportnbthreads: 8
ads-transportaddress: 0.0.0.0
ads-transportid: ldap
objectclass: ads-transport
objectclass: ads-tcpTransport
objectClass: ads-base
objectclass: top
ads-enabled: TRUE
--
There are many configurations in my config.ldif file, above is one of them. I
am not sure which one to change the port in.
I can see 10389 here, the port no which I previously used to connect and
worked like a charm.
The only difference now is that I am trying to connect REMOTELY.
Following is the stack dump
--
The connection failed
- Cannot connect to the server: Connection refused: no further information
org.apache.directory.ldap.client.api.exception.InvalidConnectionException:
Cannot connect to the server: Connection refused: no further information
at
org.apache.directory.ldap.client.api.LdapNetworkConnection.connect(LdapNetworkConnection.java:658)
at
org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper$1.run(DirectoryApiConnectionWrapper.java:230)
at
org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.runAndMonitor(DirectoryApiConnectionWrapper.java:1173)
at
org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.doConnect(DirectoryApiConnectionWrapper.java:259)
at
org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.connect(DirectoryApiConnectionWrapper.java:170)
at
org.apache.directory.studio.connection.core.jobs.CheckNetworkParameterRunnable.run(CheckNetworkParameterRunnable.java:80)
at
org.apache.directory.studio.connection.ui.RunnableContextRunner$1.run(RunnableContextRunner.java:122)
at
org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
Caused by: java.net.ConnectException: Connection refused: no further information
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(Unknown Source)
at
org.apache.mina.transport.socket.nio.NioSocketConnector.finishConnect(NioSocketConnector.java:221)
at
org.apache.mina.transport.socket.nio.NioSocketConnector.finishConnect(NioSocketConnector.java:47)
at
org.apache.mina.core.polling.AbstractPollingIoConnector.processConnections(AbstractPollingIoConnector.java:459)
at
org.apache.mina.core.polling.AbstractPollingIoConnector.access$700(AbstractPollingIoConnector.java:65)
at
org.apache.mina.core.polling.AbstractPollingIoConnector$Connector.run(AbstractPollingIoConnector.java:527)
at
org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source)
at java.lang.Thread.run(Unknown Source)
Cannot connect to the server: Connection refused: no further information
--
Thanks in advance,
Pawan
From: Kiran Ayyagari [mailto:[email protected]]
Sent: Monday, August 31, 2015 4:48 PM
To: Apache Directory Developers List
<[email protected]<mailto:[email protected]>>
Cc: Sivaraj Ramalingam
<[email protected]<mailto:[email protected]>>
Subject: Re: [ApacheDS] Connecting to an Apache DS installed on a Ubuntu Server
On Mon, Aug 31, 2015 at 7:10 PM, Pawan Thakur
<[email protected]<mailto:[email protected]>> wrote:
Hello,
I have used apache DS on a Ubuntu Machine (Desktop) and was able to create
connection using Apache Studio and test my use case.
Right now I have a slightly different Environment and I am struggling how to
get things going.
I have a Ubuntu Server (no GUI) where I installed Apache DS apacheds-2.0.0-M20.
Now I have started the default instance up using
sudo /etc/init.d/apacheds-2.0.0-M20-default start
and I assume it is started.
Now as I dun have GUI here I am trying to connect to this Server using Apache
DS Installed on my local machine and I am using the Ubuntu Host’s IP to create
the Connection but it is failing to connect.
Reading config.ldif I can see a few ports like
ads-systemport: 80464
this is a wrong port, it should be <= 65535
modify that value and restart then try to connect using the new port
But doesn’t makes much sense to me.
Can anyone please help me with how to make a connection and proceed for the
environment I have ?
Cheers,
Pawan
--
Kiran Ayyagari
http://keydap.com