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 d844af4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dissect/target/plugins/os/unix/bsd/osx/user.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import plistlib
from typing import Iterator

from flow.record.fieldtypes import posix_path

from dissect.target.exceptions import UnsupportedPluginError
from dissect.target.helpers.descriptor_extensions import UserRecordDescriptorExtension
from dissect.target.helpers.record import create_extended_descriptor
Expand Down Expand Up @@ -47,7 +49,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 d844af4

Please sign in to comment.