On Thu, 18 Mar 2004, Neal Becker wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Can anyone help me with migrating autofs to ldap? > > To test, I added this line to /etc/auto.master: > > /testÂÂÂldap:rpppc1.md.hns.com:ou=auto.test,dc=adg,dc=hns,dc=comÂ
Try /test ldap //rpppc1.md.hns.com/ou=auto.test,dc=adg,dc=hns,dc=com > > Here is the corresponding ldif: > dn: nisMapName=auto.test,dc=adg,dc=hns,dc=com > objectClass: top > objectClass: nisMap > nisMapName: auto.test > > dn: cn=test,nisMapName=auto.test,dc=adg,dc=hns,dc=com > objectClass: nisObject > cn: test > nisMapEntry:ÂÂÂÂrpppc1.md.hns.com:/disk1/test > nisMapName: auto.test > > If I do /sbin/service autofs reload, I get: > > Mar 18 09:19:40 rpppc1 automount[19312]: starting automounter version 4.1.0, > path = /test, maptype = ldap, mapname = > rpppc1.md.hns.com:ou=auto.test,dc=adg,dc=hns,dc=com > Mar 18 09:19:40 rpppc1 automount[19312]: using kernel protocol version 4.00 > Mar 18 09:19:40 rpppc1 automount[19312]: using timeout 300 seconds; freq 75 > secs > Mar 18 09:19:40 rpppc1 automount[19312]: lookup(ldap): query failed for > (&(objectclass=nisObject)) > Mar 18 09:19:40 rpppc1 automount[19312]: lookup(ldap): query failed for > (&(objectclass=automount)) > Mar 18 09:19:40 rpppc1 automount[19312]: failed to load map, exiting > Mar 18 09:19:40 rpppc1 automount[19312]: failed to remove dir @ $(J`S (BI - > §f: No such file or directory -A > > (Yes, the garbage characters are there in the log) Garbage chars fixed in 4.1.1. Also if you use /test ldap //rpppc1.md.hns.com/ou=auto.test,dc=adg,dc=hns,dc=com --debug with 4.1.1 you will get more info in wherever you log debug output (/var/log/debug.log in RedHat). Ian _______________________________________________ autofs mailing list [EMAIL PROTECTED] http://linux.kernel.org/mailman/listinfo/autofs
