[85] in Hesiod

home help back first fref pref prev next nref lref last post

AMD and Hesiod, NO GO...

daemon@ATHENA.MIT.EDU (Michael Busby)
Wed Apr 15 14:53:04 1992

From: mcb@xwin.eng.hou.compaq.com (Michael Busby)
To: hesiod%mit.edu@twisto.eng.hou.compaq.com
Date: Wed, 15 Apr 92 13:38:57 CDT


In an earlier message, I noted that hesiod maps did not seem to work with
AMD (Automount Daemon) even though this is a supported map type.
I have narrowed the problem down to an incorrect argument being passed to 
hesiod_search.  We are running SunOS 4.1.1.

Given the following amd command line:

eval nice --4 amd -p > amd.pid -a /amd -r /mnt hesiod.test -type:=direct

and the following DNS automount.db file:

/defaults.test.automount HS TXT "opts:=retrans=6,timeo=11"

mnt.test.automount HS TXT "type:=nfs;opts:=rw,hard,intr;rfs:=/file_system;rhost:=machine"

when started, amd creates a symlink on top of /mnt which evidently points to
itself.  This is confirmed by amq which lists /mnt as mounted to /mnt.

Running amd in debug mode revealed that the 'key' argument passed to
hesiod_search in amd/info_hes.c is '*'.  This cannot be correct.
The key passed should be 'mnt' or 'default'.  It looks like the command line
arguments were not parsed correctly.  Because the key argument is wrong, the
hes_resolve function fails because it is refering to
hes_resolve("*.test, "automount") which does not exist.

I know that DNS and Hesiod are set up correctly because I can do:

hesinfo mnt.test automount

and get back the data in automount.db.

According to the manual, page 15, the setup described above should work.

We would like to use Hesiod maps with AMD but it does not seem possible.  I
have received mail from a couple of other users claiming that it works with
examples.  We have tried the examples and always come up against the problems
mentioned above.  We have seen this on 5.3a12, 5.3a14 and 5.3beta.  If anyone
knows of a solution as to why this is not working, please send a reply.

Thanks,

-- 
Michael C. Busby - Systems Engineer
----------------------------------------------------------------------
Compaq Computer Corporation        |  Internet: mcb@compaq.com        
P.O. Box 692000 m/s 050701         |  Uunet:    uunet!cpqhou!michaelb 
Houston, Texas, USA 77269-2000     |  Phone:    713-374-5638          
----------------------------------------------------------------------
"Armadillos....  Texas speed bumps."     Views/opinions are mine only.

home help back first fref pref prev next nref lref last post