authcha learn

Learn / Foundations

How a device login is decided

Module 2 of 6 · 25 minutes

By the end you can

  • List the five things that decide a device login and say what each one does
  • Explain how the same user gets different rights on different vendors
  • Describe what a jump server rule can and cannot do

Start with the problem

An engineer types ssh router1, a username and a password. Two things must now be decided: may this person in, and what may they do once inside? A senior engineer should get full rights. A junior engineer should only be able to look. A script should get something in between.

Every router vendor writes this down differently. Cisco wants shell:priv-lvl=15. Juniper wants the name of a local template user. Authcha lets you describe the rule once, by kind of person, and translates it for each vendor.

The five pieces

Every device login is decided by these five pieces of configuration, in this order.

  user ──▶ user type ──▶ jump server rule ──▶ effective user type
                                                   │
  network device ──▶ device type (vendor) ─────────┤
                                                   ▼
                                    privilege mapping ──▶ reply attributes
                                                          (priv-lvl, role...)
  1. User. A person or an automation account, with a password, a mobile number and one user type. The seeded types are human-write, human-read, automation and lookingglass. You can add your own, such as noc-l1.
  2. Jump server rule (optional). Which source addresses a user type may log in from. A rule can also downgrade a user: a human-write user connecting from a read-only bastion is treated as human-read. Rules never upgrade anyone.
  3. Network device. Each router, switch or firewall is registered with its IP address and a device type, which is its vendor profile.
  4. RADIUS client. The shared secret the device uses to talk to Authcha.
  5. Privilege mapping. For each vendor, which privilege group each effective user type receives. The group holds the vendor's reply attributes.

Because the mapping is per vendor, one user account works across a mixed fleet. You do not create a separate account for every vendor.

A worked example

Take a user asha of type human-write, logging in to a Cisco switch from the read-only bastion 192.0.2.20.

StepWhat happens
Jump server ruleThe rule for 192.0.2.20 says human-write becomes human-read
Effective user typehuman-read
Device typeThe switch is registered as ios
Privilege mappinghuman-read on ios maps to CISCO-OPER (read-only)
ReplyThe switch receives the read-only privilege for this login

If asha connects from the write bastion 192.0.2.30 instead, the rule keeps human-write, the mapping gives CISCO-ADMIN, and the switch receives shell:priv-lvl=15. Same person, same password, different rights, decided by where the login came from.

What Authcha ships with

Authcha ships privilege presets for 35 vendors, and mappings for the four seeded user types on the common ones. For example, human-write on Cisco IOS maps to CISCO-ADMIN, on Juniper to a local template user raduser5, and on Nokia SR OS to Nokia-Admin. Review these before go-live and adjust them to your own privilege model. Changes take effect on the next login with no restart.

LabHands-on

  1. Open the live demo as demo-viewer (password Authcha-View-2026).
  2. Open Users. Pick any user and note its user type.
  3. Open User Types and find the four seeded types.
  4. Open Jump Servers. Find the setting that says whether jump servers are needed, and note whether it is Required or Optional.
  5. Open Devices. Pick a device and note its device type.
  6. Open the Auth Simulator. Enter a username, a device IP and a source IP from the lists you just viewed. Read the four steps it shows and the reply attributes at the end. The simulator never sends a code and never changes any counter.
  7. Change only the source IP and run it again. Did the effective user type change?

Check yourselfQuiz

1What does a jump server rule never do?
2Why does one user account work across Cisco, Juniper and Nokia devices?
3A new installation has jump servers set to Optional. A user logs in from an address with no rule. What happens?
4Which piece holds the shared secret between a device and Authcha?
5Where can you check what a login would do without sending a code?

Cheat sheetKeep this

  • The five pieces: user, jump server rule, device, RADIUS client, privilege mapping.
  • Seeded user types: human-write, human-read, automation, lookingglass.
  • Rules lower rights, never raise them.
  • Jump servers: Optional on new installs, Required if rules already existed.
  • Test without side effects: Try It → Auth Simulator.
  • Read more: Getting started.