comparison mod_auth_external.wiki @ 309:35702f67785f

mod_auth_external: Added note about passwords being able to contain colons (which are also delimiters in the protocol).
author Waqas Hussain <waqas20@gmail.com>
date Sat, 13 Oct 2012 02:45:47 +0500
parents f5d82d6588d4
children 5720e3f68061
comparison
equal deleted inserted replaced
308:f5d82d6588d4 309:35702f67785f
34 == auth == 34 == auth ==
35 Check if a user's password is valid. 35 Check if a user's password is valid.
36 36
37 Example: {{{auth:username:example.com:abc123}}} 37 Example: {{{auth:username:example.com:abc123}}}
38 38
39 Note: The password can contain colons. Make sure to handle that.
40
39 == isuser == 41 == isuser ==
40 Check if a user exists. 42 Check if a user exists.
41 43
42 Example: {{{isuser:username:example.com}}} 44 Example: {{{isuser:username:example.com}}}
43 45
44 == setpass == 46 == setpass ==
45 Set a new password for the user. Implementing this is optional. 47 Set a new password for the user. Implementing this is optional.
46 48
47 Example: {{{setpass:username:example.com:abc123}}} 49 Example: {{{setpass:username:example.com:abc123}}}
50
51 Note: The password can contain colons. Make sure to handle that.
48 52
49 == ejabberd compatibilty == 53 == ejabberd compatibilty ==
50 ejabberd implements a similar protocol. The main difference is that Prosody's protocol is line-based, while ejabberd's is length-prefixed. 54 ejabberd implements a similar protocol. The main difference is that Prosody's protocol is line-based, while ejabberd's is length-prefixed.
51 55
52 Add this to your config if you need to use an ejabberd auth script: 56 Add this to your config if you need to use an ejabberd auth script: