Bug 4759 - pam_smbpass.so: Failed to modify entry for user me.
pam_smbpass.so: Failed to modify entry for user me.
Status: RESOLVED FIXED
Product: Samba 3.0
Classification: Unclassified
Component: Client Tools
3.0.25b
Sparc Solaris
: P3 normal
: none
Assigned To: Samba Bugzilla Account
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-07-03 12:48 UTC by Raul
Modified: 2007-07-03 19:47 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raul 2007-07-03 12:48:57 UTC
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"));
Comment 1 Jeremy Allison 2007-07-03 13:02:22 UTC
Fixed in SVN rev. 23688.
Will be in all future releases.
Thanks !
Jeremy.