Solved

LDAP automount home dir based on machine

Posted on 2011-02-17
2
632 Views
Last Modified: 2013-12-16
Hello,
   I have an LDAP install with RHEL 5.4 with users authenticating against LDAP with users home dir automounting at login. I would like to change this to have the home directory change depending on which group of servers the user is logging into. I have not found much info on this but it sounds like it should be doable. Does anyone here have experience with this?
0
Comment
Question by:SpanIT
2 Comments
 
LVL 6

Accepted Solution

by:
de2Zotjes earned 500 total points
ID: 34925444
Yes. I have experience with this and yes this is doable.

In our setup different groups of servers are configured with different search bases in ldap.conf. Data that is the same globally is referenced from the various different searchbases. This is probably the most complex way to do it, but you do not need any local config on the servers (other than automount: ldap in nsswitch.conf).

In a somewhat simpler setup you keep the auto.master local and you define the proper map in it:
/home ldap://<ldap-server>/cn=thisservergroupautomaps,ou=automaps,o=yourorg
0
 

Author Comment

by:SpanIT
ID: 34975582
Thanks, this is very helpful!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now