When using the pam_smbpass.so module to update the users LDAP,NT/LM passwords via the passwd command, it successfully updates both passwords, but still reports a failure. Reason: on line passdb/pdb_ldap.c:ldapsam_modify_entry:1408 ber_printf (ber, "N}"); N is an invalid option for ber_printf(); Patch: --- ../samba-3.0.25b.orig/source/passdb/pdb_ldap.c Tue Jul 3 11:38:58 2007 +++ ./source/passdb/pdb_ldap.c Wed Apr 25 03:39:00 2007 @@ -1611,7 +1611,7 @@ ber_printf (ber, "{"); ber_printf (ber, "ts", LDAP_TAG_EXOP_MODIFY_PASSWD_ID, utf8_dn); ber_printf (ber, "ts", LDAP_TAG_EXOP_MODIFY_PASSWD_NEW, utf8_password); - ber_printf (ber, "n}"); + ber_printf (ber, "N}"); if ((rc = ber_flatten (ber, &bv))<0) { DEBUG(0,("ldapsam_modify_entry: ber_flatten returns a value <0\n"));
Fixed in SVN rev. 23688. Will be in all future releases. Thanks ! Jeremy.