Mercurial > dovecot > original-hg > dovecot-1.2
diff src/auth/db-passwd-file.h @ 6394:9e74c008484a HEAD
Added username_format parameter for passwd-file passdb and userdb.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 15 Sep 2007 15:58:27 +0300 |
parents | 25204e1faeb6 |
children | e4eb71ae8e96 |
line wrap: on
line diff
--- a/src/auth/db-passwd-file.h Sat Sep 15 15:54:43 2007 +0300 +++ b/src/auth/db-passwd-file.h Sat Sep 15 15:58:27 2007 +0300 @@ -1,6 +1,9 @@ #ifndef __DB_PASSWD_FILE_H #define __DB_PASSWD_FILE_H +#define PASSWD_FILE_DEFAULT_USERNAME_FORMAT "%u" +#define PASSWD_FILE_DEFAULT_SCHEME "CRYPT" + struct passwd_user { uid_t uid; gid_t gid; @@ -30,8 +33,8 @@ char *path; struct hash_table *files; struct passwd_file *default_file; + const char *username_format; - unsigned int domain_var:1; unsigned int vars:1; unsigned int userdb:1; unsigned int debug:1; @@ -41,7 +44,8 @@ db_passwd_file_lookup(struct db_passwd_file *db, struct auth_request *request); struct db_passwd_file * -db_passwd_file_init(const char *path, bool userdb, bool debug); +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);