Siavash Sameni
|
d2fdc9c6ae
|
Scaffold btest-server-pro: multi-user, quotas, LDAP
New binary `btest-server-pro` (build with --features pro):
cargo build --release --features pro --bin btest-server-pro
Modules:
- server_pro/user_db.rs: SQLite user database with usage tracking
- Users table (username, password_hash, quotas, enabled)
- Usage table (daily bytes per user)
- Sessions table (per-connection tracking)
- server_pro/quota.rs: bandwidth quota enforcement
- Per-user daily/weekly limits
- Per-IP connection limits
- Max test duration
- server_pro/ldap_auth.rs: LDAP/AD authentication via ldap3
- Simple bind authentication
- Service account search for user DN
CLI flags: --users-db, --ldap-url, --ldap-base-dn, --ldap-bind-dn,
--ldap-bind-pass, --daily-quota, --weekly-quota, --max-conn-per-ip,
--max-duration
Binary sizes: btest=1.8MB, btest-server-pro=3.4MB (SQLite bundled)
Standard btest binary unchanged, 58 tests pass.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
2026-04-01 14:33:36 +04:00 |
|