Impacket GetADUsers.py
GetADUsers.py -all <domain>/<user>:'<pass>' -dc-ip <dc-ip>
Enumerates all AD users with basic attributes via LDAP authentication.
From Linux, when you want to obtain a list of domain users with their attributes (UPN, SID, etc.) in a lightweight manner. GetADUsers.py is part of Impacket and performs an authenticated LDAP query.
If you lack credentials or if the DC has source restrictions for LDAP.