Hi Ron,

On 18 Feb 2003 09:02:14 -0500 Ron Culler <[EMAIL PROTECTED]> wrote:

> I am writing a perl module that will change the users passwords after
> verifing the old password.  What I'm looking for is the method used by
> vpopmail to generate the password.  My goal is to create a perl version
> of this.

Is it _that difficulty_ as a person that wants to develop something on
top of vpopmail to have a look at the source code?

vpasswd.c, the source code for vpasswd, used for (native) password
changing reveals: a call to 'vgetpasswd()'. 
A short grep shows: declared in vpopmail.h, defined in vpopmail.c.
'vgetpasswd()' itself calls 'mkpasswd3()', "hidden" in the same file.
And 'mkpasswd3()' makes use of crypt(), a standard unix library function
to encrypt passwords one-way ... as any good perl documentation mentions

Are you sure you're the right one to develope something _that_ sensible
as "password checking and changing" if you ain't able to figure out _from
the source code_ that the standard library call is used???

Reply via email to