login

module
v0.0.0-...-0b12898 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2026 License: AGPL-3.0

README

dmodem-login

dmodem-login is a login and a menu for dial-up callers. When the modems connect, the caller sees dmodem-login first.

dmodem-login asks for a user name and a password. Then it shows the message of the day and a menu of the tasks that the caller can do. These tasks include a bulletin board, PPP dial-up networking, a shell or any other program. dmodem-login runs behind app_dmodem, the Asterisk module of D-Modem. It can run as one process for each call or as one server for all calls.

Welcome to D-Modem.

Connected at 33600 bit/s.

login: alice
Password: ******

Hello alice, on 2026-10-10 at 21:05:09.

The line is down for maintenance on Sunday.

Main menu

  [B] Bulletin board
  [P] PPP (dial-up networking)
  [S] Shell
  [G] Goodbye (hang up)

Selection: ppp
  • Logins from a users file, LDAP, SQL (MySQL/MariaDB, PostgreSQL, SQLite) or system accounts through PAM.
  • An LDAP provider: other programs (the BBS, a wiki, mail) can use the same users and passwords through LDAP (docs/ldap-provider.md).
  • Detection of PPP dialers (AutoPPP and PAP), with a pppd plugin.
  • Support for the classic AOL client when it dials in. dmodem-login emulates AOLnet, SprintNet and Tymnet. Then it connects the line to the AOL host of a BBS.
  • Menus with access by user and by group, guest access and self sign-up.
  • A full-screen menu on ANSI and VT terminals, and a line menu on other terminals. The full-screen menu looks like a blue desktop from the 1990s. The cursor keys move the bar. For slow lines, dmodem-login sends only the changes to the screen.
  • dmodem-login -setup: full screens with pull-down menus and the help text from the sample, to change the configuration. The sysop can use them at the console or on a call.
  • Each item starts with the credentials of the caller and the details of the call: dialed number, caller ID, connect rate and time.
  • Drop files for doors, a list of the last callers, and the transfer of a caller to a different menu.
  • A FreePBX configuration that is ready to use (freepbx/).

dmodem-login was modemmenu before. For an old installation, refer to docs/rename.md.

Quick start

You must have Go 1.22 or later. Do these steps:

make                                                    # with PAM when libpam's headers are there
make install                                            # /usr/local/bin/dmodem-login and the samples
dmodem-login -config /etc/asterisk/dmodem-login.conf -check   # check the configuration
dmodem-login -config /etc/asterisk/dmodem-login.conf -setup   # or change it on a full screen

Then configure an app_dmodem profile to use dmodem-login (docs/running.md).

Documentation

The documentation is also a website, d-modem.github.io/login. Some reference pages on the website come from the code.

docs/ has information about these topics: the build, operation, configuration, authentication, PPP, security and the tests. samples/dmodem-login.conf.sample has all the options.

The D-Modem suite

Repository What it is
D-Modem The open V.92 softmodem: dmodemd, libdmodem and the Asterisk, FreeSWITCH and ARI modules
app The D-Modem app for Android and iOS: a dial-up modem on a SIP call
hardware pico-serial: RP2040 serial adapters and phone-line USB sticks
login dmodem-login: the login, menu and LDAP provider for dial-up callers
bbs A bulletin board for telnet, SSH, TN3270 and modem callers
go3270 A Go library for 3270 terminal servers, used by bbs
brand Logos, colours, type and the naming guide

Licence

AGPL-3.0-only (LICENSE), or a commercial licence from the D-Modem Authors (COMMERCIAL-LICENSE.md). Contributions come with a contributor agreement (CONTRIBUTING.md).

If you change dmodem-login and offer it to callers, section 13 of the AGPL tells you to offer them its source code. To do this, give the location of the source code in a menu item, in the banner or in the message of the day.

Directories

Path Synopsis
Package authd is dmodem-login's auth socket (authd in dmodem-login.conf), for the programs that ask it: dmodem-login's backends (its users file, LDAP, SQL, the system's accounts by PAM) answer whether a password is a user's, so that a BBS's other logins (telnet, SSH, the web) take the same one as the dial-up line.
Package authd is dmodem-login's auth socket (authd in dmodem-login.conf), for the programs that ask it: dmodem-login's backends (its users file, LDAP, SQL, the system's accounts by PAM) answer whether a password is a user's, so that a BBS's other logins (telnet, SSH, the web) take the same one as the dial-up line.
cmd
dmodem-login command
dmodem-login: the login and menu of a dial-up line.
dmodem-login: the login and menu of a dial-up line.
internal
auth
Package auth checks a user's password with dmodem-login's backends (a users file, LDAP, SQL, the system's accounts by PAM), in turn, and changes it in the backend that holds the account.
Package auth checks a user's password with dmodem-login's backends (a users file, LDAP, SQL, the system's accounts by PAM), in turn, and changes it in the backend that holds the account.
confdoc
Package confdoc reads what samples/dmodem-login.conf.sample says of each section and key in its comments: the help, the sample's value and the other values it shows.
Package confdoc reads what samples/dmodem-login.conf.sample says of each section and key in its comments: the help, the sample's value and the other values it shows.
confedit
Package confedit changes dmodem-login.conf as a sysop would in an editor: a key's value on its own line (its comment after it kept), a new key after the last of its section, a new section at the end.
Package confedit changes dmodem-login.conf as a sysop would in an editor: a key's value on its own line (its comment after it kept), a new key after the last of its section, a new section at the end.
config
Package config reads dmodem-login.conf: [sections] of key = value, the values as strings, yes/no, numbers and durations, and the {name} templates of its strings.
Package config reads dmodem-login.conf: [sections] of key = value, the values as strings, yes/no, numbers and durations, and the {name} templates of its strings.
ldapd
Package ldapd is dmodem-login's LDAP provider (ldapd in dmodem-login.conf): an LDAPv3 server over the same backends as the login prompt, so that other programs (the BBS, a wiki, a mail server, a PBX) take the same user names and passwords as the dial-up line.
Package ldapd is dmodem-login's LDAP provider (ldapd in dmodem-login.conf): an LDAPv3 server over the same backends as the login prompt, so that other programs (the BBS, a wiki, a mail server, a PBX) take the same user names and passwords as the dial-up line.
telnet
Package telnet is just enough of a telnet client for a BBS: binary, suppress go ahead and the server's echo, and the terminal type.
Package telnet is just enough of a telnet client for a BBS: binary, suppress go ahead and the server's echo, and the terminal type.
term
Package term is the caller's line: raw reads and writes with timeouts, line editing and echo, the questions that tell what terminal the caller has (ANSI, VT52, an ANSI terminal's identity), PETSCII for a Commodore, and a PPP frame told from typing.
Package term is the caller's line: raw reads and writes with timeouts, line editing and echo, the questions that tell what terminal the caller has (ANSI, VT52, an ANSI terminal's identity), PETSCII for a Commodore, and a PPP frame told from typing.
tui
Package tui is the full screen of an ANSI terminal, drawn in character cells as the setup programs and BBSs of the 1990s drew theirs: a shaded blue desk, windows with shadows over it, a menu bar of pull-down menus at the top and a bar of keys at the foot.
Package tui is the full screen of an ANSI terminal, drawn in character cells as the setup programs and BBSs of the 1990s drew theirs: a shaded blue desk, windows with shadows over it, a menu bar of pull-down menus at the top and a bar of keys at the foot.
Package samples has the sample configuration in the program, for the help of dmodem-login -setup's screens.
Package samples has the sample configuration in the program, for the help of dmodem-login -setup's screens.
tools
confref command
Command confref writes docs/reference.md, the configuration reference: every section and key of dmodem-login.conf, with the help, the sample's value and the other values the sample shows, all read from the comments of samples/dmodem-login.conf.sample.
Command confref writes docs/reference.md, the configuration reference: every section and key of dmodem-login.conf, with the help, the sample's value and the other values the sample shows, all read from the comments of samples/dmodem-login.conf.sample.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL