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

I just must be missing something simple.



Hello openldap-software list,

I've got openldap installed on an HP-UX box, I've been following the how-to here: http://www.tldp.org/HOWTO/LDAP-HOWTO/.

I got it compiled and installed. Set up the slapd.conf as the example shows, made an ldif file and used slapadd to add an entry. All seems good... Here's what I get when I run slapcat:

[root@rhadley openldap]# slapcat
dn: cn=Ryan Hadley,dc=example,dc=com
cn: Ryan M Hadley
objectClass: person
sn: Ryan
structuralObjectClass: person
entryUUID: 34bd4214-c7e2-1026-9d0e-b4290edf54c7
creatorsName: cn=manager,dc=example,dc=com
modifiersName: cn=manager,dc=example,dc=com
createTimestamp: 20030129143215Z
modifyTimestamp: 20030129143215Z
entryCSN: 2003012914:32:15Z#0x0001#0#0000

So then I start the server: /usr/local/libexec/slapd

And then run ldapsearch:

[root@rhadley openldap]# ldapsearch -x -b 'dc=example,dc=com'

# extended LDIF
#
# LDAPv3
# base <dc=example,dc=com> with scope sub
# filter: (objectclass=*)
# requesting: ALL
#

# search result
search: 2
result: 32 No such object

# numResponses: 1

Nothing found. so I added a 'cn=Ryan M Hadley' at the end and got the same message for that filter.

So then I tried: ldapsearch -x -D 'cn=Manager,dc=example,dc=com' -W -b 'dc=example,dc=com'. Got the same not such object message.

Then ran slapd with -d 1 and saw this in the log: "ber_get_next on fd 9 failed errno=11 (Resource temporarily unavailable)" and searched on google... all I found about that was that it probably is not the error causing me troubles.

Am I expecting this to behave in a way it's not supposed to? I've read over the how-to and searched for other ones... it seems like the expected behavior would be finding my person object.

Here's my slapd.conf file (basically taken straight from the how-to):

include /usr/local/etc/openldap/schema/core.schema
access to * by * read
database ldbm
suffix "dc=example,dc=com"
directory /usr/local/var/openldap-data-new
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
# indexed attribute definitions
index objectClass eq
# database access control definitions
access to attr=userPassword
       by self write
       by anonymous auth
       by dn="cn=Admin,dc=example,dc=com" write
       by * none
access to *
       by self write
       by dn="cn=Admin,dc=example,dc=com" write
       by * read

Here's the debug output when I run the ldapsearch:

ldap_pvt_gethostbyname_a: host=rhadley, r=0
put_filter: "(objectclass=*)"
put_filter: simple
put_simple_filter: "objectclass=*"
ber_scanf fmt (m) ber:
connection_get(9): got connid=0
connection_read(9): checking for input on id=0
ber_get_next
ber_get_next: tag 0x30 len 12 contents:
ber_get_next
ber_get_next on fd 9 failed errno=11 (Resource temporarily unavailable)
do_bind
ber_scanf fmt ({imt) ber:
ber_scanf fmt (m}) ber:
>>> dnPrettyNormal: <>
<<< dnPrettyNormal: <>, <>
do_bind: version=3 dn="" method=128
send_ldap_result: conn=0 op=0 p=3
send_ldap_response: msgid=1 tag=97 err=0
ber_flush: 14 bytes to sd 9
connection_get(9): got connid=0
connection_read(9): checking for input on id=0
ber_get_next
ber_get_next: tag 0x30 len 62 contents:
deferring operation
ber_get_next
ber_get_next on fd 9 failed errno=11 (Resource temporarily unavailable)
do_bind: v3 anonymous bind<= ldbm_cache_open (opened 0)
<= dn2id NOID
send_ldap_result: conn=0 op=1 p=3
send_ldap_response: msgid=2 tag=101 err=32
ber_flush: 14 bytes to sd 9
connection_get(9): got connid=0
connection_read(9): checking for input on id=0
ber_get_next
ber_get_next: tag 0x30 len 5 contents:
ber_get_next
ber_get_next on fd 9 failed errno=0 (Success)
connection_read(9): input error=-2 id=0, closing.
connection_closing: readying conn=0 sd=9 for close
connection_close: deferring conn=0 sd=9
do_unbind
connection_resched: attempting closing conn=0 sd=9
connection_close: deferring conn=0 sd=9
connection_resched: attempting closing conn=0 sd=9
connection_close: conn=0 sd=9
do_search
ber_scanf fmt ({miiiib) ber:
>>> dnPrettyNormal: <dc=example,dc=com>
=> ldap_bv2dn(dc=example,dc=com,0)
<= ldap_bv2dn(dc=example,dc=com,0)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(dc=example,dc=com,272)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(dc=example,dc=com,272)=0
<<< dnPrettyNormal: <dc=example,dc=com>, <dc=example,dc=com>
ber_scanf fmt ({mm}) ber:
ber_scanf fmt ({M}}) ber:
=> ldbm_back_search
dn2entry_r: dn: "dc=example,dc=com"
=> dn2id( "dc=example,dc=com" )
=> ldbm_cache_open( "dn2id.dbb", 73, 600 )