Security

 View Only
Expand all | Collapse all

Clearpass RADIUS Intune/Azure AD integration POC

This thread has been viewed 197 times
  • 1.  Clearpass RADIUS Intune/Azure AD integration POC

    Posted Nov 15, 2022 11:02 AM
    Hey!

    Running a POC for my company regarding clearpass and was wondering how do you guys pull user group information from Azure ad/intune. I currently have the intune extension setup and working but the attributes passed by intune are very limited. I need to be able to pull group information to assign different roles/policies.

    Is the only way to achieve this is using secure ldap to azure domain services ? Is there a simpler way to do this ? We do not want to use onboard and we use SCEPman as a CA for EAP-TLS.

    Thanks!!


  • 2.  RE: Clearpass RADIUS Intune/Azure AD integration POC

    Posted Nov 15, 2022 08:33 PM
    I have good group information from ClearPass Guest's Azure AD social integration, they show up in Endpoint:social_groups. 6.11 has some Azure AD support but also a note "Even though the current release supports fetching these attributes, it cannot be used within the enforcement profile."
    https://www.arubanetworks.com/techdocs/ClearPass/6.11/PolicyManager/Content/CPPM_UserGuide/Auth/AuthSource_Azure.htm


  • 3.  RE: Clearpass RADIUS Intune/Azure AD integration POC

    Posted Nov 16, 2022 08:35 AM
    I may have to upgrade to 6.11 to give this a shot. Looks like it can pull group information from azure, then I can assign roles ->enforcement. If I can't use it for authorization then what the heck is the point lol


  • 4.  RE: Clearpass RADIUS Intune/Azure AD integration POC

    Posted Nov 16, 2022 01:14 PM
    I upgraded to 6.11 and configured the azure authentication source, but I do not see any authorization information being pulled when I check access tracker. I created the azure APP and gave it user.read permissions. Is there anything I'm missing ? The documentation is lacking on the exact permissions needed in the azure app.


  • 5.  RE: Clearpass RADIUS Intune/Azure AD integration POC
    Best Answer

    Posted Nov 17, 2022 04:23 AM
    This is what I have:
    And on the note: "Even though the current release supports fetching these attributes, it cannot be used within the enforcement profile.", that does not apply to the Group membership, but to the other attributes. And that is because the default filter does only pull the Group information, but you can add the other attributes like:
    ... which will then pull these attributes and make them available for Role Mapping or Enforcement. Example:
    Both of the following Role mappings work after that change:
    Hope this helps... and I'll reach out to the documentation team to get the Azure API required permissions added.

    ------------------------------
    Herman Robers
    ------------------------
    If you have urgent issues, always contact your Aruba partner, distributor, or Aruba TAC Support. Check https://www.arubanetworks.com/support-services/contact-support/ for how to contact Aruba TAC. Any opinions expressed here are solely my own and not necessarily that of Hewlett Packard Enterprise or Aruba Networks.

    In case your problem is solved, please invest the time to post a follow-up with the information on how you solved it. Others can benefit from that.
    ------------------------------



  • 6.  RE: Clearpass RADIUS Intune/Azure AD integration POC

    Posted Nov 17, 2022 11:58 AM
    Added the group.read.all and I'm able to pull group information now nice!!! I was also stripping the user name with filter (user:@). I removed that as well so not sure if that helped, but it is working now YES


  • 7.  RE: Clearpass RADIUS Intune/Azure AD integration POC

    Posted Dec 05, 2023 10:42 AM

    Hi.  I've been working on this for the past few days.  I even have a TAC case opened and they are researching the issues, but basically the filter is not able to pull user attributes such as AccountEnabled, Department, Email.  I have everything setup (including Azure App permission), so that I can perform authentication with cert, but NOT ABLE to use user attributes for authorization because they are not available for some reasons.   The following is an excerpt from Show Logs. 




  • 8.  RE: Clearpass RADIUS Intune/Azure AD integration POC

    Posted Dec 07, 2023 05:51 AM

    The username during the authentication should be the UPN for the Entra ID user.

    And does the 'Test Connection' in your Entra ID (Azure AD) Authorization Source work?? Then you know the API tokens are valid at least.

    The message you show can be either incorrect API tokens/ids or wrong format of the username (not the UPN) sent to Azure.



    ------------------------------
    Herman Robers
    ------------------------
    If you have urgent issues, always contact your Aruba partner, distributor, or Aruba TAC Support. Check https://www.arubanetworks.com/support-services/contact-support/ for how to contact Aruba TAC. Any opinions expressed here are solely my own and not necessarily that of Hewlett Packard Enterprise or Aruba Networks.

    In case your problem is solved, please invest the time to post a follow-up with the information on how you solved it. Others can benefit from that.
    ------------------------------



  • 9.  RE: Clearpass RADIUS Intune/Azure AD integration POC

    Posted Dec 10, 2023 09:24 PM

    Hi Herman -

    Thank you for the quick response.  'Test Connection' works and we have the UPN as CN in the user certificate for authentication so we should be good.  One thing I found interesting, is that I use the same filter query - users/?select=mail,userPrincipalName,id,department,accountEnabled&$filter=userPrincipalName%{Authentication:Username}/users/{id}/memberOf?select=displayName.  However, I have gotten errors when I tried to run this query in the Microsoft Graph Explorer.  I have tweaked the query to work partially.  Take this section of query for example, users/?select=mail,userPrincipalName,id,department,accountEnabled&$filter=userPrincipalName%{Authentication:Username}, I had to change it to users/?$select=mail,userPrincipalName,id,department,accountEnabled&$filter=userPrincipalName eq {Authentication:Username} (of course I used my own UPN for this).  Also, what's the correct syntax to inject the ClearPass macro to the query?  Should it be in the format of %{Authentication:Username}

    Thanks,

    Kawai




  • 10.  RE: Clearpass RADIUS Intune/Azure AD integration POC

    Posted Dec 11, 2023 08:27 AM

    In ClearPass 6.11.x, on out TAC Case 5376142493, product engineering quoted Bug ID CP-47920

        " We did not support the Group/Custom queries  in the initial release. We are exploring the use case"

    Also, there is no precise date when this feature will be added.

    Since then CPPM 6.12.0 SSR has been released I think that allows more customization

    In our organization we are exploring a custom http Authz source that uses the Graph API to access Azure. We are currentl;y testing features we desire that are not likely to be available in the Aruba offering.

    For more information, please contact me privately. After this week, I will be OOO until 2024 though..



    ------------------------------
    Bruce Osborne ACCP ACMP
    Liberty University

    The views expressed here are my personal views and not those of my employer
    ------------------------------



  • 11.  RE: Clearpass RADIUS Intune/Azure AD integration POC

    Posted Apr 25, 2024 10:43 AM

    We only have azure AD, for Tacacs+ as it does not support authentication, we use local authentication. But user name do we have to use UPN? That means email?  If so how do we ssh into network devices?




  • 12.  RE: Clearpass RADIUS Intune/Azure AD integration POC

    Posted Apr 26, 2024 11:30 AM

    Currently, I am using on-prem AD auth source for that. ClearPass only supports OAuth for web based authentications. I think they need to support authentication via Entra ID.



    ------------------------------
    Bruce Osborne ACCP ACMP
    Liberty University

    The views expressed here are my personal views and not those of my employer
    ------------------------------



  • 13.  RE: Clearpass RADIUS Intune/Azure AD integration POC

    Posted Apr 30, 2024 03:03 PM

    even okay to use local user for authentication, but can clearpass set use SAMaccountname or first part of UPN for authorization? 




  • 14.  RE: Clearpass RADIUS Intune/Azure AD integration POC

    Posted May 01, 2024 03:39 AM

    Not with Entra ID (formerly Azure AD).  That is why I end up using on-prem AD for non-TLS authentication.



    ------------------------------
    Bruce Osborne ACCP ACMP
    Liberty University

    The views expressed here are my personal views and not those of my employer
    ------------------------------



  • 15.  RE: Clearpass RADIUS Intune/Azure AD integration POC

    Posted Jan 17, 2025 06:15 AM

    Hi Harman,

    Please guide on how to check if authorization attributes are being fetched from Microsoft Entra id. I don't see any Entra id attributes under "Computed Attributes" section for Entra & apparently enforcement fails for user & user doesn't get access hitting default deny access profile.

    Thanks in advance.

    Nilesh Kahar.




  • 16.  RE: Clearpass RADIUS Intune/Azure AD integration POC

    Posted Jan 17, 2025 07:32 AM

    First of all, make sure that your Entra ID Authorization Source is added for authorization, and actually used in the role-mapping or enforcement, because if it's not used, the lookup will be skipped because there is no possible result for the policy.

    Then, make sure that you send the correct identity for the Entra ID Graph API query, some examples above in this discussion, or check the documentation. Bottom line, if you have a query based on the User Principle Name (UPN), make sure that you also send the UPN. If you query on email, or other attibute, make sure that is sent.

    If it still doesn't work, you could check the detailed authentication log and see if there is an indication. Or, if it still not works, work with your HPE Aruba Networking partner or TAC to further investigate. 



    ------------------------------
    Herman Robers
    ------------------------
    If you have urgent issues, always contact your HPE Aruba Networking partner, distributor, or Aruba TAC Support. Check https://www.arubanetworks.com/support-services/contact-support/ for how to contact HPE Aruba Networking TAC. Any opinions expressed here are solely my own and not necessarily that of Hewlett Packard Enterprise or HPE Aruba Networking.

    In case your problem is solved, please invest the time to post a follow-up with the information on how you solved it. Others can benefit from that.
    ------------------------------



  • 17.  RE: Clearpass RADIUS Intune/Azure AD integration POC

    Posted Jan 20, 2025 01:00 AM

    Hi Herman,

    Thank you for your reply. Entra ID connection seems successful via app registration.

    Please help if attribute query part for Entra ID is correct, as shown below.

    Filter query : users/?select=mail,userPrincipalName,id,department,accountEnabled&$filter=userPrincipalName%{Authentication:Username} /users/{id}/memberOf?select=displayName

    Thanks,

    Nilesh Kahar.




  • 18.  RE: Clearpass RADIUS Intune/Azure AD integration POC

    Posted Jan 20, 2025 03:34 AM

    Are you on ClearPass 6.12?

    There is something weird with that query... where you have the part filter=userPrincipalName, I would expect 'eq %{Authentication:Username}', and the eq is missing, which may be the reason. The screenshot above that you copied seems from ClearPass 6.11 (dated 2022).

    Here are the queries that I use at the moment:

    1. users:users/?$select=userPrincipalName,displayName,id,accountEnabled,companyName,createdDateTime,department,employeeId,lastPasswordChangeDateTime,registeredDevices&$filter=userPrincipalName eq %{Certificate:Subject-AltName-msUPN};group:/users/%{users:id}/memberOf?$select=displayName,id,groupTypes
    2. device:devices?$select=id,deviceId,displayName,approximateLastSignInDateTime,enrollmentType&$filter=deviceId eq %{Certificate:Subject-L};deviceGroups:devices/%{device:id}/memberOf?$select=displayName



    ------------------------------
    Herman Robers
    ------------------------
    If you have urgent issues, always contact your HPE Aruba Networking partner, distributor, or Aruba TAC Support. Check https://www.arubanetworks.com/support-services/contact-support/ for how to contact HPE Aruba Networking TAC. Any opinions expressed here are solely my own and not necessarily that of Hewlett Packard Enterprise or HPE Aruba Networking.

    In case your problem is solved, please invest the time to post a follow-up with the information on how you solved it. Others can benefit from that.
    ------------------------------



  • 19.  RE: Clearpass RADIUS Intune/Azure AD integration POC

    Posted Jan 21, 2025 05:34 AM

    Hi Herman,

    In your earlier post you have used a screenshot of a different group filter (like I use).For me this filter works perfectly. Can I expect issues when I upgrade in  the future to 6.12?

    I am using ClearPass 6.11.9 and UPN is in the certificate Subject Alternate Name. 

    User Certificate looks like this. Using only AAD_Device_ID and UPN to fetch information from Intune and Entra ID.


    My experience is that the Azure Application rights are crucial for the proper operation (must be Application Type and not Delegated type!)!

    Thanks

    Istvan