33 function provider.user_exists(username) |
33 function provider.user_exists(username) |
34 return nil, "Only anonymous users are supported."; -- FIXME check if anonymous user is connected? |
34 return nil, "Only anonymous users are supported."; -- FIXME check if anonymous user is connected? |
35 end |
35 end |
36 |
36 |
37 function provider.create_user(username, password) |
37 function provider.create_user(username, password) |
38 return nil, "Account creation/modification not supported."; end |
38 return nil, "Account creation/modification not supported."; |
39 end |
39 end |
40 |
40 |
41 function provider.get_sasl_handler() |
41 function provider.get_sasl_handler() |
42 local realm = module:get_option("sasl_realm") or module.host; |
42 local realm = module:get_option("sasl_realm") or module.host; |
43 local anonymous_authentication_profile = { |
43 local anonymous_authentication_profile = { |