Cant connect to "Local Server" in control panel

This topic contains 6 replies, has 3 voices, and was last updated by  alaanjr 4 months, 2 weeks ago.

  • Author
    Posts
  • #4062
     steveatunfpa 
    Participant

    I open the control panel and select local server and I get “Error reading the configuration file. This could be caused because there is not an enabled ldap port for the specified connection parameters or because you do not have read rights on the configuration file.”

    I’m logging in as Directory Manager so perms shouldnt be the issue.

    When I select “Remote Server” on port 4444 I get in fine.

    The reason I want to use local server is because some options are not available in remote mode.

    #4063
     steveatunfpa 
    Participant

    I resolved this issue by logging in and running the control panel as root.

    #4064
     Ludo 
    Moderator

    Hi Steve,

    As you have discovered, when running the ControlPanel to access a local instance, you must run it as the owner of the OpenDJ process.

    Ludo

    #26022
     alaanjr 
    Participant

    Hi Ludo

    I am getting the below error when I try to configure OpenDS control panel = Manage entries . Please suggest

    WARNING: Could not connect to server: javax.naming.CommunicationException: servername:4444 [Root exception is java.net.ConnectException: Connection refused: connect]
    javax.naming.CommunicationException: servername:4444 [Root exception is java.net.ConnectException: Connection refused: connect]
    at com.sun.jndi.ldap.Connection.<init>(Connection.java:199)
    at com.sun.jndi.ldap.LdapClient.<init>(LdapClient.java:116)
    at com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1582)
    at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2678)
    at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:296)
    at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:175)
    at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:193)
    at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:136)
    at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:66)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
    at javax.naming.InitialContext.init(InitialContext.java:223)
    at javax.naming.ldap.InitialLdapContext.<init>(InitialLdapContext.java:134)
    at org.opends.admin.ads.util.ConnectionUtils$2.run(ConnectionUtils.java:221)
    at java.lang.Thread.run(Thread.java:662)
    Caused by: java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
    at java.net.Socket.connect(Socket.java:529)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:570)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.<init>(SSLSocketImpl.java:371)
    at com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:71)
    at org.opends.admin.ads.util.TrustedSocketFactory.createSocket(TrustedSocketFactory.java:223)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sun.jndi.ldap.Connection.createSocket(Connection.java:316)
    at com.sun.jndi.ldap.Connection.<init>(Connection.java:186)
    … 14 more

    • This reply was modified 4 months, 3 weeks ago by  alaanjr.
    #26077
     Ludo 
    Moderator

    It’s either a networking issue (servername cannot be resolved) or an SSL issue (which could be tied to JNDI hostname validation if you’re using a recent version of Java).

    #26080
     alaanjr 
    Participant

    Hi Ludo

    Thanks.

    OpenDS is installed in my laptop . Directory Base DN is dc=ABC,dc=COM where ABC is my office network (Office Domain is ABC dot com). This works fine.

    But when I disconnect my laptop and work as stand alone at home , I am getting the issue as I am not connected to office network.

    To make it work as a standalone , please let me know what should be given for Directory Base DN

    Thanks
    Alan.

    #26082
     alaanjr 
    Participant

    Hi Ludo

    Tried all possible options , but still getting the same error

    Connection Error An error occurred trying to connect to the server to read data. Details: javax.naming.CommunicationException: 0.0.0.0:389 [Root exception is java.net.ConnectException: Connection timed out: connect]

    OpenDS is installed in my local laptop. It works when connected to network but not as stand alone. Your inputs please

    Thanks
    Alan

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.

©2019 ForgeRock - we provide an identity and access platform to secure every online relationship for the enterprise market, educational sector and even entire countries. Click to view our privacy policy and terms of use.

Log in with your credentials

Forgot your details?