summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ctld/ctld.c
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2014-03-25 12:22:30 +0000
committertrasz <trasz@FreeBSD.org>2014-03-25 12:22:30 +0000
commit5fb75e3b8f09c689ffcda3c05dad773f6f6625f2 (patch)
treee1b1ca58287cf781432e4c39bad08464dea2e932 /usr.sbin/ctld/ctld.c
parentd3e539d4a4a3fa52420768795cc3944d48cc616a (diff)
downloadFreeBSD-src-5fb75e3b8f09c689ffcda3c05dad773f6f6625f2.zip
FreeBSD-src-5fb75e3b8f09c689ffcda3c05dad773f6f6625f2.tar.gz
MFC r261763:
Use new auth-type "deny" instead of using "chap" with no chap entries; it's cleaner this way, and gives better feedback to the user. Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'usr.sbin/ctld/ctld.c')
-rw-r--r--usr.sbin/ctld/ctld.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/ctld/ctld.c b/usr.sbin/ctld/ctld.c
index 8ab8670..d082227 100644
--- a/usr.sbin/ctld/ctld.c
+++ b/usr.sbin/ctld/ctld.c
@@ -439,6 +439,8 @@ auth_group_set_type_str(struct auth_group *ag, const char *str)
if (strcmp(str, "none") == 0) {
type = AG_TYPE_NO_AUTHENTICATION;
+ } else if (strcmp(str, "deny") == 0) {
+ type = AG_TYPE_DENY;
} else if (strcmp(str, "chap") == 0) {
type = AG_TYPE_CHAP;
} else if (strcmp(str, "chap-mutual") == 0) {
OpenPOWER on IntegriCloud