Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Nov 2004 16:29:36 +0100
From:      Geert Rolf <Geert.Rolf@xs4all.nl>
To:        eik@FreeBSD.org, ports@FreeBSD.org
Subject:   Re: FreeBSD Port: openldap-server-2.2.18
Message-ID:  <41A205E0.1FB52085@xs4all.nl>
References:  <4194C60B.400EF2B9@xs4all.nl> <4194C6D7.329A4784@xs4all.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
To those who read this,

Sorry to mantion that there was no response on my initial e-mail of November 12.

I just completed another small experiment: I did exactly the same initialisations for my LDAP test on FreeBSD 4.4, openldap-2.0.14
and db3-3.2.9_2,1 and performed exactly the same test. Result: it worked.

This makes it more obvious that there is something serious wrong with the implementations mentioned below running on FreeBSD 4.9.
Plane error, not a pilot error?!

If you are prepared to take a closer look, I can and will provide you with the scripts and setup info I used to do the test.

I hope to hear from one of you this time.

Kind regards,
	Geert Rolf

Geert Rolf schreef:
> 
> Sorry, its nog the Sasl server I used...
> 
> Regards,
>         Geert
> 
> Geert Rolf schreef:
> >
> > Dear Oliver,
> >
> > After a full day of Trial and Error I pull up a white flag and surrender...
> >
> > I've tried openldap-server versions 2.0, 2.1 2.2 alpha (as with FreeBSD 4.9) and the 2.2.18 from the current ports collection.
> > I'm trying to make an Addressbook for Netscape. With all versions I get the same problem and it's getting hard to believe that its a
> > pilot-error. ;-)
> >
> > The plane crashes as follows:
> >
> > I do a:
> > ldapsearch -x -b 'ou=abook,dc=office,dc=local' '(cn=Geert Rolf)'
> >
> > I get:
> > # extended LDIF
> > #
> > # LDAPv3
> > # base <ou=abook,dc=office,dc=local> with scope sub
> > # filter: (cn=Geert Rolf)
> > # requesting: ALL
> > #
> >
> > # search result
> > search: 2
> > result: 0 Success
> >
> > # numResponses: 1
> >
> > And extended logging says:
> >
> > Nov 12 14:53:50 speedy slapd[61787]: ====> bdb_cache_find_entry_id( 3 ) "cn=Geert Rolf,ou=abook,dc=office,dc=local" (found) (1 tries
> > )
> > Nov 12 14:53:50 speedy slapd[61787]: bdb_search: 3 does not match filter
> >
> > >From logfile, I conclude:
> > The record is there, but the filter does not match (it should IMHO)
> >
> > Same results on all mentioned versions and switching to ldbm does not help. There are Google results on "bdb_search does not match
> > filter", but they are a bit off subject compared with this strange case.
> >
> > Do you have any hints??
> >
> > Kind regards,
> >         Geert Rolf
> >
> > FYI platform= FreeBSD 4.9
> > Complete logging:
> >
> > Nov 12 15:05:44 speedy slapd[61787]: connection_get(13): got connid=9
> > Nov 12 15:05:44 speedy slapd[61787]: connection_read(13): checking for input on id=9
> > Nov 12 15:05:44 speedy slapd[61787]: ber_get_next on fd 13 failed errno=35 (Resource temporarily unavailable)
> > Nov 12 15:05:44 speedy slapd[61787]: do_bind
> > Nov 12 15:05:44 speedy slapd[61787]: >>> dnPrettyNormal: <>
> > Nov 12 15:05:44 speedy slapd[61787]: <<< dnPrettyNormal: <>, <>
> > Nov 12 15:05:44 speedy slapd[61787]: do_bind: version=3 dn="" method=128
> > Nov 12 15:05:44 speedy slapd[61787]: send_ldap_result: conn=9 op=0 p=3
> > Nov 12 15:05:44 speedy slapd[61787]: send_ldap_response: msgid=1 tag=97 err=0
> > Nov 12 15:05:44 speedy slapd[61787]: do_bind: v3 anonymous bind
> > Nov 12 15:05:44 speedy slapd[61787]: connection_get(13): got connid=9
> > Nov 12 15:05:44 speedy slapd[61787]: connection_read(13): checking for input on id=9
> > Nov 12 15:05:44 speedy slapd[61787]: ber_get_next on fd 13 failed errno=35 (Resource temporarily unavailable)
> > Nov 12 15:05:44 speedy slapd[61787]: do_search
> > Nov 12 15:05:44 speedy slapd[61787]: >>> dnPrettyNormal: <ou=abook,dc=office,dc=local>
> > Nov 12 15:05:44 speedy slapd[61787]: <<< dnPrettyNormal: <ou=abook,dc=office,dc=local>, <ou=abook,dc=office,dc=local>
> > Nov 12 15:05:44 speedy slapd[61787]: => bdb_back_search
> > Nov 12 15:05:44 speedy slapd[61787]: bdb_dn2entry_rw("ou=abook,dc=office,dc=local")
> > Nov 12 15:05:44 speedy slapd[61787]: => bdb_dn2id_matched( "ou=abook,dc=office,dc=local" )
> > Nov 12 15:05:44 speedy slapd[61787]: ====> bdb_cache_find_entry_dn2id("ou=abook,dc=office,dc=local"): 2 (1 tries)
> > Nov 12 15:05:44 speedy slapd[61787]: ====> bdb_cache_find_entry_id( 2 ) "ou=abook,dc=office,dc=local" (found) (1 tries)
> > Nov 12 15:05:44 speedy slapd[61787]: search_candidates: base="ou=abook,dc=office,dc=local" (0x00000002) scope=2
> > Nov 12 15:05:44 speedy slapd[61787]: => bdb_dn2idl( "ou=abook,dc=office,dc=local" )
> > Nov 12 15:05:44 speedy slapd[61787]: <= bdb_dn2idl: id=5 first=2 last=6
> > Nov 12 15:05:44 speedy slapd[61787]: => bdb_equality_candidates (objectClass)
> > Nov 12 15:05:44 speedy slapd[61787]: => key_read
> > Nov 12 15:05:44 speedy slapd[61787]: <= bdb_index_read: failed (-30991)
> > Nov 12 15:05:44 speedy slapd[61787]: <= bdb_equality_candidates: id=0, first=0, last=0
> > Nov 12 15:05:44 speedy slapd[61787]: => bdb_equality_candidates (cn)
> > Nov 12 15:05:44 speedy slapd[61787]: => key_read
> > Nov 12 15:05:44 speedy slapd[61787]: <= bdb_index_read 1 candidates
> > Nov 12 15:05:44 speedy slapd[61787]: <= bdb_equality_candidates: id=1, first=3, last=3
> > Nov 12 15:05:44 speedy slapd[61787]: bdb_search_candidates: id=1 first=3 last=3
> > Nov 12 15:05:44 speedy slapd[61787]: ====> bdb_cache_return_entry_r( 2 ): returned (0)
> > Nov 12 15:05:44 speedy slapd[61787]: ====> bdb_cache_find_entry_id( 3 ) "cn=Geert Rolf,ou=abook,dc=office,dc=local" (found) (1 tries
> > )
> > Nov 12 15:05:44 speedy slapd[61787]: bdb_search: 3 does not match filter
> > Nov 12 15:05:44 speedy slapd[61787]: ====> bdb_cache_return_entry_r( 3 ): returned (0)
> > Nov 12 15:05:44 speedy slapd[61787]: send_search_result: err=0 matched="" text=""
> > Nov 12 15:05:44 speedy slapd[61787]: send_ldap_response: msgid=2 tag=101 err=0
> > Nov 12 15:05:44 speedy slapd[61787]: connection_get(13): got connid=9
> > Nov 12 15:05:44 speedy slapd[61787]: connection_read(13): checking for input on id=9
> > Nov 12 15:05:44 speedy slapd[61787]: ber_get_next on fd 13 failed errno=0 (Undefined error: 0)
> > Nov 12 15:05:44 speedy slapd[61787]: connection_read(13): input error=-2 id=9, closing.
> > Nov 12 15:05:44 speedy slapd[61787]: connection_closing: readying conn=9 sd=13 for close
> > Nov 12 15:05:44 speedy slapd[61787]: connection_close: deferring conn=9 sd=13
> > Nov 12 15:05:44 speedy slapd[61787]: do_unbind
> > Nov 12 15:05:44 speedy slapd[61787]: connection_resched: attempting closing conn=9 sd=13
> > Nov 12 15:05:44 speedy slapd[61787]: connection_close: conn=9 sd=13



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41A205E0.1FB52085>