Solved

LDAP automount home dir based on machine

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

Save the day with this special offer from ATEN!

Save 30% on the CV211 using promo code EXPERTS30 now through April 30th. The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
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…
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.
Suggested Courses

751 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