Files
login/modemmenu.pam.sample
T
Claude 329cf02304 Callers change their passwords: mode = passwd
A built-in item: the current password (checked against the backends
again, which finds the one that holds the account), then the new one
twice (min_password, not the current one, three tries).  The password
changes where the account is:

- file: the user's line rewritten in place under the lock signups take,
  a note after the hash kept; bcrypt, or text with hash = plain
- sql: update_query with update_args (user, password, old_password) and
  update_hash (bcrypt, or none for a query that hashes it)
- ldap: Password Modify (RFC 3062) bound as the user, the server's own
  policy and hashing applying
- system: PAM's password stack; its messages (a quality module's
  reasons) go to the caller

A refused password leaves the old one; the selections after a change
get the new one.  The PAM sample has the password stack, and says that
pam_unix applies no quality checks for root (pam_pwquality with
enforce_for_root does).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RvtV8Dg9kqRaakbTEfyH3f
2026-10-15 02:30:28 +00:00

16 lines
642 B
Plaintext

# /etc/pam.d/modemmenu - the PAM service of modemmenu's auth = system
#
# pam_unix checks another user's password only for root: run modemmenu
# (Asterisk) as root for local accounts.
#
# The password stack is for mode = passwd items. Run as root, pam_unix
# applies no quality checks of its own (minlen and the like are not for
# root): for a policy, put pam_pwquality before it with enforce_for_root,
# e.g. instead of common-password:
#
# password requisite pam_pwquality.so retry=1 minlen=12 enforce_for_root
# password required pam_unix.so yescrypt use_authtok
@include common-auth
@include common-account
@include common-password