ReactOS
0.4.15-dev-2087-g6bfb76b
|
#include <windows.h>
#include <strsafe.h>
#include <winldap.h>
#include <stdlib.h>
#include <errno.h>
#include <time.h>
#include "idmap.h"
#include "nfs41_const.h"
#include "list.h"
#include "daemon_debug.h"
Go to the source code of this file.
Classes | |
struct | idmap_lookup |
struct | idmap_config |
struct | config_option |
struct | config_pair |
struct | cache_ops |
struct | idmap_cache |
struct | idmap_user |
struct | idmap_group |
struct | idmap_context |
Macros | |
#define | IDLVL 2 /* dprintf level for idmap logging */ |
#define | FILTER_LEN 1024 |
#define | NAME_LEN 32 |
#define | VAL_LEN 257 |
#define | ATTR_FLAG(attr) (1 << (attr)) |
#define | ATTR_ISSET(mask, attr) (((mask) & ATTR_FLAG(attr)) != 0) |
#define | OPT_INT(key, def, field) { key, def, TYPE_INT, FIELD_OFFSET(struct idmap_config, field), 0 } |
#define | OPT_STR(key, def, field, len) { key, def, TYPE_STR, FIELD_OFFSET(struct idmap_config, field), len } |
#define | OPT_CLASS(key, def, index) { key, def, TYPE_STR, FIELD_OFFSET(struct idmap_config, classes[index]), NAME_LEN } |
#define | OPT_ATTR(key, def, index) { key, def, TYPE_STR, FIELD_OFFSET(struct idmap_config, attributes[index]), NAME_LEN } |
Typedefs | |
typedef struct list_entry *(* | entry_alloc_fn) () |
typedef void(* | entry_free_fn) (struct list_entry *) |
typedef void(* | entry_copy_fn) (struct list_entry *, const struct list_entry *) |
Enumerations | |
enum | ldap_class { CLASS_USER, CLASS_GROUP, NUM_CLASSES } |
enum | ldap_attr { ATTR_USER_NAME, ATTR_GROUP_NAME, ATTR_PRINCIPAL, ATTR_UID, ATTR_GID, NUM_ATTRIBUTES } |
enum | config_type { TYPE_STR, TYPE_INT } |
Variables | |
static const char | CONFIG_FILENAME [] = "C:\\ReactOS\\System32\\drivers\\etc\\ms-nfs41-idmap.conf" |
static const struct config_option | g_options [] |
static const struct cache_ops | user_cache_ops |
static const struct cache_ops | group_cache_ops |
#define OPT_ATTR | ( | key, | |
def, | |||
index | |||
) | { key, def, TYPE_STR, FIELD_OFFSET(struct idmap_config, attributes[index]), NAME_LEN } |
#define OPT_CLASS | ( | key, | |
def, | |||
index | |||
) | { key, def, TYPE_STR, FIELD_OFFSET(struct idmap_config, classes[index]), NAME_LEN } |
#define OPT_INT | ( | key, | |
def, | |||
field | |||
) | { key, def, TYPE_INT, FIELD_OFFSET(struct idmap_config, field), 0 } |
typedef struct list_entry*(* entry_alloc_fn) () |
typedef void(* entry_copy_fn) (struct list_entry *, const struct list_entry *) |
typedef void(* entry_free_fn) (struct list_entry *) |
Enumerator | |
---|---|
TYPE_STR | |
TYPE_INT |
Definition at line 99 of file idmap.c.
Enumerator | |
---|---|
ATTR_USER_NAME | |
ATTR_GROUP_NAME | |
ATTR_PRINCIPAL | |
ATTR_UID | |
ATTR_GID | |
NUM_ATTRIBUTES |
Definition at line 49 of file idmap.c.
Enumerator | |
---|---|
CLASS_USER | |
CLASS_GROUP | |
NUM_CLASSES |
|
static |
Definition at line 436 of file idmap.c.
Referenced by nfs41_idmap_free().
|
static |
Definition at line 445 of file idmap.c.
Referenced by idmap_lookup_group(), and idmap_lookup_user().
|
static |
Definition at line 476 of file idmap.c.
Referenced by idmap_lookup_group(), and idmap_lookup_user().
|
static |
Definition at line 243 of file idmap.c.
Referenced by config_init().
|
static |
Definition at line 275 of file idmap.c.
Referenced by config_load().
|
static |
Definition at line 362 of file idmap.c.
Referenced by nfs41_idmap_create().
|
static |
Definition at line 293 of file idmap.c.
Referenced by config_init().
|
static |
Definition at line 153 of file idmap.c.
Referenced by config_load().
Definition at line 1047 of file idmap.c.
Referenced by nfs41_idmap_gid_to_group().
|
static |
Definition at line 544 of file idmap.c.
|
static |
Definition at line 553 of file idmap.c.
|
static |
Definition at line 549 of file idmap.c.
Definition at line 1009 of file idmap.c.
Referenced by nfs41_idmap_group_to_gid().
|
static |
Definition at line 579 of file idmap.c.
Referenced by idmap_query_attrs().
|
static |
Definition at line 750 of file idmap.c.
Referenced by nfs41_idmap_gid_to_group(), and nfs41_idmap_group_to_gid().
|
static |
Definition at line 679 of file idmap.c.
Referenced by nfs41_idmap_name_to_ids(), nfs41_idmap_principal_to_ids(), and nfs41_idmap_uid_to_name().
|
static |
Definition at line 619 of file idmap.c.
Referenced by idmap_lookup_group(), and idmap_lookup_user().
int nfs41_idmap_create | ( | struct idmap_context ** | context_out | ) |
Definition at line 805 of file idmap.c.
Referenced by ServiceStart().
void nfs41_idmap_free | ( | struct idmap_context * | context | ) |
Definition at line 867 of file idmap.c.
Referenced by nfs41_idmap_create(), and ServiceStart().
Definition at line 1055 of file idmap.c.
Definition at line 1017 of file idmap.c.
int nfs41_idmap_name_to_ids | ( | struct idmap_context * | context, |
const char * | username, | ||
uid_t * | uid_out, | ||
gid_t * | gid_out | ||
) |
Definition at line 889 of file idmap.c.
Referenced by map_user_to_ids().
int nfs41_idmap_principal_to_ids | ( | struct idmap_context * | context, |
const char * | principal, | ||
uid_t * | uid_out, | ||
gid_t * | gid_out | ||
) |
Definition at line 977 of file idmap.c.
Definition at line 932 of file idmap.c.
Definition at line 223 of file idmap.c.
Referenced by config_defaults(), config_load(), idmap_lookup_group(), and idmap_lookup_user().
Definition at line 969 of file idmap.c.
Referenced by nfs41_idmap_principal_to_ids().
Definition at line 924 of file idmap.c.
Referenced by nfs41_idmap_uid_to_name().
|
static |
Definition at line 508 of file idmap.c.
|
static |
Definition at line 517 of file idmap.c.
|
static |
Definition at line 513 of file idmap.c.
Definition at line 881 of file idmap.c.
Referenced by nfs41_idmap_name_to_ids().
Definition at line 79 of file idmap.c.
Referenced by config_init().
|
static |
Definition at line 123 of file idmap.c.
Referenced by config_defaults(), and config_find_option().
Definition at line 563 of file idmap.c.
Referenced by nfs41_idmap_create().
Definition at line 529 of file idmap.c.
Referenced by nfs41_idmap_create().