Use the AAA Identity for EAP authentication, if given

This commit is contained in:
Martin Willi
2010-08-31 18:10:23 +02:00
parent 64d7b0733f
commit 36eafea232
2 changed files with 14 additions and 1 deletions
+5
View File
@@ -537,6 +537,11 @@ static status_t process_r(private_ike_auth_t *this, message_t *message)
{
cfg->add(cfg, AUTH_RULE_EAP_IDENTITY, id->clone(id));
}
id = (identification_t*)cand->get(cand, AUTH_RULE_AAA_IDENTITY);
if (id)
{
cfg->add(cfg, AUTH_RULE_AAA_IDENTITY, id->clone(id));
}
}
/* verify authentication data */