diff options
| author | Andreas Steffen <andreas.steffen@strongswan.org> | 2011-08-12 11:34:56 +0200 |
|---|---|---|
| committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2011-08-12 11:34:56 +0200 |
| commit | ae8a984b5ad9c0a75796f92347093f29d17f8973 (patch) | |
| tree | 61121542444f2e17a5859f5cd63149c765d7c484 /src/libcharon/plugins/tnc_ifmap | |
| parent | d6a69acba4f645cda0943631a384a5404412888f (diff) | |
| download | strongswan-ae8a984b5ad9c0a75796f92347093f29d17f8973.tar.bz2 strongswan-ae8a984b5ad9c0a75796f92347093f29d17f8973.tar.xz | |
use EAP identity
Diffstat (limited to 'src/libcharon/plugins/tnc_ifmap')
| -rw-r--r-- | src/libcharon/plugins/tnc_ifmap/tnc_ifmap_soap.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/libcharon/plugins/tnc_ifmap/tnc_ifmap_soap.c b/src/libcharon/plugins/tnc_ifmap/tnc_ifmap_soap.c index 53ce445b7..f5746a6cd 100644 --- a/src/libcharon/plugins/tnc_ifmap/tnc_ifmap_soap.c +++ b/src/libcharon/plugins/tnc_ifmap/tnc_ifmap_soap.c @@ -429,7 +429,7 @@ METHOD(tnc_ifmap_soap_t, publish_ike_sa, bool, host_t *host; auth_cfg_t *auth; u_int32_t ike_sa_id; - bool is_user, first = TRUE; + bool is_user = FALSE, first = TRUE; /* extract relevant data from IKE_SA*/ ike_sa_id = ike_sa->get_unique_id(ike_sa); @@ -438,7 +438,11 @@ METHOD(tnc_ifmap_soap_t, publish_ike_sa, bool, host = ike_sa->get_other_host(ike_sa); /* in the presence of an EAP Identity, treat it as a username */ - is_user = !id->equals(id, eap_id); + if (!id->equals(id, eap_id)) + { + is_user = TRUE; + id = eap_id; + } /* build publish request */ ns = axiom_namespace_create(this->env, IFMAP_NS, "ifmap"); |
