All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Stephen C. Rigler" <srigler@marathonoil.com>
To: autofs@linux.kernel.org
Subject: Re: autofs to load MAP from LDAP
Date: Thu, 09 Nov 2006 07:11:47 -0600	[thread overview]
Message-ID: <1163077907.9612.18.camel@houuc8> (raw)
In-Reply-To: <29c5cd460611082119u63dcc765j56c58c07f6ccd072@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1333 bytes --]

On Thu, 2006-11-09 at 10:49 +0530, Syed Khader wrote:

> Hello Everybody,
> 
> How to make autofs read map from ldap rather than files.
> 


Syed,

We run a mixed environment of Irix, Solaris and Linux machines.  To keep
the Solaris machines happy, we use their schema (keys are "automountkey"
rather than "cn", etc).  With autofs-4, Linux needs a different master
map, but with version 5 it looks like we'll be able to use the same map
as the other platforms.

To point the Linux machines at your master map set "LDAPAUTOMASTER"
in /etc/sysconfig/autofs to the name of the map (the name, not the dn).

Our master map looks like:

dn: automountMapName=auto.master_linux,dc=example,dc=com
automountMapName: auto.master_linux
objectClass: top
objectClass: automountMap

dn:
automountkey=/home,automountmapname=auto.master_linux,dc=example,dc=com
objectClass: automount
objectClass: top
automountKey: /home
automountInformation: ldap:automountmapname=auto_home,dc=example,dc=com

auto_home looks like:

dn: automountMapName=auto_home,dc=example,dc=com
automountMapName: auto_home
objectClass: top
objectClass: automountMap

dn: automountkey=someuser,automountmapname=auto_home,dc=example,dc=com
objectClass: automount
objectClass: top
automountKey: someuser
automountInformation: -rw    server:/export/home/&

Hope this helps.

-Steve


[-- Attachment #1.2: Type: text/html, Size: 2096 bytes --]

[-- Attachment #2: Type: text/plain, Size: 140 bytes --]

_______________________________________________
autofs mailing list
autofs@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/autofs

  parent reply	other threads:[~2006-11-09 13:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-09  5:19 autofs to load MAP from LDAP Syed Khader
2006-11-09 11:38 ` Ian Kent
2006-11-09 13:11 ` Stephen C. Rigler [this message]
2006-11-10  4:33   ` Syed Khader
2006-11-10 14:32     ` Stephen C. Rigler
2006-11-11  2:44     ` Ian Kent

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1163077907.9612.18.camel@houuc8 \
    --to=srigler@marathonoil.com \
    --cc=autofs@linux.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.