static struct idmap_methods *local_map;
static struct idmap_methods *remote_map;
+static void lazy_initialize_idmap(void)
+{
+ static BOOL initialized = False;
+ if (initialized) return;
+ idmap_init();
+ initialized = True;
+}
+
+
+
static struct idmap_methods *get_methods(const char *name)
{
int i = 0;
{
NTSTATUS ret;
+ lazy_initialize_idmap();
+
if (!lp_idmap_only()) {
if (id_type & ID_USERID) {
uid_t low, high;
NTSTATUS ret;
int loc_type;
+ lazy_initialize_idmap();
+
loc_type = *id_type;
if (remote_map) { /* We have a central remote idmap */
loc_type |= ID_NOMAP;
NTSTATUS ret;
int loc_type;
+ lazy_initialize_idmap();
+
loc_type = id_type;
if (remote_map) {
loc_type = id_type | ID_NOMAP;
/* Dump backend status */
void idmap_status(void)
{
+ lazy_initialize_idmap();
+
local_map->status();
if (remote_map) remote_map->status();
}