wodSSHServer ActiveX Control - Environment Property
      
 

Description

Holds environment variables for connected user.


Property type

A String value.  


Syntax

object.Environment [= value]



The Environment Property syntax has these parts:

Part Description
object An expression evaluating to an object of type SSHUser.
value A String value.

Remarks

This property will be used only if UseNTAuthentication property is set to True, since this is only time when wodSSHServer runs spawned process with user's new privileges. When doing so, you can specify Environment property so that it contains all new environment variables that will be visible to newly spawned process. You have to put them line by line, so that they look like this, as example:

PATH=C:\;D:\
SOMEVAR=some value
SOMEOTHERVAR=some other value

wodSSHServer will parse your provided environment and pass it to CreateProcess API for the user.

If you don't specify new environment variables, same set of variables will be used as in parent process (that belongs to wodSSHServer itself).

It is important to set this value before ServiceStart event is fired!.