This is a multi-part message in MIME format.
--------------070503090603020004040402
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Lauri Jesmin wrote:
> Hello, i updated my samba PDC and BDC to samba 3.0.7, did schema updates
> and so on, so it mostly works, but seem's it broke smbpasswd -x:
>
>>smbpasswd -x zz077


There's a typo in pdb_ldap.c in function ldapsam_delete_entry causing
this problem. It can be fixed with the attached patch.

People usually don't hit this problem since they use "ldap delete dn =
yes" in their smb.conf.

Igor

--------------070503090603020004040402
Content-Type: text/x-patch;
name="samba-3.0.7-timestamp.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="samba-3.0.7-timestamp.patch"

--- source/passdb/pdb_ldap.c.orig 2004-08-19 09:39:13.000000000 -0400
+++ source/passdb/pdb_ldap.c 2004-09-16 13:51:49.000000000 -0400
@@ -300,7 +300,7 @@

for (attrib = attrs; *attrib != NULL; attrib++) {
if ((StrCaseCmp(*attrib, name) == 0) &&
- !(StrCaseCmp(*attrib,
+ (StrCaseCmp(*attrib,
get_userattr_key2string(ldap_state->schema_ver, LDAP_ATTR_MOD_TIMESTAMP)))) {
DEBUG(10, ("ldapsam_delete_entry: deleting attribute %s\n", name));
smbldap_set_mod(&mods, LDAP_MOD_DELETE, name, NULL);

--------------070503090603020004040402--