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

Problems running LDAP...



i use Fedora 4 , Cyrus-SASL 2.1.19 , Heimdal Kerberos  , OpenLDAP 2.3.11
i tested the Cyrus-SASL  using the sample programs and it works
i installed all as root, also i run these programs as root too...
 
i started ldap as :
***********************************************************************************************************************************
 /usr/local/libexec/slapd  -h "ldap:/// ldaps:///"
***********************************************************************************************************************************
 
i have the following problems running ldap:
***********************************************************************************************************************************
[root@x-masterserver init.d]# ldapsearch -H ldaps://localhost:636 -x -d265
ldap_create
ldap_url_parse_ext(ldaps://localhost:636)
ldap_bind
ldap_simple_bind
ldap_sasl_bind
ldap_send_initial_request
ldap_new_connection 1 1 0
ldap_int_open_connection
ldap_connect_to_host: TCP localhost:636
ldap_new_socket: 3
ldap_prepare_socket: 3
ldap_connect_to_host: Trying 127.0.0.1:636
ldap_connect_timeout: fd: 3 tm: -1 async: 0
ldap_perror
ldap_bind: Can't contact LDAP server (-1)
**************************************************************************************************************************************
 
also i tried the following command , but it hangs...
**************************************************************************************************************************************
[root@x-masterserver init.d]# ldapsearch -H ldap://localhost:636 -x -d265
ldap_create
ldap_url_parse_ext(ldap://localhost:636)
ldap_bind
ldap_simple_bind
ldap_sasl_bind
ldap_send_initial_request
ldap_new_connection 1 1 0
ldap_int_open_connection
ldap_connect_to_host: TCP localhost:636
ldap_new_socket: 3
ldap_prepare_socket: 3
ldap_connect_to_host: Trying 127.0.0.1:636
ldap_connect_timeout: fd: 3 tm: -1 async: 0
ldap_open_defconn: successful
ldap_send_server_request
ber_scanf fmt ({it) ber:
ber_scanf fmt ({i) ber:
ber_flush: 14 bytes to sd 3
ldap_result ld 0x8cc7eb8 msgid 1
ldap_chkResponseList ld 0x8cc7eb8 msgid 1 all 1
ldap_chkResponseList returns ld 0x8cc7eb8 NULL
wait4msg ld 0x8cc7eb8 msgid 1 (infinite timeout)
wait4msg continue ld 0x8cc7eb8 msgid 1 all 1
** ld 0x8cc7eb8 Connections:
* host: localhost  port: 636  (default)
  refcnt: 2  status: Connected
  last used: Wed Nov 23 10:35:37 2005
** ld 0x8cc7eb8 Outstanding Requests:
 * msgid 1,  origid 1, status InProgress
   outstanding referrals 0, parent count 0
** ld 0x8cc7eb8 Response Queue:
   Empty
ldap_chkResponseList ld 0x8cc7eb8 msgid 1 all 1
ldap_chkResponseList returns ld 0x8cc7eb8 NULL
ldap_int_select  --------------------------------------------> it hangs here till i press ctrl + c
************************************************************************************
 
i checked the ports using nmap localhost:
************************************************************************************
Interesting ports on x-masterserver (127.0.0.1):
(The 1649 ports scanned but not shown below are in state: closed)
PORT     STATE SERVICE
22/tcp   open  ssh
25/tcp   open  smtp
80/tcp   open  http
88/tcp   open  kerberos-sec
111/tcp  open  rpcbind
389/tcp  open  ldap
543/tcp  open  klogin
631/tcp  open  ipp
636/tcp  open  ldapssl
749/tcp  open  kerberos-adm
750/tcp  open  kerberos
909/tcp  open  unknown
921/tcp  open  unknown
2049/tcp open  nfs
************************************************************************************

i set the following environment variable 
    export KRB5_KTNAME=/etc/openldap/ldap.keytab
 
i created ldap/x-masterserver principal in the kerberos database, i started the slapd as 
/usr/local/libexec/slapd -u ldap -h "ldap:/// ldaps:///"
 
i issued a ticket : kinit ldap/x-masterserver  before running ldapsearch but i have the same problems as above....
 
 
i hope u can help,,,
thanks for ur time
Amir Saad
Software Engineer