[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: autofs and OpenLDAP integration
Nalin Dahyabhai wrote:
>
> You should be seeing this under "Configured Mount Points:":
> /usr/sbin/automount --timeout 60 /mci ldap openldap.int-evry.fr:ou=auto.mci,dc=int-evry,dc=fr
OK, I might have forgotten to change nsswitch.conf -> autoumount: files
!
$/etc/init.d/autofs status
Configured Mount Points:
------------------------
/usr/sbin/automount /mci ldap
openldap.int-evry.fr:ou=auto.mci,dc=int-evry,dc=fr
Active Mount Points:
--------------------
/usr/sbin/automount /mci ldap
openldap.int-evry.fr:ou=auto.mci,dc=int-evry,dc=fr
It seems to work better but now it is looking for a library that is not
present ?
automount[24668]: cannot open lookup module
openldap (/usr/lib/autofs//lookup_openldap.so: cannot open shared object
file: No such file or directory)
where should it come from ?
Jul 20 13:30:14 openldap automount[24663]: mount(autofs): failed to
mount openldap:ou=auto.mci.mci,dc=int-evry,dc=fr on /mci/mci
Jul 20 13:30:14 openldap automount[24602]: attempting to mount entry
/mci/mci
Jul 20 13:30:14 openldap automount[24668]: starting automounter version
3.1.7, path = /mci/mci, maptype = openldap, mapname =
ou=auto.mci.mci,dc=int-evry,dc=fr
Jul 20 13:30:14 openldap automount[24668]: cannot open lookup module
openldap (/usr/lib/autofs//lookup_openldap.so: cannot open shared object
file: No such file or directory)
Jul 20 13:30:14 openldap automount[24667]: mount(autofs): sub automount
returned status 0x100
Jul 20 13:30:14 openldap automount[24667]: mount(autofs): failed to
mount openldap:ou=auto.mci.mci,dc=int-evry,dc=fr on /mci/mci
Thanks
>
> If it's not listed there, then the autofs init script isn't going to
> start up an automounter on the directory, which would prevent you from
> getting anything in your logs about those. And when I add the /mci
> entry you've got (I'm assuming the --timeout=60 is wrapped to the next
> line by your mail reader) to my /etc/auto.master file, I see it listed.
>
> Having gone back and read earlier messages in this thread, I think
> that you only need to add "files" back to the "automount:" line in
> /etc/nsswitch.conf for things to start working.
>
> > Here's the ldif I inserted in ldap , this is the one you kindly wrote
> > for me, I just changed the name of the ldap server from ldap to openldap
> > to ovoid confusion with the "ldap" key work. I also had to add "cn: /"
> > in the last entrie, because ldapadd told me:
> >
> > adding new entry "cn=/,ou=auto.mci.mci,dc=int-evry,dc=fr"
> > ldap_add: Object class violation
> > additional info: missing required attribute
> >
> > I presume it was the right thing to do ?
>
> Yup. Sorry I missed that attribute.
>
> Nalin
--
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