LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-25-2005, 08:30 PM   #1
klnasveschuk
Member
 
Registered: Jun 2003
Location: Plymouth, Massachusetts
Distribution: CentOS, Slackware, Redhat, Ubuntu
Posts: 52

Rep: Reputation: 15
Automount NFS from LDAP info not working


Hello,
I've been struggling to get this to work for some time. The OS is FDC4. I have the automounter mounting home directories from an NFS server using automount information in files. This works excellent.

User/group information comes from files and LDAP. I'm using the autofs.schema that comes with Fedora Core 4 under /etc/openldap/schema/redhat/autofs.schema.

My nsswitch.conf is setup for automount files ldap. I want to automount directories from the NFS server with info from the LDAP directory. Can't seem to get it right.

Question
Can I have an auto.master both as a file and in LDAP without it causing problems?

My goal is to mount the NFS server /accounts/common directory on the client machines as /accounts/common.

Here is my LDAP context:
dc=klnc,dc=net

I have an entry:
ou=auto.master,dc=klnc,dc=net
Under this I have:
cn=/accounts/common,ou=auto.master,dc=klnc,dc=net
automountinformation:ldapu=auto.common,dc=klnc,dc=net --timeout=60

ou=auto.common,dc=klnc,dc=net
Under this I have
cn=common,ou=auto.common,dc=klnc,dc=net
automountinformation: 192.168.15.2:/accounts/common

Any help would be appreciated.

Kent L. Nasveschuk
I get nothing
 
Old 07-26-2005, 08:32 AM   #2
mpeg4codec
Member
 
Registered: Jul 2005
Distribution: Debian, Gentoo, self-built [not LFS]
Posts: 109

Rep: Reputation: 15
My best guess is that, since nsswitch.conf lists files ldap, it only goes to the LDAP if files fails. I'm not sure how you'd get to doing this using a combination of the two, unless you wanted to write a script to read from files maybe?
 
Old 07-26-2005, 01:04 PM   #3
klnasveschuk
Member
 
Registered: Jun 2003
Location: Plymouth, Massachusetts
Distribution: CentOS, Slackware, Redhat, Ubuntu
Posts: 52

Original Poster
Rep: Reputation: 15
automount ldap problem

Hi,
Thanks I'll try that but I'm not sure if that is the issue. I have files ldap for password, shadow group which allows a local or LDAP user to login. Also if you have an account that is in 2 locations either password wil work, for example root. I'll try your suggestion though and get back to you.

Kent N
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Automount -LDAP schemas naveenlinux SUSE / openSUSE 0 11-21-2005 12:37 AM
not able to automount files in nfs at startup time kool124 Linux - Networking 4 10-03-2005 11:04 AM
adding info to ldap chamkila Linux - General 5 08-14-2003 09:12 AM
automount nfs and smb al_erola Linux - Networking 2 04-27-2003 11:33 AM
NFS - Automount / Security Issues gene_gEnie Linux - Networking 0 02-08-2002 03:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:27 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration