Mercurial > dovecot > original-hg > dovecot-1.2
changeset 5878:f622396e03ef HEAD
If no userdbs are defined, fallback to an empty static one.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 03 Jul 2007 03:55:48 +0300 |
parents | a3bbf340694f |
children | f7cdede45a88 |
files | src/auth/auth.c |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/auth/auth.c Tue Jul 03 03:55:36 2007 +0300 +++ b/src/auth/auth.c Tue Jul 03 03:55:48 2007 +0300 @@ -73,12 +73,13 @@ args = getenv(t_strdup_printf("USERDB_%u_ARGS", i)); userdb_preinit(auth, driver, args); - } t_pop(); - if (auth->userdbs == NULL) - i_fatal("You'll need to add at least one userdb"); + if (auth->userdbs == NULL) { + /* use a dummy userdb static. */ + userdb_preinit(auth, "static", ""); + } return auth; }