]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
treat EAP identities as user IDs
authorAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 12 Feb 2013 20:58:03 +0000 (21:58 +0100)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 12 Feb 2013 20:58:03 +0000 (21:58 +0100)
src/libcharon/plugins/tnc_tnccs/tnc_tnccs_manager.c

index 6dae80c1779c215681a468e7c03e3ef0b20f0007..6ddda594db68c1b1de5ad1e70ae46e37a0861aae 100644 (file)
@@ -734,8 +734,8 @@ METHOD(tnccs_manager_t, get_attribute, TNC_Result,
                                                subject_type = TNC_SUBJECT_MACHINE;
                                                break;
                                        case ID_FQDN:
-                                               id_type = TNC_ID_FQDN;
-                                               subject_type = TNC_SUBJECT_MACHINE;
+                                               id_type = TNC_ID_USER_NAME;
+                                               subject_type = TNC_SUBJECT_USER;
                                                break;
                                        case ID_RFC822_ADDR:
                                                id_type = TNC_ID_RFC822_ADDR;
@@ -743,7 +743,7 @@ METHOD(tnccs_manager_t, get_attribute, TNC_Result,
                                                break;
                                        case ID_DER_ASN1_DN:
                                                id_type = TNC_ID_DER_ASN1_DN;
-                                               subject_type = TNC_SUBJECT_UNKNOWN;
+                                               subject_type = TNC_SUBJECT_USER;
                                                break;
                                        case ID_DER_ASN1_GN:
                                                id_type = TNC_ID_DER_ASN1_GN;