NAME

authcomplex-passwd - change user password

SYNOPSIS

authcomplex-passwd USERNAME [DSN [DB_USER [DB_PASSWD]]]

# For example:
authcomplex-passwd myuser # dsn defaults to 'dbi:Pg:'
authcomplex-passwd myuser 'dbi:Pg:dbname=www-data'
authcomplex-passwd myuser 'dbi:Pg:dbname=www-data' db_superuser password123

DESCRIPTION

NOTE: This script does not support scrypt passphrases.

The authcomplex-passwd script changes the password for an user. Takes one mandatory argument, the user whose password should be changed.

The DBI Data Source Name is the second argument to the script, or the value of the AUTHCOMPLEX_DSN environment variable if set, or dbi:Pg: otherwise.

The username for the database is the third argument to the script, or the value of the AUTHCOMPLEX_DBUSER environment variable if set, or an empty string otherwise.

The password for the database is the fourth argument to the script, or the value of the AUTHCOMPLEX_DBPASSWD environment variable if set, or an empty string otherwise.

AUTHOR

Marius Gavrilescu, <marius@ieval.ro>

COPYRIGHT AND LICENSE

Copyright (C) 2015-2017 by Marius Gavrilescu

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.20.1 or, at your option, any later version of Perl 5 you may have available.