Skip to content

Commit

Permalink
Bug fixes + bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
wil committed Jul 11, 2024
1 parent 18fd1e8 commit c87ae2c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 18 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.58
1.0.59
35 changes: 18 additions & 17 deletions ldeep/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,25 +70,26 @@ def default(o):
and extra_records
):
print(record["dn"])
if record["gPLink"]:
guids = re_compile("{[^}]+}")
gpo_guids = guids.findall(record["gPLink"])
if len(gpo_guids) > 0:
print("[gPLink]")
print(
"* {}".format(
"\n* ".join(
[
(
extra_records[g]
if g in extra_records
else g
)
for g in gpo_guids
]
if "gPLink" in record.keys():
if record["gPLink"]:
guids = re_compile("{[^}]+}")
gpo_guids = guids.findall(record["gPLink"])
if len(gpo_guids) > 0:
print("[gPLink]")
print(
"* {}".format(
"\n* ".join(
[
(
extra_records[g]
if g in extra_records
else g
)
for g in gpo_guids
]
)
)
)
)
elif "groupPolicyContainer" in record["objectClass"]:
print(f"{record['cn']}: {record['displayName']}")
elif "dnsNode" in record["objectClass"]:
Expand Down

0 comments on commit c87ae2c

Please sign in to comment.