in reply to Authenticating users against NIS+

getpwnam and it's related commands might be what you want.

$homedir=(getpwnam ("foo"))[7];

This would return the home directory of user "foo" for example.

Be more specific and give us some details though, there may be a better way to handle what you're doing.

~~

naChoZ