Changeset 228 for branches/samba-3.2.x/source/passdb
- Timestamp:
- May 26, 2009, 9:44:50 AM (16 years ago)
- Location:
- branches/samba-3.2.x/source/passdb
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.2.x/source/passdb/pdb_interface.c
r133 r228 208 208 { 209 209 struct pdb_methods *pdb = pdb_get_methods(); 210 struct samu * cache_copy;210 struct samu *for_cache; 211 211 const struct dom_sid *user_sid; 212 212 … … 215 215 } 216 216 217 cache_copy= samu_new(NULL);218 if ( cache_copy== NULL) {217 for_cache = samu_new(NULL); 218 if (for_cache == NULL) { 219 219 return False; 220 220 } 221 221 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); 224 224 return False; 225 225 } 226 226 227 user_sid = pdb_get_user_sid( cache_copy);227 user_sid = pdb_get_user_sid(for_cache); 228 228 229 229 memcache_add_talloc(NULL, PDB_GETPWSID_CACHE, 230 230 data_blob_const(user_sid, sizeof(*user_sid)), 231 cache_copy);231 &for_cache); 232 232 233 233 return True; … … 1151 1151 static NTSTATUS pdb_default_update_login_attempts (struct pdb_methods *methods, struct samu *newpwd, bool success) 1152 1152 { 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; 1154 1156 } 1155 1157 -
branches/samba-3.2.x/source/passdb/pdb_ldap.c
r141 r228 2011 2011 true, 2012 2012 true); 2013 if ( rename_script) {2013 if (!rename_script) { 2014 2014 return NT_STATUS_NO_MEMORY; 2015 2015 }
Note:
See TracChangeset
for help on using the changeset viewer.