Skip to content
Snippets Groups Projects
Unverified Commit a98139b2 authored by Richard Cordovano's avatar Richard Cordovano Committed by GitHub
Browse files

Merge pull request #2480 from kellykelly3/7788-missing-os-accounts

Added code to the TskCaseDbBridge to create os account instances
parents 8d495ba3 61926eff
No related branches found
No related tags found
No related merge requests found
...@@ -384,7 +384,9 @@ private long addBatchedFilesToDb() { ...@@ -384,7 +384,9 @@ private long addBatchedFilesToDb() {
} else { } else {
// account not found in the database, create the account and add to map // account not found in the database, create the account and add to map
// Currently we expect only NTFS systems to provide a windows style SID as owner id. // Currently we expect only NTFS systems to provide a windows style SID as owner id.
OsAccount newAccount = caseDb.getOsAccountManager().newWindowsOsAccount(ownerUid, null, null, imageHost, OsAccountRealm.RealmScope.UNKNOWN); OsAccountManager accountMgr = caseDb.getOsAccountManager();
OsAccount newAccount = accountMgr.newWindowsOsAccount(ownerUid, null, null, imageHost, OsAccountRealm.RealmScope.UNKNOWN);
accountMgr.newOsAccountInstance(newAccount.getId(), fileInfo.dataSourceObjId, OsAccountInstance.OsAccountInstanceType.LAUNCHED, caseDb.getConnection());
ownerIdToAccountMap.put(ownerUid, newAccount); ownerIdToAccountMap.put(ownerUid, newAccount);
} }
} catch (NotUserSIDException ex) { } catch (NotUserSIDException ex) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment