summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ctld/ctld.c
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2014-03-25 12:20:29 +0000
committertrasz <trasz@FreeBSD.org>2014-03-25 12:20:29 +0000
commitd3e539d4a4a3fa52420768795cc3944d48cc616a (patch)
treed1dfa568cfc9bfea93fe6052c3d04a4978ad1381 /usr.sbin/ctld/ctld.c
parent760d220cff8b71f753c48a657bb51b59b0e96220 (diff)
downloadFreeBSD-src-d3e539d4a4a3fa52420768795cc3944d48cc616a.zip
FreeBSD-src-d3e539d4a4a3fa52420768795cc3944d48cc616a.tar.gz
MFC r261762:
Use "default" as default discovery-auth-group, instead of "no-access". It doesn't change visible behaviour, as previously auth-group "default" wasn't redefinable, so by default access was always denied. Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'usr.sbin/ctld/ctld.c')
-rw-r--r--usr.sbin/ctld/ctld.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ctld/ctld.c b/usr.sbin/ctld/ctld.c
index f99f32c..8ab8670 100644
--- a/usr.sbin/ctld/ctld.c
+++ b/usr.sbin/ctld/ctld.c
@@ -1132,7 +1132,7 @@ conf_verify(struct conf *conf)
assert(pg->pg_name != NULL);
if (pg->pg_discovery_auth_group == NULL) {
pg->pg_discovery_auth_group =
- auth_group_find(conf, "no-access");
+ auth_group_find(conf, "default");
assert(pg->pg_discovery_auth_group != NULL);
}
@@ -1159,6 +1159,7 @@ conf_verify(struct conf *conf)
break;
}
if (targ == NULL && ag->ag_name != NULL &&
+ strcmp(ag->ag_name, "default") != 0 &&
strcmp(ag->ag_name, "no-authentication") != 0 &&
strcmp(ag->ag_name, "no-access") != 0) {
log_warnx("auth-group \"%s\" not assigned "
OpenPOWER on IntegriCloud