Re: Replacing passwd?

From: Dan Nelson <dnelson_at_allantgroup.com>
Date: Sat, 20 Nov 2004 20:07:45 -0600
In the last episode (Nov 20), Dick Davies said:
> * Dan Nelson <dnelson_at_allantgroup.com> [1110 17:10]:
> > In the last episode (Nov 18), Ivan Voras said:
> > > I've setup pam_ldap and nss_ldap and samba3 and smbldap, and it works
> > > fine, but it would be nice to replace /usr/bin/passwd with
> > > smbldap-passwd (which changes both NTLM and Unix password fields in
> > > LDAP, while passwd is unaware of LDAP, at least according to man
> > > page).  Is there a clean way of doing it so I don't have to replace
> > > it by hand after each installworld?
> > 
> > passwd just uses PAM to set passwords
> 
> When did that come in? I can't get passwd(1) to change an ldap password, I get:
> 
> rasputnik_at_eris:rasputnik$ passwd
> passwd: Sorry, `passwd' can only change passwords for local or NIS users.
> rasputnik_at_eris:rasputnik$ uname -a
> FreeBSD eris 5.3-STABLE FreeBSD 5.3-STABLE #4: Mon Oct 25 18:03:11 BST 2004     root_at_eris:/usr/obj/usr/src/sys/ERIS  i386
> rasputnik_at_eris:rasputnik$ 
> 
>  - this is an nss_ldap nsswitched account, logged in over ssh (pam_ldap auth).

Weird.  There's definitely a lot of PAM code in passwd.c.  What happens
if you comment out the errx() function that prints that error (line
124)?

-- 
	Dan Nelson
	dnelson_at_allantgroup.com
Received on Sun Nov 21 2004 - 01:07:46 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:22 UTC