This is a multi-part message in MIME format.
--------------080602030800020000070003
Content-Type: text/plain; charset=iso-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
This is the info Kevin sent before.
aliases are known to work incorrectly in back-ldbm. back-ldbm has been
deprecated since OpenLDAP 2.2 and has been deleted from the source tree
for OpenLDAP 2.4. As such, I don't see us taking any action on this bug
report. Use back-bdb or back-hdb instead.
-------- Original Message --------
Subject: Re: (ITS#4739) Server crashes every time alias is dereferenced
Date: Wed, 8 Nov 2006 22:09:51 -0800 (PST)
From: Kevin Hardiman hardimankevin@yahoo.com
To: Howard Chu hyc@symas.com
Howard,
To answer your initial questions:
1. The aliased entry does exist
2. The backined is ldbm
3. Attached is a sanitized slapd.conf
4. Attached is a sanitized ldif export
Here's the output from running slapd (sanitized for sensitive
information) without forking (-d 1):
dnPrettyNormal: <ou=Users,ou=example,ou=smb,ou=Core
Services,dc=example,dc=com>
<<< dnPrettyNormal: <ou=Users,ou=example,ou=smb,ou=Core
Services,dc=example,dc=com>, <ou=users,ou=example,ou=smb,ou=core
services,dc=example,dc=com>
ber_scanf fmt ({mm}) ber:
ber_scanf fmt ({mm}) ber:
ber_scanf fmt ({M}}) ber:
=> ldbm_back_search
dn2entry_r: dn: "ou=users,ou=example,ou=smb,ou=core
services,dc=example,dc=com"
=> dn2id( "ou=users,ou=example,ou=smb,ou=core services,dc=example,dc=com" )
====> cache_find_entry_ndn2id("ou=users,ou=example,ou=smb,ou=core
services,dc=example,dc=com"): 16378 (1 tries)
<= dn2id 16378 (in cache)
=> id2entry_r( 16378 )
====> cache_find_entry_id( 16378 ) "ou=Users,ou=example,ou=smb,ou=Core
Services,dc=example,dc=com" (found) (1 tries)
<= id2entry_r( 16378 ) 0x82d2068 (cache)
search_candidates: base="ou=users,ou=example,ou=smb,ou=core
services,dc=example,dc=com" s=2 d=3
=> filter_candidates
=> list_candidates 0xa0
=> filter_candidates
=> dn2idl( "@ou=users,ou=example,ou=smb,ou=core
services,dc=example,dc=com" )
=> ldbm_cache_open( "dn2id.dbb", 73, 600 )
<= ldbm_cache_open (cache 0)
<= filter_candidates 2
=> filter_candidates
=> list_candidates 0xa1
=> filter_candidates
=> equality_candidates
=> ldbm_cache_open( "objectClass.dbb", 73, 600 )
<= ldbm_cache_open (cache 3)
=> key_read
<= index_read 1 candidates
<= equality_candidates 1
<= filter_candidates 1
=> filter_candidates
=> equality_candidates
=> ldbm_cache_open( "objectClass.dbb", 73, 600 )
<= ldbm_cache_open (cache 3)
=> key_read
<= index_read 0 candidates
<= equality_candidates NULL
<= equality_candidates 0
<= filter_candidates 0
idl_free: called with NULL pointer
=> filter_candidates
=> list_candidates 0xa0
=> filter_candidates
=> equality_candidates
=> ldbm_cache_open( "objectClass.dbb", 73, 600 )
<= ldbm_cache_open (cache 3)
=> key_read
<= index_read 4 candidates
<= equality_candidates 4
<= filter_candidates 4
=> filter_candidates
=> equality_candidates
=> ldbm_cache_open( "uid.dbb", 73, 600 )
<= ldbm_cache_open (cache 4)
=> key_read
<= index_read 0 candidates
<= equality_candidates NULL
<= equality_candidates 0
<= filter_candidates 0
<= list_candidates NULL
<= filter_candidates 0
idl_free: called with NULL pointer
<= list_candidates 1
<= filter_candidates 1
<= list_candidates 1
<= filter_candidates 1
====> cache_return_entry_r( 16378 ): returned (0)
=> id2entry_r( 16400 )
====> cache_find_entry_id( 16400 )
"uid=test,ou=Users,ou=example,ou=smb,ou=Core Services,dc=example,dc=com"
(found) (1 tries)
<= id2entry_r( 16400 ) 0x82d5580 (cache)
dn2entry_r: dn: "ÿÿÐuhH_øP"
=> dn2id( "ÿÿÐuhH_øP" )
=> ldbm_cache_open( "dn2id.dbb", 73, 600 )
<= ldbm_cache_open (cache 0)
<= dn2id NOID
slapd: dn.c:1148: dnParent: Assertion `( ( ( ( (p[ 0 ]) >= 'a' && (p[ 0
]) <= 'z' ) || ( (p[ 0 ]) >= 'A' && (p[ 0 ]) <= 'Z' ) ) ) || ( ( (p[ 0
]) >= '0' && (p[ 0 ]) <= '9' ) ) )' failed.
Aborted
Let me know if you need anything else.
Regards,
Kevin Hardiman
----- Original Message ----
From: Howard Chu hyc@symas.com
To: hardimankevin@yahoo.com
Cc: openldap-its@openldap.org
Sent: Wednesday, November 8, 2006 9:45:27 PM
Subject: Re: (ITS#4739) Server crashes every time alias is dereferenced
hardimankevin@yahoo.com wrote:
Full_Name: Kevin Hardiman
Version: 2.3.27
OS: Linux (Mandriva 2007)
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (24.90.130.182)
Using the very simple alias below, OpenLDAP will crash every time it is
dereferenced:
dn: uid=test,ou=Users,ou=bladiant,ou=smb,ou=Core
Services,dc=example,dc=com
objectClass: alias
objectclass: extensibleObject
uid: test
aliasedObjectName: uid=test,ou=Users,dc=example,dc=com
This error has been experience with OpenLDAP releases 2.3.6 and
2.3.27, both in
the form of provided Mandriva packages. I also have seen a number of
references
to this error in previous releases, with no explicit fix. Please
advise.
Well, considering that no one has reported any such problem during the
whole time releases 2.3.6-2.3.27 were published, it's no surprise that
there has been no fix yet.
There's not enough information here to reproduce the bug. What backend
are you using, what other entries are in the database? In particular,
does "uid=test,ou=Users,dc=example,dc=com" exist? You should provide a
sample slapd.conf and minimal LDIF needed to reproduce the error.
--
-- Howard Chu
Chief Architect, Symas Corp.
http://www.symas.com
Director, Highland Sun
http://highlandsun.com/hyc
OpenLDAP Core Team
http://www.openldap.org/project/
------------------------------------------------------------------------
Sponsored Link
$200,000 mortgage for $660/mo - 30/15 yr fixed, reduce debt, home equity
- Click now for info
http://www.ratemarketplace.com/forms/form.jsp?ADEL=Os4fVJ19lSwzAOc/zMz/CYLqA5sBlJ/HICjGxkSe1FKtmWyM5TR8NmykLaxQaZnu&PI=y_mail_textlink
--
-- Howard Chu
Chief Architect, Symas Corp.
http://www.symas.com
Director, Highland Sun
http://highlandsun.com/hyc
OpenLDAP Core Team
http://www.openldap.org/project/
--------------080602030800020000070003
Content-Type: application/octet-stream;
name="slapd.conf"
Content-Transfer-Encoding: base64
Content-Disposition: attach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c3NsL29wZW5sZGFwL2xkYXBrZXkucGVt
ClRMU0NBQ2VydGlmaWNhdGVQYXRoICAgL2V0Yy9zc2wvb3BlbmxkYXAvClRMU0NBQ2VydGlm
aWNhdGVGaWxlICAgIC9ldGMvc3NsL29wZW5sZGFwL2NhY2VydC5wZW0KVExTVmVyaWZ5Q2xp
ZW50IHRyeSAjIChbbmV2ZXJdfGFsbG93fHRyeXxkZW1hbmQpCmxvZ2xldmVsIDI2OAphbGxv
dyBiaW5kX3YyCnNhc2wtc2VjcHJvcHMgbm9uZQpkYXRhYmFzZQlsZGJtCnN1ZmZpeAkJImRj
PWJsYWRpYW50LGRjPWNvbSIKcm9vdGRuCQkiY249S2V2aW4gSGFyZGltYW4sb3U9UGVvcGxl
LGRjPWV4YW1wbGUsZGM9Y29tIgpsYXN0bW9kCQlvbgpkaXJlY3RvcnkJL3Zhci9saWIvbGRh
cApjaGVja3BvaW50IDI1NiA1CmluZGV4CW9iamVjdENsYXNzLHVpZCx1aWROdW1iZXIsZ2lk
TnVtYmVyLG1lbWJlcnVpZAllcQppbmRleAljbixtYWlsLHN1cm5hbWUsZ2l2ZW5uYW1lCQll
cSxzdWJpbml0aWFsCiAK
--------------080602030800020000070003
Content-Type: application/octet-stream;
name="minimal_export.ldif"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="minimal_export.ldif"
ZG46IG91PVVzZXJzLCBkYz1leGFtcGxlLGRjPWNvbQpvdTogVXNlcnMKb2JqZWN0Q2xhc3M6
IG9yZ2FuaXphdGlvbmFsVW5pdAoKZG46IHVpZD10ZXN0LCBvdT1Vc2VycywgZGM9ZXhhbXBs
ZSxkYz1jb20Kc2FtYmFQcmltYXJ5R3JvdXBTSUQ6IFhYWFgKc2FtYmFMTVBhc3N3b3JkOiBY
WFhYCmRpc3BsYXlOYW1lOiBLZXZpbiBIYXJkaW1hbgpvYmplY3RDbGFzczogdG9wCm9iamVj
dENsYXNzOiBpbmV0T3JnUGVyc29uCm9iamVjdENsYXN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