The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

we_user - manipulate the web.editor user database

SYNOPSIS

    we_user [-class classname] [-containedin modulename]
            [-rootdir dir | -userdb file -onlineuserdb file]
             command options ...

DESCRIPTION

COMMANDS

Valid commands are:

show

Show the whole database

add -u user -p password [-n "Full Name"] [-g group1,group2,...] [-email emailadress]

Add a new user with a password and optionaly a real name and groups.

add-if-not-exists -u user -p password [-n "Full Name"] [-g group1,group2,...] [-email emailadress]

Like add, but do not fail if user already exists.

del -u user

Delete the named user (by username).

passwd -u user -p password

Change the password for user. The -p password option may be omitted, in this case the password is queried in the terminal (recommended).

update -u user [-p password] [-n "Full Name"] [-g group1,group2,...] [-email emailadress]

Change attributes for user.

dbinfo -k key -v value

Change database meta data.

showdbinfo -k key

Print the value of the named key.

user-exists -u user

Exit with 0 if the named user exists and with 1 if the user does not exist.

OPTIONS

-class class

WE_Framework UserDB class e.g. WE::DB::User or WE::DB::ComplexUser. Default is WE::DB::ComplexUser.

-containedin module

Set this if the UserDB class is contained in another module

-rootdir directory

The root directory of the database (can be used instead of specifying -userdb). By default the current directory is used.

-userdb file

The user database file.

-onlineuserdb

The online user database file

AUTHOR

Slaven Rezic

SEE ALSO

WE::DB::ComplexUser, WE::DB::User.