/* Copyright (c) 2002-2018 Dovecot authors, see the included COPYING file */
#include "auth-common.h"
#include "array.h"
#include "ipwd.h"
#include "auth-worker-server.h"
#include "userdb.h"
.name = "deinit"
};
{
return iface;
}
return NULL;
}
{
/* replacing a "support not compiled in" userdb */
i_panic("userdb_register_module(%s): Already registered",
}
}
{
unsigned int idx;
return;
}
}
}
{
return (uid_t)-1;
return uid;
case -1:
i_error("getpwnam() failed: %m");
return (uid_t)-1;
case 0:
"Invalid UID value '%s'", str);
}
return (uid_t)-1;
default:
}
}
{
return (gid_t)-1;
return gid;
case -1:
i_error("getgrnam() failed: %m");
return (gid_t)-1;
case 0:
"Invalid GID value '%s'", str);
}
return (gid_t)-1;
default:
}
}
static struct userdb_module *
{
unsigned int i, count;
for (i = 0; i < count; i++) {
*idx_r = i;
return userdbs[i];
}
}
return NULL;
}
struct userdb_module *
{
static unsigned int auth_userdb_id = 0;
unsigned int idx;
/* maybe it's a plugin. try to load it. */
}
i_fatal("Support not compiled in for userdb driver '%s'",
}
i_fatal("userdb %s: No args are supported: %s",
}
return userdb;
else
return userdb;
}
{
userdb->init_refcount++;
}
{
unsigned int idx;
if (--userdb->init_refcount > 0)
return;
i_unreached();
/* make sure userdb isn't accessed again */
}
{
unsigned int i, count;
for (i = 0; i < count; i++) {
}
}
extern struct userdb_module_interface userdb_prefetch;
extern struct userdb_module_interface userdb_static;
extern struct userdb_module_interface userdb_passwd;
extern struct userdb_module_interface userdb_passwd_file;
extern struct userdb_module_interface userdb_vpopmail;
extern struct userdb_module_interface userdb_ldap;
extern struct userdb_module_interface userdb_sql;
extern struct userdb_module_interface userdb_checkpassword;
extern struct userdb_module_interface userdb_dict;
#ifdef HAVE_LUA
extern struct userdb_module_interface userdb_lua;
#endif
void userdbs_init(void)
{
#ifdef HAVE_LUA
#endif
}
void userdbs_deinit(void)
{
}