[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: autofs and OpenLDAP integration
I did exacltly as you stated, however I still get "lookup(ldap): got
answer, but
no first entry for (&(objectclass=automount)(cn=/))"
Here's my config for the test:
$more /etc/auto.master
#/mci ldap:openldap.int-evry.fr:ou=auto.mci,dc=int-evry,dc=fr
/mci ldap:openldap.int-evry.fr:ou=mci,ou=automount,dc=int-evry,dc=fr
--timeout=60
ldif file
dn: ou=automount,dc=int-evry,dc=fr
objectClass: top
objectClass: organizationalUnit
ou: automount
dn: ou=mci,ou=automount,dc=int-evry,dc=fr
objectClass: top
objectClass: organizationalUnit
ou: home
dn: cn=procacci,ou=mci,ou=automount,dc=int-evry,dc=fr
objectClass: top
objectClass: automount
description: procacci home dir
cn: procacci
automountInformation: nfsserver.int-evry.fr:/user2000/mci/procacci
$/etc/init.d/autofs start
Jul 18 16:21:10 openldap automount[17277]: starting automounter version
3.1.7, path = /mci, maptype = ldap, mapname =
openldap.int-evry.fr:ou=mci,ou=automount,dc=int-evry,dc=fr
jui 18 16:21:10 openldap autofs: autofs startup succeeded
Jul 18 16:21:10 openldap automount[17277]: using kernel protocol version
3
Red Hat Linux release 7.1 (Seawolf)
Kernel 2.4.3-12 on an i686
login: procacci
Password:
Last login: Wed Jul 18 16:15:57 from openldap
No directory /mci/mci/procacci!
Logging in with home = "/".
Jul 18 16:21:47 openldap login(pam_unix)[17285]: session opened for user
procacci by (uid=0)
Jul 18 16:21:47 openldap automount[17277]: attempting to mount entry
/mci/mci
Jul 18 16:21:47 openldap automount[17286]: lookup(ldap): got answer, but
no first entry for (&(objectclass=automount)(cn=/))
What I am doing wrong ??
"Mayers, Philip J" wrote:
>
> 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
--
Jehan Procaccia
Institut National des Telecommunications| Email:
Jehan.Procaccia@int-evry.fr
MCI, Moyens Communs Informatiques | Tel : +33 (0) 160764436
9 rue Charles Fourier 91011 Evry France | Fax : +33 (0) 160764321