Hello,

Here is a simple example of what exactly do I need regarding ? wildcard.
Assume the following entries are present in directory:
 cn=alna,dc=example,dc=com
 cn=al*i*na,dc=example,dc=com
 cn=al*a*na,dc=example,dc=com
  cn=al*ii*na,dc=example,dc=com
 cn=al*aaa*na,dc=example,dc=com
So, filter *(cn=al?na) *would match only entries:
  cn=alna,dc=example,dc=com
 cn=al*i*na,dc=example,dc=com
 cn=al*a*na,dc=example,dc=com
i.e. zero or one character.

Currently I have to use wildcard * instead of ? for search and then
additionally check each resulting entry to match correct regular expression.
Would be nice if OpenLDAP would perform it on server side.

Best Regards,
Alina.


On 4/29/07, Dustin Puryear <[EMAIL PROTECTED]> wrote:

I know that OpenLDAP supports regex within ACLs, but I don't think there
is support for a regex in a filter. (Vanilla LDAP definitely does not
support this.) Who knows though? There may be a patch out there for it
floating around.

Anyway, give a few examples of what you are trying to do. Perhaps you
are looking at this from the wrong angle.

---
Puryear Information Technology, LLC
Baton Rouge, LA * 225-706-8414
http://www.puryear-it.com

Author:
  "Best Practices for Managing Linux and UNIX Servers"
  "Spam Fighting and Email Security in the 21st Century"

Download your free copies:
  http://www.puryear-it.com/publications.htm

Alina Dubrovska wrote:
> Hello!
>
> Is it possible to create a filter for LDAP search containing a wildcard:
> ?  (matches zero or one character)
>
> As far as I see there is only * (zero or more) wildcard defined in
> related RFCs.
> Maybe there is some trick to achive such a behaviour?
>
> Thanks in advance,
> Alina.
> --- You are currently subscribed to [EMAIL PROTECTED] as:
> [EMAIL PROTECTED] To unsubscribe send email to
> [EMAIL PROTECTED] with the word UNSUBSCRIBE as the SUBJECT of the
> message.



---
You are currently subscribed to [EMAIL PROTECTED] as: [EMAIL PROTECTED]
To unsubscribe send email to [EMAIL PROTECTED] with the word UNSUBSCRIBE as the 
SUBJECT of the message.

Reply via email to