Skip to content

Commit

Permalink
explain stdout/stderr hook logging (lsc-project/lsc#262)
Browse files Browse the repository at this point in the history
  • Loading branch information
David Coutadeur committed Jan 22, 2024
1 parent c6b77dd commit e0ef539
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/syncrules.rst
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ In this node, you can call a hook for each specific operations:
* ``deletePostHook``: path to the hook script managing each entry removal. The script will be called with 2 arguments: the DN of the entry, and the operation (``delete``). Nothing is passed on stdin.
* ``changeIdPostHook``: path to the hook script managing each entry renaming. The script will be called with 2 arguments: the DN of the entry, and the operation. The entry is passed on stdin, in the appropriate ``outputformat``

Hook scripts are not supposed to write anything to stdout or stderr. If so, LSC will display theses messages as log warnings.

Here is an example of modification in ldif, passed to stdin:

.. code-block::
Expand Down

0 comments on commit e0ef539

Please sign in to comment.