Bonjour,
je me suis interressé au paquet laps by wapt qui contient cette fonction "encrypted_data_str()"
j'ai bien entendu mis :
from setuphelpers import * from waptcrypto import *
en import en début de paquet.
J'essaye ensuite d'écrire la donnée cryptée dans l'audit mais sans succès. J'ai le message "NameError: name 'encrypted_data_str' is not defined"
la commande complète que j'utilise est :
WAPT.write_audit_data_if_changed("laps", "local_admin_password", encrypted_data_str(randompassword, [WAPT.public_certs_dir]), max_count=3)
Une idée de pourquoi la commande n'est pas reconnue dans mon paquet ? merci !
Thierry Cools
Administrateur réseaux et systèmes
Division des services d’information
Rue de Stalle 67
1180 Uccle
[cid:618ed4cb-f605-4bc3-a649-6000e2ec3b7c]
Bonjour Thierry,
La fonction a été renommée en "rsa_encrypted_data_str" et est maintenant directement dans le module setuphelpers Il faudrait que l'on mette à jour les exemples et documentations....
Hubert Touvet Tranquil IT
Le 23/04/2024 à 15:10, COOLS Thierry via WAPT a écrit :
Bonjour,
je me suis interressé au paquet laps by wapt qui contient cette fonction "encrypted_data_str()"
j'ai bien entendu mis :
from setuphelpers import * from waptcrypto import *
en import en début de paquet.
J'essaye ensuite d'écrire la donnée cryptée dans l'audit mais sans succès. J'ai le message "NameError: name 'encrypted_data_str' is not defined"
la commande complète que j'utilise est :
WAPT.write_audit_data_if_changed("laps", "local_admin_password", encrypted_data_str(randompassword, [WAPT.public_certs_dir]), max_count=3)
Une idée de pourquoi la commande n'est pas reconnue dans mon paquet ? merci !
*Thierry Cools*
*Administrateur réseaux et systèmes*
*Division des services d’information *
Rue de Stalle 67
1180 Uccle
WAPT mailing list WAPT@lists.wapt.fr http://lists.wapt.fr/listinfo/wapt
[like] COOLS Thierry reacted to your message: ________________________________ From: WAPT wapt-bounces@lists.wapt.fr on behalf of Hubert TOUVET via WAPT wapt@lists.wapt.fr Sent: Thursday, April 25, 2024 9:17:53 AM To: wapt@lists.wapt.fr wapt@lists.wapt.fr Cc: Hubert TOUVET htouvet@tranquil.it Subject: Re: [Wapt] LAPS by WAPT : encrypted_data_str
Bonjour Thierry,
La fonction a été renommée en "rsa_encrypted_data_str" et est maintenant directement dans le module setuphelpers Il faudrait que l'on mette à jour les exemples et documentations....
Hubert Touvet Tranquil IT
Le 23/04/2024 à 15:10, COOLS Thierry via WAPT a écrit : Bonjour,
je me suis interressé au paquet laps by wapt qui contient cette fonction "encrypted_data_str()"
j'ai bien entendu mis :
from setuphelpers import * from waptcrypto import *
en import en début de paquet.
J'essaye ensuite d'écrire la donnée cryptée dans l'audit mais sans succès. J'ai le message "NameError: name 'encrypted_data_str' is not defined"
la commande complète que j'utilise est :
WAPT.write_audit_data_if_changed("laps", "local_admin_password", encrypted_data_str(randompassword, [WAPT.public_certs_dir]), max_count=3)
Une idée de pourquoi la commande n'est pas reconnue dans mon paquet ? merci !
Thierry Cools
Administrateur réseaux et systèmes
Division des services d’information
Rue de Stalle 67
1180 Uccle
[cid:part1.VAnaCfhz.SPlNnnpS@tranquil.it]
_______________________________________________ WAPT mailing list WAPT@lists.wapt.frmailto:WAPT@lists.wapt.fr http://lists.wapt.fr/listinfo/wapt
-- Hubert TOUVET Tranquil IT