ikev1: Allow late connection switching based on XAuth username

This commit is contained in:
Tobias Brunner 2014-05-16 10:39:22 +02:00
parent aba55fdffe
commit abe116cdf8
1 changed files with 0 additions and 6 deletions

View File

@ -463,12 +463,6 @@ METHOD(task_t, process_i, status_t,
return NEED_MORE;
case SUCCESS:
id = this->xauth->get_identity(this->xauth);
if (this->user && !id->matches(id, this->user))
{
DBG1(DBG_IKE, "XAuth username '%Y' does not match to "
"configured username '%Y'", id, this->user);
break;
}
DBG1(DBG_IKE, "XAuth authentication of '%Y' successful", id);
if (add_auth_cfg(this, id, FALSE) && allowed(this))
{