Skip to content

Commit

Permalink
Make source field value a posix path
Browse files Browse the repository at this point in the history
  • Loading branch information
Poeloe committed Sep 8, 2023
1 parent ceee369 commit b73bb09
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dissect/target/plugins/os/unix/bsd/osx/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from dissect.target.helpers.descriptor_extensions import UserRecordDescriptorExtension
from dissect.target.helpers.record import create_extended_descriptor
from dissect.target.plugin import Plugin, export
from flow.record.fieldtypes import posix_path

AccountPolicyRecord = create_extended_descriptor([UserRecordDescriptorExtension])(
"osx/account_policy",
Expand Down Expand Up @@ -47,7 +48,7 @@ def account_policy(self) -> Iterator[AccountPolicyRecord]:
password_last_time=account_policy.get("passwordLastSetTime"),
failed_login_count=account_policy.get("failedLoginCount"),
failed_login_time=account_policy.get("failedLoginTimestamp"),
source=user_details.user.source,
source=posix_path(user_details.user.source),
_user=user_details.user,
_target=self.target,
)

0 comments on commit b73bb09

Please sign in to comment.