Here's `getGroup`:
assuming the workstation names are in the form: X000Y100.organisation.fr
where X000 is the site reference.
`def toSiteName(computer_fqdn):
"""`
Returns the site name based on the hostname.
`:param computer_fqdn: full hostname of a client workstation.
`:return string: name of the ...`
The search returned 27 results
- July 23, 2018 - 1:47 PM
- Forum: WAPT Packages
- Subject: [SOLVED] Encrypting your Wapt passwords
- Answers: 16
- Views : 16284
- July 23, 2018 - 1:09 PM
- Forum: WAPT Packages
- Subject: [SOLVED] Encrypting your Wapt passwords
- Answers: 16
- Views : 16284
Re: [SOLVED] Encrypting your Wapt passwords
It's a function specific to each organization, and even anonymized, I doubt it makes sense to provide it. But I'll see what I can do 
- July 20, 2018 - 3:39 PM
- Forum: WAPT Packages
- Subject: [SOLVED] Encrypting your Wapt passwords
- Answers: 16
- Views : 16284
Re: [SOLVED] Encrypting your Wapt passwords
Here's my code, anonymized and commented as much as possible. Hopefully it helps.
`def isGroup(myPackage):
"""`
Returns True if the package is a group package in Active Directory.
`:param myPackage: name of the package to test.
`:return boolean: True if myPackage belongs to groupPackages, False otherwise.
`:example ...`
`def isGroup(myPackage):
"""`
Returns True if the package is a group package in Active Directory.
`:param myPackage: name of the package to test.
`:return boolean: True if myPackage belongs to groupPackages, False otherwise.
`:example ...`
- July 20, 2018 - 10:49
- Forum: WAPT Packages
- Subject: [SOLVED] Encrypting your Wapt passwords
- Answers: 16
- Views : 16284
Re: [SOLVED] Encrypting your Wapt passwords
Okay, it's a .pyd file, my bad, thanks
- July 20, 2018 - 10:02
- Forum: WAPT Packages
- Subject: [SOLVED] Encrypting your Wapt passwords
- Answers: 16
- Views : 16284
Re: [SOLVED] Encrypting your Wapt passwords
FYI
import waptguihelper
urlserver = inifile_readstring(makepath(install_location('WAPT_is1'),'wapt-get.ini'),'global','wapt_server')
mycrt = inifile_readstring(makepath(user_local_appdata(),'waptconsole','waptconsole.ini'),'global','personal_certificate_path')
passwordkey ...
- July 20, 2018 - 08:16
- Forum: WAPT Packages
- Subject: [SOLVED] Encrypting your Wapt passwords
- Answers: 16
- Views : 16284
Re: Encrypting your Wapt passwords
In this case, you need to write a separate Python script that runs as a scheduled task.
Don't put it in a package. Otherwise, you'll be forced to put the passwords in the package.
Script algorithm:
- Scan the database
- For each workstation, analyze the inventory to determine what...
- July 19, 2018 - 3:51 PM
- Forum: WAPT Packages
- Subject: [SOLVED] Encrypting your Wapt passwords
- Answers: 16
- Views : 16284
Re: Encrypting your Wapt passwords
I agree that storing the password in a package script is counterproductive. Let me explain:
I wanted to create my user groups based on their hostname. So I created my group packages and coded my script. Depending on the client's hostname, the package mnt...
I wanted to create my user groups based on their hostname. So I created my group packages and coded my script. Depending on the client's hostname, the package mnt...
- July 19, 2018 - 08:22
- Forum: WAPT Packages
- Subject: [SOLVED] Encrypting your Wapt passwords
- Answers: 16
- Views : 16284
Re: Encrypting your Wapt passwords
In a package named `dispatch` that allows the automatic installation of GROUP packages,
I perform a build-upload in the script after editing my host package. That's why my password ended up in a package.
I perform a build-upload in the script after editing my host package. That's why my password ended up in a package.
- July 18, 2018 - 3:49 PM
- Forum: WAPT Packages
- Subject: [SOLVED] Encrypting your Wapt passwords
- Answers: 16
- Views : 16284
[SOLVED] Encrypting your Wapt passwords
Hello,
In one of my scripts, I upload a package to the server. This function requires two passwords (admin password and private key password). Are we required to hardcode the password in the code, given that it's included in the packages?
In one of my scripts, I upload a package to the server. This function requires two passwords (admin password and private key password). Are we required to hardcode the password in the code, given that it's included in the packages?
- July 18, 2018 - 08:09
- Forum: WAPT Packages
- Subject: Error installing package
- Answers: 13
- Views : 14940
Re: Error installing package
We need to check the WAPT response. What does it say? Do you get an error message, for example?
