userdb-vpopmail.c revision 135e840738fe3ba38646ab3fe3ef7979fbae459f
/* Copyright (C) 2002-2003 Timo Sirainen */
/* Thanks to Courier-IMAP for showing how the vpopmail API should be used */
#include "common.h"
#if defined(PASSDB_VPOPMAIL) || defined(USERDB_VPOPMAIL)
#include "userdb.h"
#include "userdb-vpopmail.h"
char vpop_user[VPOPMAIL_LIMIT],
char vpop_domain[VPOPMAIL_LIMIT])
{
/* vpop_user must be zero-filled or parse_email() leaves an
extra character after the user name. we'll fill vpop_domain
as well just to be sure... */
VPOPMAIL_LIMIT-1) < 0) {
"parse_email() failed");
return NULL;
}
return NULL;
}
return vpw;
}
#ifdef USERDB_VPOPMAIL
{
struct auth_stream_reply *reply;
return;
}
struct vqpasswd isn't really gid at all but just some flags... */
"vget_assign(%s) failed", vpop_domain);
return;
}
/* user's homedir doesn't exist yet, create it */
"pw_dir isn't set, creating");
"make_user_dir(%s, %s) failed",
return;
}
/* get the user again so pw_dir is visible */
return;
}
}
}
struct userdb_module userdb_vpopmail = {
"vpopmail",
};
#endif
#endif