Replacing passwd?

Dan Nelson dnelson at allantgroup.com
Thu Nov 18 09:10:25 PST 2004


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, so the cleanest way would be to
have a pam_smb module that does the password changes, and add it to
/etc/pam.d/passwd , or maybe tell have pam_ldap do it.

-- 
	Dan Nelson
	dnelson at allantgroup.com


More information about the freebsd-current mailing list