passwd: what problem to allow to try PAM?
Sergey Matveychuk
sem at FreeBSD.org
Mon Mar 19 08:53:22 UTC 2007
Hi!
passwd(1) now disallow changing a password via PAM. Why? Is there some
hidden reason like a security one or something I missed?
Here is code:
/* check where the user's from */
switch (pwd->pw_fields & _PWF_SOURCE) {
case _PWF_FILES:
fprintf(stderr, "Changing local password for %s\n",
pwd->pw_name);
break;
case _PWF_NIS:
fprintf(stderr, "Changing NIS password for %s\n",
pwd->pw_name);
break;
default:
/* XXX: Green men ought to be supported via PAM. */
errx(1,
"Sorry, `passwd' can only change passwords for local or NIS
users.");
}
A comment about green men discouraged, PAM calls are bellow.
--
Dixi.
Sem.
More information about the freebsd-hackers
mailing list