- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Linux authenticating with Windows AD and autom...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2011 08:30 AM
тАО03-10-2011 08:30 AM
Anyone fancy a crack at this?
I'm trying to get Linux integrated into Windows AD (2008R2). I'm almost there, the last little bit is getting autofs to work correctly with users home directories via samba.
I've got the Linux box in the Domain, no problem, I can authenticate users from the domain, again no problem. I'm now trying to configure autofs to mount users home directories. I can get them mounted, but this is where it falls over: -
If I'm logged in as root, and "su - TEST\\testuser", the home directory mounts fine and dandy with the correct user and premissions. However if I am a local user, and NOT root, and do the same test, I end up with the home directory being mounted with the local user ID. This basically gives me a read only home directory becuase my AD users dosn't own it.
My version of Linux is CentOS v5.5
My Windows AD server is 2008R2 (Up to date)
I've put Samba3x on my Linux box.
# tail /etc/auto.master
/home/TEST /etc/auto.home
# tail /etc/auto.home
* -fstype=cifs,rw,credentials=/root/.adpasswd,uid=${UID},gid=${UID},dir_mode=0755,file_mode=0755,nosuid,soft ://adsvr1/users/&
Like I said the mechanism works, but it the permissions that I end up with that are causing me a headache.
If I open the permissions wide, then everything works, but it's not secure, so if I have several AD users, they can all write to each other home directories.(Don't like this!!)
There must be a happy medium setting somewhere that works.
If anyone has got any ideas I would very much appreciate them.
Thanks,
Sime.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2011 09:42 AM
тАО03-10-2011 09:42 AM
SolutionHave you tried to use pam_mount instead of autofs? It would seem to be designed to solve this exact problem.
Configuration example:
https://www.sit.auckland.ac.nz/How_to_automount_CIFS/NFS_share_on_Linux_upon_logon%3F
Autofs is originally designed for NFS and filesystems sharing a common Unix UID/GID space. As you've discovered, it does not work too well with Windows disk sharing (SMB/CIFS), since it does not have access to user's authentication credentials. But the PAM modules have that access.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2011 11:39 PM
тАО03-10-2011 11:39 PM
Re: Linux authenticating with Windows AD and automounting home directories.
http://blog.palalinha.com/2009/04/integrate-linux-box-with-windows-ad.html
i m using 2003 DC in that case not 2008
see if this helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2011 03:26 AM
тАО03-11-2011 03:26 AM
Re: Linux authenticating with Windows AD and automounting home directories.
I'm going to try and compile from source code to see if it works, but I was hoping to find an RPM so that I can document the procedure for others to do the same. It all gets a bit messy if you have to show others how to compile source code.
Sime.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2011 03:47 AM
тАО03-11-2011 03:47 AM
Re: Linux authenticating with Windows AD and automounting home directories.
http://blog.sumostyle.net/robg/2008/10/13/building-pam_mount-on-centos-5-rhel/
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2011 04:35 AM
тАО03-11-2011 04:35 AM
Re: Linux authenticating with Windows AD and automounting home directories.
Thank.