Deleted Added
full compact
30c30
< * $FreeBSD: stable/10/usr.sbin/ctld/parse.y 263725 2014-03-25 12:14:48Z trasz $
---
> * $FreeBSD: stable/10/usr.sbin/ctld/parse.y 263726 2014-03-25 12:16:52Z trasz $
135c135,145
< auth_group = auth_group_new(conf, $1);
---
> /*
> * Make it possible to redefine default
> * auth-group. but only once.
> */
> if (strcmp($1, "default") == 0 &&
> conf->conf_default_ag_defined == false) {
> auth_group = auth_group_find(conf, $1);
> conf->conf_default_ag_defined = true;
> } else {
> auth_group = auth_group_new(conf, $1);
> }
714a725,727
> ag = auth_group_new(conf, "default");
> assert(ag != NULL);
>
749a763,770
> if (conf->conf_default_ag_defined == false) {
> log_debugx("auth-group \"default\" not defined; "
> "going with defaults");
> ag = auth_group_find(conf, "default");
> assert(ag != NULL);
> ag->ag_type = AG_TYPE_CHAP;
> }
>