aboutsummaryrefslogtreecommitdiffstats
path: root/conf.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-12-14 00:05:27 +0100
committerJelmer Vernooij <jelmer@samba.org>2005-12-14 00:05:27 +0100
commitb73ac9c35fb53203b8d0668251dfb66096883863 (patch)
treeb5e10b15e55ec9453bf902431a3b9dc24310378c /conf.c
parenta301379c2035d9d0dd86926c4bdeebf95db18fac (diff)
Add support for 'primary' and 'migrate' account storages.
Fix two bugs in the text storage backend that were introduced by my previous changes.
Diffstat (limited to 'conf.c')
-rw-r--r--conf.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/conf.c b/conf.c
index 304a15a8..10c6911f 100644
--- a/conf.c
+++ b/conf.c
@@ -49,7 +49,7 @@ conf_t *conf_load( int argc, char *argv[] )
conf->port = 6667;
conf->nofork = 0;
conf->verbose = 0;
- conf->storage = "text";
+ conf->primary_storage = "text";
conf->runmode = RUNMODE_INETD;
conf->authmode = AUTHMODE_OPEN;
conf->password = NULL;
@@ -198,10 +198,15 @@ static int conf_loadini( conf_t *conf, char *file )
g_free( conf->motdfile );
conf->motdfile = g_strdup( ini->value );
}
- else if( g_strcasecmp( ini->key, "storage" ) == 0 )
+ else if( g_strcasecmp( ini->key, "account_storage" ) == 0 )
{
- g_free( conf->storage );
- conf->storage = g_strdup( ini->value );
+ g_free( conf->primary_storage );
+ conf->primary_storage = g_strdup( ini->value );
+ }
+ else if( g_strcasecmp( ini->key, "account_storage_migrate" ) == 0 )
+ {
+ g_strfreev( conf->migrate_storage );
+ conf->migrate_storage = g_strsplit( ini->value, " \t,;", -1 );
}
else if( g_strcasecmp( ini->key, "pinginterval" ) == 0 )
{