Date: Wed, 02 Nov 2005 15:49:43 +0300 From: Igor Robul <igorr@speechpro.com> To: Dan Toganel <dantoganelus@yahoo.com> Cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD auth Message-ID: <4368B5E7.4050309@speechpro.com> In-Reply-To: <20051102095717.27512.qmail@web51310.mail.yahoo.com> References: <20051102095717.27512.qmail@web51310.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Dan Toganel wrote: >........................................ >I realize that in FreeBSD master.passwd is the >replacement for linux shadow file. >Is there a function to parse it? >And how can i obtain the hash string? >Thanks in advance for any help. > > It is not recommended directly use /etc/passwd, you your program need authentification, then use PAM (man 3 pam). If you still want ignore PAM, you can use getpwent(3) family of functions.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4368B5E7.4050309>