techmom50 |
11-01-2013 07:05 PM |
Quote:
I installed the Cryus-SASL from Gentoo portage, these are the results with and without SASL it shows a connection
|
Quote:
With SASL Password in Slapd.conf
|
Code:
tux openldap # ldapsearch -h 127.0.0.1 -p 389 -b "dc=pacificcabinets,dc=com" -d5
ldap_create
ldap_url_parse_ext(ldap://127.0.0.1:389)
ldap_sasl_bind
ldap_send_initial_request
ldap_new_connection 1 1 0
ldap_int_open_connection
ldap_connect_to_host: TCP 127.0.0.1:389
ldap_new_socket: 3
ldap_prepare_socket: 3
ldap_connect_to_host: Trying 127.0.0.1:389
ldap_pvt_connect: fd: 3 tm: -1 async: 0
attempting to connect:
connect success
ldap_open_defconn: successful
ldap_send_server_request
ber_scanf fmt ({it) ber:
ber_scanf fmt ({i) ber:
ber_flush2: 14 bytes to sd 3
ldap_result ld 0x6146b0 msgid 1
wait4msg ld 0x6146b0 msgid 1 (infinite timeout)
wait4msg continue ld 0x6146b0 msgid 1 all 1
** ld 0x6146b0 Connections:
* host: 127.0.0.1 port: 389 (default)
refcnt: 2 status: Connected
last used: Fri Nov 1 16:12:11 2013
** ld 0x6146b0 Outstanding Requests:
* msgid 1, origid 1, status InProgress
outstanding referrals 0, parent count 0
ld 0x6146b0 request count 1 (abandoned 0)
** ld 0x6146b0 Response Queue:
Empty
ld 0x6146b0 response count 0
ldap_chkResponseList ld 0x6146b0 msgid 1 all 1
ldap_chkResponseList returns ld 0x6146b0 NULL
ldap_int_select
read1msg: ld 0x6146b0 msgid 1 all 1
ber_get_next
ber_get_next: tag 0x30 len 12 contents:
read1msg: ld 0x6146b0 msgid 1 message type bind
ber_scanf fmt ({eAA) ber:
read1msg: ld 0x6146b0 0 new referrals
read1msg: mark request completed, ld 0x6146b0 msgid 1
request done: ld 0x6146b0 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
# extended LDIF
#
# LDAPv3
# base <dc=pacificcabinets,dc=com> with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#
ldap_search_ext
put_filter: "(objectclass=*)"
put_filter: simple
put_simple_filter: "objectclass=*"
ldap_build_search_req ATTRS: *
ldap_send_initial_request
ldap_send_server_request
ber_scanf fmt ({it) ber:
ber_scanf fmt ({) ber:
ber_flush2: 64 bytes to sd 3
ldap_result ld 0x6146b0 msgid -1
wait4msg ld 0x6146b0 msgid -1 (infinite timeout)
wait4msg continue ld 0x6146b0 msgid -1 all 0
** ld 0x6146b0 Connections:
* host: 127.0.0.1 port: 389 (default)
refcnt: 2 status: Connected
last used: Fri Nov 1 16:12:11 2013
** ld 0x6146b0 Outstanding Requests:
* msgid 2, origid 2, status InProgress
outstanding referrals 0, parent count 0
ld 0x6146b0 request count 1 (abandoned 0)
** ld 0x6146b0 Response Queue:
Empty
ld 0x6146b0 response count 0
ldap_chkResponseList ld 0x6146b0 msgid -1 all 0
ldap_chkResponseList returns ld 0x6146b0 NULL
ldap_int_select
read1msg: ld 0x6146b0 msgid -1 all 0
ber_get_next
ber_get_next: tag 0x30 len 12 contents:
read1msg: ld 0x6146b0 msgid 2 message type search-result
ber_scanf fmt ({eAA) ber:
read1msg: ld 0x6146b0 0 new referrals
read1msg: mark request completed, ld 0x6146b0 msgid 2
request done: ld 0x6146b0 msgid 2
res_errno: 32, res_error: <>, res_matched: <>
ldap_free_request (origid 2, msgid 2)
# search result
search: 2
ldap_parse_result
ber_scanf fmt ({iAA) ber:
ber_scanf fmt (}) ber:
ldap_err2string
result: 32 No such object
ldap_msgfree
# numResponses: 1
ldap_free_connection 1 1
ldap_send_unbind
ber_flush2: 7 bytes to sd 3
ldap_free_connection: actually freed
Quote:
Without SASL password(below)
|
Code:
tux openldap # ldapsearch -h 127.0.0.1 -p 389 -b "dc=pacificcabinets,dc=com" -d5
ldap_create
ldap_url_parse_ext(ldap://127.0.0.1:389)
ldap_sasl_bind
ldap_send_initial_request
ldap_new_connection 1 1 0
ldap_int_open_connection
ldap_connect_to_host: TCP 127.0.0.1:389
ldap_new_socket: 3
ldap_prepare_socket: 3
ldap_connect_to_host: Trying 127.0.0.1:389
ldap_pvt_connect: fd: 3 tm: -1 async: 0
attempting to connect:
connect success
ldap_open_defconn: successful
ldap_send_server_request
ber_scanf fmt ({it) ber:
ber_scanf fmt ({i) ber:
ber_flush2: 14 bytes to sd 3
ldap_result ld 0x6146b0 msgid 1
wait4msg ld 0x6146b0 msgid 1 (infinite timeout)
wait4msg continue ld 0x6146b0 msgid 1 all 1
** ld 0x6146b0 Connections:
* host: 127.0.0.1 port: 389 (default)
refcnt: 2 status: Connected
last used: Fri Nov 1 15:55:57 2013
** ld 0x6146b0 Outstanding Requests:
* msgid 1, origid 1, status InProgress
outstanding referrals 0, parent count 0
ld 0x6146b0 request count 1 (abandoned 0)
** ld 0x6146b0 Response Queue:
Empty
ld 0x6146b0 response count 0
ldap_chkResponseList ld 0x6146b0 msgid 1 all 1
ldap_chkResponseList returns ld 0x6146b0 NULL
ldap_int_select
read1msg: ld 0x6146b0 msgid 1 all 1
ber_get_next
ber_get_next: tag 0x30 len 12 contents:
read1msg: ld 0x6146b0 msgid 1 message type bind
ber_scanf fmt ({eAA) ber:
read1msg: ld 0x6146b0 0 new referrals
read1msg: mark request completed, ld 0x6146b0 msgid 1
request done: ld 0x6146b0 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
# extended LDIF
#
# LDAPv3
# base <dc=pacificcabinets,dc=com> with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#
ldap_search_ext
put_filter: "(objectclass=*)"
put_filter: simple
put_simple_filter: "objectclass=*"
ldap_build_search_req ATTRS: *
ldap_send_initial_request
ldap_send_server_request
ber_scanf fmt ({it) ber:
ber_scanf fmt ({) ber:
ber_flush2: 64 bytes to sd 3
ldap_result ld 0x6146b0 msgid -1
wait4msg ld 0x6146b0 msgid -1 (infinite timeout)
wait4msg continue ld 0x6146b0 msgid -1 all 0
** ld 0x6146b0 Connections:
* host: 127.0.0.1 port: 389 (default)
refcnt: 2 status: Connected
last used: Fri Nov 1 15:55:57 2013
** ld 0x6146b0 Outstanding Requests:
* msgid 2, origid 2, status InProgress
outstanding referrals 0, parent count 0
ld 0x6146b0 request count 1 (abandoned 0)
** ld 0x6146b0 Response Queue:
Empty
ld 0x6146b0 response count 0
ldap_chkResponseList ld 0x6146b0 msgid -1 all 0
ldap_chkResponseList returns ld 0x6146b0 NULL
ldap_int_select
read1msg: ld 0x6146b0 msgid -1 all 0
ber_get_next
ber_get_next: tag 0x30 len 12 contents:
read1msg: ld 0x6146b0 msgid 2 message type search-result
ber_scanf fmt ({eAA) ber:
read1msg: ld 0x6146b0 0 new referrals
read1msg: mark request completed, ld 0x6146b0 msgid 2
request done: ld 0x6146b0 msgid 2
res_errno: 32, res_error: <>, res_matched: <>
ldap_free_request (origid 2, msgid 2)
# search result
search: 2
ldap_parse_result
ber_scanf fmt ({iAA) ber:
ber_scanf fmt (}) ber:
ldap_err2string
result: 32 No such object
ldap_msgfree
# numResponses: 1
ldap_free_connection 1 1
ldap_send_unbind
ber_flush2: 7 bytes to sd 3
ldap_free_connection: actually freed
Quote:
Per LDAP Troubleshooting:
LDAP_NO_SUCH_OBJECT 32 (x'20)The specified entry does not exist in the directory (DIT).
|
Quote:
I am trying to add my entry with ldappadd via ssh to my linux server from my windows 7 desktop I get
|
Code:
ldapadd -f /tmp/createdit.ldif -h 127.0.0.1 -p 389 -w -d7
ldap_bind: Invalid credentials (49)
Code:
tux openldap # netstat -antp |grep slapd
tcp 0 0 0.0.0.0:636 0.0.0.0:* LISTEN 23008/slapd
tcp 0 0 0.0.0.0:389 0.0.0.0:* LISTEN 23008/slapd
tcp6 0 0 :::636 :::* LISTEN 23008/slapd
tcp6 0 0 :::389 :::* LISTEN 23008/slapd
|