From 4b3f93063958834e3d55089d23d16ad242430bf8 Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Mon, 10 Jul 2023 11:40:00 +1000 Subject: [PATCH] MDEV-31336: pam_user_map : not supporting username or groupname containing @ character Add @ to the allowed characters in a username. --- plugin/auth_pam/mapper/pam_user_map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/auth_pam/mapper/pam_user_map.c b/plugin/auth_pam/mapper/pam_user_map.c index fa8d9ae08c16f..5dda97a20cdf8 100644 --- a/plugin/auth_pam/mapper/pam_user_map.c +++ b/plugin/auth_pam/mapper/pam_user_map.c @@ -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;