]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commit
uid: add /etc/shadow and check_password function
authorTulio A M Mendes <[email protected]>
Thu, 11 Jun 2026 02:53:47 +0000 (23:53 -0300)
committerTulio A M Mendes <[email protected]>
Thu, 11 Jun 2026 02:53:47 +0000 (23:53 -0300)
commit1e959cd634fb755ea68fa78d67b7f4a61112d526
tree7708de34c44baa1e77014abc5ad073686a578a99
parent33e3d51617600281b8383198b2b923a547cf70c2
uid: add /etc/shadow and check_password function

Implement UID Infrastructure: autenticação real (completed).

Added /etc/shadow file with basic entries (root:root, daemon:*, nobody:*).
Updated Makefile to include /etc/shadow in initrd.
Added check_password() function in pwd_grp.c to verify passwords against /etc/shadow.
Added check_password() declaration in pwd.h.
Password verification uses plaintext comparison for now (TODO: add SHA256/crypt).
Locked accounts (passwd starts with '*' or '!') are rejected.

Test: make test-battery PASS (157/157)
Makefile
rootfs/etc/shadow [new file with mode: 0644]
user/ulibc/include/pwd.h
user/ulibc/src/pwd_grp.c