Let's say you provide
format="| $cn | $telephonenumber |"
to
%LDAP{...}%
.
If Joe Schmoe matches the
filter
but does not have the
telephonenumber
attribute, the resulting line for hime is:
| Joe Schmoe | $telephonenumber |
You can eliminate ugly
$telephonenumber
in the result by giving
clear="$telephonenumber"
to
%LDAP{...}%
.
This is OK but it's cumbersome to specify
clear
.
There should be an automatic way.
With above in mind,
{Plugins}{LdapNgPlugin}{AutoClear}
configuration parameter will be introduced.
If it's true,
$something
in the
format
parameter will be processed as follows.
- If the attributed named "something" exists in the current record,
$something
is replaced with that
-
$dollar
is replaced with a special string
- The standard special tokens (
$percnt
, $quot
, etc.) are processed
-
$something
is replaced with the null string (""
)
- The special string is replaced with
$
.
--
TWiki:Main/HideyoImazu - 2012-12-28