]> git.ipfire.org Git - thirdparty/shadow.git/commit
passwd: add UPN validation support master
authorIker Pedrosa <ipedrosa@redhat.com>
Tue, 2 Jun 2026 13:18:31 +0000 (15:18 +0200)
committerAlejandro Colomar <foss+github@alejandro-colomar.es>
Thu, 18 Jun 2026 14:24:36 +0000 (16:24 +0200)
commit053efcab8daa3a53e7825b2167bd55c7f104e36b
tree4394173096605fe1c0b48297bfa9f1a9ce3707e3
parent1edd0d08f8d055a96624c6448fe4f7235c665d19
passwd: add UPN validation support

Add User Principal Name (UPN) validation to allow passwd command to
accept usernames in user@domain.com format. Currently, passwd will
accept both traditional usernames and UPN format.

Fixes: 326889ca (2024-10-22; "Fix coverity unbound buffer issues")
Closes: <https://github.com/shadow-maint/shadow/issues/1626>
Reported-by: @nooreldeenmansour
Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
Reviewed-by: Alejandro Colomar <alx@kernel.org>
src/passwd.c