From 411c78c880424b2bacf72fd28d3f13c6794c6d91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20OUDOT?= Date: Wed, 27 Apr 2022 09:45:13 +0200 Subject: [PATCH] Fix values override in auth combination doc --- doc/sources/admin/authcombination.rst | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/doc/sources/admin/authcombination.rst b/doc/sources/admin/authcombination.rst index 85b4eff0f..3528c9b3b 100644 --- a/doc/sources/admin/authcombination.rst +++ b/doc/sources/admin/authcombination.rst @@ -39,7 +39,7 @@ must set: - overloaded parameters: you can redefine any LLNG string parameters. For example, if you use 2 different LDAP, the first can use normal configuration and for the second, overwritten parameter can redefine - ldapServer,... + ldapServer or any existing parameter. .. note:: @@ -63,12 +63,13 @@ parameters. For example, if DBI is configured to use PostgreSQL but DB2 is a MySQL DB, you can override the "dbiChain" parameter. -You can also override a complex key like ldapExportedVars, by setting a -JSON value: +The over parameter is a HASH ref where keys are attributes names and values are the overriden value. +To override a complex key like ldapExportedVars, you must use a JSON value, as the over parameter +expect string values: .. code-block:: javascript - {"cn" => "cn", "uid" => "sAMAccounName", "mail" => "mail"} + {"cn": "cn", "uid": "sAMAccounName", "mail": "mail"} .. attention::