Skip to content

Commit

Permalink
MDEV-31336: pam_user_map : not supporting username or groupname conta…
Browse files Browse the repository at this point in the history
…ining @ character

Add @ to the allowed characters in a username.
  • Loading branch information
grooverdan committed Jul 14, 2023
1 parent b884216 commit 4b3f930
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/auth_pam/mapper/pam_user_map.c
Expand Up @@ -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;
Expand Down

0 comments on commit 4b3f930

Please sign in to comment.