pve-cluster: Verwaltungsports nur aus IPSET admin (Proxmox ergänzt management stets um das /24); Skript nutzt python auf dem Laptop
ci / test (push) Successful in 25s
ci / test (push) Successful in 25s
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5.1
parent
87b678e7a8
commit
47ad1580ff
@@ -50,7 +50,7 @@ o=h[-1]&15
|
||||
print('%06d'%((struct.unpack('>I',h[o:o+4])[0]&0x7fffffff)%1000000))\"")
|
||||
run "pvesh create /access/tfa/$userid --type totp --description 'Authenticator-App' --totp '$uri' --value $code" >/dev/null
|
||||
keys=$(run "pvesh create /access/tfa/$userid --type recovery --description 'Recovery-Keys (offline)' --output-format json" \
|
||||
| python3 -c 'import json,sys; print("\n".join(json.load(sys.stdin)["recovery"]))')
|
||||
| python -c 'import json,sys; print("\n".join(json.load(sys.stdin)["recovery"]))')
|
||||
umask 077
|
||||
{
|
||||
echo "Proxmox 2FA für $userid (angelegt $(date +%F))"
|
||||
|
||||
Reference in New Issue
Block a user