Previous | Next | Contents | Index |
Perform an authentication check.FORMAT
int POPSTORE_user_pw_check (user_context, password, password_len, auth_type, challenge, challenge_len, response, response_len) POPSTORE_user_context *user_context; char *password; int password_len; int auth_mechanism; char *challenge; int challenge_len; char *response; int response_len; |
User context to authenticate the password against. Used for input only.
user_context
Plain text password to authenticate against the user context. Used for input only.
password
Length in bytes of the plain text password string,
password_len
password
. Used for input only.Authentication mechanism to use to check the password. Used for input only.
auth_mechanism
Challenge string presented as part of a challenge-response authentication mechanism. Used for input only.
challenge
Length in bytes of the challenge string,
challenge_len
challenge
. Used for input only.Response to the challenge. Used for input only.
response
Length in bytes of the response string,
response_len
response
. Used for input only.
To authenticate a user against the information contained in a user profile, call POPSTORE_user_pw_check supplying the authentication mechanism to use and the authentication credentials:If the authentication credentials are verified to be correct and the account is not marked DISUSER, a status of POPSTORE_SUCCESS is returned. Otherwise, a status of POPSTORE_DISUSERD or POPSTORE_NOMATCH is returned. Note that the value of the field
auth_mechanism
Required authentication credentials POPSTORE_AUTH_MECH_PLAIN Password supplied in the clear; supply the password
andpassword_len
arguments; challenge and response arguments are ignored.user_context->profile->password
is encrypted and as such applications cannot directory validate popstore passwords.
POPSTORE_SUCCESS Authentication successful. POPSTORE_DISUSERD Account is marked DISUSER; authentication failed. POPSTORE_NOMATCH Authentication failed; invalid password. POPSTORE_NULLCONTEXT user_context
argument had a null value.POPSTORE_NULLPROFILE user_context->profile
is null.
Previous | Next | Contents | Index |