EGR053 - No Usable Local Account
Agent error code #EGR053 indicates that the knoc's local account mapping gave no account the agent can use for this user. The Knocknoc server maps each user to a local account when it sends the grant, and the error message says why it could not. A user the mapping does not cover is always refused, and the admin portal's health panel warns while any egress grant has been refused this way in the last 24 hours.
Knocknoc checks the mapping's rules when the knoc is saved. This code covers what only shows up for a particular user.
Common causes include:
- None of the ticked sources has a value for the user. The identity provider did not send the attribute a source reads, or the only source ticked is an attribute that a local or LDAP user never has. The message names the sources it tried
- No rule matches the value. A rule limited to one domain sees a user from another, or the answers refuse that kind of login on purpose, such as an Entra guest or a sub-addressed login
- A token is empty for the value.
{dn.uid}on a username that is not an LDAP DN, or{guest}on one that is not a guest account, has nothing to give - The result is not a valid account name. The agent passes the name to the host's account lookup (
idon Linux and OpenBSD, the account lookup on Windows), so it accepts only letters, digits, spaces and_ . @ \ -. It may not start with.,@,-or a space, or end with a space. A username with a;or/in it gives a name like this - The result is root, which is never granted
- The Knocknoc server is older than the agent and sent no account at all. The message then says to update the server
Steps to Resolve
Try the User in the Preview
- Open the knoc and choose Edit mapping beside Local account
- Type the username from the error into Test a username
- The row shows which source and rule decided it, and why it was refused
Adjust the Mapping
- Check the identity provider chosen is the one your users sign in through, and change an answer that refuses a kind of login you want granted
- Have the identity provider send an attribute holding the account, tick Account name from the IdP and name the attribute
- Edit the rules under Advanced configuration when no answer fits
The Local Accounts section of the egress allowlisting guide explains the sources, the questions and the rules.