Drew Raines writes: 

> I'm using userdb to authenticate 50 users on IMAP, POP, and sqwebmail.  I
> would like to write a simple web interface for my users to change their
> passwords.  Though the functionality has now been incorporated in sqwebmail
> 3.0.0, it isn't terribly user-friendly.

What's so terrible about: enter your old password, enter your new password, 
enter it again? 

> It seems that the ability to do this exists in the sqwebmail CGI binary.  I
> traced the source back to the do.changepwd function in pref.c.  In
> preferences.html, what is the #R# tag for the action?  Does this refer to
> the sqwebmail binary?

Not exactly.  This construct generates a URL that will refer back to the 
sqwebmail binary, with the current session's authentication code.  
Additionally, if sqwebmail was configured to use SSL for logging in, the URL 
will be an https URL. 

>                      How would I determine success or failure? 
> 
> Or, should I use the userdb binary to set the password, and authuserdb to
> validate it?  I can't find any documentation about calling authuserdb on
> the authlib.html web page at inter7.  It just tells me that an external
> program usually calls it. 
> 
> Is there an easier way that I'm overlooking?

What can be possibly easier than three fields, and a 'submit' button? 


-- 
Sam 

Reply via email to