Skip to content

Commit

Permalink
Merge pull request #90 from tiyeuse/master
Browse files Browse the repository at this point in the history
Bug fixes + bump version
  • Loading branch information
tiyeuse authored Jul 11, 2024
2 parents 18fd1e8 + c87ae2c commit 943c960
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 943c960

Please sign in to comment.