Solved

LDAP automount home dir based on machine

Posted on 2011-02-17
2
630 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

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.…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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.

707 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

15 Experts available now in Live!

Get 1:1 Help Now