Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I installed LDAP on my ubuntu 10.10 system, using the tutorial found here:

Everything seems to be working well, when logged into the server via ssh I can run commands like:

> ldapsearch -xLLL -b "dc=easydita,dc=com" uid=john sn givenName cn

dn: uid=john,ou=people,dc=easydita,dc=com
sn: Doe
givenName: John
cn: John Doe

So I think that's a good sign that things are working well.

However I have had zero luck connecting to the server remotely via GUI tools or command line. I have tied JXplorer, and LDAP administration tool.

Running commands like this:

> ldapsearch -xLLL -W -H ldap:// -d1 "dc=easydita,dc=com"

Enter LDAP Password:
ldap_new_connection 1 1 0
ldap_connect_to_host: TCP
ldap_new_socket: 3
ldap_prepare_socket: 3
ldap_connect_to_host: Trying
ldap_pvt_connect: fd: 3 tm: -1 async: 0
ldap_open_defconn: successful
ber_scanf fmt ({it) ber:
ber_scanf fmt ({i) ber:
ber_flush2: 34 bytes to sd 3
ldap_result ld 0xb8940170 msgid 1
wait4msg ld 0xb8940170 msgid 1 (infinite timeout)
wait4msg continue ld 0xb8940170 msgid 1 all 1
** ld 0xb8940170 Connections:
* host: port: 389 (default)
refcnt: 2 status: Connected
last used: Thu Mar 17 19:42:29 2011

** ld 0xb8940170 Outstanding Requests:
* msgid 1, origid 1, status InProgress
outstanding referrals 0, parent count 0
ld 0xb8940170 request count 1 (abandoned 0)
** ld 0xb8940170 Response Queue:
ld 0xb8940170 response count 0
ldap_chkResponseList ld 0xb8940170 msgid 1 all 1
ldap_chkResponseList returns ld 0xb8940170 NULL
read1msg: ld 0xb8940170 msgid 1 all 1
ber_get_next: tag 0x30 len 16 contents:
read1msg: ld 0xb8940170 msgid 1 message type bind
ber_scanf fmt ({eAA) ber:
read1msg: ld 0xb8940170 0 new referrals
read1msg: mark request completed, ld 0xb8940170 msgid 1
request done: ld 0xb8940170 msgid 1
res_errno: 49, res_error: <>, res_matched: <>
ldap_free_request (origid 1, msgid 1)
ber_scanf fmt ({iAA) ber:
ber_scanf fmt (}) ber:
ldap_bind: Invalid credentials (49)

I am pretty sure that I set up the admin password correctly, but the tutorial was not very specific about that. (Also could not find instructions on how to reset admin password.)

Additional info: I was told that this file might hold important information so I will post it:


dn: olcDatabase={0}config
objectClass: olcDatabaseConfig
olcDatabase: {0}config
olcAccess: {0}to * by dn.exact=cn=localroot,cn=config manage by * break
olcRootDN: cn=admin,cn=config
structuralObjectClass: olcDatabaseConfig
entryUUID: eca09490-e524-102f-87c5-17d7a82e8985
creatorsName: cn=config
createTimestamp: 20110317205733Z
entryCSN: 20110317205733.193089Z#000000#000#000000
modifiersName: cn=config
modifyTimestamp: 20110317205733Z

Given that it seems I have this almost set up correctly is there any steps I can take to correct this?



share|improve this question
Sorry people, just figured this out, it was due to the wrong syntax for calling ldapsearch. Thanks for the attention though. Cheers, Casey – Casey Jordan Mar 18 '11 at 15:12
Could you please post the correct query, someone may have the same issue and find this post. – Decado Mar 18 '11 at 15:35

1 Answer 1

Are you sure the server is set to listen on something other then Are you sure there's no firewall blocking traffic? Your traffic dump mentions RIT, schools tend to have fairly strict rules on inbound traffic which may be the cause.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.