I Just installed openldap server on kalilinux.
when i enter the command :
ldapsearch -d 1 -v -H ldaps://entreprise.com:666
return this
Code:
ldap_url_parse_ext(ldaps://entreprise.com:666)
ldap_initialize( ldaps://entreprise.com:666/??base )
ldap_create
ldap_url_parse_ext(ldaps://entreprise.com:666/??base)
ldap_pvt_sasl_getmech
ldap_search
put_filter: "(objectclass=*)"
put_filter: simple
put_simple_filter: "objectclass=*"
ldap_send_initial_request
ldap_new_connection 1 1 0
ldap_int_open_connection
ldap_connect_to_host: TCP entreprise.com:666
ldap_new_socket: 3
ldap_prepare_socket: 3
ldap_connect_to_host: Trying 91.195.240.126:666
ldap_pvt_connect: fd: 3 tm: -1 async: 0
attempting to connect:
connect errno: 111
ldap_close_socket: 3
ldap_msgfree
ldap_err2string
ldap_sasl_interactive_bind_s: Can't contact LDAP server (-1)
this is my /ldap/ldap.conf
Code:
# LDAP Defaults
#
# See ldap.conf(5) for details
# This file should be world readable but not world writable.
BASE dc=entreprise,dc=com
URI ldap://entreprise.com ldap://entreprise.com:666
#SIZELIMIT 12
#TIMELIMIT 15
#DEREF never
# TLS certificates (needed for GnuTLS)
TLS_CACERT /etc/ssl/certs/ca-certificates.crt