--- source/passdb/pdb_ldap.c Sat Aug 18 19:49:09 2007 +++ source/passdb/pdb_ldap.c.orig Sat Aug 18 19:51:58 2007 @@ -1792,7 +1792,7 @@ return NT_STATUS_UNSUCCESSFUL; } - if (mods == NULL) { + if ((mods == NULL) && (lp_ldap_passwd_sync()!=LDAP_PASSWD_SYNC_ONLY)) { DEBUG(4,("ldapsam_update_sam_account: mods is empty: nothing to update for user: %s\n", pdb_get_username(newpwd))); SAFE_FREE(dn);