LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-20-2013, 02:04 PM   #1
Dennis3
LQ Newbie
 
Registered: Jun 2013
Posts: 17

Rep: Reputation: Disabled
CentOS and Active Directory Integration


Hi everyone,

I would like to integrate CentOS Linux into Active Directory. I have two virtual machines :
1. Microsoft Windows Server 2008 R2
2. CentOS 6.4

Using Samba4-winbind, I managed to join the machine into the domain and authenticate with a user from the directory as well.

I want a setup that will automatically assign a specific home directory for users that log in through Linux (e.g Dennis(user from AD) logs in through CentOS, his home directory will be a local folder on the Windows machine or some other storage machine).

I would like to know if these configuration can be done through Windows and not through Linux. What are my options if any ?

Thank you,
Dennis.
 
Old 06-20-2013, 02:22 PM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
There is a [homes] section in the smb.conf that you can set up. And additionally you can make login scripts for the users to auto-mount a windows share.

Is that what you are looking for?
 
Old 06-20-2013, 02:32 PM   #3
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,345

Rep: Reputation: Disabled
Quote:
Originally Posted by Dennis3 View Post
I want a setup that will automatically assign a specific home directory for users that log in through Linux (e.g Dennis(user from AD) logs in through CentOS, his home directory will be a local folder on the Windows machine or some other storage machine).
Do you mean you want to automatically mount a remote share and use it as a home directory whenever a user defined in Active Directory logs in to the CentOS system?

If so, you may need to look at PAM. The pam_mkhomedir module can be used to create a home directory to serve as a mount point if none exists, and pam_mount can be used to mount a shared directory on another system.

Perhaps this or this can point you in the right direction. The second link includes an example Perl script as an alternative to pam_mount, one that retrieves the home directory definition from AD and mounts the shared directory using the existing Kerberos ticket. Very elegant.

Last edited by Ser Olmy; 06-20-2013 at 03:30 PM.
 
Old 06-20-2013, 02:36 PM   #4
Dennis3
LQ Newbie
 
Registered: Jun 2013
Posts: 17

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by szboardstretcher View Post
There is a [homes] section in the smb.conf that you can set up. And additionally you can make login scripts for the users to auto-mount a windows share.

Is that what you are looking for?
Two questions :
1. What exactly can I specify under [homes] parameter to make it happen ?
2. All the users do not exist locally on the linux machine, rather on the Active Directory. Where can I add the logon script to ?

Sorry if it's a silly question, I find it hard to understand since my knowledge with Active directory integration is limited.

Thank you,
Dennis.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Active Directory User integration with Samba fileserver in CentOS 5 sonjoyraha Linux - Server 2 05-25-2011 06:25 AM
Active Directory integration cccc Debian 2 03-19-2011 08:29 AM
Active Directory Integration haverer Linux - Software 4 09-17-2009 06:31 AM
Active Directory Integration TXLXUser Linux - Security 0 05-29-2009 03:46 PM
Active Directory Integration how-to: kebabbert Solaris / OpenSolaris 0 09-14-2008 03:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration