EGR053 - No Usable Local Account
Uploading...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:
{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 (id on 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
Adjust the Mapping
The Local Accounts section of the egress allowlisting guide explains the sources, the questions and the rules.