9 Commits
Author SHA1 Message Date
Claude 9d5cdfa76e Signup: make the new account in each login backend
A signup made the account in the users file only. Now it makes the
account in each backend of [general] auth that is set up to make
accounts: the users file, SQL ([sql] insert_query), LDAP ([ldap] add_dn,
added as add_bind_dn, the password set by Password Modify or unicodePwd
for AD) and system accounts ([system] create_command, with a useradd
sample script). [signup] backends limits the list.

Before the account is made, each backend checks that the name is free.
If one backend fails, the accounts already made are taken back
(delete_query, entry delete, remove_command). With pending = yes, each
backend must lock the account, or dmodem-login does not start.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRfuh3h6uNuHtaugux
2026-11-24 16:56:35 +00:00
Claude 0a433df712 Connect message: show the modulation, protocol and compression
dmodem-login reads DMODEM_MODULATION, DMODEM_PROTOCOL and
DMODEM_COMPRESSION from D-Modem (and the same keys from a session
header). New placeholders: {modulation}, {protocol}, {compression},
{link} and {connection}. The default connect message is now
"Connected at {connection}.", for example
"Connected at 33600 bit/s (V.34, LAPM/V.42bis).". Without the new
values, {connection} is the same as {speed}.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRuPnyTxjwaHSUozaW
2026-11-24 12:59:35 +00:00
Claude 3b86b397ad Rename modemmenu to dmodem-login, the repository to D-Modem/login
The program is dmodem-login (like dmodemd and dmodem-ari), the Go module
github.com/D-Modem/login, the site d-modem.github.io/login.  Its files,
units, sockets, PAM service, pppd plugin, environment (DMODEM_LOGIN_*)
and nftables tables follow.

An old installation keeps working:
- make install puts a modemmenu link to dmodem-login, and a modemmenu.so
  link to the plugin, which also takes its old modemmenu-socket option
- the default configuration, users file, state_dir and PAM service fall
  back to modemmenu's when only those are there (config.Legacy)

docs/rename.md (Simplified Technical English) lists the new names and
what an old installation must change (the -serve socket, the units, the
/etc/modemmenu files, the old nftables tables).  CI's bbs job moves a
bbs that still imports github.com/D-Modem/menu to the new path.  The
pppd plugin builds clean with -Wall -Wextra on GCC and Clang.

COMMERCIAL-LICENSE.md and CONTRIBUTING.md (legal text) are not changed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTD8BSptdpaUWGcs65
2026-11-23 05:04:16 +00:00
Claude 68ad6a26e0 docs: rewrite the configuration page in Simplified Technical English
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRRR4BV2CBsQMqfrT6
Signed-off-by: Claude <noreply@anthropic.com>
2026-11-14 10:31:49 +00:00
Claude e92a00338d modemmenu: pass the caller's SIP address (DMODEM_PEER) on to the BBS
app_dmodem's DMODEM_PEER (the address a call came from by SIP), from the
environment or the session header, is now {peer} and MODEM_PEER: in the
selection's environment and session file, and in the header written to a
BBS behind the menu, which places a caller without a caller ID by it
(D-Modem/bbs#45, D-Modem/D-Modem#108).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSVXNfvCFNooYkqeMp
2026-11-09 14:09:01 +00:00
Claude e54bb9c1c6 Full-screen menu for ANSI callers, and modemmenu -setup for sysops
The menu comes up full screen on a terminal that can have it (ANSI, or a
VT that said what it is, 40x14 at least): the items in a window on a
blue desk, a bar moved with the cursor keys, an item's key starting it
at once, the welcome at the top of the window, the motd in a box, the
user, rate, clock and minutes left on the bars.  Others get the menu of
lines; the login stays lines, so AutoPPP and the AOL client sniffing
are as they were.  [menu] fullscreen = auto|no, item help =.

modemmenu -setup changes modemmenu.conf on full screens in the style of
the 1990s BBS setup programs (the bbs's setup screens, ported): pull-down
menus, cascading windows, the sample's help of each key, values typed in
a box or picked from a list.  Saving checks the file first and keeps its
comments and order.  An [item] of mode = setup (users or groups needed)
gives it to a sysop who calls in.

- internal/tui: the screen buffer and its diff rendering (from bbs
  textui/desk.go), UTF-8, code page 437, the VT line set and ASCII,
  keys, windows, pull-downs and dialogs
- internal/confedit: changes to the file by line, comments kept
- internal/confdoc: the sample's help, from tools/confref (shared)
- term: a UTF-8 probe for ANSI terminals; [terminal] charset
- below 9600 bit/s the desk is plain blue, cleared in a few bytes
- the sample: comments for keys that took a neighbour's help
- tests: the line menu's tests ask for fullscreen = no; one handoff
  test waits for the server's last log line

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUujUBmci66AZkngmh
2026-11-09 07:53:45 +00:00
Claude 80d0fda167 Split the code into packages: cmd/modemmenu, internal/*, authd
All of modemmenu was one package main in the repository's root.  It is
now one module with the program and the pieces it is made of apart:

  cmd/modemmenu/     the program (the login, the menu, access, limits,
                     the selections, -serve, AutoPPP, drop files, the
                     auth socket's server)
  internal/config/   modemmenu.conf's sections and keys, {name} templates
  internal/term/     the caller's line, terminal detection, PETSCII
  internal/auth/     the backends and password changes
  internal/telnet/   the telnet client of mode = telnet items
  authd/             the auth socket's protocol and a client, for a BBS
                     to import (bbs's internal/menuauth is a copy of it)
  samples/           the .conf, .users, .pam and .service samples

make builds ./cmd/modemmenu and installs the samples from samples/; the
docs, confref and the site's reference follow.  The tests are where
their code is, none lost.  TestSampleHasEveryKey now reads the keys of
internal/ too (and the exported Get, Bool...: it would have found none).
.gitignore's "modemmenu" ignored cmd/modemmenu/ as well: it is
/modemmenu now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRbjf74j8oq9R3PXhA
2026-11-06 03:12:02 +00:00
NeoandClaude bdc84b3ca7 Site: docs/ as d-modem.github.io/menu, with a configuration reference (#8)
docs/reference.md lists every section and key of modemmenu.conf with its
help, the sample's value and the other values the sample shows, read
from the comments of modemmenu.conf.sample by go run ./tools/confref.
TestSampleHasEveryKey fails when the code reads a key the sample doesn't
show: max_input and an item's terminal were missing and are now in it.
The docs index and Configuration link the reference.

mkdocs.yml builds docs/ and the README with brand's shared theme
(Zensical); .github/workflows/pages.yml calls brand's site workflow,
which also fails when docs/reference.md is out of date.


Claude-Session: https://claude.ai/code/session_01B82eRSqjp9Pn2KBr9N9LAn

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-05 17:46:56 -08:00
Claude 676d1f7e2d README as a landing page; the details move to docs/
Building, running from app_dmodem, configuration, authentication, PPP,
security notes and the tests move from the 827-line README into docs/,
unchanged but for their heading levels and relative links. The README
keeps a summary, the sample session, features, a quick start, the
suite's repositories and the licence. D-Modem-RE becomes D-Modem.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSqjp9Pn2KBr9N9LAn
2026-11-05 10:44:33 +00:00