Skip to content

Repeated code in multiple exmaple scripts processing/extracting ldap values/attributes #4

@ThatTotallyRealMyth

Description

@ThatTotallyRealMyth

GetADUsers.py — identical pattern, same inline loop GitHub

GetLAPSPassword.py — same again for lapsPassword GitHub

secretsdump.py — same pattern, this time for msDS-PrincipalName and objectSid

Creating this issue to keep a track for myself for working on two functions to prevent inline code processing and deduplicate code to have a single source of truth. GetADUsers, GetADComputers, GetLAPSPassword, and secretsdump all inline the same 3-line LDAP attribute lookup. Will make a PR that moves it to utils.py for easy reuse

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions