Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7917735
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T15:15:04+00:00 2026-06-03T15:15:04+00:00

I have followed http://confluence.atlassian.com/display/CROWD/Creating+a+Connection+to+your+LDAP+Directory for basic understanding and trying to set up LDAP for

  • 0

I have followed http://confluence.atlassian.com/display/CROWD/Creating+a+Connection+to+your+LDAP+Directory
for basic understanding and trying to set up LDAP for my office use.

scenario:
I have started Apache 2.2 (Apache Directory Server) at localhost:389 and it’s running fine.

Next, I installed Apache DirectoryStudio and trying to create new connection. But I am getting the following error while opening the connection:

Error while opening connection - localhost:389; socket closed  
  javax.naming.ServiceUnavailableException: localhost:389; socket closed  
    at com.sun.jndi.ldap.Connection.readReply(Unknown Source)  
    at com.sun.jndi.ldap.LdapClient.ldapBind(Unknown Source)  
    at com.sun.jndi.ldap.LdapClient.authenticate(Unknown Source)  
    at com.sun.jndi.ldap.LdapCtx.connect(Unknown Source)  
    at com.sun.jndi.ldap.LdapCtx.ensureOpen(Unknown Source)  
    at com.sun.jndi.ldap.LdapCtx.ensureOpen(Unknown Source)  
    at com.sun.jndi.ldap.LdapCtx.reconnect(Unknown Source)  
    at javax.naming.ldap.InitialLdapContext.reconnect(Unknown Source)  
    at org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper$7.run(JNDIConnectionWrapper.java:1055)  
    at org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper.runAndMonitor(JNDIConnectionWrapper.java:1272)  
    at org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper.doBind(JNDIConnectionWrapper.java:1065)  
    at org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper.bind(JNDIConnectionWrapper.java:254)  
    at org.apache.directory.studio.connection.core.jobs.OpenConnectionsRunnable.run(OpenConnectionsRunnable.java:114)  
    at org.apache.directory.studio.connection.core.jobs.StudioConnectionJob.run(StudioConnectionJob.java:114)  
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)  

Please guide me!
I resolved this by changing theport numbers.
Now I am getting the following error:

Error while opening connection - [LDAP: error code 49 - cannot bind the principalDn.]  
  javax.naming.AuthenticationException: [LDAP: error code 49 - cannot bind the principalDn.]  
    at com.sun.jndi.ldap.LdapCtx.mapErrorCode(Unknown Source)    
    at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown Source)    
    at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown Source)  
    at com.sun.jndi.ldap.LdapCtx.connect(Unknown Source)  
    at com.sun.jndi.ldap.LdapCtx.ensureOpen(Unknown Source)  
    at com.sun.jndi.ldap.LdapCtx.ensureOpen(Unknown Source)  
    at com.sun.jndi.ldap.LdapCtx.reconnect(Unknown Source)  
    at javax.naming.ldap.InitialLdapContext.reconnect(Unknown Source)  
    at org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper$7.run(JNDIConnectionWrapper.java:1055)  
    at org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper.runAndMonitor(JNDIConnectionWrapper.java:1272)  
    at org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper.doBind(JNDIConnectionWrapper.java:1065)  
    at org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper.bind(JNDIConnectionWrapper.java:254)  
    at org.apache.directory.studio.connection.core.jobs.OpenConnectionsRunnable.run(OpenConnectionsRunnable.java:114)  
    at org.apache.directory.studio.connection.core.jobs.StudioConnectionJob.run(StudioConnectionJob.java:114)  
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)  
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T15:15:06+00:00Added an answer on June 3, 2026 at 3:15 pm

    This means that your connection to the ldap server is wrong. I know the default username and password for Apache DS is admin and secret respectively.

    Try the following as the bind DN or user string:

    uid=admin,ou=system
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have followed the instructions on http://railscasts.com/episodes/147-sortable-lists for creating a sortable list. The list
I have followed this tutorial http://blogs.wrox.com/article/creating-a-simple-ipad-application-table-view/ (creating a uitableview and populating it). I want
I have followed the article here http://chrisdail.com/2008/08/13/http-basic-authentication-with-apache-cxf-revisited/ I now have a working interceptor for
I have followed the instructions here: http://help.github.com/win-set-up-git/ to set up git on my windows
Hi have followed this tutorial using Core plot framework http://www.switchonthecode.com/tutorials/using-core-plot-in-an-iphone-application My project compiles, but
I have followed the instructions found at http://code.google.com/p/pubsubhubbub/wiki/DeveloperGettingStartedGuide to setup a hub. When I
I have followed his popular tutorial to connect Android to MySQL: http://www.helloandroid.com/tutorials/connecting-mysql-database It is
I have a Silverlight project that uses MVVM with Prism. I followed http://www.telerik.com/help/silverlight/patterns-and-practices-eventtocommand-prism.html I
I followed RailsCasts authentication from scratch (http://railscasts.com/episodes/250-authentication-from-scratch-revised) using the bcrypt-ruby gem and have the
I have followed this tutorial: http://www.phpjabbers.com/how-to-make-a-php-calendar-php26-6.html#comments to make a very basic calendar. My aim

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.