How to insert a ratEAPTLV attibute?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi people,
Someone knows how to insert a ratEAPTLV (URI EAP-TLV)?

I'm using one struct definition as:

typedef struct _PEAPTLV_URI
{
int TLVMand:1; //one BIT using 0 non
mandatory
int TLVReserved:1; //one BIT using 0
int TLVType:14; //14 BITS using 8 TLV URI
UCHAR TLVValueLength; //the URI length
UCHAR TLVValue[UNLEN]; //the HTTPS URI
}PEAPTLV_URI, *pPEAPTLV_URI;
If I set the attribute type to rdtUnknown I receive an error code 87.
If I set the attribute type as rdtString I receive 0 as success, but after
the return to IAS the EAP function RasEapMakeMessage fails as you can see on
iassam.log:

[2340] 11-28 10:58:59:328: Issuing Access-Challenge.
[2340] 11-28 10:58:59:328: Invoking AuthorizationDLLs
[2340] 11-28 10:58:59:328: Invoking extension IASGuest.dll
[2340] 11-28 10:58:59:328: RADIUS_ATTRIBUTE_ARRAY.Add(rcAccessRequest, 273)
[2340] 11-28 10:58:59:328: RadiusExtensionProcess2 returned 0
[2340] 11-28 10:58:59:328: RasEapMakeMessage failed: An internal error
occurred.
[2340] 11-28 10:58:59:328: Caught COM exception: An internal error occurred.

Can someone help me please.

Thanks in advance.


.