| Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
Due to network maintenance being performed by our provider, LQ will be down starting at 05:01 AM UTC. The exact duration of the downtime isn't currently known. We apologize for the inconvenience.
|
 |
02-14-2010, 03:18 PM
|
#1
|
|
Member
Registered: Jul 2006
Location: Belgium
Distribution: Debian, Fedora, CentOS, Windows
Posts: 352
Rep: 
|
ldap+nfs+autofs for centralized storage of home directories
Hi all,
Does anyone have experience with setting up OpenLDAP with NFS and AutoFS regarding to the storage of home directories?
When I googled I got some information, but I have the feeling that most of them are incomplete or maybe even incorrect. So I wonder if someone can help me setting it up.
I already have an NFS share setup for it. Created an ldif file based on some howto's found by google. And finally OpenLDAP is setup and running supporting Samba domain logon and linux client logon.
Code:
# /etc/exports
/opt/nfs/home 10.0.0.0/8(rw)
Code:
# autofs.ldif
dn: ou=auto.master,dc=hulshoff,dc=home
objectClass: top
objectClass: automountMap
ou: auto.master
dn: cn=/home,ou=auto.master,dc=hulshoff,dc=home
objectClass: top
objectClass: automount
automountInformation: ldap:ldap.hulshoff.home:ou=auto.home,dc=hulshoff,dc=home
cn: /home
dn: ou=auto.home,dc=hulshoff,dc=home
objectClass: top
objectClass: automountMap
ou: auto.home
dn: cn=/,ou=auto.home,dc=hulshoff,dc=home
objectClass: automount
cn: Administrator
automountinformation: -rsize=8192,wsize=8192,intr server.hulshoff.home:/opt/nfs/home/&
cn: /
Code:
dn: uid=Administrator,ou=users,dc=hulshoff,dc=home
objectClass: account
objectClass: posixAccount
objectClass: sambaSamAccount
objectClass: shadowAccount
uid: Administrator
cn: Administrator
displayName: Administrator
uidNumber: 50000
sambaSID: S-1-5-21-960022806-<hidden>
sambaPasswordHistory: 00000000000000000000000000000000000000000000000000000000
00000000
sambaAcctFlags: [U ]
loginShell: /bin/bash
gidNumber: 50001
sambaLMPassword: <password>
sambaNTPassword: <password>
sambaPwdLastSet: 1265359113
gecos: Administrator
shadowWarning: 7
shadowMax: 99999
userPassword:: <password>
shadowFlag: 0
shadowLastChange: 14615
ou: users
homeDirectory: /home/Administrator
TIA,
Arjan
|
|
|
|
02-15-2010, 08:21 AM
|
#2
|
|
Member
Registered: Jul 2006
Location: Belgium
Distribution: Debian, Fedora, CentOS, Windows
Posts: 352
Original Poster
Rep: 
|
Fixed it myself...
I changed /etc/sysconf/autofs, which I shouldn't have done. Further more I had to change /etc/autofs_ldap_auth.conf and set usetls="yes".
And last but not least the ldif file should look like:
Code:
dn: nisMapName=auto.master,dc=hulshoff,dc=home
objectClass: top
objectClass: nisMap
nisMapName: auto.master
dn: cn=/home,nisMapName=auto.master,dc=hulshoff,dc=home
objectClass: nisObject
cn: /home
nisMapEntry: ldap:ldap.hulshoff.home:nisMapName=auto.home,dc=hulshoff,dc=home
nisMapName: auto.master
dn: nisMapName=auto.home,dc=hulshoff,dc=home
objectClass: top
objectClass: nisMap
nisMapName: auto.home
dn: cn=/,nisMapName=auto.home,dc=hulshoff,dc=home
objectClass: nisObject
cn: /
nisMapEntry: -fstype=nfs server.hulshoff.home:/opt/nfs/home/&
nisMapName: auto.home
One thing I haven't tried yet is to change the location where the client will expect to find the home directory. Currently I am not going to worry about that. For this I probably need to change the dn: cn=/home,nisMapName=auto.master,dc=hulshoff,dc=home and the attribute homeDirectory of the ldap account should probably also changed to the new location.
Going to test that later on.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:40 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|