[root@dsbmgt01 slapd-NNIT]# ldapsearch -d 5 -x -h dsbmgt01 -p 389 -D "cn=Tuan Nguyen,cn=unixtek,ou=Infrastructure,dc=nnit" -W -s base ldap_create ldap_url_parse_ext(ldap://dsbmgt01:389) Enter LDAP Password: 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 dsbmgt01:389 ldap_new_socket: 3 ldap_prepare_socket: 3 ldap_connect_to_host: Trying 10.139.40.15:389 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: 73 bytes to sd 3 ldap_result ld 0x1a5ee660 msgid 1 wait4msg ld 0x1a5ee660 msgid 1 (infinite timeout) wait4msg continue ld 0x1a5ee660 msgid 1 all 1 ** ld 0x1a5ee660 Connections: * host: dsbmgt01 port: 389 (default) refcnt: 2 status: Connected last used: Tue Jun 17 13:40:33 2014 ** ld 0x1a5ee660 Outstanding Requests: * msgid 1, origid 1, status InProgress outstanding referrals 0, parent count 0 ** ld 0x1a5ee660 Response Queue: Empty ldap_chkResponseList ld 0x1a5ee660 msgid 1 all 1 ldap_chkResponseList returns ld 0x1a5ee660 NULL ldap_int_select HANG UNTIL ctrl+c *************** IF I enter a wrong password [root@dsbmgt01 slapd-NNIT]# ldapsearch -d 5 -x -h dsbmgt01 -p 389 -D "cn=Tuan Nguyen,cn=unixtek,ou=Infrastructure,dc=nnit" -W -s base ldap_create ldap_url_parse_ext(ldap://dsbmgt01:389) Enter LDAP Password: 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 dsbmgt01:389 ldap_new_socket: 3 ldap_prepare_socket: 3 ldap_connect_to_host: Trying 10.139.40.15:389 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: 67 bytes to sd 3 ldap_result ld 0x1ed3b660 msgid 1 wait4msg ld 0x1ed3b660 msgid 1 (infinite timeout) wait4msg continue ld 0x1ed3b660 msgid 1 all 1 ** ld 0x1ed3b660 Connections: * host: dsbmgt01 port: 389 (default) refcnt: 2 status: Connected last used: Tue Jun 17 13:57:10 2014 ** ld 0x1ed3b660 Outstanding Requests: * msgid 1, origid 1, status InProgress outstanding referrals 0, parent count 0 ** ld 0x1ed3b660 Response Queue: Empty ldap_chkResponseList ld 0x1ed3b660 msgid 1 all 1 ldap_chkResponseList returns ld 0x1ed3b660 NULL ldap_int_select read1msg: ld 0x1ed3b660 msgid 1 all 1 ber_get_next ber_get_next: tag 0x30 len 12 contents: read1msg: ld 0x1ed3b660 msgid 1 message type bind ber_scanf fmt ({eaa) ber: read1msg: ld 0x1ed3b660 0 new referrals read1msg: mark request completed, ld 0x1ed3b660 msgid 1 request done: ld 0x1ed3b660 msgid 1 res_errno: 0, res_error: <>, res_matched: <> ldap_free_request (origid 1, msgid 1) ldap_parse_result ber_scanf fmt ({iaa) ber: ber_scanf fmt (}) ber: ldap_msgfree ldap_err2string ldap_bind: Invalid credentials (49) [root@dsbmgt01 slapd-NNIT]#