Commit 4b3f9306 authored by Daniel Black's avatar Daniel Black

MDEV-31336: pam_user_map : not supporting username or groupname containing @ character

Add @ to the allowed characters in a username.
parent b884216b
......@@ -216,7 +216,7 @@ int pam_sm_authenticate(pam_handle_t *pamh, int flags,
}
from= s;
skip(isalnum(*s) || (*s == '_') || (*s == '.') || (*s == '-') ||
(*s == '$') || (*s == '\\') || (*s == '/'));
(*s == '$') || (*s == '\\') || (*s == '/') || (*s == '@'));
end_from= s;
skip(isspace(*s));
if (end_from == from || *s++ != ':') goto syntax_error;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment