• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Openldap and auto mount

JD50

Lifer
So I'm switching a bunch of stuff over to a new ldap server that I built and I'm trying to get auto mounting working correctly. The one problem that I have is that I have two separate groups, each with their own /home nfs server. Can you configure auto mounting in ldap to be group specific? For example, when user1 from group1 logs in, I want server1:/home/user1 to be mounted, but when user2 from group2 logs in, I want server2:/home/user2 to be mounted. Is this possible?
 
It's possible, but you might have to move some stuff around. The way we do that is we have the following in auto.home container:

Code:
dn:cn=*,automountMapName=auto.home,dc=whatever,o=com

         objectClass: top
                      automount
automountInformation: -rw,intr,nosuid &:/export/home/&
        automountKey: *
                  cn: *

Then the users have something like:

Code:
homeDirectory: /home/server1/username

In their entries. This will mount the server1:/export/home/server1 directory under /home when a user logs in. Likewise users on server2 would have their pool of home directories mounted.

The only gotchas are every server covered by the * automount dn need to export /export/home/servername, and the home directories defined for your users in LDAP need to have the server in the path name.
 
It's possible, but you might have to move some stuff around. The way we do that is we have the following in auto.home container:

Code:
dn:cn=*,automountMapName=auto.home,dc=whatever,o=com

         objectClass: top
                      automount
automountInformation: -rw,intr,nosuid &:/export/home/&
        automountKey: *
                  cn: *
Then the users have something like:

Code:
homeDirectory: /home/server1/username
In their entries. This will mount the server1:/export/home/server1 directory under /home when a user logs in. Likewise users on server2 would have their pool of home directories mounted.

The only gotchas are every server covered by the * automount dn need to export /export/home/servername, and the home directories defined for your users in LDAP need to have the server in the path name.

Yea, that's my main problem, their home directories are just in /home on both nfs servers. It's a problem that I inherited and I'm trying to avoid moving home directories or mount points. It seems like more trouble than it's worth so I'm probably just going to move everyone's home directory to the same server.
 
If you still want to keep them on separate servers, the only way I can think of without moving them to another folder (like /home/servername/username) is to create an entry for each user in you auto.home.
 
Back
Top