active directory – Validates Windows / AD credentials on Linux via CLI / script / utility


Is there a way, on a Linux client, to validate Windows / Active-Direction credentials (that is, AD) through a simple script (eg Python, Bash, etc.) or a command line interface (CLI) utility?


I have a tool that needs to check if a user is authorized via AD before proceeding with a specific operation (not sensitive) (that is, only recording / auditing) ).


I spent a few hours googling this and I only got a few other results that related topic that seems (unfortunately) require that the client itself be a Windows host.