[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: autofs and OpenLDAP integration



For example:

/etc/auto.master:

/software
ldap:software.domain.com:ou=software,ou=automount,dc=domain,dc=com
--timeout=60

auto.ldif:

dn: ou=software,ou=automount,dc=domain,dc=com
objectClass: top
objectClass: organizationalUnit
ou: software

dn: cn=os,ou=software,ou=automount,dc=domain,dc=com
objectClass: top
objectClass: automount
cn: os
description: software repository
automountInformation: software.domain.com:/imperial/software/os

i.e. the automountInformation has the same syntax as the first argument to
"mount".

Regards, 
Phil 

+----------------------------------+ 
| Phil Mayers, Network Support     | 
| Centre for Computing Services    | 
| Imperial College                 | 
+----------------------------------+ 


-----Original Message-----
From: jehan.procaccia@int-evry.fr [mailto:jehan.procaccia@int-evry.fr]
Sent: 17 July 2001 07:30
To: openldap-software@OpenLDAP.org; bwert@mediaone.net; nalin@redhat.com
Subject: autofs and OpenLDAP integration


I run a RH 7.1 with openldap 2.0.11 pam_ldap 112  nss_ldap 153 and
autofs-3.1.7-14.
from the different mail I read on that subject I tried the two solutions
proposed:

1 auto.master in /etc/auto.master and in nsswitch.conf automount: files

$more /etc/auto.master
/mci ldap:ldap.int-evry.fr:ou=auto.mci,dc=int-evry,dc=fr

ldif file:

dn: ou=auto.mci,dc=int-evry,dc=fr
ou: auto.mci
objectClass: top
objectClass: organizationalUnit

dn: cn=procacci,ou=auto.mci,dc=int-evry,dc=fr
objectClass: automount
automountInformation: -rw,intr,soft,quota
nfsserver:/user2000/mci/procacci
cn: procacci

here's the result of a telnet:

Red Hat Linux release 7.1 (Seawolf)
Kernel 2.4.3-12 on an i686
login: procacci
Password:
Last login: Tue Jul 17 08:03:38 from openldap
No directory /mci/mci/procacci!
Logging in with home = "/".
ksh-2.04$

Here's what the log says:

Jul 17 08:03:38 ldap  -- procacci[15376]: LOGIN ON pts/4 BY procacci
FROM openldap
Jul 17 08:12:12 ldap automount[14682]: attempting to mount entry
/mci/mci
Jul 17 08:12:12 ldap automount[15405]: lookup(ldap): got answer, but no
first entry for (&(objectclass=automount)(cn=/))

There might be somathingt wrong, but where ?

2 solution, I integrated auto.master in ldap, nsswitch.conf =
automaster: ldap

here's the ldif file

dn: ou=auto.master,dc=int-evry,dc=fr
objectClass: top
objectClass: automountMap
ou: auto.master

dn: cn=/mci, ou=auto.master,dc=int-evry,dc=fr
objectClass: automount
automountInformation:
ldap:ldap.int-evry.fr:ou=auto.mci,dc=int-evry,dc=fr
-rw,intr,soft,quota
cn: /mci

dn: ou=auto.mci,dc=int-evry,dc=fr
ou: auto.mci
objectClass: top
objectClass: organizationalUnit

dn: cn=procacci,ou=auto.mci,dc=int-evry,dc=fr
objectClass: automount
automountInformation: -rw,intr,soft,quota
nfsserver:/user2000/mci/procacci
cn: procacci

Now I don't get any error but I don't get my home dir  neither !??

Red Hat Linux release 7.1 (Seawolf)
Kernel 2.4.3-12 on an i686
login: procacci
Password:
Last login: Tue Jul 17 08:16:21 from openldap
No directory /mci/mci/procacci!
Logging in with home = "/".
ksh-2.04$

Jul 17 08:22:28 openldap login(pam_unix)[15477]: session opened for user
procacci by (uid=0)
Jul 17 08:22:28 openldap  -- procacci[15477]: LOGIN ON pts/4 BY procacci
FROM openldap

Please let me know what should I do, I also would prefer to have the
second solution to work as it elimitate the management of
/etc/auto.master on every station .

Thanks a lot.

Jehan.procaccia@int-evry.fr