Options for Connecting to Windows Active Directory Groups from Linux
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Virtually any AD information that can be requested from any Windows workstation on the AD domain can be requested from any Linux workstations on the AD domain using SAMBA and the proper tools. My scripts test group membership in a couple of ways. Memberships of a user can be viewed using the 'id' command on the linux side, as one example.
Virtually any AD information that can be requested from any Windows workstation on the AD domain can be requested from any Linux workstations on the AD domain using SAMBA and the proper tools. My scripts test group membership in a couple of ways. Memberships of a user can be viewed using the 'id' command on the linux side, as one example.
I'll have to look into this. We do use SAMBA, but I wouldn't know if the "proper tools" are in place. I can use groups ID to see what groups an ID is a member of, but it only returns Linux groups when I know this particular user is a member of a Windows AD group. I've also tried to use getent group groupname and it only works on the Linux groups, not AD. I suspect we may not have all the tools in place, or maybe they're not properly configured.
It does depend upon your version of SAMBA and the level of your AD servers. On my network we are using Windows server 2012 and SAMBA 4. Any AD user can log into any joined Linux box using the Windows credentials, and if their home folder does not exist it will be created and populated properly. I can run ID on the Linux box for a user that has never logged into that box, and see the AD users PID, AD groups and GIDs, etc. I can also run Finger or getent passwd on them and see that the home folder matches what I would expect. It can be a b1tc4 to set up, but should work that naturally once you get it right.
The docs for SAMBA 4+ are very good, and that group is insanely helpful. (Comes from fighting with Microsoft 'standards' all day. Mere mortal problems like ours start to look so EASY!) ;-)
It does depend upon your version of SAMBA and the level of your AD servers. On my network we are using Windows server 2012 and SAMBA 4. Any AD user can log into any joined Linux box using the Windows credentials, and if their home folder does not exist it will be created and populated properly. I can run ID on the Linux box for a user that has never logged into that box, and see the AD users PID, AD groups and GIDs, etc. I can also run Finger or getent passwd on them and see that the home folder matches what I would expect. It can be a b1tc4 to set up, but should work that naturally once you get it right.
The docs for SAMBA 4+ are very good, and that group is insanely helpful. (Comes from fighting with Microsoft 'standards' all day. Mere mortal problems like ours start to look so EASY!) ;-)
Thanks for the info. Once set up, it sounds like a nice environment to work in.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.