Registry / security / dsinternals

dsinternals

JSON →
library1.2.5pypypi✓ verified 85d ago

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.

pip install dsinternals
INSTALL
IMPORT
SIG · DSINTERNALS
D
dsinternals
securitypythonv1.2.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

DSInternals
✓ import dsinternals
✗ from dsinternals import DSInternals

Basic usage: connect to a domain controller and retrieve domain information.

from dsinternals import DSInternals import os # Initialize with domain controller secret = os.environ.get('DOMAIN_ADMIN_PASSWORD', '') ds = DSInternals(domain='contoso.local', dc='dc01.contoso.local', username='Administrator', password=secret) # Connect and fetch domain info info = ds.getDomainInfo() print(info)
Debug
Known issues
breakingPython 3.4+ only: Older Python versions are not supported.
fix
Use Python 3.4 or later.
affects: <=1.2.5
deprecatedRequires elevated privileges: Many operations require domain admin credentials.
fix
Ensure the account has appropriate AD permissions.
affects: all
gotchaSensitive data: Passwords are handled in plaintext during initialization. Avoid hardcoding secrets.
fix
Use environment variables or secure vaults for credentials.
affects: all
Upgrade
Version history
1.2.5latest on PyPI · released Feb 1, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
25 hits · last 30 days
node
24
Resources
dsinternals — pip install dsinternals · libregistry