Map new SQL users to explicitly selected existing Linux accounts

This commit is contained in:
2026-12-01 12:41:25 +00:00
parent b131dcc9d6
commit 53e6c27960
12 changed files with 166 additions and 12 deletions

View File

@@ -40,3 +40,38 @@ Use an isolated retro LAN, preferably HTTPS for web administration. Classic NetW
## Testing / release gate
`make check-identity` tests local SQLite allocation and C linker wrappers, including real Linux DAC separation when run as root, and mocked Bindery API interactions. `make check-directory` and `node tests/test_directory_ui.cjs` verify the existing wizard. These do not prove NetWare login or trustee behavior. Required end-to-end acceptance on a test installation: create two users, verify no entries in `/etc/passwd`, log in from XP and DOS, test separate private files, EVERYONE membership, trustees, password change, disable/enable, reconnect after restart, deletion and no UID reuse. Test existing real Linux account login and permissions too. Audit numeric UID/GID use in upstream `nwconn`, `nwbind`, quota, print and trustee paths. Full source tree and CivetWeb dev headers were not available for this build in the development environment. No NDS login can be tested until a real NDAP implementation is available.
## 0.9.8-4: SQL users mapped to an existing Linux account
The default frontend action is now **SQL-Benutzer mit Linux-Konto**. Select an
existing local account explicitly; its name, UID and primary GID are shown.
Eligible accounts have UID 1000–59999, nonzero GID and names up to 19 characters
(the Bindery UNIX_USER field limit). Root, nobody and reserved virtual aliases
are excluded. No account is automatically selected or created.
SQLite adds `local_mappings(name, unix_name, uid, gid, created_at)` alongside the
unchanged virtual identities table. Linux passwords and NetWare passwords are
not stored in this mapping table. NetWare passwords remain in Bindery.
The Bindery maps directly to the selected real Unix name; native Unix account
lookup and supplementary groups are used at runtime. Stored UID/GID are audit
snapshots, not an alternative NSS database or an automatic account migration.
Account changes are reported by identity inspection; administrators must not
recycle accounts or UIDs behind active mappings.
Several NetWare users can intentionally share one Linux account. They then
share Unix file ownership and filesystem permissions. NetWare trustees can
restrict NetWare access additionally but do not grant rights to Samba.
No directories, ownership, ACLs, Linux groups, Samba configuration or passwords
are changed by user creation. Old virtual identities continue working unchanged.
The API requires the selected UID/GID and an explicit shared-rights confirmation.
SQL reservation precedes Bindery creation; failures retain the reservation and
must be investigated, not retried blindly. Live Bindery readback verifies the
new mapping. Legacy direct remapping is blocked for SQL-managed local mappings;
no automatic migration of existing accounts or owned files is provided.
Tests cover mocked API errors and shared mappings, real isolated HTTP/SQLite/
Bindery creation of two users mapped to one local account, and the actual mobile
Chromium selection dialog with mocked API. Simultaneous Samba/NetWare writes and
file locking are not validated; a real XP login with newly mapped users remains
a client acceptance test.