[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Can't contact LDAP server (81)



 
 
could you try to establish the ip where slapd listen
 
you can with
 
    /usr/local/libexec/slapd -h ldap://0.0.0.0:389    -- slapd listen any request to this host at 389 port
 
    if you do :
 
    /usr/local/bin/ldapadd -h localhost -p 389 -d 255 -D "o=stixen.co.uk,c=uk " -x -w secret -f /home/shreedhar/ldap/Test2.ldif
 
    it would run ok!!
 
    if you have several slapd on the same machine
 
        /usr/local/libexec/slapd -h ldap://ip1:389   
       /usr/local/libexec/slapd -h ldap://ip2:389   
 
     if you want the same port  or
 
        /usr/local/libexec/slapd -h ldap://0.0.0.0:389   
       /usr/local/libexec/slapd -h ldap://0.0.0.0:390
 
     to diferent port and the same ip   
----- Original Message -----
From: shreedhar
Sent: Thursday, June 05, 2003 12:37 PM
Subject: Can't contact LDAP server (81)

If start sevice using
[root@devserv shreedhar]# /usr/local/libexec/slapd -f /usr/local/etc/openldap/s
lapd.conf
 
I could able found that the server entry ps list.
 
if run add comman using
[root@devserv shreedhar]# /usr/local/bin/ldapadd -d 255 -D "o=stixen.co.uk,c=uk
" -x -w secret -f /home/shreedhar/ldap/Test2.ldif
 
i am getting the follwing errors
 
ldap_create
ldap_bind_s
ldap_simple_bind_s
ldap_sasl_bind_s
ldap_sasl_bind
ldap_send_initial_request
ldap_new_connection
ldap_int_open_connection
ldap_connect_to_host: TCP localhost:389
ldap_new_socket: 4
ldap_prepare_socket: 4
ldap_connect_to_host: Trying 127.0.0.1:389
ldap_connect_timeout: fd: 4 tm: -1 async: 0
ldap_ndelay_on: 4
ldap_is_sock_ready: 4
ldap_is_socket_ready: error on socket 4: errno: 111 (Connection refused)
ldap_close_socket: 4
ldap_perror
ldap_bind: Can't contact LDAP server (81)
 
May  know what's the reason.
Sreedhar