]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Allow TLS dynamic home servers to be auth+acct
authorNick Porter <nick@portercomputing.co.uk>
Mon, 15 Jul 2024 15:39:33 +0000 (16:39 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Mon, 15 Jul 2024 15:39:33 +0000 (16:39 +0100)
src/main/realms.c

index fa428138b8f0e48862604f3be020b1e93c508567..8331799224541e4ab8042e3552a7aa67f4b83813 100644 (file)
@@ -3198,7 +3198,11 @@ int home_server_afrom_file(char const *filename)
                goto error;
        }
 
-       if (home->dual) {
+       if (home->dual
+#ifdef WITH_TLS
+               && !home->tls
+#endif
+       ) {
                fr_strerror_printf("Dynamic home_server '%s' is missing 'type', or it is set to 'auth+acct'.  Please specify 'type = auth' or 'type = acct', etc.", p);
                talloc_free(home);
                goto error;