How to {crypt} password for OCA on opsi server ?

Antworten
nicolaslebrun
Beiträge: 104
Registriert: 18 Apr 2011, 11:43

How to {crypt} password for OCA on opsi server ?

Beitrag von nicolaslebrun »

Hi,

I can get the hash of password to populate install.conf of opsi-client-agent with

Code: Alles auswählen

/var/lib/opsi/depot/opsi-linux-client-agent/oca-installation-helper --encode-password MyS3curePassword
But, it is necessary to have opsi-linux-client-agent on depot.

Is there another way to crypt password directly on opsi server ?

Regards,
--
Nico
Benutzeravatar
n.doerrer
uib-Team
Beiträge: 120
Registriert: 23 Okt 2020, 16:11

Re: How to {crypt} password for OCA on opsi server ?

Beitrag von n.doerrer »

Hi,

you do not have to install the opsi-linux-client-agent. It is sufficient to have the oca-installation-helper for linux.
The easiest way is to download the opsi-linux-client-agent opsi-package and extract it with "opsi-package-manager -x". From there you can save the oca-installation-helper, which is a standalone binary and discard the rest. You could for instance save the binary at /usr/local/bin (and in case it isnt already there, add that to $PATH) to be able to call that binary from anywhere on the server.
Alternatively you could pull the python source from here https://github.com/opsi-org/oca-install ... tree/devel and work with that.
Antworten