Reimplementation of part of the AAdinternals (https://github.com/Gerenios/AADInternals) project.
This project focuses on synchronizing users, groups, and password hashes with Microsoft Entra ID.
This project uses undocumented Microsoft APIs. Microsoft may change or remove them at any time.
git clone https://github.com/tranquilit/AADInternals_python
cd AADInternals_python
git submodule update --progress --init -- "python_wcfbin"
apt-get install -y python3-passlib python3-xmltodict python3-requests python3-msal python3-cryptography python3-jwt
For Debian 12 or older Python packages, use a virtual environment
pip3 install -r requirements.txt
Example:
python3 main.py -help
python3 main.py --domain mydomain.com set_azureadobject -help
python3 main.py --domain mydomain.com set_azureadobject --SourceAnchor=test00 --userPrincipalName=test00@mydomain.com
python3 main.py --domain mydomain.com set_userpassword --sourceanchor=test00 --password password
python3 main.py --domain mydomain.com get_syncconfiguration