user.conf.adoc: add user configuration

This commit is contained in:
Dietmar Maurer 2018-01-09 11:19:29 +01:00
parent c9d28a2bc6
commit 72af0c84ee
4 changed files with 106 additions and 0 deletions

17
gen-user.conf.5-opts.pl Executable file
View File

@ -0,0 +1,17 @@
#!/usr/bin/perl
use lib '.';
use strict;
use warnings;
use PVE::RESTHandler;
use Data::Dumper;
use PMG::UserConfig;
my $schema = $PMG::UserConfig::create_schema;
my $properties = $schema->{properties};
print PVE::RESTHandler::dump_properties($properties);
exit(0);

View File

@ -187,6 +187,8 @@ include::pmg.conf.adoc[]
include::cluster.conf.adoc[]
include::user.conf.adoc[]
:leveloffset: 0
:leveloffset: 1

44
user.conf.5-opts.adoc Normal file
View File

@ -0,0 +1,44 @@
`comment`: `<string>` ::
Comment.
`crypt_pass`: `\$\d\$[a-zA-Z0-9\.\/]+\$[a-zA-Z0-9\.\/]+` ::
Encrypted password (see `man crypt`)
`email`: `<string>` ::
Users E-Mail address.
`enable`: `<boolean>` ('default =' `0`)::
Flag to enable or disable the account.
`expire`: `<integer> (0 - N)` ('default =' `0`)::
Account expiration date (seconds since epoch). '0' means no expiration date.
`firstname`: `<string>` ::
First name.
`keys`: `<string>` ::
Keys for two factor auth (yubico).
`lastname`: `<string>` ::
Last name.
`password`: `<string>` ::
Password
`role`: `<admin | audit | qmanager | root>` ::
User role. Role 'root' is reseved for the Unix Superuser.
`userid`: `<string>` ::
User ID

43
user.conf.adoc Normal file
View File

@ -0,0 +1,43 @@
[[pmg_user_configuration_file]]
ifdef::manvolnum[]
user.conf(5)
============
:pmg-toplevel:
NAME
----
user.conf - Proxmox Mail Gateway User Configuration
SYNOPSIS
--------
`/etc/pmg/user.conf`
DESCRIPTION
-----------
endif::manvolnum[]
ifndef::manvolnum[]
User Configuration
==================
endif::manvolnum[]
The file `/etc/pmg/user.conf` contains the user configuration.
File Format
-----------
TODO
Options
-------
include::user.conf.5-opts.adoc[]
ifdef::manvolnum[]
include::pmg-copyright.adoc[]
endif::manvolnum[]