Ignore:
Timestamp:
Oct 30, 2009, 9:39:05 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update 3.3 to 3.3.9

Location:
branches/samba-3.3.x/source/passdb
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.3.x/source/passdb/lookup_sid.c

    r274 r342  
    10861086        DATA_BLOB cache_value;
    10871087
    1088         if (!memcache_lookup(NULL, SID_UID_CACHE,
     1088        if (!memcache_lookup(NULL, SID_GID_CACHE,
    10891089                             data_blob_const(psid, ndr_size_dom_sid(psid, 0)),
    10901090                             &cache_value)) {
  • branches/samba-3.3.x/source/passdb/pdb_ldap.c

    r274 r342  
    17011701                char *utf8_dn;
    17021702                size_t converted_size;
     1703                int ret;
    17031704
    17041705                if (!ldap_state->is_nds_ldap) {
     
    17321733
    17331734                if ((ber_printf (ber, "{") < 0) ||
    1734                     (ber_printf (ber, "ts", LDAP_TAG_EXOP_MODIFY_PASSWD_ID, utf8_dn) < 0) ||
    1735                     (ber_printf (ber, "ts", LDAP_TAG_EXOP_MODIFY_PASSWD_NEW, utf8_password) < 0) ||
    1736                     (ber_printf (ber, "n}") < 0)) {
    1737                         DEBUG(0,("ldapsam_modify_entry: ber_printf returns a value <0\n"));
    1738                        ber_free(ber,1);
    1739                        SAFE_FREE(utf8_dn);
    1740                        SAFE_FREE(utf8_password);
    1741                        return NT_STATUS_UNSUCCESSFUL;
     1735                    (ber_printf (ber, "ts", LDAP_TAG_EXOP_MODIFY_PASSWD_ID,
     1736                                 utf8_dn) < 0)) {
     1737                        DEBUG(0,("ldapsam_modify_entry: ber_printf returns a "
     1738                                 "value <0\n"));
     1739                        ber_free(ber,1);
     1740                        SAFE_FREE(utf8_dn);
     1741                        SAFE_FREE(utf8_password);
     1742                        return NT_STATUS_UNSUCCESSFUL;
     1743                }
     1744
     1745                if ((utf8_password != NULL) && (*utf8_password != '\0')) {
     1746                        ret = ber_printf(ber, "ts}",
     1747                                         LDAP_TAG_EXOP_MODIFY_PASSWD_NEW,
     1748                                         utf8_password);
     1749                } else {
     1750                        ret = ber_printf(ber, "}");
     1751                }
     1752
     1753                if (ret < 0) {
     1754                        DEBUG(0,("ldapsam_modify_entry: ber_printf returns a "
     1755                                 "value <0\n"));
     1756                        ber_free(ber,1);
     1757                        SAFE_FREE(utf8_dn);
     1758                        SAFE_FREE(utf8_password);
     1759                        return NT_STATUS_UNSUCCESSFUL;
    17421760                }
    17431761
Note: See TracChangeset for help on using the changeset viewer.