Listing Active Directory Group Members on Linux
If you have a join to Microsoft Active Directory with samba and winbind and kerberos on linux
Note: I found some of this code a long time ago on the Internet. But I do not remember where I found it. So I can not give the reference.
I developed the code. I share here.