comparison mod_auth_external.wiki @ 397:0045196dc6b9

Add new options
author MWild1@gmail.com
date Wed, 14 Aug 2013 12:04:45 +0000
parents 5720e3f68061
children
comparison
equal deleted inserted replaced
396:5720e3f68061 397:0045196dc6b9
25 25
26 These options are specific to mod_auth_external: 26 These options are specific to mod_auth_external:
27 27
28 ||external_auth_protocol||May be "generic" or "ejabberd" (the latter for compatibility with ejabberd external auth scripts. Default is "generic".|| 28 ||external_auth_protocol||May be "generic" or "ejabberd" (the latter for compatibility with ejabberd external auth scripts. Default is "generic".||
29 ||external_auth_command||The command/script to execute.|| 29 ||external_auth_command||The command/script to execute.||
30 ||external_auth_timeout||The number of seconds to wait for a response from the auth process. Default is 5.|| 30
31 Two other options are also available, depending on whether the module is running in 'blocking' or 'non-blocking' mode:
32 ||external_auth_timeout||blocking||The number of seconds to wait for a response from the auth process. Default is 5.||
33 ||external_auth_processes||non-blocking||The number of concurrent processes to spawn. Default is 1, increase to handle high connection rates efficiently.||
34
35 == Blocking vs non-blocking ==
36
37 Non-blocking mode is automatically activated when:
38
39 * Running Prosody trunk ([http://prosody.im/nightly/ nightly] build 414+).
40 * [http://prosody.im/doc/libevent libevent] is enabled in the config, and LuaEvent is available.
41 * lpty (see installation above) is version 1.0.1 or later.
31 42
32 = Protocol = 43 = Protocol =
33 44
34 Prosody executes the given command/script, and sends it queries. 45 Prosody executes the given command/script, and sends it queries.
35 46