Show sample script

Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
Michal Čihař 2014-05-09 17:46:45 +02:00
parent 721dc9798e
commit 00b6fbe0fe

View File

@ -995,10 +995,13 @@ Server connection settings
Name of PHP script to be sourced and executed to obtain login
credentials. This is alternative approach to session based single
signon. The script needs to provide function
signon. The script has to provide a function called
``get_login_credentials`` which returns list of username and
password, accepting single parameter of existing username (can be
empty). See :file:`examples/signon-script.php` for an example.
empty). See :file:`examples/signon-script.php` for an example:
.. literalinclude:: ../examples/signon-script.php
:language: php
.. config:option:: $cfg['Servers'][$i]['SignonSession']