feature: the PKI's schema is a file of its own that another slapd loads, a certificate can carry the name an application files it under, and the members of pki-managers manage the PKI with its keys.
Release / release (push) Successful in 24s
Release / release (push) Successful in 24s
This commit is contained in:
1 parent
6911d16fa3
commit
b61d1593b7
14 files changed
+378
-169
No files matched your search
@@ -2,21 +2,21 @@
|
||||
"""Print the current TOTP code of a user of a Linux Manager VM: lm-dev-otp-code.py.
|
||||
|
||||
The code is the one of the key <vm>-<user> in the TOTP engine of the Vault of the project --project
|
||||
(LXD_PROJECT, lm-dev by default), for --user (admin by default) of the VM --vm (lm-dev), which
|
||||
(LXD_PROJECT, lm-dev by default), for --user (admin by default) of the VM --vm (router), which
|
||||
lm-dev-otp-register.py or lm-dev-vm.py create enrolled.
|
||||
"""
|
||||
|
||||
import argparse
|
||||
import sys
|
||||
|
||||
from lm_dev import PROJECT, VaultError, otp_code, setting
|
||||
from lm_dev import PROJECT, VM, VaultError, otp_code, setting
|
||||
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description=__doc__.splitlines()[0])
|
||||
parser.add_argument('--project', default=setting('LXD_PROJECT', PROJECT),
|
||||
help=f'the project of the VM (LXD_PROJECT, default {PROJECT})')
|
||||
parser.add_argument('--vm', default='lm-dev', help='the name of the VM (default lm-dev)')
|
||||
parser.add_argument('--vm', default=VM, help=f'the name of the VM (default {VM})')
|
||||
parser.add_argument('--user', default='admin', help='the user (default admin)')
|
||||
args = parser.parse_args()
|
||||
try:
|
||||
|
||||
Reference in new issue
Block a user