Security

last person joined: 21 hours ago 

Forum to discuss Enterprise security using HPE Aruba Networking NAC solutions (ClearPass), Introspect, VIA, 360 Security Exchange, Extensions, and Policy Enforcement Firewall (PEF).
Expand all | Collapse all

ClearPass - return error code in radius response

This thread has been viewed 5 times
  • 1.  ClearPass - return error code in radius response

    Posted Jan 13, 2015 09:11 PM

    Hi All,

     

    Does anybody know if there is a variable you can call up in a RADIUS reject response that represents the TIPS Error Code?

     

    Eg i want to return Error Code 216 to my downstream device so it knows that password failure was the cause.

     

    I can't seem to find anything in the standard variables. 

     

    Scott

     



  • 2.  RE: ClearPass - return error code in radius response

    EMPLOYEE
    Posted Jan 13, 2015 09:13 PM
    There’s no official way, but you can send anything in a filter-ID as long as the downstream device can receive/parse it.


  • 3.  RE: ClearPass - return error code in radius response

    Posted Jan 13, 2015 09:16 PM

    my problem is in getting the error code. 

     

    When i create an enforcement profile i can specify the filterid to return however i can't find a variable that selects the error code. 

     

    i guess i could do it with role derivation so that any tips error code 216 = role "password failed" and then return the role name but this seems overly complex. 



  • 4.  RE: ClearPass - return error code in radius response

    EMPLOYEE
    Posted Jan 13, 2015 09:18 PM
    On second thought, it may not be possible to send attributes back with a RADIUS reject for a 1X request.


  • 5.  RE: ClearPass - return error code in radius response

    Posted Jan 13, 2015 09:19 PM

    these are just standard radius proxy requests



  • 6.  RE: ClearPass - return error code in radius response
    Best Answer

    Posted Jan 13, 2015 09:59 PM

    ok so it doesn't look like there is any clean way to do this so i came up with a workaround which involved the use of role mapping and specific enforcement profiles. Essentially you need to assign a role to devices that fail with a certain code and then map that to an enforcement profile / policy that send the required information back to the NAD.

     

    See below:

     

    snip1.JPGsnip2.JPGsnip3.JPG



  • 7.  RE: ClearPass - return error code in radius response

    EMPLOYEE
    Posted Jan 13, 2015 10:02 PM
    And you see that message in NAD device?


  • 8.  RE: ClearPass - return error code in radius response

    Posted Jan 13, 2015 10:04 PM

    yes it gets returned with the reject. 



  • 9.  RE: ClearPass - return error code in radius response

    Posted Jan 13, 2015 10:05 PM

    snip4.JPG



  • 10.  RE: ClearPass - return error code in radius response

    EMPLOYEE
    Posted Jan 13, 2015 10:08 PM

    If you know what the error codes mean and don't care about the text, you can create an enforcement profile that returns %{Authentication:ErrorCode}. This way you'll get all errors, not just incorrect password.

     

    Enforcement rule would read:

     

    Authentication       Status      EQUALS       Failed

    <ErrorCode-enforcement-profile>



  • 11.  RE: ClearPass - return error code in radius response
    Best Answer

    Posted Jan 13, 2015 10:17 PM

    That is exactly what i was looking for!

     

    I checked the user guide but it didn't show that as a defined variable, likewise when i tried to use the drop down options in the UI none of the {Authentication:XXX} options came up.

     

    Thanks Tim!

     



  • 12.  RE: ClearPass - return error code in radius response

    EMPLOYEE
    Posted Jan 13, 2015 10:37 PM

    Any attribute in the devices list can be used. Sometimes you need to add the endpoints repository in the authz section to get all the attributes.

     

    For exapmle in my lab I am sending back the guest username, device name or the host name so I can see that info in the controller or airwave.

     

    Just copy the section you want in the format that Tim showed you. It can be an authz attribute or a computed attribute.

     

     

     

    Screen Shot 2015-01-13 at 10.31.32 PM.png

    Screen Shot 2015-01-13 at 10.29.16 PM.png

     

    Screen Shot 2015-01-13 at 10.28.53 PM.png

     

     

    Screen Shot 2015-01-13 at 10.34.53 PM.png

     

    Screen Shot 2015-01-13 at 10.36.19 PM.png