Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

使用 Azure IdP 集成配置基于证书的 (EAP-TLS) 身份验证

按照以下步骤在 Microsoft Entra ID 中注册您的瞻博网络 Mist™ 组织,在瞻博网络 Mist 中添加您的身份提供商,并为您的用户组创建身份验证策略。

我们可以通过集成外部身份提供商 (IdP) 来扩展可扩展身份验证协议传输层安全性 (EAP-TLS) 身份验证流程。通过这种集成,IdP 可以验证 EAP-TLS 身份验证交换,并确保只有受信任的用户才能访问网络。通过 IdP 集成与 EAP-TLS 身份验证引入额外验证,可以增强网络访问控制 (NAC) 的稳健性。

在瞻博网络 Mist™ 中,您可以使用 OAuth 将 Microsoft Azure Active Directory (AD)(现在称为 Microsoft Entra ID)集成为身份提供商。通过此集成,您可以结合 Mist Access Assurance 将 Azure AD 用作身份提供商,并执行:

  • 通过 OAuth 执行委派身份验证检查用户名和密码,通过 EAP-TTLS 对用户进行身份验证。
  • 获取用户组成员资格,以便在身份验证策略中加以利用。
  • 获取用户帐户状态信息(活动/暂停)。
  • 通过 EAP-TLS 或 EAP-TTLS 授权用户。

Azure AD 返回以下详细信息,可用于在瞻博网络 Mist Access Assurance 中微调身份验证策略:

  • 组成员身份:有关用户所属组的信息提供了有关用户角色和权限的见解。

  • 帐户验证:帐户状态对于确保瞻博网络 Mist Access Assurance 仅向有效活跃用户授予网络访问权限至关重要。

  • 其他用户上下文:收集有关用户的附加信息使我们能够更好地了解用户的配置文件。配置身份提供程序查找时,系统会向配置的身份提供程序发送 API 请求,以便为经过身份验证的用户获取其他上下文。

概述

此任务介绍如何在评估证书时在 Azure AD 中查找与特定域名关联的公用名 (CN)。Azure AD 查找的结果提取有关用户的其他信息,您将使用这些信息来定义身份验证策略。此任务适用于无线网络。

作为此任务的先决条件,您必须配置 EAP-TLS 身份验证。有关详细信息,请参阅 配置基于证书的 (EAP-TLS) 身份验证 。

在此示例中,您将:

  1. 在 Azure 门户上创建新应用程序,以将 Azure AD 用作 IdP。
  2. 将 Azure AD 集成为 IdP,并在 Microsoft Graph 中为已注册的应用程序授予 API 权限。
  3. 检索登录到瞻博网络 Mist 门户的用户的详细信息。
  4. 使用 IdP 获取的有关已登录用户的其他详细信息进一步细化身份验证策略。

要使用 Okta 作为 IdP 创建身份验证,请观看以下视频:

Create the authentication policies with Mist Access Assurance considering the same exact scenario with TLS users authenticating using certificates and TLS users authenticating using credentials. The first thing that we will do is we will import the root CA certificate so we can trust the certificates on our client signed by that CA. So we'll go to organization > access certificates and I'll click on add certificate authority.

I will go to my folder where I have all the pre-configured items ready. I'm going to copy my root CA cert, import it in here. It's the same cert we used with the other two vendors. It's now imported, it's decoded, we're good to go and good to proceed. We'll then go to organization authentication policies. Actually we go to identity providers first.

We need to configure an identity provider in here and unlike with ClearPass and ICE, we don't need to have a local AD on-prem. We would actually be able to talk to Okta as our identity provider to fetch the user group information to authenticate users and provide them with network access. So I will click on add IDP.

I will select this connector type as auth since we will use native API connector to talk to Okta. I will open my setup instructions since my Okta app has been pre-created. Same as AD for other providers so I'm going to take tenants. I'm going to select the auth type as Okta, paste the tenant ID. I'll take the client ID, paste it in here. I'll take the private key so we can authenticate ourselves to Okta.

Add it right there and finally I'll configure the ROPC API ID for TTLS authentication and it's secret. The last thing I will do is I will configure the domain name. So the domain name would actually tell us based on the user realm like when the user signs in as user at like in this case lab.mystify.com. We'll take that domain based on the domain. We'll talk to a respective IDP in our configuration so just give it a name called Okta. Click create. We have our IDP configured now.

The last step is to go to access authentication policies and create the two policies that we need based on our requirements. First, we will create a rule for certificate authentication. What we'll then do is in the match criteria on the left hand side we will use labels to match in certain conditions.

In our case, we need to match on wireless users that are using certificates or TTLS to authenticate and we also need it to match on the group employee that we will take from IDP. But as you can see by default we are not having any label associated with the group so what we can do is we can create a label right from that same place. We'll call it employee group.

We will select label type as directory attribute and the label value will be group and the actual value will be employee. Click create. We can now select this label on the left hand side. It shows up here as the directory attribute. Now we are matching on all these three conditions. Then on the right hand side we are deciding what we want to do with these types of users. By default we will allow access to the network but we also want to assign VLAN 750 and role corp. Again we need to create labels for that. So we'll go and create first corp VLAN label.

The label type will be AAA attribute and the value would be VLAN. I'll configure it as 750. I'll then create corp role attribute and I'll just configure it as corp. And then I'm going to create also labels for BYD VLAN and BYD role. So 751 and finally BYD role. Good to go.

So we can select corp VLAN and corp role. Now we'll create one more rule for our users that are doing TTLS based authentication. So we'll call it credential authentication and we'll match on wireless users that are doing TTLS and that they're also part of the same employee group.

And on the right hand side we'll assign them BYD VLAN and BYD role. At this point we can hit save and our authentication policy setup is done. The last thing is to create the actual WLAN template. So I'm going to go to WLAN templates. I'm going to create a new one. I'm going to call it MIST 802.1X. I'm going to click create.

Add a WLAN. Select security as 802.1X. And in this case we don't need to configure radio servers one by one. We don't need to add APs as radio clients. None of that is required. We'll just go and select MIST authentication as our authentication service. That's it. We'll then just go on and configure dynamic VLANs. It's the same two VLANs that we will be sending. So 750.751. Click create and just assign this template to the org.

Click save. At this point we should be able to test with our client devices. We have one laptop that's connected using a certificate. It got the role corp. We have a mobile device that connected using TTLS using username and password and got the role BYD. And now let's take a look deeper and look at the client insights.

What can we see with MIST access assurance here? So what you could see is in addition to the all the client events that are coming from the access point and that are showing the user experience, from the network perspective, you also see all the events coming from the NAC side of things as the client goes through the authentication and authorization process. So, first event is, okay, we're seeing the client certificate. We are grabbing all the metadata about the user certificate.

We see that the client trusted our server cert that's provided by the MIST authentication service. We'll then did a IDP lookup against Okta. And we got all the user group information from Okta. So we know now this user is part of all these user groups. And we see one of these groups is actually employee, which we needed to match on. And finally, when we look at the NAC client allowed access event, we're saying, okay, this client is good to go. It's allowed in the network. This is the VLAN that we are assigning from a NAC perspective. This is the user role that we are assigning from the NAC perspective.

And this is the authentication rule that hit during that process. So if we click on that link, it will actually go and highlight, this is the rule that this particular user hit during the auth process, right? Similarly, if we look at the mobile device, if we look at the client insights, we're now seeing that in this case, client trusted the service certificate, but instead of showing the client certificate, it actually did the IDP authentication using username and password credentials against Okta. Finally, we got the user role and group information from Okta.

And we've allowed client to access the network, assign a different VLAN 751 and different user group. But in this case, we are hitting a different authentication rule in our policy. So again, if we click on it, we're saying that particular user went through a different role.

为无线网络配置基于证书的 (EAP-TLS) 身份验证

  1. 在 Microsoft Azure 门户上,在 Azure AD 上设置 IdP 连接器。
    1. 使用凭据登录到 Azure 门户 并导航到 Azure AD。
    2. 从左侧导航栏中,选择“ 应用注册”。
      图 1:新应用注册 Juniper Networks Azure Active Directory App registrations interface with navigation pane, notification on ADAL deprecation, and options to manage applications.
      如果您已经注册了您的应用程序,请转到“ 拥有的应用程序” 选项卡。单击应用程序名称可查看详细信息,例如客户端 ID、租户 ID 和客户端密码。
      如果要在 Azure 门户上注册新应用程序,请单击“ 新建注册 ”选项卡。
      在新注册页面中,在以下字段中输入所需信息。请注意,以下列表中的“名称”字段显示示例用户输入。
      • 名称 (Name) - 输入 Mist AA IDP connector
      • 支持的帐户类型 - 选择仅此组织目录中的帐户。
    3. 单击 注册继续 。
      此时将出现一个页面,显示有关新创建的连接器的信息,如 图 2 所示。
      图 2:新应用详细信息 Azure Active Directory App Registration interface showing details for Mist AA - IDP Connector including client ID, tenant ID, account types, navigation options, success and informational messages.
    4. 记下在瞻博网络 Mist 门户上设置 IdP 连接器所需的以下详细信息:
      • 应用程序(客户端)ID — 您需要在 OAuth 客户端凭据 (CC) 客户端 ID 和资源 所有者密码凭据客户端 ID 字段中输入此信息。
      • 目录(租户)ID — 您需要此信息用于 OAuth 租户 ID 字段。
    5. 在左侧导航栏上,选择 “证书和机密”>“新建客户端机密”。
      输入以下详细信息,然后单击 添加。
      • 姓名
      • 有效期
      系统生成 值 和 密钥 ID ,如 图 3 所示。
      图 3:客户端密钥详细信息 Client secrets tab showing a table with columns for description, expiration date, partially blurred value, and secret ID, with an option to create a new secret.

      记下“值”字段中的信息。将 Azure AD 添加为 IdP 时,需要瞻博网络 Mist 门户中的“ OAuth 客户端凭据客户端密钥” 字段提供此信息。

  2. 向 Azure AD 应用程序授予委托权限和应用程序权限。通过这些权限,应用程序可以读取用户、组和目录信息。
    1. 在已注册应用程序的 Azure 门户页上,在左侧导航栏中,选择“ API 权限”>“添加权限”。
      必须向应用程序授予使用 Microsoft Graph API 提取有关用户的信息所需的访问权限。
    2. 在“添加权限”页的“Microsoft Graph”下,在 “委派权限” 和 “应用程序权限” 选项卡上添加以下权限。
        • 目录.读取.全部
        • Group.Read.All(全读)
        • User.Read
        • User.Read.All

      单击授予 AD 的管理员同意 ,如 图 4 所示。

      图 4:应用程序Configuration screen for managing permissions in an application, showing Microsoft Graph API permissions like Directory.Read.All and User.Read, their type, description, admin consent status, and current status. Options to grant admin consent and add new permissions are visible.的 API 权限

      应用程序需要应用程序权限才能在 Azure AD 中运行。当连接器使用用户名和密码进行身份验证时,委派的权限至关重要。

  3. 在瞻博网络 Mist 门户上,将 Azure AD 添加为身份提供商。
    1. 在瞻博网络Mist门户上,从左侧菜单中选择 组织>访问>标识提供者。
      此时将显示“标识提供者”页面,其中显示已配置 IdP(如果有)的列表。
    2. 点击 添加 IDP 以添加新的 IDP。
    3. 在 New Identity Provider 页面上,输入所需信息,如 图 5 所示。
      图 5:将 Azure AD 添加为标识提供者 Mist dashboard configuration page for setting up a new identity provider Azure AD, showing OAuth setup fields and navigation menu.
      1. 名称 - 输入 IdP 名称(在此示例中使用 Azure AD)
      2. IDP 类型 - 选择 OAuth。
      3. OAuth 类型 - 从下拉列表中选择 Azure 。
      4. OAuth 租户 ID - 输入 Azure AD 租户 ID。
      5. 域名 - 输入域名,即用户的用户名(例如:username@domain.com)。域名字段检查传入的身份验证请求,识别相应的用户名和关联的域。为连接器设置域名后,连接器可以识别需要与之通信的 Azure 租户。
      6. OAuth 客户端凭据 (CC) 客户端 ID - 输入已注册的 Azure AD 应用程序的客户端 ID。
      7. OAuth 客户端凭据 (CC) 客户端密码 - Azure AD 应用程序密码。Azure AD 应用程序机密。输入 Azure 门户为 IdP 连接器生成的客户端密码的值组件。
      8. OAuth 资源所有者密码凭据 (ROPC) 客户端 ID - 输入 Azure AD 应用程序 ID。此 ID 与 OAuth 客户端证书客户端 ID 相同。

当您使用 EAP-TLS 对用户进行身份验证时,瞻博网络 Mist 会将用户名与指定的域名进行匹配。瞻博网络 Mist 向相应的 Azure AD 租户发送 API 请求,以获取该用户的详细信息。

图 7 和 图 6 显示了用户在 Azure AD 和瞻博网络 Mist 门户中的详细信息。

图 6: Azure AD User management interface showing details for user1 at deaflyz.onmicrosoft.com, created April 28, 2022. Member of three groups: CorpAndroidDevices, Employee, vip-group1. Two assigned licenses, six applications, no assigned roles. Options to edit properties, delete user, reset password, revoke sessions, manage groups. 上的用户详细信息

在瞻博网络 Mist 门户上,您可以查看 Azure AD 返回的组成员信息。在 瞻博网络 Mist 门户上,导航到 监控 > Insights >客户端事件以 查看信息。

图 7:瞻博网络 Mist 门户Client Events log showing network access and authentication activities, including DHCP success and NAC client access allowed, linked to MistAA-TestAP access point. Network details include SSID mist-secure-net, authentication type 802.1X, certificate info for user1 at deaflyz.onmicrosoft.com, certificate expiry 2024-05-12T09:04:00Z, IDP Azure AD, roles vip-group1 CorpAndroidDevices Employee, and EAP type EAP-TLS.上的用户详细信息

在 图 7 所示的示例中,用户属于 Employee 组。

您可以根据组详细信息创建身份验证策略。

根据组详细信息创建身份验证策略

您可以根据 IdP 检索到的用户组成员资格,使用带有目录属性的标签来创建身份验证策略。

要创建身份验证策略,请执行以下操作:

  1. 在瞻博网络Mist门户的左侧菜单中,选择“ 组织>访问”>“身份验证策略”。
  2. 在“身份验证策略”页面上,单击 “创建标签” 并输入详细信息。
    图 8:身份验证策略Two forms for creating labels in a user interface. Left form defines Employee Group label as Directory Attribute with value Employee for authentication policy rules. Right form defines Employee Role label as AAA Attribute with value employee for RADIUS attribute policies. Cursor hovers over highlighted Create button on the right form.的标签
    • 根据 IdP 检索到的用户组成员资格,创建标签员工 组 ,其标签类型为 目录属性 。选择标签值作为 组 ,选择组值作为 员工。使用此标签作为策略匹配标准。
    • 创建标签员工 角色 ,标签类型为 AAA属性。选择标签值作为 角色 ,选择角色值作为 员工。使用此标签分配策略。
  3. 通过单击添加 规则创建身份验证策略。系统将插入一个新行,允许您添加新策略。
    图 9:为身份验证策略User interface for managing authentication policies with options to add rules, create labels, select match criteria, and assign network access policies like Network Access Allowed or Denied. Includes dropdowns for attributes like Employee Group and VLAN, and Save and Cancel buttons.创建标签
    1. 输入策略名称。

    2. 点击匹配条件列中的添加图标 (+),然后从显示的列表中选择用户标签。选择您根据目录属性创建的标签(员工组)。

    3. 在“策略”列中,单击复选标记图标 (✓),然后选择要对接下来要确定的资源强制执行的操作“允许”或“阻止”。

    4. 单击已分配策略列中的 (+),然后选择您根据已分配策略的 AAA 属性创建的标签(员工角色)。由于用户是员工组的一部分,因此您可以分配员工角色并将其移动到公司 VLAN

  4. 点击 保存。

    图 10 显示了完成的身份验证策略。

    图 10:身份验证策略 Configuration interface for Auth Policies showing a table of policy rules with match criteria, assigned policies, and actions like Add Rule, Create Label, Save, and Cancel for managing network access control.

在 WLAN 模板中创建身份验证策略

在 WLAN 模板中添加身份验证策略时,该策略将应用于使用此模板的所有 WLAN。首先,您将创建需要在策略中引用的标签。然后,编辑模板以添加策略。

  1. 为用户创建标签,以便可以在 WxLAN 策略中使用这些标签。
    1. 从左侧菜单中,选择 组织 > 无线 > 标签。
      只有组织级标签可用于 WLAN 策略。
    2. 输入 标签名称 ,以便在创建策略时识别标签。
    3. 为要识别的用户选择适当的 标签类型 和 标签值 。

      用户的标签类型包括 AAA 属性、接入点、WiFi 客户端和 WLAN。值因所选类型而异。

      在以下示例中,选择了 AAA 属性类型,并且标签值为用户组。通过创建与系统用户组相对应的标签,您可以为不同的用户组创建不同的策略。
      图 11:创建新标签 Configuration interface for creating a new label with fields for Label Name set to Employee, Label Type as AAA Attribute, and Label Values including User Group dropdown set to employee. Note indicates Requires newer firmware.
    4. 单击“组织标签”屏幕右上角的“ 创建 ”。
    5. 重复上述步骤,根据需要为其他用户组添加其他标签。
  2. 转到 组织 > 无线 > WLAN模板。
    此时将显示 WLAN 模板页面,其中显示现有 WLAN 模板的列表。
  3. 单击要向其添加策略的模板。
  4. 在模板的 “策略 ”部分中,单击 “添加规则”。
  5. 选择规则应用于的用户、策略和资源:
    • 在 用户 部分中,单击添加图标 (+)。然后选择您之前创建的用户标签之一。

    • 在 “策略 ”部分中,单击复选标记图标 (✓)。然后选择要强制执行的操作:“ 允许” 或 “阻止”。

    • 在 “资源” 列中,单击添加图标 (+)。然后选择之前创建的资源标签之一。

    Configuration interface for WLAN template mist-secure-net showing details like SSID, bands, VLAN ID 1750, WPA3 EAP security, empty 3rd party tunnels, employee policy blocking Facebook, and action buttons for managing settings.
  6. 完成创建和订购策略后,单击屏幕顶部的 “保存” 。

以下视频演示了在使用与 Azure AD 集成的基于证书的 (EAP-TLS ) 身份验证时,如何在WLAN模板中配置身份验证策略。

Your rule configured, let's validate. Let's take a look at which policy is now being hit for this particular user. So we went in and did the client certificate check. Let's just refresh those events so we see them. All right, so we went in and client trusted the server cert. We trusted the client cert. We then did an IDP lookup, right? Same thing as your ID. We got the three IDP roles.

Now, let's look at this client access allowed. We got the VLAN 750. We got the user group or role called employee. And now we are actually hitting that different rule now. Because we have this additional context, additional visibility from the IDP, we can now do differentiated access policies for our clients.

Now, what you could do with this employee role - how can you use it on the wireless side? You could go to organization labels. You can create a label AAA attribute. Let's call it "Employee." You'll match on the user group. And what you'll do, you could go to your WLAN template. You can create a network policy now. You can say, OK, if the user is part of this employee role or employee group, we can now decide which resources it can or cannot access on the network. So we can say, OK, let's probably block Facebook for employees and hit Save. This is how you can extend the role that's being supplied by the NAC and then apply it on the AP to do some additional restrictions on which resources the user is able to access.