Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 21st January 2008, 04:45 PM
stephanek Offline
Registered User
 
Join Date: Aug 2006
Posts: 7
LDAP - NFS - autofs

Hello,

We use LDAP and NFS in our organisation for all the Linux machines (RHEL + Fedora).

Is there any way to configure automatically the NFS mounts? So far I configure that manually, that's not optimal for automatic installations, I'd like to look into autofs but I cannot find proper documentation.

What is the best process to implement this?

Thanks.

Stephane
Reply With Quote
  #2  
Old 21st January 2008, 05:19 PM
stephanek Offline
Registered User
 
Join Date: Aug 2006
Posts: 7
I tried to tune /etc/sysconfig/autofs but the logs show that autofs is unable to bind to my ldap server, this is a Fedora Directory Server and it should accept anonymous binds. Any ideas there?
Reply With Quote
  #3  
Old 19th March 2008, 02:57 PM
robert.forster's Avatar
robert.forster Offline
Registered User
 
Join Date: Feb 2008
Location: Newport News, VA
Posts: 128
I am looking for details on this too. As soon as I get details I will be more than happy to post what I have done step by step
Reply With Quote
  #4  
Old 19th March 2008, 03:03 PM
Stone Dragon's Avatar
Stone Dragon Offline
Registered User
 
Join Date: Mar 2006
Location: Rüti, Switzerland
Posts: 141
You can implement this by using automount in ldap directly. It works flawlessly here (besided from notebook sync questions, which I'm investigating currently). Pls. have a look here: http://directory.fedoraproject.org/wiki/Howto:Automount
You still have to put entries for each user into ldap then, but you can easily automate this or have at least one central information instance.
Reply With Quote
  #5  
Old 19th March 2008, 03:28 PM
ibbo's Avatar
ibbo Offline
Registered User
 
Join Date: Jun 2005
Location: Leeds
Posts: 1,264
Without going through LDAP to do it (which ive always found a nasty beast)

NFS SERVER SPECIFIC
Edit /etc/exports
/home *(rw,sync)
run
exportfs -a

CLIENTS
Edit /etc/auto.master
/home /etc/auto.home --timeout 600

Edit /etc/auto.home
* -fstype=nfs,soft,intr,rsize=8192,wsize=8192,nosuid, tcp <nfs server IP>:/home/&

Make sure NFS on both server and clients are up and running. Also ensure autofs is running on the clients. (restart them as needed).

Logout and logback in,

You may also wish to rename your /home dir on the clients to make sure they are mounting.

Ibbo
__________________
A Hangover Lasts A Day, But Our Drunken Memories Last A Lifetime
--
Linux user #349545
(GNU/Linux)iD8DBQBAzWjX+MZAIjBWXGURAmflAKCntuBbuKCWenpm XoA7LNydllVQOwCfdjyzXscddzQvlhBedAcD7qfKmHo==zx0H
Reply With Quote
  #6  
Old 19th March 2008, 04:19 PM
Stone Dragon's Avatar
Stone Dragon Offline
Registered User
 
Join Date: Mar 2006
Location: Rüti, Switzerland
Posts: 141
Yes, you are right, ibbo your solution is by the way also the "official Redhat way" of doing multiple autofs-imports on /home/*.
p.s.:
LDAP is much more like a cat than a beast, when you tame it ;-)
Reply With Quote
  #7  
Old 24th March 2008, 03:56 PM
robert.forster's Avatar
robert.forster Offline
Registered User
 
Join Date: Feb 2008
Location: Newport News, VA
Posts: 128
I read the documentation on the LDAP/AUTOFS/FDS for automount

have FDS running am able to authenticate with it well. I am fairly new (stopped linux/*nix back in 1996 LOL stupid me) to the internals

I have dloaded the ol-schema-migrate.pl I understand that it is remove entries and to add new entries to the RFC situation. then it is to redirect the output (I think) into an LDIF file that my guess is to be dropped into /etc/dirsrv/slapd-*/schema directory.

My issue is the command (I think again) that they want you to run is
"perl ol-schema-migrate.pl -b autofs.schema > 75autofs.ldif"

where is the file autofs.schema???
Reply With Quote
  #8  
Old 24th March 2008, 04:01 PM
Stone Dragon's Avatar
Stone Dragon Offline
Registered User
 
Join Date: Mar 2006
Location: Rüti, Switzerland
Posts: 141
There should be a link to it in the documention you mentioned
Reply With Quote
  #9  
Old 24th March 2008, 04:04 PM
robert.forster's Avatar
robert.forster Offline
Registered User
 
Join Date: Feb 2008
Location: Newport News, VA
Posts: 128
a link to the autofs.schema?

OH WOW!!
ummm "DUHH" nevermind LOL
Reply With Quote
  #10  
Old 24th March 2008, 04:43 PM
Stone Dragon's Avatar
Stone Dragon Offline
Registered User
 
Join Date: Mar 2006
Location: Rüti, Switzerland
Posts: 141
just checked my links and here you go:

http://people.redhat.com/nalin/schema/autofs.schema
Reply With Quote
  #11  
Old 24th March 2008, 05:24 PM
robert.forster's Avatar
robert.forster Offline
Registered User
 
Join Date: Feb 2008
Location: Newport News, VA
Posts: 128
Yea I found the link on it and cleared it up to get the file that I completely missed before LOL
Reply With Quote
  #12  
Old 24th March 2008, 06:22 PM
robert.forster's Avatar
robert.forster Offline
Registered User
 
Join Date: Feb 2008
Location: Newport News, VA
Posts: 128
Currently at the moment I have on the directory server console

exampledomain
-groups
-people
-special users
-auto.master
-/home (which is an entry)

the next line says to create "auto.home is this a new OU in equal to "auto.master" or is this a sub OU under "auto.master" documentation is unclear to me.
Reply With Quote
  #13  
Old 25th March 2008, 01:52 PM
robert.forster's Avatar
robert.forster Offline
Registered User
 
Join Date: Feb 2008
Location: Newport News, VA
Posts: 128
is there a way to verify that the schema is in correctly?
Reply With Quote
  #14  
Old 25th March 2008, 04:11 PM
Stone Dragon's Avatar
Stone Dragon Offline
Registered User
 
Join Date: Mar 2006
Location: Rüti, Switzerland
Posts: 141
Quote:
Originally Posted by robert.forster
is there a way to verify that the schema is in correctly?
If you can add objectclasses with autofs-relation, it should generally be o.k. Fedora-Dirsrv would give you errors, if the schema is wrong or corrupt...

I've got auto.home and auto.master as 2 branches und "Automount" as parent. I do not like too many top-level elements You must anyway tell autofs where to start searching, so you can organise your ldap-tree at nearly free will.
Reply With Quote
  #15  
Old 25th March 2008, 04:21 PM
robert.forster's Avatar
robert.forster Offline
Registered User
 
Join Date: Feb 2008
Location: Newport News, VA
Posts: 128
I know sometimes that the questions I may ask seem stupid but I have learned to many times the hard way that to assume something is the death of a project before it even starts..thanks!!

I have made entries into the dirsrv and current issue I have is the user's home directory is not there.

bumped up logging in /var/log/messages to this

starting automounter version 5.0.2-16, master map auto.master
using kernel protocol version 5.00
lookup_read_master: lookup (file): failed to read included master map auto.master
mounted indirect mount on /misc with timeout 300, freq 75 seconds (commented this out)
mounted indirect mount on /net with timeout 300, freq 75 seconds (commented this out)

which I am scrolling through archives and others on this error to see what i can find

Last edited by robert.forster; 25th March 2008 at 05:46 PM.
Reply With Quote
Reply

Tags
autofs, ldap, nfs

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
GDM error using LDAP, NFS, autofs flyguy97 Using Fedora 1 28th March 2008 05:43 PM
AutoFS LDAP jimbou Using Fedora 0 18th July 2007 05:16 PM
Ldap autofs ibbo Using Fedora 1 22nd November 2006 01:23 PM


Current GMT-time: 20:14 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat