view src/auth/db-passwd-file.h @ 8999:afc1b0ef120d HEAD

When :MAILBOXDIR= was empty, we might have appended extra '/' to it, which caused problems.
author Timo Sirainen <>
date Thu, 30 Apr 2009 20:00:09 -0400
parents e4eb71ae8e96
line wrap: on
line source



struct passwd_user {
	uid_t uid;
	gid_t gid;

	char *home;
        char *password;
        char **extra_fields;

struct passwd_file {
        struct db_passwd_file *db;
	pool_t pool;

	char *path;
	time_t stamp;
	off_t size;
	int fd;

	struct hash_table *users;

struct db_passwd_file {
	struct db_passwd_file *next;

	int refcount;

	char *path;
	struct hash_table *files;
        struct passwd_file *default_file;
	const char *username_format;

	unsigned int vars:1;
	unsigned int userdb:1;
	unsigned int debug:1;

struct passwd_user *
db_passwd_file_lookup(struct db_passwd_file *db, struct auth_request *request);

struct db_passwd_file *
db_passwd_file_init(const char *path, const char *username_format,
		    bool userdb, bool debug);
void db_passwd_file_parse(struct db_passwd_file *db);
void db_passwd_file_unref(struct db_passwd_file **db);