Solved

LDAP automount home dir based on machine

Posted on 2011-02-17
2
639 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

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.…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

627 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