A page in your DokuWiki was added or changed. Here are the details:

Date        : 2018/07/09 11:38
Browser     : Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 
Firefox/61.0
IP-Address  : 81.250.130.213
Hostname    : LNeuilly-657-1-3-213.w81-250.abo.wanadoo.fr
Old Revision: 
http://ltb-project.org/documentation/self-service-password/1.3/config_posthook?rev=1527930289
New Revision: 
http://ltb-project.org/documentation/self-service-password/1.3/config_posthook
Edit Summary: 
User        : coudot

@@ -12,8 +12,15 @@
  To declare this script, use:
  <file php>
  $posthook = "/usr/share/self-service-password/posthook.sh";
  </file>
+ 
+ You can choose to display an error if the script return code is greater than 
0:
+ <file php>
+ $display_posthook_error = true;
+ </file>
+ 
+ The displayed message will be the first line of the script output.
  
  Here is an example of a simple posthook script:
  <file bash>
  #!/bin/bash
@@ -23,12 +30,18 @@
  OLDPASSWORD=$3
  
  echo `date` >> /tmp/posthook.log
  echo "$LOGIN / $NEWPASSWORD / $OLDPASSWORD" >> /tmp/posthook.log
+ 
+ ... there is an error ...
+ echo "Posthook script has failed"
+ exit 1
+ ... there is no error ...
+ exit 0
  </file>
  
  <note warning>This script is an example, do use not it in production: 
passwords should never be put in logs. Write your own script to propagate the 
password in a safe place</note> 
  
  <note warning>If you are using systemd, it is possible that the PrivateTmp 
feature is enabled by default for Apache (in your httpd.service or 
apache2.service).
  
  When enabled, all logs written from posthook.sh to /tmp will be redirected to 
/tmp/systemd-private-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX-apache2.service-XXXXXX/tmp
 or similar.</note>
  



-- 
This mail was generated by DokuWiki at
http://ltb-project.org/
_______________________________________________
ltb-changes mailing list
[email protected]
https://lists.ltb-project.org/cgi-bin/mailman/listinfo/ltb-changes

Reply via email to