Date: Thu, 7 Aug 2003 11:53:32 +0200 From: thomas-ml@deniau.org (Thomas Deniau) To: freebsd-questions@freebsd.org Subject: Re: nss_ldap in -CURRENT Message-ID: <1fzbkwe.1t3pdsymcudlkM%thomas-ml@deniau.org> In-Reply-To: <1fzbk34.gz3hse1yzumh3M%thomas-ml@deniau.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> But when I try to change a pass for a LDAP user I get : > passwd: Sorry, `passwd' can only change passwords for local or NIS > users. That's actually strange..... >From /usr/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."); } So it doesn't want to change passwords for non-local users. However, if you take a look at this source file, after these lines come a bunch of PAM calls... So, is it safe to comment out the errx and recompile passwd ? -- Thomas Deniau "Unix is user friendly. It's just selective when choosing friends."
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1fzbkwe.1t3pdsymcudlkM%thomas-ml>