mod_auth_plain.cc File Reference

handles authentication using plaintext password with plaintext passwords in xdb More...

#include "jsm.h"

Functions

void mod_auth_plain (jsmi si)

Detailed Description

handles authentication using plaintext password with plaintext passwords in xdb

This module is responsible for handling authentication if the client uses legacy plaintext authentication. It stores and uses plaintext password in xdb. mod_auth_crypt.c is available as a replacement for mod_auth_plain.c, if only hash values of the password should be stored in xdb. But this means that many more advanced authentication methods won't work if you only store hashes.

Using plaintext password in xdb also will make it much more easy to convert your server to use SASL in the future.


Function Documentation

void mod_auth_plain ( jsmi  si  ) 

register this module in the session manager

will register the following callbacks in the session manager:

  • mod_auth_plain_jane as authentication handler
  • mod_auth_plain_server to process packets sent to the server address
  • mod_auth_plain_reg to process request for required files in a registration request (only if there is a <register/> element in the session manager configuration)
  • mod_auth_plain_pwchange to process changed passwords
Parameters:
si the session manager instance

References e_AUTH, e_DELETE, e_PASSWORDCHANGE, e_REGISTER, js_config(), js_mapi_register(), log_debug2, LOGT_INIT, register_config(), xmlnode_free(), and ZONE.


Generated on Thu Mar 11 06:00:06 2010 for jabberd14 by  doxygen 1.6.1