Yes, it works.
Thanks.
Bao
-----Original Message-----
From: Mike Fletcher [mailto:">fletch@phydeaux.org]
Sent: Friday, April 07, 2000 10:19 AM
To: ">BHa@ixl.com
Cc: ">ale@ale.org
Subject: Re: [ale] Perl Questions
>>>>> "BHa" == BHa ">BHa@ixl.com> writes:
BHa> How do I get a NIS username in Perl?
BHa> I know how to get a username from the /etc/passwd file.
BHa> There is probably an easy way to get it from NIS also.
Same way as getting from /etc/passwd. Just call getpwnam (or
getpwuid, or . . .). It just calls the underlying system getpwnam so
if the system's setup to use NIS it should just work. If you need to
get NIS passwords on a system that's not configured for NIS, there's a
`Net::NIS' module on CPAN. No idea how stable it is or how well it
works, but it's there. :)
--
Fletch | "If you find my answers frightening, __`'/|
">fletch@phydeaux.org | Vincent, you should cease askin' \ o.O'
678 443-6239(w) | scary questions." -- Jules =(___)=
| U
--
To unsubscribe: mail ">majordomo@ale.org with "unsubscribe ale" in message
body.
--
To unsubscribe: mail ">majordomo@ale.org with "unsubscribe ale" in message body.