Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Check presence of some files during option validation | Evgeniy Khramtsov | 2017-05-12 | 14 | -77/+56 | |
| | ||||||
* | Gracefully process malformed passwords during password change | Evgeniy Khramtsov | 2017-05-11 | 1 | -0/+3 | |
| | ||||||
* | Gracefully process malformed passwords during registration | Evgeniy Khramtsov | 2017-05-11 | 1 | -0/+3 | |
| | ||||||
* | Add 'access_remove' ACL to mod_register | Evgeniy Khramtsov | 2017-05-11 | 1 | -2/+3 | |
| | ||||||
* | Rename is_user_exists -> user_exists | Evgeniy Khramtsov | 2017-05-11 | 15 | -44/+44 | |
| | ||||||
* | Use cache for authentication backends | Evgeniy Khramtsov | 2017-05-11 | 21 | -1657/+898 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The commit introduces the following API incompatibilities: In ejabberd_auth.erl: * dirty_get_registered_users/0 is renamed to get_users/0 * get_vh_registered_users/1 is renamed to get_users/1 * get_vh_registered_users/2 is renamed to get_users/2 * get_vh_registered_users_number/1 is renamed to count_users/1 * get_vh_registered_users_number/2 is renamed to count_users/2 In ejabberd_auth callbacks * plain_password_required/0 is replaced by plain_password_required/1 where the argument is a virtual host * store_type/0 is replaced by store_type/1 where the argument is a virtual host * set_password/3 is now an optional callback * remove_user/3 callback is no longer needed * remove_user/2 now should return `ok | {error, atom()}` * is_user_exists/2 now must only be implemented for backends with `external` store type * check_password/6 is no longer needed * check_password/4 now must only be implemented for backends with `external` store type * try_register/3 is now an optional callback and should return `ok | {error, atom()}` * dirty_get_registered_users/0 is no longer needed * get_vh_registered_users/1 is no longer needed * get_vh_registered_users/2 is renamed to get_users/2 * get_vh_registered_users_number/1 is no longer needed * get_vh_registered_users_number/2 is renamed to count_users/2 * get_password_s/2 is no longer needed * get_password/2 now must only be implemented for backends with `plain` or `scram` store type Additionally, the commit introduces two new callbacks: * use_cache/1 where the argument is a virtual host * cache_nodes/1 where the argument is a virtual host New options are also introduced: `auth_use_cache`, `auth_cache_missed`, `auth_cache_life_time` and `auth_cache_size`. | |||||
* | Use misc:atom_to_binary/1 instead of the deprecated jlib.erl (#1510) | Badlop | 2017-05-10 | 1 | -1/+1 | |
| | ||||||
* | Update comment: aux.erl was renamed to misc.erl | Badlop | 2017-05-10 | 1 | -1/+1 | |
| | ||||||
* | Use jid:encode/1 instead of the deprecated jid:to_string/1 (#1510) | Badlop | 2017-05-10 | 1 | -3/+3 | |
| | ||||||
* | Fix: update sql statement, added missing delimeter for sql queries | Lamtei W | 2017-05-10 | 2 | -3/+3 | |
| | ||||||
* | Added export function for mam module | Lamtei W | 2017-05-10 | 3 | -2/+48 | |
| | ||||||
* | Remove forgotten 'export_all' | Evgeniy Khramtsov | 2017-05-08 | 1 | -2/+0 | |
| | ||||||
* | Don't list 'redis_pool_size' option multiple times | Evgeniy Khramtsov | 2017-05-08 | 1 | -2/+1 | |
| | ||||||
* | Split some functions in smaller ones | Evgeniy Khramtsov | 2017-05-08 | 1 | -7/+12 | |
| | ||||||
* | Don't call gen_mod:get_opt() outside of modules | Evgeniy Khramtsov | 2017-05-08 | 8 | -36/+45 | |
| | ||||||
* | Add type specs for Module:opt_type/1 | Evgeniy Khramtsov | 2017-05-08 | 40 | -34/+258 | |
| | ||||||
* | Introduce 'sql_connect_timeout' option (#1698) | Evgeniy Khramtsov | 2017-05-05 | 1 | -12/+21 | |
| | ||||||
* | Introduce 'sql_query_timeout' option | Evgeniy Khramtsov | 2017-05-05 | 1 | -15/+19 | |
| | | | | Fixes #1698 | |||||
* | Emit deprecation warning for SM related listening options | Evgeniy Khramtsov | 2017-05-05 | 2 | -5/+9 | |
| | ||||||
* | Improve validation of second-level options | Evgeniy Khramtsov | 2017-05-05 | 5 | -121/+143 | |
| | ||||||
* | Make it possible to validate second-level options | Evgeniy Khramtsov | 2017-05-04 | 1 | -59/+80 | |
| | ||||||
* | Catch exceptions from acl:add_list in web admin | Paweł Chmielowski | 2017-05-04 | 2 | -22/+48 | |
| | ||||||
* | Introduce 'iqdisc' global option | Evgeniy Khramtsov | 2017-05-04 | 24 | -45/+53 | |
| | ||||||
* | Validate module options on start_module/2 | Evgeniy Khramtsov | 2017-05-04 | 1 | -1/+1 | |
| | ||||||
* | Parse ldap_uids in mod_vcard_ldap like in eldap_utils (#319) | Badlop | 2017-05-03 | 1 | -2/+3 | |
| | ||||||
* | Validate new options before module reloading | Evgeniy Khramtsov | 2017-05-01 | 1 | -8/+19 | |
| | ||||||
* | Don't forget to delete digraph | Evgeniy Khramtsov | 2017-05-01 | 1 | -1/+3 | |
| | ||||||
* | Don't validate an option in gen_mod:get*opt() functions | Evgeniy Khramtsov | 2017-04-30 | 65 | -1230/+806 | |
| | | | | | | | | | | | | | | The changes are very similar to those from previous commit: * Now there is no need to pass validating function in gen_mod:get_opt() and gen_mod:get_module_opt() functions, because the modules' configuration keeps already validated values. * New functions gen_mod:get_opt/2 and gen_mod:get_module_opt/3 are introduced. * Functions gen_mod:get_opt/4 and get_module_opt/5 are deprecated. If the functions are still called, the "function" argument is simply ignored. * Validating callback Mod:listen_opt_type/1 is introduced to validate listening options at startup. | |||||
* | Merge branch 'new-option-validation' | Evgeniy Khramtsov | 2017-04-29 | 53 | -819/+368 | |
|\ | ||||||
| * | Don't validate an option in ejabberd_config:get_option() functions | Evgeniy Khramtsov | 2017-04-29 | 43 | -597/+244 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | The commit introduces the following changes: * Now there is no need to pass validating function in ejabberd_config:get_option() functions, because the configuration keeps already validated values. * New function ejabberd_config:get_option/1 is introduced * Function ejabberd_config:get_option/3 is deprecated. If the function is still called, the second argument (validating function) is simply ignored. * The second argument for ejabberd_config:get_option/2 is now a default value, not a validating function. | |||||
| * | Don't re-define validation functions in multiple places | Evgeniy Khramtsov | 2017-04-28 | 25 | -234/+136 | |
| | | ||||||
* | | Fix elixir tests | Paweł Chmielowski | 2017-04-28 | 1 | -0/+2 | |
|/ | ||||||
* | Store options using p1_options module | Evgeniy Khramtsov | 2017-04-27 | 5 | -154/+142 | |
| | ||||||
* | Bug requesting non-existent data with private_get command (#1690) | Badlop | 2017-04-26 | 1 | -1/+1 | |
| | ||||||
* | Merge remote-tracking branch 'processone/pr/1699' | Holger Weiss | 2017-04-26 | 1 | -20/+45 | |
|\ | | | | | | | | | * processone/pr/1699: Add support for HTTP File Upload, version 0.3.0 | |||||
| * | Add support for HTTP File Upload, version 0.3.0 | Holger Weiss | 2017-04-21 | 1 | -20/+45 | |
| | | | | | | | | | | Support the current XEP-0363 version in addition to the previous revisions. | |||||
* | | Allow a room admin also to subscribe another JID | Badlop | 2017-04-26 | 1 | -1/+16 | |
| | | ||||||
* | | mod_stream_mgmt: Fix typo in variable name | Holger Weiss | 2017-04-25 | 1 | -1/+1 | |
| | | ||||||
* | | mod_stream_mgmt: Fix 'if_offline' detection | Holger Weiss | 2017-04-25 | 1 | -1/+1 | |
| | | ||||||
* | | Include original 'id' and 'type' attributes in offline event | Evgeniy Khramtsov | 2017-04-25 | 1 | -2/+2 | |
| | | ||||||
* | | Make sure only jabber:x:event tag is present in offline event | Evgeniy Khramtsov | 2017-04-25 | 1 | -2/+2 | |
| | | ||||||
* | | randoms: Keep compatibility with Erlang/OTP 17 | Holger Weiss | 2017-04-24 | 1 | -1/+1 | |
| | | ||||||
* | | Avoid changing configuration on listener deletion | Evgeniy Khramtsov | 2017-04-23 | 1 | -10/+0 | |
| | | ||||||
* | | Improve Mnesia tables creation and transformation | Evgeniy Khramtsov | 2017-04-23 | 18 | -716/+720 | |
| | | ||||||
* | | Use round-robin algorithm when selecting worker from DB pool | Evgeniy Khramtsov | 2017-04-23 | 4 | -8/+12 | |
| | | ||||||
* | | Add clear_cache admin command | Evgeniy Khramtsov | 2017-04-22 | 1 | -1/+10 | |
| | | ||||||
* | | Speedup Mnesia tables initialization | Evgeniy Khramtsov | 2017-04-21 | 18 | -51/+89 | |
| | | ||||||
* | | Use new cache API in mod_shared_roster_ldap | Evgeniy Khramtsov | 2017-04-21 | 1 | -69/+94 | |
| | | ||||||
* | | Use new cache API in ejabberd_oauth | Evgeniy Khramtsov | 2017-04-21 | 4 | -55/+102 | |
|/ | ||||||
* | Correct option validation | Evgeniy Khramtsov | 2017-04-20 | 2 | -7/+11 | |
| |