Date: Mon, 24 Nov 2003 12:13:05 +0100 From: Clement Laforet <sheepkiller@cultdeadsheep.org> To: Yuri Khotyaintsev <yuri@irfu.se> Cc: freebsd-current@freebsd.org Subject: Re: pam_ldap and passwd Message-ID: <20031124121305.3a824f3b.sheepkiller@cultdeadsheep.org> In-Reply-To: <200311241039.16134.yuri@irfu.se> References: <200311241039.16134.yuri@irfu.se>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 24 Nov 2003 10:39:16 +0100
Yuri Khotyaintsev <yuri@irfu.se> wrote:
> I have a server where I use pam_ldap and nss_ldap. Everything works
> fine except for changing passwords:
>
> [user@ice][~]# passwd
> passwd: Sorry, `passwd' can only change passwords for local or NIS
> users.
>
> As I understand pam_ldap supports changing LDAP passwords. Is it
> supposed to work on FreeBSD ?
according to src/usr.bin/passwd/passwd.c:
...
/* 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.");
}
...
If you change default: behaviour you CAN change your password. Currently,
passwd is not fully PAM-aware.
clem
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031124121305.3a824f3b.sheepkiller>
