Eduardo Fernandes Piva wrote:
> Hello all, I'm just new in this list looking for some help! :)
> 
> I'm trying to have my automount read the auto.master, auto.home, etc... 
> from my ldap database (I'm trying to replace NIS). The ldap database is 
> working without SASL (I haven't configured kerberos and SASL yet..).
> 
> I added in the /etc/nsswitch.conf the following line:
> 
> automount:  ldap
> 
> And when I try to start the automount (using redhat 7.3), I got the 
> following result:
> 
> [root@pulsar root]# /etc/init.d/autofs start
> Starting automount: No Mountpoints Defined                 [  OK  ]
> 
> Ok, nothing happened, ?then, editing the /etc/init.d/autofs file, I 
> figured out that this scripts start something called 
> /usr/lib/autofs/autofs-ldap-auto-master, and when I try to start this I 
> got nothing in response.
> 
> Then I tried to specificate an auto.master file and in that file, I can 
> say that the rest of the maps are in the LDAP, I added the following lines 
> in the /etc/auto.master:
> 
> /home ldap:my-ldap-hostname:ou=auto.home,dc=gip,dc=las,dc=ic,dc=unicamp,dc=br
> /net ldap:my-ldap-hostname:ou=auto.net,dc=gip,dc=las,dc=ic,dc=unicamp,dc=br
> /spool ldap:my-ldap-hostname:ou=auto.spool,dc=gip,dc=las,dc=ic,dc=unicamp,dc=br
> 
> And then started the /etc/init.d/autofs script:
> 
> [root@pulsar root]# /etc/init.d/autofs restart
> Starting automount:                                        [  OK  ]
> 
> Okay, automount recognized my maps, BUT:
> 
> [root@pulsar root]# cd /net/iso
> bash: cd: /net/iso: No such file or directory
> 
> 
> and in the /var/log/messages I got the following error (It's the ONLY time 
> I got something to help in the /var/log/messages):
> 
> Aug 15 23:34:00 pulsar automount[3930]: attempting to mount entry /net/iso
> Aug 15 23:34:00 pulsar automount[3964]: lookup(ldap): query failed for 
>(&(objectclass=nisObject)(cn=iso))
> Aug 15 23:34:00 pulsar automount[3964]: lookup(ldap): query failed for 
>(&(objectclass=automount)(cn=iso))
> 
> But with I try to do a query by myself:
> 
> [root@pulsar root]# ldapsearch -x "(&(objectclass=automount)(cn=iso))"
> version: 2
> 
> #
> # filter: (&(objectclass=automount)(cn=iso))
> # requesting: ALL
> #
> 
> # iso, auto.net, gip, las, ic, unicamp, br
> dn: cn=iso,ou=auto.net,dc=my,dc=ldap,dc=host,dc=name

The dc components differ from those that you specified in your /etc/auto.master!

> objectClass: automount
> automountInformation: -rw,nosuid,intr 
> 10.1.2.14:/l/arquivos/home/nomade/iso
> cn: iso
> 
>


Heinrich
-- 

Heinrich Rebehn

University of Bremen
Physics / Electrical and Electronics Engineering
- Department of Telecommunications -

E-mail: mailto:[EMAIL PROTECTED]
Phone : +49/421/218-4664
Fax   :            -3341

Reply via email to