you can use this https://cyberninjas.github.io/aad-for-linux/ with servers that outside from Azure