userdb.c revision 08d6658a4e2ec8104cd1307f6baa75fdb07a24f8
/* Copyright (c) 2002-2009 Dovecot authors, see the included COPYING file */
#include "auth-common.h"
#include "array.h"
#include "auth-worker-server.h"
#include "userdb.h"
#include <stdlib.h>
#include <pwd.h>
#include <grp.h>
{
struct userdb_module_interface *const *ifaces;
unsigned int i, count;
for (i = 0; i < count; i++) {
return ifaces[i];
}
return NULL;
}
{
struct userdb_module_interface *old_iface;
/* replacing a "support not compiled in" userdb */
i_panic("userdb_register_module(%s): Already registered",
}
}
{
struct userdb_module_interface *const *ifaces;
unsigned int i, count;
for (i = 0; i < count; i++) {
return;
}
}
}
{
char *p;
return (uid_t)-1;
if (*p == '\0')
return uid;
}
"Invalid UID value '%s'", str);
}
return (uid_t)-1;
}
}
{
char *p;
return (gid_t)-1;
if (*p == '\0')
return gid;
}
"Invalid GID value '%s'", str);
}
return (gid_t)-1;
}
}
{
struct userdb_module_interface *iface;
auth_userdb->num++;
*dest = auth_userdb;
i_fatal("Support not compiled in for userdb driver '%s'",
}
i_fatal("userdb %s: No args are supported: %s",
}
} else {
}
}
{
/* blocking userdb - we need an auth server */
}
}
{
}
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_nss;
extern struct userdb_module_interface userdb_checkpassword;
void userdbs_init(void)
{
}
void userdbs_deinit(void)
{
}