Permalink
Browse files

added tests for various access.conf variables

  • Loading branch information...
mrash committed Nov 19, 2011
1 parent 63498c9 commit dd2deec73dc5f0d630ab86e92fe1e0073d692414
View
@@ -803,6 +803,10 @@ parse_access_file(fko_srv_options_t *opts)
{
add_acc_bool(&(curr_acc->require_source_address), val);
}
+ else if(CONF_VAR_IS(var, "REQUIRE_SOURCE")) /* synonym for REQUIRE_SOURCE_ADDRESS */
+ {
+ add_acc_bool(&(curr_acc->require_source_address), val);
+ }
else if(CONF_VAR_IS(var, "GPG_HOME_DIR"))
{
if (is_valid_dir(val))
@@ -0,0 +1,4 @@
+SOURCE: 4.3.2.0/24, 127.0.0.0/24, 23.43.0.0/16, 10.10.10.10;
+OPEN_PORTS: tcp/1234, udp/6001, tcp/80;
+KEY: fwknoptest;
+FW_ACCESS_TIMEOUT: 3;
@@ -0,0 +1,4 @@
+SOURCE: ANY;
+KEY: fwknoptest;
+REQUIRE_USERNAME: nouser;
+FW_ACCESS_TIMEOUT: 3;
@@ -0,0 +1,7 @@
+SOURCE: ANY;
+KEY: fwknoptest;
+FW_ACCESS_TIMEOUT: 3;
+GPG_HOME_DIR: conf/server-gpg;
+GPG_DECRYPT_ID: 12341234, DEADBEEF, 361BBAD4, 43214321;
+GPG_DECRYPT_PW: fwknoptest;
+GPG_REMOTE_ID: 6A3FAD56;
@@ -0,0 +1,15 @@
+SOURCE: 4.3.2.0/24, 23.43.0.0/16, 10.10.10.10;
+KEY: fwknoptest;
+FW_ACCESS_TIMEOUT: 3;
+
+SOURCE: 23.43.0.0/16, 10.10.10.10;
+KEY: fwknoptest;
+FW_ACCESS_TIMEOUT: 3;
+
+SOURCE: 4.3.2.0/24, 127.0.0.0/24, 23.43.0.0/16, 10.10.10.10;
+KEY: fwknoptest;
+FW_ACCESS_TIMEOUT: 3;
+
+SOURCE: 4.3.2.0/24, 10.10.10.10;
+KEY: fwknoptest;
+FW_ACCESS_TIMEOUT: 3;
@@ -0,0 +1,4 @@
+SOURCE: 4.3.2.0/24, 127.0.0.0/24, 23.43.0.0/16, 10.10.10.10;
+OPEN_PORTS: udp/6001, tcp/22, tcp/80;
+KEY: fwknoptest;
+FW_ACCESS_TIMEOUT: 3;
@@ -0,0 +1,5 @@
+SOURCE: 4.3.2.0/24, 127.0.0.0/24, 23.43.0.0/16, 10.10.10.10;
+OPEN_PORTS: udp/6001, tcp/22, tcp/80;
+REQUIRE_SOURCE_ADDRESS: Y;
+KEY: fwknoptest;
+FW_ACCESS_TIMEOUT: 3;
@@ -0,0 +1,4 @@
+SOURCE: ANY;
+KEY: fwknoptest;
+REQUIRE_USERNAME: testuser;
+FW_ACCESS_TIMEOUT: 3;
Oops, something went wrong.

0 comments on commit dd2deec

Please sign in to comment.