Go to the source code of this file.
|
int | as_authenticate (int fd, const char *user, const char *credential, int timeout_ms) |
|
int | as_change_password (aerospike *as, const as_policy_admin *policy, const char *user, const char *password) |
|
int | as_create_user (aerospike *as, const as_policy_admin *policy, const char *user, const char *password, const char **roles, int roles_size) |
|
int | as_drop_user (aerospike *as, const as_policy_admin *policy, const char *user) |
|
int | as_grant_roles (aerospike *as, const as_policy_admin *policy, const char *user, const char **roles, int roles_size) |
|
int | as_query_user (aerospike *as, const as_policy_admin *policy, const char *user, as_user_roles **user_roles) |
|
void | as_query_user_destroy (as_user_roles *user_roles) |
|
int | as_query_users (aerospike *as, const as_policy_admin *policy, as_user_roles **user_roles, int *user_roles_size) |
|
void | as_query_users_destroy (as_user_roles *user_roles, int user_roles_size) |
|
int | as_replace_roles (aerospike *as, const as_policy_admin *policy, const char *user, const char **roles, int roles_size) |
|
int | as_revoke_roles (aerospike *as, const as_policy_admin *policy, const char *user, const char **roles, int roles_size) |
|
Maximum size of role string including null byte.
Definition at line 34 of file as_admin.h.
int as_authenticate |
( |
int |
fd, |
|
|
const char * |
user, |
|
|
const char * |
credential, |
|
|
int |
timeout_ms |
|
) |
| |
|
private |
Authenticate user with a server node. This is done automatically after socket open. Do not use this method directly.
Change user's password. Clear-text password will be hashed using bcrypt before sending to server. Return zero on success.
int as_create_user |
( |
aerospike * |
as, |
|
|
const as_policy_admin * |
policy, |
|
|
const char * |
user, |
|
|
const char * |
password, |
|
|
const char ** |
roles, |
|
|
int |
roles_size |
|
) |
| |
Create user with password and roles. Clear-text password will be hashed using bcrypt before sending to server. Return zero on success.
Remove user from cluster. Return zero on success.
int as_grant_roles |
( |
aerospike * |
as, |
|
|
const as_policy_admin * |
policy, |
|
|
const char * |
user, |
|
|
const char ** |
roles, |
|
|
int |
roles_size |
|
) |
| |
Add role to user's list of roles. Return zero on success..
Retrieve roles for a given user. Return zero on success..
Retrieve all users and their roles. Return zero on success.
void as_query_users_destroy |
( |
as_user_roles * |
user_roles, |
|
|
int |
user_roles_size |
|
) |
| |
int as_replace_roles |
( |
aerospike * |
as, |
|
|
const as_policy_admin * |
policy, |
|
|
const char * |
user, |
|
|
const char ** |
roles, |
|
|
int |
roles_size |
|
) |
| |
Replace user's list of roles with a new list of roles. Return zero on success.
int as_revoke_roles |
( |
aerospike * |
as, |
|
|
const as_policy_admin * |
policy, |
|
|
const char * |
user, |
|
|
const char ** |
roles, |
|
|
int |
roles_size |
|
) |
| |
Remove role from user's list of roles. Return zero on success.