LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   ldap_bind: Can't contact LDAP server (-1) (http://www.linuxquestions.org/questions/linux-networking-3/ldap_bind-cant-contact-ldap-server-1-a-695292/)

ramramu 01-06-2009 04:22 AM

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,

datopdog 01-06-2009 06:37 AM

Try
Code:

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


All times are GMT -5. The time now is 08:49 AM.