summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2013-03-03 15:46:19 +0100
committerArthur de Jong <arthur@arthurdejong.org>2013-03-03 15:54:16 +0100
commit646dfa81025a89c50b81bf91dd95fd828606718d (patch)
treec70da4e1299edf945e2a51823263a76a7f3b92ec /man
parent54a3dbae5500fd7c512b3351c432df240f1b8c13 (diff)
document the trimming expressions in the nslcd.conf(5) manual page
Diffstat (limited to 'man')
-rw-r--r--man/nslcd.conf.5.xml50
1 files changed, 45 insertions, 5 deletions
diff --git a/man/nslcd.conf.5.xml b/man/nslcd.conf.5.xml
index 4eb77bb..986f874 100644
--- a/man/nslcd.conf.5.xml
+++ b/man/nslcd.conf.5.xml
@@ -899,19 +899,52 @@
<varlistentry>
<term><literal>${attr:+word}</literal></term>
<listitem><para>
- (use alternative) will substitbute word if attribute is set, otherwise
- substitute the empty string
+ (use alternative) will substitbute <literal>word</literal> if attribute
+ is set, otherwise substitute the empty string
+ </para></listitem>
+ </varlistentry>
+ <varlistentry> <!-- since 0.9.0 -->
+ <term><literal>${attr#word}</literal></term>
+ <listitem><para>
+ remove the shortest possible match of <literal>word</literal> from the
+ left of the attribute value
+ </para></listitem>
+ </varlistentry>
+ <varlistentry> <!-- since 0.9.0 (pynslcd only) -->
+ <term><literal>${attr##word}</literal></term>
+ <listitem><para>
+ remove the longest possible match of <literal>word</literal> from the
+ left of the attribute value (<command>pynslcd</command> only)
+ </para></listitem>
+ </varlistentry>
+ <varlistentry> <!-- since 0.9.0 (pynslcd only) -->
+ <term><literal>${attr%word}</literal></term>
+ <listitem><para>
+ remove the shortest possible match of <literal>word</literal> from the
+ right of the attribute value (<command>pynslcd</command> only)
+ </para></listitem>
+ </varlistentry>
+ <varlistentry> <!-- since 0.9.0 (pynslcd only) -->
+ <term><literal>${attr%%word}</literal></term>
+ <listitem><para>
+ remove the longest possible match of <literal>word</literal> from the
+ right of the attribute value (<command>pynslcd</command> only)
</para></listitem>
</varlistentry>
</variablelist>
<para>
- Quote (<literal>"</literal>), dollar (<literal>$</literal>) or
+ Only the # matching expression is supported in <command>nslcd</command>
+ and only with the ? wildcard symbol. The <command>pynslcd</command>
+ implementation supports full matching.
+ </para>
+ <para>
+ Quote (<literal>"</literal>), dollar (<literal>$</literal>) and
backslash (<literal>\</literal>) characters should be escaped with a
backslash (<literal>\</literal>).
</para>
<para>
- The <command>nslcd</command> daemon checks the expressions to figure
- out which attributes to fetch from <acronym>LDAP</acronym>.
+ The expressions are checked to figure out which attributes to fetch
+ from <acronym>LDAP</acronym>.
Some examples to demonstrate how these expressions may be used in
attribute mapping:
</para>
@@ -937,6 +970,13 @@
otherwise leave value empty
</para></listitem>
</varlistentry>
+ <varlistentry>
+ <term><literal>"${userPassword#{crypt\}}"</literal></term>
+ <listitem><para>
+ strip the {crypt} prefix from the userPassword attribute, returning
+ the raw hash value
+ </para></listitem>
+ </varlistentry>
</variablelist>
</refsect1>