- Asterisk usually runs as its own user. That user must be able to read the users file and dmodem-login.conf, and no other user must be able to read them. dmodem-login.conf can contain database and LDAP passwords.
- If dmodem-login runs as root, the Asterisk of app_dmodem also runs as root.
Root is necessary for
auth = systemwith local accounts, or forrun_as. run_asnever runs a program as root, or as an account with a uid below[system] min_uid.run_as = {user}works only for logins withauth = system. A name in the users file, SQL or LDAP can be the same as the name of a system account. That does not make the caller the owner of the system account.- Drop files go in a new 0700 directory for each run. dmodem-login does
not follow symbolic links when it writes them. Make sure that only root
can write to
dropfile_dir. - dmodem-login gives the password to the selection, unless
pass_password = no. In the environment, the same user and root can read the password (/proc/PID/environ). If the program reads the session file, usesession_fileto keep the password out of the environment. - Do not put
{password}in a command line. Other users can see the arguments of all processes. UseMODEM_PASSWORDor the session file. - On many networks, it is possible to forge the caller ID. With
[number] user, any caller who presents the number logs in. Use this feature only for numbers that your own network can confirm. - With the signup setting
pending = yes(the default), new accounts stay locked until you unlock them. Withpending = no, each caller gets an account and access to all items that have nousersorgroups. Giveguest = yesto public items, and give the other items to groups only. - A signup can make accounts in SQL, LDAP and the system (refer to
New accounts in each backend).
The account of
[ldap] add_bind_dncan add entries: give it access to theadd_dnbranch only.[system] create_commandruns as the user of dmodem-login, which is root foruseradd. Usepending = yeswith these backends, and keep the password ofadd_bind_dnout of a configuration file that other users can read. - The socket of a server is only as safe as its permissions. Each user
who can connect to it gets a login prompt. With
trust_user, that user can log in as any user that they name. Usesocket_modeandsocket_groupto limit the socket to Asterisk or the front menu. dmodem-login refusestrust_useron atcp:listener, and with asocket_modethat lets other users connect. - The auth socket tells if a password is correct. Thus each user who can
connect to it can use it to guess passwords. dmodem-login sends each
"wrong password" answer
fail_delaylate. Limit the socket to the user of the BBS (socket_mode0660 or 0600,socket_group,allow_users). dmodem-login refuses a mode that gives access to other users, and it also refuses TCP. - The LDAP provider (
[ldapd]) also tells if a password is correct, and it can listen on a network. Each failed bind waits forfail_delay. Withrequire_tls = yes(the default), a password from a network must go through TLS. Do not open the LDAP ports to the internet if it is not necessary.bind_passwordmust be a hash. Refer to the LDAP provider. - The PAP of AutoPPP sends the password as clear text on the line, as all PAP does. On a SIP trunk, use SRTP or a network that you trust.
- The log (by default, the auth facility of syslog) records logins, failures and selections. It never records passwords. dmodem-login never writes the log to the line, because the caller can see the line.
Repository navigation
Security: D-Modem/login
Security
docs/security.md
-
run_as = {user} maps names from any login back end to system accounts; drop files follow linksGHSA-cm65-r4wv-r7ff published
Dec 1, 2026 by Neo-DesktopHigh
Learn more about advisories related to D-Modem/login in the GitHub Advisory Database