[Date Prev][Date Next]
RE: multi-value attribute (roleOccupant) filters --How to?
- To: Michael Ströder <email@example.com>
- Subject: RE: multi-value attribute (roleOccupant) filters --How to?
- From: "Ken Turley" <firstname.lastname@example.org>
- Date: Mon, 14 Jul 2003 16:20:49 -0600
- Cc: <openldap-software@OpenLDAP.org>
- Content-class: urn:content-classes:message
- Thread-index: AcNKQoWufmOE6JE0RpuOxNQo6jJyOwAEtaSw
- Thread-topic: multi-value attribute (roleOccupant) filters --How to?
Thank you, Michael, for your quick reply. You've shed light on the issue and clarifies some behavior for me. With back-sql, however, I still seem to have some things to work through in terms of the SQL select statement that is generated. When I specify an explicit DN for a role occupant, as you suggest, I at least don't get the ?=undefined error for my filter --and this tells me I'm no longer conflicting with the schema-- but I'm also not yet receiving results. I'm doing additional testing to see if I can determine where the problem lies --i.e. what select stmt is being issued to the SQL server, etc.
From: Michael Ströder [mailto:email@example.com]
Sent: Monday, July 14, 2003 2:00 PM
To: Ken Turley
Subject: Re: multi-value attribute (roleOccupant) filters --How to?
Ken Turley wrote:
> I want to issue a search something like this:
> ldapsearch -b dc=ROLES,o=CHAIN,c=US (roleOccupant=*hall*)
> In this example, I receive no hits and the slapd log contains: filter='(?=undefined)'
The attribute type 'roleOccupant' has no sub-string matching rule (SUBSTR).
You probably should search for the user's entry first and then use the DN of
this entry for exact search.