Openldap Radius

Published
Length
3 min read

Luis Felipe Dias

All posts

You set up an openldap radius workflow by linking a RADIUS service to your directory. The RADIUS service checks user names and passwords against your directory records. Many teams use this setup to manage VPN, Wi-Fi, and server logins. Still, teams often grant broad group roles to make this setup work fast. Broad roles give users too much power once they log in to a system. How an openldap radius workflow checks user logins A user starts by trying to log in to a switch, VPN, or server. That d

Blast Radius Reduction: the complete guide

Architecture patterns, implementation strategies, and security best practices. Delivered to your inbox.

Free white paper. No spam. Unsubscribe anytime.

You set up an openldap radius workflow by linking a RADIUS service to your directory. The RADIUS service checks user names and passwords against your directory records. Many teams use this setup to manage VPN, Wi-Fi, and server logins. Still, teams often grant broad group roles to make this setup work fast. Broad roles give users too much power once they log in to a system.

How an openldap radius workflow checks user logins

A user starts by trying to log in to a switch, VPN, or server. That device acts as a client and sends a login request to the RADIUS server. The RADIUS server does not store user passwords on its own local disk. Instead, it acts as a middle step between the device and the directory.

The RADIUS server connects to the directory using a read account or a bind check. It searches the directory tree to find the right user record and group list. If the password matches the directory record, the RADIUS server sends back an accept message. This message can also carry basic network attributes like a VLAN ID or role name.

Teams also use this setup to add two-factor checks to old tools. A server or database might only understand simple directory binds or RADIUS packets. By chaining both services, the team can check a password and a token code together. The directory holds the user profile while the RADIUS service checks the second factor.

How directory groups map to server roles

During the login check, the RADIUS server reads the group list from the directory. It compares that group list against its own policy rules before sending a reply. For example, a rule might check if an engineer belongs to the ops group. If the match succeeds, the server grants admin rights on the target device.

Keeping these group rules clean takes constant work from the ops team. Over time, teams add more devices and create wider groups to save time. Soon, a single directory group grants login rights to dozens of critical servers and databases. A user who needs to run one safe check gets full shell or admin rights.

Blast Radius Reduction: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

What directory and RADIUS checks miss after login

An openldap radius setup solves the problem of central password and token checks. You do not need to create local user accounts on every router or Linux host. When someone leaves the company, you disable one directory record to block new logins. This stops unauthorized people at the front door of your network.

Still, both protocols stop working the moment the login check finishes. Neither service watches what the user runs inside the database or server session. If an engineer logs in with a broad role, they can run destructive queries. They can also read raw tables that hold emails, phone numbers, and card numbers.

Standard RADIUS accounting only logs when a session starts, stops, and how many bytes moved. It cannot inspect individual SQL statements, shell commands, or API requests in flight. It also cannot mask sensitive fields like national IDs before results reach the user screen. To control live actions, teams need controls that work at the command and query level.

Add runtime guardrails and masking beside your databases and APIs

Login rules, role grants, and CI checks govern who connects to your stack. Yet any allowed script, engineer, or AI agent still runs commands with the full scope of its role. For workloads on Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes, SSH, or internal HTTP services, hoop.dev sits beside the service as an open-source proxy, a sidecar for your database or API.

Before a query runs, hoop.dev guardrails check the statement against your rules. An AI Analyzer you configure can score intent or hold risky calls for human review. Next, hoop.dev data masking rewrites sensitive fields in responses, and each verdict is logged per listener. Explore the MIT-licensed project on GitHub.

Frequently asked questions

Linking them lets network devices and VPNs check logins against one central user list. You can manage passwords and group memberships in one place instead of on each device.

Does RADIUS encrypt passwords when talking to the directory?

RADIUS encrypts passwords on the wire, and you should use TLS for the directory link. Using TLS between the RADIUS server and the directory keeps user lookups private.

Can OpenLDAP and RADIUS mask sensitive data in database queries?

No, they only verify who can log in at the start of a session. They do not inspect queries or rewrite fields like emails or card numbers in results.

Save the open-source gateway.

hoop is MIT-licensed infrastructure for controlling how AI agents reach production data. Star hoophq/hoop so you can inspect it, deploy it, or share it when your team starts governing agent access.