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

Re: using openldap as a translation layer.

S James S Stapleton wrote:
> OK, I got it working now (rwm/ldap anway, using cygwin instead of mingw,
> the process worked).
> However, I'm not getting any results yet.
> If I see these two lines in the output (-g -1):
>    ==> rewrite_context_apply [depth=1]
> string='(&(objectClass=person)(uid=stapleton.41))'
>    ==> rewrite_context_apply [depth=1] res={0,'NULL'}
> The second line means the regex did not match, correct?

sort of

> I tried this
> with the original regex that was suggested to me, and the following
> match attempts, with the same {0,'NULL'} results:
>  "\(\&\(objectClass=person\)\(uid=([a-zA-Z]+\.[0-9]+)\)\)"
>  "\(&\(objectClass=person\)\(uid=([a-zA-Z]+\.[0-9]+)\)\)"
>  "uid=([a-zA-Z]+\.[0-9]+)"
> Any suggestions on what I am doing wrong? (I figure I am either reading
> the output wrong, or have botched the regex, possibly both)

The above regex'es make little sense to me.  It doesn't even look like a
rewrite statement, but just rather a bunch of regex'ish lines.  What is
the rewrite configuration you're actually using?  What's your intention?
 (please excuse my laziness, but the original thread is too long to
figure out myself).


Ing. Pierangelo Masarati
OpenLDAP Core Team

SysNet s.r.l.
via Dossi, 8 - 27100 Pavia - ITALIA
Office:  +39 02 23998309
Mobile:  +39 333 4963172
Email:   pierangelo.masarati@sys-net.it