ESET Online Help

Search English
Select the topic

Create ESA RADIUS clients via API

If you have integrated ESA protection for many Linux/Mac desktop logins via PAM modules, and you need to configure many RADIUS clients in ESA, the following PowerShell script will ease your work.

Prerequisites

1.Configure a RADIUS client in ESA Web Console.

Basic Settings > IP address: Type in the IP address of the computer hosting the PAM module by which the ESA RADIUS server can reach it

Basic Settings > Shared Secret: Type in the same shared secret as you set in your VPN appliance

Authentication > Client Type > Client validates user name and password - use Access-Challenge

2.Enable ESA API and add API credentials for Management API in ESA Web Console.

3.List the IP address and Shared Secret of each VPN appliance in a .csv file as <IP address>;<Shared Secret> pairs.

For example:

192.168.0.11;test1

192.168.0.12;test2

192.168.0.13;test3
 

If executing the script on a different machine then the one hosting the Authentication Server:

1.Make sure ESA certificate is trusted on that computer.

2.Make sure the certificate includes the FQDN of the Authentication Server in the list of alternative DNS names.

How does the script work?

The script reads each row of the .csv file and creates as many RADIUS clients as many rows of IP address and Shared Secret pairs are found. The Authentication section of each RADIUS client will be configured based on the pre-configured RADIUS client.

Sample PowerShell script to create new ESA RADIUS clients via ESA API - we name the file create_radius_clients.ps1