Installation guide
More information on LDAP field mappings
Acano solution: Single combined Acano server Deployment Guide R1.6 76-1054-01-H
Page 60
Appendix D More information on LDAP field
mappings
This section provides additional information for LDAP field mappings that you set up for the
Acano solution.
Parts of an LDAP field value can be substituted by means of a sed-like construction, as follows:
$<LDAP field name>|'/<regex>/<replacement format>/<option>'$
<option> can be g, to replace every match of <regex> with <replacement format>,
or blank to match only the first
parts of <regex> can be tagged for use in <replacement format> by enclosing them in
round brackets
tagged matches can be referenced in <replacement format> as \x where x is a digit
from 0 to 9. Match 0 corresponds to the entire match, and matches 1-9 the 1st to 9th tagged
sub-expressions
single quotes inside the substitution expression must be escaped with a backslash, as must
backslash characters themselves
any character other than a single quote, a backslash, or the digits 0-9 can be used in place
of the forward slash that separates the components of the substitution expression
if the separating character is to be used as a literal within the expression, it must be escaped
with a backslash
As an example, the following would convert
firstname.lastname@test.example.com
addresses into
firstname.lastname@xmpp.example.com JIDs
$mail|'/@test/@xmpp/'$
and the following would remove every lower case 'a' from the user's full name
$cn|'/a//g'$
A sensible set of expressions for use might be:
Full name: $cn$
JID: $mail|'/@test/@xmpp/'$
CoSpace URI: $mail|'/@.*//'$.cospace
CoSpace dial-in number: $ipPhone$