[reSIProcate] Registrar user authentication
Greetings.
May anyone help me?
Is there way to implement custom user authentication in simple registrar
server using DUM?
I'm using code like this:
//add REGISTER support
mProfile->addSupportedMethod(REGISTER);
//add in memory registration database
mRegDB = new InMemoryRegistrationDatabase();
//add registration handler
mProfile->setServerRegistrationHandler(this);
//set registration database
mDum->setRegistrationPersistenceManager(mRegDB);
//set server authentication manager
mDum->setServerAuthManager(std::auto_ptr<ServerAuthManager>(new
ServerAuthManager()));
How can I add user validation like
virtual bool validateUserAuth(Data& user, Data& password, Data& host)
{
if (userPermitted)
return true;
else
return false;
}
?
I'm looking into repro sources but cant find how this check is done :(
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/