/usr/include/dovecot/db-passwd-file.h is in dovecot-dev 1:2.2.9-1ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | #ifndef DB_PASSWD_FILE_H
#define DB_PASSWD_FILE_H
#include "hash.h"
#define PASSWD_FILE_DEFAULT_USERNAME_FORMAT "%u"
#define PASSWD_FILE_DEFAULT_SCHEME "CRYPT"
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;
int refcount;
char *path;
time_t stamp;
off_t size;
int fd;
HASH_TABLE(char *, struct passwd_user *) users;
};
struct db_passwd_file {
struct db_passwd_file *next;
int refcount;
char *path;
HASH_TABLE(char *, struct passwd_file *) files;
struct passwd_file *default_file;
unsigned int vars:1;
unsigned int userdb:1;
unsigned int userdb_warn_missing:1;
unsigned int debug:1;
};
struct passwd_user *
db_passwd_file_lookup(struct db_passwd_file *db, struct auth_request *request,
const char *username_format);
struct db_passwd_file *
db_passwd_file_init(const char *path, bool userdb, bool debug);
void db_passwd_file_parse(struct db_passwd_file *db);
void db_passwd_file_unref(struct db_passwd_file **db);
#endif
|