Change accounts password
#include <courierauth.h>
int rc=auth_passwd(const char *service, const char *username, const char *oldpassword, const char *newpassword);
If username's password is oldpassword, it is replaced with newpassword. service identifies which so-called "service"'s password is changed; like “imap” or “pop3”. Some Courier authentication library's back-end module can use different passwords for different services. service is ignored if this is not the case.
auth_passwd returns 0 if the password was succesfully changed. A non-0 error code indicates a failure..
\m[blue]authlib(3)\m[]\s-2\u[1]\d\s+2, \m[blue]auth_generic(3)\m[]\s-2\u[2]\d\s+2, \m[blue]auth_login(3)\m[]\s-2\u[3]\d\s+2, \m[blue]auth_getuserinfo(3)\m[]\s-2\u[4]\d\s+2, \m[blue]auth_enumerate(3)\m[]\s-2\u[5]\d\s+2.
[set $man.base.url.for.relative.links]/authlib.html
[set $man.base.url.for.relative.links]/auth_generic.html
[set $man.base.url.for.relative.links]/auth_login.html
[set $man.base.url.for.relative.links]/auth_getuserinfo.html
[set $man.base.url.for.relative.links]/auth_enumerate.html