Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

LDAP automount home dir based on machine

Posted on 2011-02-17
2
Medium Priority
?
643 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 2000 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

Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

Question has a verified solution.

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

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…
Fine Tune your automatic Updates for Ubuntu / Debian
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.
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Suggested Courses
Course of the Month12 days, 20 hours left to enroll

972 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