[KLUG Members] LDAP and home directories

Jeremy Leonard lists at elite4god.com
Wed Mar 2 14:41:38 EST 2005


>
>
>On Wed, 2005-03-02 at 11:36 -0500, Jeremy Leonard wrote:
>  
>
>>I have three servers for three different departments.
>>I'm using OpenLDAP for SAMBA and Auth.
>>My workstations are SUSE 9.2.
>>pam is configured to auth against the LDAP dir.
>>I have the homeDirectory attr set to /home/UserName in LDAP
>>I use pam_mkhomedir to create the path on workstation.
>>
>>How can I automatically mount the users home directory from their server to the /home/username dir when a user logs in? I'd love to be able to use an LDAP attr for this.
>>
>>I've tried using pam_mount but that doesn't let me dynamically choose which server to map to.
>>
>>Also, when I do have the user's home directory mounted X won't run. It crashes when it tried to load the windows manager after the user logs in.
>>
>>Thanks,
>>Jeremy
>>
>>Jeremy Leonard
>>Systems Engineer
>>CNE, MCSE, CCA, A+, CNS
>>Gracon Services, Inc.
>>
>>_______________________________________________
>>Members mailing list
>>Members at kalamazoolinux.org
>>
>>    
>>
>
>I just started using autodir.
>
>http://www.intraperson.com/autodir/Autodir-HOWTO.html
>
>The reason is that on different machines pam_mkhomedir would work for
>different log in methods and not for others.  So like if someone who did
>not have a home directory on a machine with a scanner attached and they
>used a kerbized rsh command, it would not make a home dir.  Also it
>would not if someone logged in at the console in some cases.  Autodir
>completely replaces mkhomedir in that it creates the directory any time
>anyone tries to access that directory.
>
>Your problem sounds a little different.  Have you tried just having the
>entire home directory tree be an nfs mount?
>
>Dirk
>  
>
pam_mkhomedir works fine for me.
I don't want to use NFS.
The bigest issue is that different users' home directories are on 
different server. I'd have to have all the servers mounted for that to work.


More information about the Members mailing list