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

Re: slapo-rwm : concatenate rule



> Hi,
>
> I would like to create a rewrite rule with slapo-rwm using back-relay to
> concatenate two different attributes in an other one? Something like
> this with an approximate syntax:
>
> map attribute cn concat(givenName sn)
>
> or with Perl syntax:
>
> map attribute cn "$givenName $sn"
>
> Is it possible to do this with rewriteRules directives?

No (at least, not in a straightforward and reliable manner).  You'll need
to write some code.  I'd note, however, that things like that are far
beyond the spirit of LDAP; it is a container, not a generator of fancy
strings.  Store the values you need, retrieve them as static values.

p.