Back to product page

Login property


Holds login information.

Type

A String value.

Syntax

  • Basic
object.Login [= value]  
The Login(object,value) syntax has these parts:
objectAn expression evaluating to an object of type SSHUser.
valueA String value.

Remarks

This property is used during LoginPassword event, and allows you to authenticate user (together with Password property) and allow/deny access to your server to that particular user.

If you are using NT native authentication (UseNTAuthentication set to True), you can change value of this property to create custom login/password combinations that define specific NT account. For example, you can
  • create Guest account on your system (with password 'Guest'), and
  • in Login event check for Login/Password entered by the user, test it matches something from your user's database (like 'Joe'/'Joe'). If combination is valid,
  • set Login="Guest" and Password="Guest" and allow user to login.

Later, when shell is executed it will be executed under privileges of user 'Guest' because this is the value wodSSHD has read from Login/Password properties. Also, you should use Domain property to specify NT Domain that is used for authentication such user.


Platforms

Windows