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

Re: ldapsearch issue

Derek Yarnell wrote:

So I was trying to do the following search,


It logs the following though,

slapd[5205]: conn=258105 op=9 SRCH base="ou=automount,ou=system,dc=XXX,dc=XXX,dc=XXX" scope=2 deref=2 filter="(&(?automountMapName=auto*)(objectClass=automountMap))"

If you do this search


slapd[5205]: conn=258174 op=1 SRCH base="ou=automount,ou=system,dc=XXX,dc=XXX,dc=XXX" scope=2 deref=0 filter="(&(automountMapName=*)(objectClass=automountMap))"

This is the schema definition on the server (rfc2307bis),

attributeType ( NAME 'automountMapName'
  DESC 'automount Map Name'
  EQUALITY caseExactIA5Match
  SUBSTR caseExactIA5SubstringsMatch

My feeling is that caseExactIA5SubstringsMatch is doing something very
wrong here.  Shouldn't slapd be returning a error not injecting a ? in my

No. Read RFC 4511. Invalid filters are simply treated as Undefined, they never generate an error response. The '?' is only present in the log message, to identify what was invalid. It has no effect on any of the processing.

  -- Howard Chu
  CTO, Symas Corp.           http://www.symas.com
  Director, Highland Sun     http://highlandsun.com/hyc/
  Chief Architect, OpenLDAP  http://www.openldap.org/project/