This document describes the basic configuration of a Secure Network Analytics Manager with Lightweight Directory Access Protocol (LDAP) over SSL.
Cisco recommends that you have knowledge of these topics:
The information in this document is based on these components:
The information in this document was created from the devices in a specific lab environment. All of the devices used in this document started with a cleared (default) configuration. If your network is live, ensure that you understand the potential impact of any command.

5. In the Certificates snap-in window, select Computer account, and then select Next.
6. Leave Local computer selected, and then select Finish.
7. In the Add or Remove Snap-in window, select OK.
8. Navigate to Certificates (Local Computer) > Personal > Certificates

9. Select and right-click the SSL certificate used for LDAPS authentication on your domain controller and click Open.
10. Navigate to the Details tab > click Copy to File > Next

11. Ensure that No, do not export private key is selected and click Next
12. Select Base-64 encoded X.509 format and click Next.

13. Select a location to store the certificate, name the file and click Next.

14. Click Finish, you must get a “The export was successful.” message.
15. Go back to the certificate used for LDAPS, then select the Certification Path tab.
16. Select the Root CA issuer on top of the certification path and click View Certificate.

17. Repeat steps 10-14 to export the certificate of the root CA which signed the certificate used for LDAPS authentication.
18. Before you continue, ensure that you have one certificate file for the LDAPS server and for each issuer authority in the certification path: Root certificate and intermediate certificates (if applicable).


7. Wait for the changes to be applied and for the Manager status to be Up.
1. Open the Manager main dashboard and navigate to Global Settings > User Management.

2. In the User Management window select the Authentication and Authorization tab.
3. Click Create > Authentication Service.

4. From the Authentication Service drop-down menu select LDAP.
5. Complete the required fields.
| Field |
Notes |
| Friendly Name |
Enter a name for the LDAP server. |
| Description |
Enter a description for the LDAP server. |
| Server Address |
Enter the fully qualified domain name as specified in the Subject Alternative Name (SAN) field of the LDAP server certificate.
|
| Port |
Enter the port designated for secure LDAP communication (LDAP over TLS). The well known TCP port for LDAPS is 636. |
| Bind User |
Enter the user ID used to connect to the LDAP server. For example: CN=admin,OU=Corporate Users,DC=example,DC=com |
| Password |
Enter the Bind User password used to connect to the LDAP server. |
| Base Accounts |
Enter the Distinguished Name (DN). The DN applies to the branch of the directory in which searches for users must begin. It is often the top of directory tree (your domain), but you can also specify a sub-tree within the directory. The Bind User and the users intended to be authenticated must be accessible from Base Accounts. For example: DC=example,DC=com |
6. Click Save.

7. If the settings entered and the certificates added to the trust store are correct, you receive a You've successfully saved your changes banner.
8. The configured server must be displayed under User Management > Authentication and Authorization.


5. Click Add.
6. Click Apply Settings.
7. Once the settings entered and the certificates added to the trust store are correct, the changes on the Manager are applied and the appliance state must be Up.
SNA supports both Local and Remote Authorization via LDAP. With this configuration, the LDAP groups from the AD Server are mapped to built-in or custom SNA roles.
The supported authentication and authorization methods for SNA via LDAP are:
In this case, the users and their roles need to be defined locally. To achieve this, proceed as follows.
1. Navigate to User Management again, click the Users tab > Create > User.
2. Define the user name to authenticate with the LDAP server and select the configured server from the Authentication Service drop-down menu.
3. Define the permissions that the user must have over the Manager once it is authenticated by the LDAP server and click Save.

Remote Authentication and Authorization via LDAP was first supported in Secure Network Analytics version 7.2.1.
It is relevant to mention that if a user is defined and enabled locally (in the Manager), then the user is authenticated remotely, but authorized locally. The user selection process is as follows:
For this reason, the steps to successfully configure remote Authentication are described next.
Step D-1. Disable or delete the users intended to use remote authorization but which are defined locally

Step D-2. Define cisco-stealthwatch Groups in the Microsoft AD server.
For External Authentication and Authorization via LDAP users, passwords and cisco-stealthwatch groups are defined remotely in Microsoft Active Directory. The cisco-stealthwatch groups to be defined in the AD server are related to the different roles which SNA has, they must be defined as follows.
| SNA Role |
Group(s) Name |
| Primary Admin |
|
| Data Role |
|
| Web Functional Role |
|
| Desktop Functional Role |
|

Step D-3. Define LDAP Authorization Group Mappings for the users
Once the cisco-stealthwatch groups have been defined in the AD server, we can map the users intended to have access to the SNA Manager to the necessary groups. This must be done as follows.


Step D-4. Enable Remote Authorization via LDAP on the SNA Manager.

Use this section in order to confirm that your configuration works properly.
The users are able to log in with the credentials defined on the AD server.

The second verification step is in regards to Authorization. In this example, user "user20" was made a member of the cisco-stealthwatch-master-admin group in the AD server, and you can confirm that the user has Primary Admin permissions. The user is not defined in the local users, so you can confirm that the Authorization attributes were sent by the AD server.

The same verification is done for the other user in this example "snauser10". You can confirm successful authentication with the credentials which were configured on the AD server.

For the Authorization verification, as this user does not belong to the Primary Admin group, some features are not available.

This section provides information you can use in order to troubleshoot your configuration.
If the configuration of the Authentication Service cannot be saved successfully verify that:
If the SAN field contains only the IPv4 address, enter the IPv4 address in the Server Address field.
If the SAN field contains the DNS name, enter the DNS name in the Server Address field.
If the SAN field contains both DNS and IPv4 values, use the first value listed.
| Revision | Publish Date | Comments |
|---|---|---|
1.0 |
02-Feb-2022
|
Initial Release |