LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 01-06-2009, 04:22 AM   #1
ramramu
LQ Newbie
 
Registered: Jan 2009
Posts: 1

Rep: Reputation: 0
Question ldap_bind: Can't contact LDAP server (-1)


Hi,

I installed openldap-2.2.29-db-4.3.29-openssl-0.9.8a-win32_Setup.exe on my XP machine and I started it by using follwing command successfully

>slapd -d 1

and next I added entries by using the command

>ldapadd -x -D "cn=Manager,dc=my-domain,dc=com" -W -f setup.ldif

But when I try to add the entries using the command

>ldapadd -H ldap://myhost.my-domain.com -x -D "cn=Manager,dc=my-domain,dc=com" -W -f dev1.ldif

I am getting the error:ldap_bind: Can't contact LDAP server (-1)

So,can any one help in resolving the error.


Thanks,
 
Old 01-06-2009, 06:37 AM   #2
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
Try
Code:
ldapadd -H ldap://127.0.0.1 -x -D "cn=Manager,dc=my-domain,dc=com" -W -f dev1.ldif
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LDAP: Can't contact master ldap server rulirahm Linux - Networking 2 07-14-2014 02:02 AM
ldap_bind Can't contact LDAP server mesh2005 Linux - Networking 17 06-19-2014 08:44 AM
Ubuntu Hardy (php-ldap):Can't contact LDAP server eantoranz Programming 7 12-02-2008 06:40 PM
What causes -> Cannot contact LDAP server? factos Linux - Newbie 4 11-15-2007 09:18 AM
Can't contact ldap server(-1) justsimran Linux - General 0 06-14-2007 06:22 AM


All times are GMT -5. The time now is 09:17 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration