- Timestamp:
- Nov 27, 2012, 4:56:06 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified vendor/current/source3/rpc_server/netlogon/srv_netlog_nt.c ¶
r740 r746 1121 1121 } 1122 1122 1123 become_root(); 1123 1124 status = samr_find_machine_account(mem_ctx, 1124 1125 h, … … 1128 1129 NULL, 1129 1130 &user_handle); 1131 unbecome_root(); 1130 1132 if (!NT_STATUS_IS_OK(status)) { 1131 1133 goto out; … … 1171 1173 info->info18 = info18; 1172 1174 1175 become_root(); 1173 1176 status = dcerpc_samr_SetUserInfo2(h, 1174 1177 mem_ctx, … … 1177 1180 info, 1178 1181 &result); 1182 unbecome_root(); 1179 1183 if (!NT_STATUS_IS_OK(status)) { 1180 1184 goto out; … … 1248 1252 { 1249 1253 NTSTATUS status; 1250 struct netlogon_creds_CredentialState *creds ;1254 struct netlogon_creds_CredentialState *creds = NULL; 1251 1255 DATA_BLOB plaintext; 1252 1256 struct samr_CryptPassword password_buf; … … 1262 1266 1263 1267 if (!NT_STATUS_IS_OK(status)) { 1268 const char *computer_name = "<unknown>"; 1269 1270 if (creds && creds->computer_name) { 1271 computer_name = creds->computer_name; 1272 } 1264 1273 DEBUG(2,("_netr_ServerPasswordSet2: netlogon_creds_server_step " 1265 1274 "failed. Rejecting auth request from client %s machine account %s\n", 1266 r->in.computer_name, c reds->computer_name));1275 r->in.computer_name, computer_name)); 1267 1276 TALLOC_FREE(creds); 1268 1277 return status; … … 1274 1283 1275 1284 if (!extract_pw_from_buffer(p->mem_ctx, password_buf.data, &plaintext)) { 1285 TALLOC_FREE(creds); 1276 1286 return NT_STATUS_WRONG_PASSWORD; 1277 1287 } … … 1284 1294 creds->account_name, 1285 1295 &nt_hash); 1296 TALLOC_FREE(creds); 1286 1297 return status; 1287 1298 }
Note:
See TracChangeset
for help on using the changeset viewer.