aboutsummaryrefslogtreecommitdiff
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Check presence of some files during option validationEvgeniy Khramtsov2017-05-1214-77/+56
|
* Gracefully process malformed passwords during password changeEvgeniy Khramtsov2017-05-111-0/+3
|
* Gracefully process malformed passwords during registrationEvgeniy Khramtsov2017-05-111-0/+3
|
* Add 'access_remove' ACL to mod_registerEvgeniy Khramtsov2017-05-111-2/+3
|
* Rename is_user_exists -> user_existsEvgeniy Khramtsov2017-05-1115-44/+44
|
* Use cache for authentication backendsEvgeniy Khramtsov2017-05-1121-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)Badlop2017-05-101-1/+1
|
* Update comment: aux.erl was renamed to misc.erlBadlop2017-05-101-1/+1
|
* Use jid:encode/1 instead of the deprecated jid:to_string/1 (#1510)Badlop2017-05-101-3/+3
|
* Fix: update sql statement, added missing delimeter for sql queriesLamtei W2017-05-102-3/+3
|
* Added export function for mam moduleLamtei W2017-05-103-2/+48
|
* Remove forgotten 'export_all'Evgeniy Khramtsov2017-05-081-2/+0
|
* Don't list 'redis_pool_size' option multiple timesEvgeniy Khramtsov2017-05-081-2/+1
|
* Split some functions in smaller onesEvgeniy Khramtsov2017-05-081-7/+12
|
* Don't call gen_mod:get_opt() outside of modulesEvgeniy Khramtsov2017-05-088-36/+45
|
* Add type specs for Module:opt_type/1Evgeniy Khramtsov2017-05-0840-34/+258
|
* Introduce 'sql_connect_timeout' option (#1698)Evgeniy Khramtsov2017-05-051-12/+21
|
* Introduce 'sql_query_timeout' optionEvgeniy Khramtsov2017-05-051-15/+19
| | | | Fixes #1698
* Emit deprecation warning for SM related listening optionsEvgeniy Khramtsov2017-05-052-5/+9
|
* Improve validation of second-level optionsEvgeniy Khramtsov2017-05-055-121/+143
|
* Make it possible to validate second-level optionsEvgeniy Khramtsov2017-05-041-59/+80
|
* Catch exceptions from acl:add_list in web adminPaweł Chmielowski2017-05-042-22/+48
|
* Introduce 'iqdisc' global optionEvgeniy Khramtsov2017-05-0424-45/+53
|
* Validate module options on start_module/2Evgeniy Khramtsov2017-05-041-1/+1
|
* Parse ldap_uids in mod_vcard_ldap like in eldap_utils (#319)Badlop2017-05-031-2/+3
|
* Validate new options before module reloadingEvgeniy Khramtsov2017-05-011-8/+19
|
* Don't forget to delete digraphEvgeniy Khramtsov2017-05-011-1/+3
|
* Don't validate an option in gen_mod:get*opt() functionsEvgeniy Khramtsov2017-04-3065-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 Khramtsov2017-04-2953-819/+368
|\
| * Don't validate an option in ejabberd_config:get_option() functionsEvgeniy Khramtsov2017-04-2943-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 placesEvgeniy Khramtsov2017-04-2825-234/+136
| |
* | Fix elixir testsPaweł Chmielowski2017-04-281-0/+2
|/
* Store options using p1_options moduleEvgeniy Khramtsov2017-04-275-154/+142
|
* Bug requesting non-existent data with private_get command (#1690)Badlop2017-04-261-1/+1
|
* Merge remote-tracking branch 'processone/pr/1699'Holger Weiss2017-04-261-20/+45
|\ | | | | | | | | * processone/pr/1699: Add support for HTTP File Upload, version 0.3.0
| * Add support for HTTP File Upload, version 0.3.0Holger Weiss2017-04-211-20/+45
| | | | | | | | | | Support the current XEP-0363 version in addition to the previous revisions.
* | Allow a room admin also to subscribe another JIDBadlop2017-04-261-1/+16
| |
* | mod_stream_mgmt: Fix typo in variable nameHolger Weiss2017-04-251-1/+1
| |
* | mod_stream_mgmt: Fix 'if_offline' detectionHolger Weiss2017-04-251-1/+1
| |
* | Include original 'id' and 'type' attributes in offline eventEvgeniy Khramtsov2017-04-251-2/+2
| |
* | Make sure only jabber:x:event tag is present in offline eventEvgeniy Khramtsov2017-04-251-2/+2
| |
* | randoms: Keep compatibility with Erlang/OTP 17Holger Weiss2017-04-241-1/+1
| |
* | Avoid changing configuration on listener deletionEvgeniy Khramtsov2017-04-231-10/+0
| |
* | Improve Mnesia tables creation and transformationEvgeniy Khramtsov2017-04-2318-716/+720
| |
* | Use round-robin algorithm when selecting worker from DB poolEvgeniy Khramtsov2017-04-234-8/+12
| |
* | Add clear_cache admin commandEvgeniy Khramtsov2017-04-221-1/+10
| |
* | Speedup Mnesia tables initializationEvgeniy Khramtsov2017-04-2118-51/+89
| |
* | Use new cache API in mod_shared_roster_ldapEvgeniy Khramtsov2017-04-211-69/+94
| |
* | Use new cache API in ejabberd_oauthEvgeniy Khramtsov2017-04-214-55/+102
|/
* Correct option validationEvgeniy Khramtsov2017-04-202-7/+11
|