aboutsummaryrefslogtreecommitdiff
path: root/src/extauth.erl (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright datesEvgeniy Khramtsov2018-01-051-1/+1
|
* Rename is_user_exists -> user_existsEvgeniy Khramtsov2017-05-111-2/+2
|
* Use cache for authentication backendsEvgeniy Khramtsov2017-05-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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`.
* Add type specs for Module:opt_type/1Evgeniy Khramtsov2017-05-081-0/+2
|
* Don't validate an option in ejabberd_config:get_option() functionsEvgeniy Khramtsov2017-04-291-5/+1
| | | | | | | | | | | | | 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.
* Update copyright date automatically (#1442)Badlop2017-01-021-1/+1
|
* Get rid of compile warnings for random/crypto modules on R19Evgeniy Khramtsov2016-10-181-2/+1
|
* Update copyright to 2016 (#901)Badlop2016-01-131-1/+1
|
* Fix more places where random:seed is usedPaweł Chmielowski2015-12-071-1/+1
|
* More now() replacementsPaweł Chmielowski2015-12-071-2/+1
|
* Move JID related functions to jid.erl (#847)Evgeniy Khramtsov2015-11-241-1/+1
|
* Add config validation at startupEvgeniy Khramtsov2015-06-011-1/+7
|
* Update copyright dates to 2015 (EJAB-1733)Badlop2015-01-081-1/+1
|
* Merge pull request #146 from jamielinux/masterbadlop2014-04-111-4/+3
|\ | | | | Update FSF address
| * Update FSF addressJamie Nguyen2014-02-221-4/+3
| |
* | Update copyright dates to 2014 (EJAB-1679)Badlop2014-03-131-1/+1
|/
* Change configuration file format to YAMLEvgeniy Khramtsov2013-08-211-1/+1
|
* Fix external authenticationEvgeniy Khramtsov2013-06-261-13/+7
|
* Switch to rebar build toolEvgeniy Khramtsov2013-06-131-0/+1
| | | | | | | | | | | | | | | | Use dynamic Rebar configuration Make iconv dependency optional Disable transient_supervisors compile option Add hipe compilation support Only compile ibrowse and lhttpc when needed Make it possible to generate an OTP application release Add --enable-debug compile option Add --enable-all compiler option Add --enable-tools configure option Add --with-erlang configure option. Add --enable-erlang-version-check configure option. Add lager support Improve the test suite
* Accumulated patch to binarize and indent codeBadlop2013-03-141-85/+77
|
* Update copyright datesAlexey Shchepin2013-01-241-1/+1
|
* Update copyright datesAlexey Shchepin2012-02-231-1/+1
|
* If extauth script crashes, ejabberd should restart it (EJAB-1428)Badlop2011-04-111-4/+12
|
* Forward old messages to newly spawned extauth process (thanks to Mika ↵Badlop2011-02-211-1/+11
| | | | Seppänen)(EJAB-1385)
* update copyright up to 2011Christophe Romain2011-02-141-1/+1
|
* Fix delayed response of a timeout call was reused for next login (EJAB-1385)Badlop2011-01-191-8/+12
|
* Support parallel extauth script (thanks to Jesse Thompson)(EJAB-1280)Badlop2010-07-301-6/+31
|
* Optionally cache extauth users in mnesia (EJAB-641)Badlop2010-05-101-2/+21
|
* Update year of ProcessOne copyright from 2009 to 2010 (EJAB-1159)Badlop2010-01-121-1/+1
| | | | SVN Revision: 2891
* * doc/guide.tex: Update copyright date 2008 to 2009 (EJAB-842)Badlop2009-01-121-2/+2
| | | | | | | | * doc/guide.html: Likewise * src/*/*.erl: Likewise * src/*/*.erl: Remove unneeded blankspaces in license text SVN Revision: 1804
* * src/extauth.erl: When the extauth call fails or timeouts, denyBadlop2008-11-061-9/+12
| | | | | | | | authorization. Use two timeouts: 60s for script initialization and 10s for regular calls. (thanks to Kevin Crosbie from Ravenpack) (EJAB-627) SVN Revision: 1673
* * doc/guide.tex: Update Process-one name to ProcessOne (EJAB-708)Badlop2008-07-311-1/+1
| | | | | | | | | | | * doc/guide.html: Likewise * doc/api/overview.edoc: Likewise * src/*/*.erl: Likewise * src/*/*.hrl: Likewise * src/*/*.c: Likewise * src/odbc/*.sql: Likewise SVN Revision: 1499
* * src/extauth.erl: Log strange responses from extauth script. UseBadlop2008-05-171-1/+9
| | | | | | timeout (EJAB-627) SVN Revision: 1330
* Rewrite io:format calls to loglevel macros (EJAB-555)Christophe Romain2008-03-211-1/+2
| | | | SVN Revision: 1239
* * doc/guide.tex: Updated copyright dates to 2008Badlop2008-01-151-1/+1
| | | | | | * src/*: Likewise SVN Revision: 1153
* * Applied copyright update patch 1.Mickaël Rémond2007-12-241-1/+19
| | | | SVN Revision: 1110
* * src/mod_register.erl: BugfixAlexey Shchepin2005-07-131-17/+18
| | | | | | | | | | | | | | | | | | | | | | | | | * src/mod_vcard.erl: Bugfix * src/ejabberd_app.erl: Updated to allow different authentication methods for different virtual hosts * src/ejabberd_auth.erl: Likewise * src/ejabberd_auth_external.erl: Likewise * src/ejabberd_auth_internal.erl: Likewise * src/ejabberd_auth_ldap.erl: Likewise * src/ejabberd_auth_odbc.erl: Likewise * src/cyrsasl.erl: Likewise * src/cyrsasl_digest.erl: Likewise * src/cyrsasl_plain.erl: Likewise * src/ejabberd_c2s.erl: Likewise * src/ejabberd_config.erl: Likewise * src/extauth.erl: Likewise * src/mod_last_odbc.erl: Likewise * src/mod_offline_odbc.erl: Likewise * src/mod_roster_odbc.erl: Likewise * src/odbc/ejabberd_odbc.erl: Likewise * src/odbc/ejabberd_odbc_sup.erl: Likewise SVN Revision: 374
* * examples/extauth/check_pass_null.pl: A reference "null"Alexey Shchepin2004-07-301-0/+76
implementation of external authentification script (thanks to Leif Johansson) * src/extauth.erl: Support for external authentification (thanks to Leif Johansson) * src/ejabberd_auth.erl: Likewise * src/mod_vcard_ldap.erl: A drop-in replacement for mod_vcard.erl which uses ldap for JUD and vCard (thanks to Leif Johansson) SVN Revision: 251