Qsmtp  0.30dev
Functions | Variables
qsauth_backend.h File Reference

function definitions for Qsmtpd's AUTH backend API More...

Go to the source code of this file.

Functions

int auth_backend_setup (int argc, const char **argv)
 
int auth_backend_execute (const struct string *user, const struct string *pass, const struct string *resp)
 authenticate a user with the given credentials More...
 

Variables

const char * tempnoauth
 

Detailed Description

function definitions for Qsmtpd's AUTH backend API

Function Documentation

int auth_backend_execute ( const struct string user,
const struct string pass,
const struct string resp 
)

authenticate a user with the given credentials

Parameters
useruser id
passpassword
respadditional response (e.g. for CRAM authentication)
Return values
<0processing error (negative error code is returned)
0user successfully authenticated
1authentication error (i.e. invalid user/pass combination)

resp may be passed as NULL if no additional information has been collected