passdb-vpopmail.c revision c04db878c3d650496127ae334697348a6c6e7d88
/* Copyright (C) 2002-2003 Timo Sirainen */
/* Thanks to Courier-IMAP for showing how the vpopmail API should be used */
#include "config.h"
#ifdef PASSDB_VPOPMAIL
#include "common.h"
#include "safe-memset.h"
#include "passdb.h"
#include "password-scheme.h"
#include "userdb-vpopmail.h"
#include <stdlib.h>
extern struct passdb_module passdb_vpopmail;
static void
{
const char *crypted_pass;
const char *scheme;
int ret;
return;
}
return;
}
}
if (ret <= 0) {
if (ret < 0) {
"Unknown password scheme %s", scheme);
} else {
"password mismatch");
}
return;
}
/* use putenv() directly rather than env_put() which
would leak memory every time we got here. use a
static buffer for putenv() as SUSv2 requirements
would otherwise corrupt our environment later. */
static char ip_env[256];
"TCPREMOTEIP=%s", host);
}
}
#endif
/* make sure we're using the username exactly as it's in the database */
}
static void vpopmail_deinit(void)
{
vclose();
}
struct passdb_module passdb_vpopmail = {
"vpopmail",
};
#endif