Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
constructing hostname based on samname
  • Loading branch information
c3c committed May 18, 2023
1 parent e026553 commit 9fc8412
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion adexpsnapshot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,8 @@ def processComputers(self, entry):

hostname = ADUtils.get_entry_property(entry, 'dNSHostName')
if not hostname:
return
resolved_entry = ADUtils.resolve_ad_entry(entry)
hostname = resolved_entry['principal']

distinguishedName = ADUtils.get_entry_property(entry, 'distinguishedName')

Expand Down

0 comments on commit 9fc8412

Please sign in to comment.