auth_passwd(3)

auth_passwd3

Change account's password

Usage

#include <courierauth.h>

int rc=auth_passwd(const char *service, const char *username, const char *oldpassword, const char *newpassword);

Overview

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.

Returns

auth_passwd returns 0 if the password was succesfully changed. A non-0 error code indicates a failure..

Notes

1.

authlib(3)

http://www.courier-mta.org/authlib/authlib.html

2.

auth_generic_meta(3)

http://www.courier-mta.org/authlib/auth_generic.html

3.

auth_login_meta(3)

http://www.courier-mta.org/authlib/auth_login.html

4.

auth_getuserinfo_meta(3)

http://www.courier-mta.org/authlib/auth_getuserinfo.html

5.

auth_enumerate(3)

http://www.courier-mta.org/authlib/auth_enumerate.html

Releases

10 releases since Debian 4.0 (Etch); the text changed 6 times.

  1. 4.0
  2. 5.0
  3. 6.0–7
  4. 8
  5. 9
  6. 10
  7. 11–13

From courier-authlib-dev 0.72.4-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.