LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-09-2007, 11:21 AM   #1
kapilmaheshwari20
LQ Newbie
 
Registered: Oct 2007
Posts: 3

Rep: Reputation: 0
Unhappy ldap + nfs configuration


i am using RHEL4.

by google i come to know about automountMap as an objectClass.

and this objectClass is not bydefault defined in any schema.

plz tell me how to configure nfs and ldap.
 
Old 10-10-2007, 06:48 AM   #2
miedward
Member
 
Registered: Feb 2007
Distribution: RHEL 4, SOLARIS 10
Posts: 91

Rep: Reputation: 15
I have three top level objects, all objectClass=nisMap:

nisMapName=auto.groups
nisMapName=auto.home
nisMapName=auto.master

Then under auto.master there are two objects with objectClass=nisObject:
cn=/home
nisMapEntry=ldap:nisMapName=auto.home,dc=example,dc=com
nisMapName=auto.master

cn=/groups
nisMapEntry=ldap:nisMapName=auto.groups,dc=example,dc=com -g

Only the home entry is "required", the other is for a mount at /groups which I was using for ... group directories.

Under nisMapName=auto.home there are all my user directory objects which all have objectClass=nisObject:

cn=/
nisMapEntry=nfsservername.com:/full/path/to/real/files/&
nisMapName=auto.home
cn=username
nisMapEntry=nfsservername.com:/full/path/to/real/files/username
nisMapName=auto.home

Where the first one is for "all users" and the / and & are wildcards for the username which doesn't match any other entries in the map. So a username "tom" would be mapped to "nfsservername.com:/full/path/to/real/files/tom" if he didn't have a separate entry.

The group objects are all children of nisMapName=auto.groups and are similar in content to the ones shown above.

I didn't put this in LDIF format and I assume you know a little about LDAP already, so if not I can expand a bit I suppose.

A nice project that makes dealing with LDAP a lot nicer is http://lam.sourceforge.net/ I liked it enough I got his commercial offering, but the open version is very helpful for administration.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ldap nfs login issue berrance Linux - Software 1 12-09-2006 05:46 PM
Ldap + Samba + Pam_mount + Nfs its_me_parth Linux - Enterprise 4 12-09-2006 05:26 PM
Common use of NFS, SAMBA, NIS, LDAP, PAM eve Linux - Networking 4 12-12-2005 08:58 AM
Automount NFS from LDAP info not working klnasveschuk Linux - Networking 2 07-26-2005 01:04 PM
ldap configuration ravi_sambaji Linux - Networking 1 06-27-2003 08:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration