Ignore:
Timestamp:
May 26, 2009, 9:44:50 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update 3.2 branch to 3.2.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.2.x/source/passdb/pdb_interface.c

    r133 r228  
    208208{
    209209        struct pdb_methods *pdb = pdb_get_methods();
    210         struct samu *cache_copy;
     210        struct samu *for_cache;
    211211        const struct dom_sid *user_sid;
    212212
     
    215215        }
    216216
    217         cache_copy = samu_new(NULL);
    218         if (cache_copy == NULL) {
     217        for_cache = samu_new(NULL);
     218        if (for_cache == NULL) {
    219219                return False;
    220220        }
    221221
    222         if (!pdb_copy_sam_account(cache_copy, sam_acct)) {
    223                 TALLOC_FREE(cache_copy);
     222        if (!pdb_copy_sam_account(for_cache, sam_acct)) {
     223                TALLOC_FREE(for_cache);
    224224                return False;
    225225        }
    226226
    227         user_sid = pdb_get_user_sid(cache_copy);
     227        user_sid = pdb_get_user_sid(for_cache);
    228228
    229229        memcache_add_talloc(NULL, PDB_GETPWSID_CACHE,
    230230                            data_blob_const(user_sid, sizeof(*user_sid)),
    231                             cache_copy);
     231                            &for_cache);
    232232
    233233        return True;
     
    11511151static NTSTATUS pdb_default_update_login_attempts (struct pdb_methods *methods, struct samu *newpwd, bool success)
    11521152{
    1153         return NT_STATUS_NOT_IMPLEMENTED;
     1153        /* Only the pdb_nds backend implements this, by
     1154         * default just return ok. */
     1155        return NT_STATUS_OK;
    11541156}
    11551157
Note: See TracChangeset for help on using the changeset viewer.