userdb-passwd.c revision 45312f52ff3a3d4c137447be4c7556500c2f8bf2
/* Copyright (c) 2002-2009 Dovecot authors, see the included COPYING file */
#include "common.h"
#include "userdb.h"
#ifdef USERDB_PASSWD
#include "userdb-static.h"
#include <pwd.h>
#define USER_CACHE_KEY "%u"
struct passwd_userdb_module {
struct userdb_module module;
struct userdb_static_template *tmpl;
};
{
struct passwd_userdb_module *module =
(struct passwd_userdb_module *)_module;
return;
}
/* try to catch broken NSS implementations (nss_ldap) */
i_fatal("BROKEN NSS IMPLEMENTATION: "
"getpwnam() lookup returned different user than was "
"requested (%s != %s).",
}
}
}
}
}
static struct userdb_module *
{
struct passwd_userdb_module *module;
const char *value;
"passwd", args);
&value)) {
}
}
struct userdb_module_interface userdb_passwd = {
"passwd",
NULL,
NULL,
};
#else
struct userdb_module_interface userdb_passwd = {
};
#endif