ESAPI-C 1.0
The OWASP Enterprise Security API for C
|
User module header. More...
#include <stdlib.h>
Go to the source code of this file.
Data Structures | |
struct | User_t |
An application user account, including information required to enforce security on users properly. More... | |
Defines | |
#define | NAME_MAX 64 |
Typedefs | |
typedef struct User_t | user |
Functions | |
int | lock_user (user *u) |
Get the user id for the given user. | |
int | unlock_user (user *u) |
Unlocks the user. |
User module header.
Represents an application user or user account. There is quite a lot of information that an application must store for each user in order to enforce security properly. There are also many rules that govern authentication and identity management.
A user account can be in one of several states. When first created, a User should be disabled, not expired, and unlocked. To start using the account, an administrator should enable the account. The account can be locked for a number of reasons, most commonly because they have failed login for too many times. Finally, the account can expire after the expiration date has been reached. The User must be enabled, not expired, and unlocked in order to pass authentication.
Definition in file user.h.
int lock_user | ( | user * | u | ) |