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

Re: back-sql: custom attribute list: segmentation fault



Pierangelo Masarati wrote:

Guenther Starnberger wrote:

On Mon, 2004-03-08 at 14:23, Nikola Ivancevic wrote:

Hi,



I'm using OpenLDAP (2.2.6) with back-sql and postgresql (7.3.4).
My LDAP tree structure is very similar to the back-sql example. There is one root dcObject (dn: dc=panline,dc=net). Trying JXplorer (a Java LDAP GUI browser) and performing a simple search I have caused the slapd server to segfault. I have found that


ldapsearch -b "dc=panline,dc=net" "(&(objectClass=*)(gecos=test))"

works fine, but

ldapsearch -b "dc=panline,dc=net" "(&(objectClass=*)(gecos=test))" gecos




Sounds similiar to the bug which I reported some days ago:
http://www.openldap.org/its/index.cgi/Software%20Bugs?id=3005

ITS#3005 seems to be already fixed in OPENLDAP_REL_ENG_2_2 and HEAD.



Let me add that you should check if "gecos" attribute is defined in your schema files AND in the meta-data for the type of entry that causes the crash. If it is, then it might be something different, but I suggest that in any case you try ITS#3005 changes first, by checking out HEAD/re22 code.

p.


Yes, there is the definition of 'gecos' attribute for oc 'myposixAccount'. But oc dcObject has not such an attribute (gecos).
I do not undertand why the backend tries to obtain 'gecos' from a dcObject in spite of the fact that this attribute is not defined for dcObject class. I assume that such objects should be ignored.
...
I've just tried OPENLDAP_REL_ENG_2_2 and now slapd does not crash!


Nikola Ivancevic