Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Sleuthkit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IRT
Sleuthkit
Commits
1bee5464
Unverified
Commit
1bee5464
authored
2 years ago
by
eugene7646
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #2772 from gdicristofaro/OsAccountRealmFix
fix for os account realms
parents
679a9f91
6493eda1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bindings/java/src/org/sleuthkit/datamodel/OsAccountRealmManager.java
+6
-6
6 additions, 6 deletions
...va/src/org/sleuthkit/datamodel/OsAccountRealmManager.java
with
6 additions
and
6 deletions
bindings/java/src/org/sleuthkit/datamodel/OsAccountRealmManager.java
+
6
−
6
View file @
1bee5464
...
...
@@ -535,9 +535,9 @@ Optional<OsAccountRealm> getAnotherRealmByAddr(OsAccountRealm realm, String real
// If the given realm has a host id, then the other realm should have the same host id
// If the given realm has no host id, then the other realm should have no host id
String
whereHostClause
=
(
realm
.
getScopeHost
().
is
Empty
()
)
?
" realms.scope_host_id
IS NULL
"
:
"
(
realms.scope_host_id
= "
+
realm
.
getScopeHost
().
get
().
getHostId
()
+
" )
"
;
String
whereHostClause
=
realm
.
getScopeHost
().
is
Present
(
)
?
"
(
realms.scope_host_id
= "
+
realm
.
getScopeHost
().
get
().
getHostId
()
+
" )
"
:
" realms.scope_host_id
IS NULL
"
;
String
queryString
=
REALM_QUERY_STRING
+
" WHERE LOWER(realms.realm_addr) = LOWER('"
+
realmAddr
+
"') "
+
" AND "
+
whereHostClause
...
...
@@ -590,9 +590,9 @@ Optional<OsAccountRealm> getAnotherRealmByName(OsAccountRealm realm, String real
// If the given realm has a host id, then the other realm should have the same host id
// If the given realm has no host id, then the other realm should have no host id
String
whereHostClause
=
(
realm
.
getScopeHost
().
is
Empty
())
?
" realms.scope_host_id
IS NULL
"
:
"
(
realms.scope_host_id
= "
+
realm
.
getScopeHost
().
get
().
getHostId
()
+
" )
"
;
String
whereHostClause
=
realm
.
getScopeHost
().
is
Present
()
?
"
(
realms.scope_host_id
= "
+
realm
.
getScopeHost
().
get
().
getHostId
()
+
" )
"
:
" realms.scope_host_id
IS NULL
"
;
String
queryString
=
REALM_QUERY_STRING
+
" WHERE LOWER(realms.realm_name) = LOWER('"
+
realmName
+
"')"
+
" AND "
+
whereHostClause
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment