Require passwords for "request" status in "auth+acct", too
authorAlan T. DeKok <aland@freeradius.org>
Thu, 21 Jan 2016 21:21:08 +0000 (16:21 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 21 Jan 2016 21:21:08 +0000 (16:21 -0500)
src/main/realms.c

index ba58009..2b37b39 100644 (file)
@@ -683,7 +683,8 @@ home_server_t *home_server_afrom_cs(TALLOC_CTX *ctx, realm_config_t *rc, CONF_SE
                                goto error;
                        }
 
-                       if ((home->type == HOME_TYPE_AUTH) && !home->ping_user_password) {
+                       if (((home->type == HOME_TYPE_AUTH) ||
+                            (home->type == HOME_TYPE_AUTH_ACCT)) && !home->ping_user_password) {
                                cf_log_err_cs(cs, "You must supply a 'password' to enable status_check=request");
                                goto error;
                        }