]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
stroke: Apply aaa_identity to XAuth configs
authorTobias Brunner <tobias@strongswan.org>
Thu, 21 May 2015 10:08:30 +0000 (12:08 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 21 May 2015 10:08:30 +0000 (12:08 +0200)
src/libcharon/plugins/stroke/stroke_config.c

index 55ec7cdc90b0da2a41fa3e069d31c892fb1293e7..b661c8a9a410b3a8af3672e30040f32ce3ec51e3 100644 (file)
@@ -631,6 +631,11 @@ static auth_cfg_t *build_auth_cfg(private_stroke_config_t *this,
                        cfg->add(cfg, AUTH_RULE_XAUTH_IDENTITY,
                                identification_create_from_string(msg->add_conn.xauth_identity));
                }
+               if (msg->add_conn.aaa_identity)
+               {
+                       cfg->add(cfg, AUTH_RULE_AAA_IDENTITY,
+                               identification_create_from_string(msg->add_conn.aaa_identity));
+               }
        }
        else if (strpfx(auth, "eap"))
        {