{"id":44794,"library":"dsinternals","title":"Directory Services Internals","description":"DSInternals is a Python library for interacting with Active Directory Directory Services internals. Version 1.2.5 supports Python >=3.4 and provides tools for parsing domain backup files, extracting password hashes, and manipulating directory objects. Released under BSD-3-Clause.","status":"active","version":"1.2.5","language":"python","source_language":"en","source_url":"https://github.com/p0dalirius/pydsinternals","tags":["active-directory","domain-controller","password-hash","directory-services"],"install":[{"cmd":"pip install dsinternals","lang":"bash","label":"PyPI"}],"dependencies":[],"imports":[{"wrong":"from dsinternals import DSInternals","symbol":"DSInternals","correct":"import dsinternals"}],"quickstart":{"code":"from dsinternals import DSInternals\nimport os\n\n# Initialize with domain controller\nsecret = os.environ.get('DOMAIN_ADMIN_PASSWORD', '')\nds = DSInternals(domain='contoso.local', dc='dc01.contoso.local', username='Administrator', password=secret)\n# Connect and fetch domain info\ninfo = ds.getDomainInfo()\nprint(info)","lang":"python","description":"Basic usage: connect to a domain controller and retrieve domain information."},"warnings":[{"fix":"Use Python 3.4 or later.","message":"Python 3.4+ only: Older Python versions are not supported.","severity":"breaking","affected_versions":"<=1.2.5"},{"fix":"Ensure the account has appropriate AD permissions.","message":"Requires elevated privileges: Many operations require domain admin credentials.","severity":"deprecated","affected_versions":"all"},{"fix":"Use environment variables or secure vaults for credentials.","message":"Sensitive data: Passwords are handled in plaintext during initialization. Avoid hardcoding secrets.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'-3':40 '1.2.5':18 '3.4':21 'activ':12,43 'active-directori':42 'backup':28 'bsd':39 'claus':41 'control':47 'directori':1,13,14,35,44,52 'directory-servic':51 'domain':27,46 'domain-control':45 'dsintern':4 'extract':30 'file':29 'hash':32,50 'interact':10 'intern':3,16 'librari':8 'manipul':34 'object':36 'pars':26 'password':31,49 'password-hash':48 'provid':23 'python':7,20 'releas':37 'servic':2,15,53 'support':19 'tool':24 'version':17","created_at":"2026-06-07T12:51:52.296586+00:00","updated_at":"2026-06-07T12:51:52.296586+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"http://github.com/p0dalirius/pydsinternals","github":"http://github.com/p0dalirius/pydsinternals","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["security"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-08-02","install_tag":null}}