Hi,

I'm new to using LDAP for what I need. I have a CentOS 6.3 server with OpenLDAP. I think I configured everything correctly.

When I try a test search, I get the following. Any help would be great. What is it using to bind with? Not sure where it is getting the PW from...

Below is what I am running:

[root@galsync openldap]# ldapsearch -h localhost -D "cn=Corporate,cn=User Accounts,dc=ynhh,dc=sso,dc=ynhh,dc=org" -w ynhh -b "dc=ynhh,dc=sso,dc=ynhh,dc=org" -s sub "objectclass=*" -d 255

First I am not sure of -w ynhh (not sure what to use here). Attached is my slapd.conf file. Below is the results of the command.


ldap_create
ldap_url_parse_ext(ldap://localhost)
ldap_sasl_bind
ldap_send_initial_request
ldap_new_connection 1 1 0
ldap_int_open_connection
ldap_connect_to_host: TCP localhost:389
ldap_new_socket: 3
ldap_prepare_socket: 3
ldap_connect_to_host: Trying ::1 389
ldap_pvt_connect: fd: 3 tm: -1 async: 0
ldap_open_defconn: successful
ldap_send_server_request
ber_scanf fmt ({it) ber:
ber_dump: buf=0xd20400 ptr=0xd20400 end=0xd2044d len=77
0000: 30 4b 02 01 01 60 46 02 01 03 04 3b 63 6e 3d 43 0K...`F....;cn=C
0010: 6f 72 70 6f 72 61 74 65 2c 63 6e 3d 55 73 65 72 orporate,cn=User
0020: 20 41 63 63 6f 75 6e 74 73 2c 64 63 3d 79 6e 68 Accounts,dc=ynh
0030: 68 2c 64 63 3d 73 73 6f 2c 64 63 3d 79 6e 68 68 h,dc=sso,dc=ynhh
0040: 2c 64 63 3d 6f 72 67 80 04 79 6e 68 68 ,dc=org..ynhh
ber_scanf fmt ({i) ber:
ber_dump: buf=0xd20400 ptr=0xd20405 end=0xd2044d len=72
0000: 60 46 02 01 03 04 3b 63 6e 3d 43 6f 72 70 6f 72 `F....;cn=Corpor
0010: 61 74 65 2c 63 6e 3d 55 73 65 72 20 41 63 63 6f ate,cn=User Acco
0020: 75 6e 74 73 2c 64 63 3d 79 6e 68 68 2c 64 63 3d unts,dc=ynhh,dc=
0030: 73 73 6f 2c 64 63 3d 79 6e 68 68 2c 64 63 3d 6f sso,dc=ynhh,dc=o
0040: 72 67 80 04 79 6e 68 68 rg..ynhh
ber_flush2: 77 bytes to sd 3
0000: 30 4b 02 01 01 60 46 02 01 03 04 3b 63 6e 3d 43 0K...`F....;cn=C
0010: 6f 72 70 6f 72 61 74 65 2c 63 6e 3d 55 73 65 72 orporate,cn=User
0020: 20 41 63 63 6f 75 6e 74 73 2c 64 63 3d 79 6e 68 Accounts,dc=ynh
0030: 68 2c 64 63 3d 73 73 6f 2c 64 63 3d 79 6e 68 68 h,dc=sso,dc=ynhh
0040: 2c 64 63 3d 6f 72 67 80 04 79 6e 68 68 ,dc=org..ynhh
ldap_write: want=77, written=77
0000: 30 4b 02 01 01 60 46 02 01 03 04 3b 63 6e 3d 43 0K...`F....;cn=C
0010: 6f 72 70 6f 72 61 74 65 2c 63 6e 3d 55 73 65 72 orporate,cn=User
0020: 20 41 63 63 6f 75 6e 74 73 2c 64 63 3d 79 6e 68 Accounts,dc=ynh
0030: 68 2c 64 63 3d 73 73 6f 2c 64 63 3d 79 6e 68 68 h,dc=sso,dc=ynhh
0040: 2c 64 63 3d 6f 72 67 80 04 79 6e 68 68 ,dc=org..ynhh
ldap_result ld 0xd17170 msgid 1
wait4msg ld 0xd17170 msgid 1 (infinite timeout)
wait4msg continue ld 0xd17170 msgid 1 all 1
** ld 0xd17170 Connections:
* host: localhost port: 389 (default)
refcnt: 2 status: Connected
last used: Wed Feb 13 15:52:23 2013


** ld 0xd17170 Outstanding Requests:
* msgid 1, origid 1, status InProgress
outstanding referrals 0, parent count 0
ld 0xd17170 request count 1 (abandoned 0)
** ld 0xd17170 Response Queue:
Empty
ld 0xd17170 response count 0
ldap_chkResponseList ld 0xd17170 msgid 1 all 1
ldap_chkResponseList returns ld 0xd17170 NULL
ldap_int_select
read1msg: ld 0xd17170 msgid 1 all 1
ber_get_next
ldap_read: want=8, got=8
0000: 30 0c 02 01 01 61 07 0a 0....a..
ldap_read: want=6, got=6
0000: 01 31 04 00 04 00 .1....
ber_get_next: tag 0x30 len 12 contents:
ber_dump: buf=0xd217f0 ptr=0xd217f0 end=0xd217fc len=12
0000: 02 01 01 61 07 0a 01 31 04 00 04 00 ...a...1....
read1msg: ld 0xd17170 msgid 1 message type bind
ber_scanf fmt ({eAA) ber:
ber_dump: buf=0xd217f0 ptr=0xd217f3 end=0xd217fc len=9
0000: 61 07 0a 01 31 04 00 04 00 a...1....
read1msg: ld 0xd17170 0 new referrals
read1msg: mark request completed, ld 0xd17170 msgid 1
request done: ld 0xd17170 msgid 1
res_errno: 49, res_error: <>, res_matched: <>
ldap_free_request (origid 1, msgid 1)
ldap_parse_result
ber_scanf fmt ({iAA) ber:
ber_dump: buf=0xd217f0 ptr=0xd217f3 end=0xd217fc len=9
0000: 61 07 0a 01 31 04 00 04 00 a...1....
ber_scanf fmt (}) ber:
ber_dump: buf=0xd217f0 ptr=0xd217fc end=0xd217fc len=0

ldap_msgfree
ldap_err2string
ldap_bind: Invalid credentials (49)