[Bug 256949] [patch] passwd: remove the hardcoded local / NIS user check

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 02 Jul 2021 23:58:31 +0000
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256949

            Bug ID: 256949
           Summary: [patch] passwd: remove the hardcoded local / NIS user
                    check
           Product: Base System
           Version: Unspecified
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs_at_FreeBSD.org
          Reporter: yuuta_at_yuuta.moe

I posted the patch on GitHub: https://github.com/freebsd/freebsd-src/pull/499

This is my first time contributing to FreeBSD. If I did anything inappropriate,
feel free to let me know and I will improve the next time.

The following is same as the PR message:

This check was first introduced as the process of PAMify passwd back in 2002
(see 5f0ae68). However, passwd already used pam for password modification and
thus the password change process should be handled by specific pam modules.
Therefore, the check to make passwd only available to local or NIS users is
nonsense.

On my systems, passwd works perfectly to change users' LDAP passwords using
nss-pam-ldapd or their Kerberos passwords using pam-krb5 in the ports after
removing this check, so I believe it has nothing to do with passwd.

-- 
You are receiving this mail because:
You are the assignee for the bug.
Received on Fri Jul 02 2021 - 23:58:31 UTC

Original text of this message