Ignore:
Timestamp:
May 24, 2009, 7:17:10 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update Samba 3.3 to 3.3.1

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

Legend:

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

    r206 r221  
    12501250                        pdb_get_profile_path(sampass));
    12511251
    1252         if (asprintf(&temp, "%li", pdb_get_logon_time(sampass)) < 0) {
     1252        if (asprintf(&temp, "%li", (long int)pdb_get_logon_time(sampass)) < 0) {
    12531253                return false;
    12541254        }
     
    12581258        SAFE_FREE(temp);
    12591259
    1260         if (asprintf(&temp, "%li", pdb_get_logoff_time(sampass)) < 0) {
     1260        if (asprintf(&temp, "%li", (long int)pdb_get_logoff_time(sampass)) < 0) {
    12611261                return false;
    12621262        }
     
    12661266        SAFE_FREE(temp);
    12671267
    1268         if (asprintf(&temp, "%li", pdb_get_kickoff_time(sampass)) < 0) {
     1268        if (asprintf(&temp, "%li", (long int)pdb_get_kickoff_time(sampass)) < 0) {
    12691269                return false;
    12701270        }
     
    12741274        SAFE_FREE(temp);
    12751275
    1276         if (asprintf(&temp, "%li", pdb_get_pass_can_change_time_noncalc(sampass)) < 0) {
     1276        if (asprintf(&temp, "%li", (long int)pdb_get_pass_can_change_time_noncalc(sampass)) < 0) {
    12771277                return false;
    12781278        }
     
    12821282        SAFE_FREE(temp);
    12831283
    1284         if (asprintf(&temp, "%li", pdb_get_pass_must_change_time(sampass)) < 0) {
     1284        if (asprintf(&temp, "%li", (long int)pdb_get_pass_must_change_time(sampass)) < 0) {
    12851285                return false;
    12861286        }
     
    13621362                if (need_update(sampass, PDB_PASSLASTSET)) {
    13631363                        if (asprintf(&temp, "%li",
    1364                                 pdb_get_pass_last_set_time(sampass)) < 0) {
     1364                                (long int)pdb_get_pass_last_set_time(sampass)) < 0) {
    13651365                                return false;
    13661366                        }
     
    14241424                        SAFE_FREE(temp);
    14251425
    1426                         if (asprintf(&temp, "%li", badtime) < 0) {
     1426                        if (asprintf(&temp, "%li", (long int)badtime) < 0) {
    14271427                                return false;
    14281428                        }
     
    59425942                         sid_string_tos(sid));
    59435943        smbldap_make_mod(priv2ld(ldap_state), entry, &mods, "sambaPwdLastSet",
    5944                          talloc_asprintf(talloc_tos(), "%li", time(NULL)));
     5944                         talloc_asprintf(talloc_tos(), "%li", (long int)time(NULL)));
    59455945        smbldap_make_mod(priv2ld(ldap_state), entry, &mods,
    59465946                         "sambaClearTextPassword", pwd);
  • branches/samba-3.3.x/source/passdb/pdb_tdb.c

    r206 r221  
    358358
    359359        if ( !tdbsam_open( tdbsam_filename ) ) {
    360                 DEBUG(0,("tdbsam_getsampwnam: failed to open %s!\n", tdbsam_filename));
     360                DEBUG(0,("tdbsam_getsampwrid: failed to open %s!\n", tdbsam_filename));
    361361                return NT_STATUS_ACCESS_DENIED;
    362362        }
     
    401401
    402402        /* it's outaa here!  8^) */
     403        if ( !tdbsam_open( tdbsam_filename ) ) {
     404                DEBUG(0,("tdb_delete_samacct_only: failed to open %s!\n",
     405                         tdbsam_filename));
     406                return false;
     407        }
    403408
    404409        status = dbwrap_delete_bystring(db_sam, keystr);
     
    778783        rid = BASE_RID;         /* Default if not set */
    779784
     785        if (!tdbsam_open(tdbsam_filename)) {
     786                DEBUG(0,("tdbsam_new_rid: failed to open %s!\n",
     787                        tdbsam_filename));
     788                return false;
     789        }
     790
    780791        if (dbwrap_change_uint32_atomic(db_sam, NEXT_RID_STRING, &rid, 1) != 0) {
    781792                DEBUG(3, ("tdbsam_new_rid: Failed to increase %s\n",
Note: See TracChangeset for help on using the changeset viewer.