Configuring LDAP or Active Directory servers for certificate-based authentication is a part of PKI, PKI with LDAP, and PKI with Active Directory authentication methods. When enabled, the NDR authenticates the user with their certificate and then authorizes them by mapping certificate fields to an LDAP or AD server. The NDR Console can use the Subject Alternative Name (SAN) extension with the User Principal Name (UPN) from the certificate to identify the user and match the user entry in Active Directory (supported by LDAP protocol).
This section explains how to configure LDAP or AD server for certificate-based user authentication.
Prerequisites
You must have admin access to the appliance
You must have LDAP/AD server(s) configured to authorize users
You have downloaded a CA certificate bundle or added an imported certificate to an existing bundle from a specified URL. For details, see Configuring custom Web Server certificates.
Log in to the system as
npadminusing the system's IP address or FQDN. For example:$ ssh npadmin@10.1.0.1Or,
$ ssh npadmin@exampleFQDNEnter privileged mode:
npadmin@hostname > enableEnter the admin password.
[sudo] password for npadmin: <password>Enter configuration mode:
npadmin@hostname# configure systemOpen the authentication configuration:
npadmin@hostname(config)# authentication 1: Authentication Method = pam 2: Configure Current Authentication Method ---------------------------------------- Q: Save changes and exit C: Cancel changes and exit Select which option you would like to change using the index number:Type
1to open the authentication mechanism menu.Press
6to choosePKIwhich authenticates user information on LDAP or AD servers.Press
7forPKI w/ LDAP, or8forPKI w/ Active Directorywhich enable user information to be picked up from a valid certificate for further authentication on LDAP or AD servers.
When you have selected PKI or PKI w/ LDAP or PKI w/ Active Directory as the authentication method, the following options appear in the CLI:
1: Authentication Method = pki or pki-ldap or pki-ad 2: Configure Current Authentication Method 3: Flush AD/LDAP passwd and group cache ---------------------------------------- Q: Save changes and exit C: Cancel changes and exit Select which option you would like to change using the index number:Press
2to selectConfigure Current Authentication Method.The PKI configuration menu is displayed on the CLI:
PKI Configuration: 1. Status = disabled 2. OCSP Verification URL = <none> 3. Certificate Revocation List = <none> 4. Appliance Certificate = <none> 5. Client CA Certificate = <provided> 6. Delete Client CA Certificate ---------------------------------------- Q: Save changes and go to the next menu C: Cancel changes and go to the next menu Enter your choice:Make changes to the following fields, as required:
Status: Type1CAC / PKI authentication status which can be set todisabled(selected by default),enabled, andoptional. Check how to enable or disable CAC/PIV for certificate authentication and logging in to the Web UI with certificate authentication for details.Important
You must upload a CA certificate to the appliance under the transfer folder before enabling
Status.OCSP Verification URL: Type2to set the URL of the OCSP server used to verify the revocation status of certificates in real time. If the certificate is part of the revocation list, it will be blocked. See how to add OCSP Verification URL for details.Certificate Revocation List: A Certificate Revocation List (CRL) is a file maintained locally that lists revoked digital certificates to allow for their offline validation.To work on the CRL, type
3and pressEnter. Configure the fields in the following order. EnterQto save the changes and exit the CRL configuration menu and return to PKI authentication configuration menu, orCto cancel.Upload CRL file: Type3to upload a local CRL file.CRL Retrieval URL: Type1to enter the URL of the direct path to the certificate file for file updates.CRL Retrieval interval: Type2to configure a CRL retrieval interval (in hours).View CRL contents / Delete CRL file: Type4to review the configured CRL contents or type5if you want to delete a CRL file.
Appliance Certificate: On the PKI authentication configuration menu, type4to set the SSL/TLS certificate used by the appliance for secure communication.Client CA Certificate: To define the trusted CA for client certificate validation, type5in the PKI authentication menu and provide the certificate's filename, such asca-chain.pem.Delete Client CA Certificate: On the PKI authentication configuration menu, type6if you want to remove the stored client CA certificate from the appliance. TypeYto confirm.Enter
Qto save the configuration changes.You will be redirected to the LDAP authentication configuration menu. Configure the following fields-
LDAP or AD Server(s): Type1to enter hostname (FQDN) or IP address of the Active Directory/LDAP server(s) to connect to. For IP address, you can provide space-separated list of servers in <IP address><port> format.Base DN: Type2to set the Root Distinguished Name (DN) in the LDAP directory tree under which user and group searches begin. You can mention nodes within the directory as required, such as CN=common name, OU=organization unit, DC=domain controller, C=country, and O=organization. PressEnter.Bind DN: Type3to set the Distinguished Name of the service account used to bind to the server and authenticate LDAP queries (for example, CN=common name, OU=organization unit, DC=domain name). PressEnter.Bind Password: Type4to enter the password for the Bind DN account used in LDAP authentication. PressEnter.Base Password:Type5to enter the default password applied to the base DN account.Base Group: Type6to specify the default or root LDAP/ AD group which it tells the system where in the directory tree to search for group objects (for example, [DC=testad, DC=eng, DC=trellix, DC=com]). PressEnter.LDAP/AD UIAPI Group: Type7to specify the LDAP or AD group granting access to application UI or API interfaces. PressEnter.LDAP/AD Sudo Group: Type8to specify LDAP or AD group whose members are granted sudo/root privileges.LDAP/AD SSH Group: Type9to specify the LDAP or AD group authorized for SSH login access.LDAP Domain SID: Type10to enter Security Identifier (SID) of the LDAP or AD domain used for identity mapping.LDAP USE SSL: Type11to enable LDAPS (LDAP over SSL/TLS) for secure connections on port 636. It is set to false (0) by default. Type1to enable it and pressEnter.LDAP USE STARTTLS: Type12if you want to upgrade a plain LDAP connection to a secure TLS session to communicate with the server. It is set to false (0) by default. Type1to enable it and pressEnter.Ignore Constraints: Enabling this instructs the device to not check that certificates have the appropriate ExtKeyUsage attributes for TLS auth. Type13and entertrueto enable it. PressEnter.Enable LDAP Group Traversal: Type14if you want to Enable LDAP queries to search through the nested LDAP groups to find users/groups. It is set to false (0) by default. Type1to enable it and pressEnter.Certificate Identity Field: Type15to specify which field from the X.509 certificate is used to identify the user (such as x509-cert-subject, x509-cert-san-email, 509-cert-subject-cn etc.) See Configuring the user attributes for certificate authentication for more details.Certificate-to-LDAP Mapping Attribute: Type16to define the LDAP attribute (for example, CN) that theCertificate Identity Fieldis matched against for user lookup.LDAP Username Attribute: Type17to specify the LDAP attribute (that is, sAMAccountName) used as the user’s login name during authentication.
After the configuration, it might look like the following:
1: LDAP Server(s) = 10.x.x.x:3xx 2: Base DN = CN=Users,DC=piblr,DC=quality 3: Bind DN = CN=administrator,CN=Users,DC=piblr,DC=quality 4: Bind Password = ********** 5: Base Password = ********** 6: Base Group = CN=Users,DC=piblr,DC=qa 7: LDAP/AD UIAPI Group = uiapigrp 8: LDAP/AD Sudo Group = sudogrp 9: LDAP/AD SSH Group = sshgrp 10: LDAP Domain SID = None 11: LDAP USE SSL = False 12: LDAP USE STARTTLS = False 13: Ignore Constraints = false 14: Enable LDAP Group Traversal = True 15: Certificate Identity Field = x509-cert-subject-cn 16: Certificate-to-LDAP Mapping Attribute = cn 17: LDAP Username Attribute = sAMAccountNameWhen done, enter
Qto save the configuration changes.