Community forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


ErikC
  •  ErikC
  • Paid support Topic Starter
2008-11-06T11:06:42Z
Hi,

I created a program which uses the visualcron api to change a password of a given connection.
In the command line I have to give the credentials to log in into the visualcron server, the ip numer and port of the server, the connection name and the new password. This program works fine.

I want to add this program in a job, but I want to give the command line variables containing the things I need (except for the username to login with, the connection name and the new password). I like to have something like this in the system variables:

{GETPSWD(<<username>>)}
{SERVERIP}
{SERVERPORT}

This is the result of the request:

myprogram.exe "{SERVERIP}" "{SERVERPORT}" "Erik" "{GETPSWD(Erik)}" "myConnection" "newPassword"


Now, if I change my password, I don't have to look at my task and change the password over there.
Don't know if it is possible to get the passwords out of the system. If not I think I have to create one seperate user for this, or for all my API programs.

Regards,
Erik
Uses Visualcron since 2006.
Sponsor
Forum information
Support
2008-11-06T11:38:53Z
So you are looking for something like this Variable?

{Connection(connectionId,PassWord)}

(It does not exist yet - just checking if we are talking about the same thing)
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
ErikC
  •  ErikC
  • Paid support Topic Starter
2008-11-06T11:54:05Z
{Connection(connectionId,PassWord)}

Which one (connectionId or PassWord) is variable over here? And what is the variables output?


In my console app I have to log in into the visualcron server, so I need login credentials. In these credentials I'm intrested in.
Now if I use the hard way and putting the login credentials in the command line, after a password change I have to itterate trough my task to change the passwords over there as wel. With the use of the variable of getting a password of a user, this is not needed anymore.

I created this console app because there is no task for changing the password of a connection.

Uses Visualcron since 2006.
Support
2008-11-06T12:58:33Z
This was just a sample. But we could add that.

The output is the decrypted password.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
ErikC
  •  ErikC
  • Paid support Topic Starter
2008-11-06T13:03:58Z
So I get the encrypted password of a user right? Not of a connection like FTP or so.
Isn't it so that I have to enter tha password for the connection object (API) in plain text, not encrypted?

(For setting the password of a connection I have to encrypt the password.)

regards
Erik
Uses Visualcron since 2006.
Support
2008-11-06T13:23:03Z
I am not sure I follow you here. You wanted some new Variables. And example of this is the one I supplied for a Connection. We could add Variables for Users as well.

We can use this topic for all kinds of Variables that you request.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
ErikC
  •  ErikC
  • Paid support Topic Starter
2008-11-06T13:35:59Z
Ok, I think we where talking about different things here.

My goal is to change a password of a connection programmaticly. Why? There is no task who can do this and I have to periodicaly change a FTP connection password.

I created a program in VS2005 C# who can do this, but I did not enter hard login credentials to login into the VisualCron server.
My program uses parameters from the command line:

1. IP address of visualcron server
2. Port number of visualcron server
3. Username to log in into the server
4. Password for the user in point 3
5. The connection name
6. The new password for the connection in point 5

I wanted to have variables for point 1, 2 and 4.

1. {SERVERIP}
2. {SERVERPORT}
4. {GETPSWD(<<username>>)}

By using the variable nr 4, I don't have to change the command task running my application when I change the password of the user mentioned in point 3.
So point 4 is the one I want (1 and 2 are nice to have)

So two thing over here:
- I have to chenge my password periodically to login into visualcron, but that's no problem.
- I have to change a FTP password periodically in the connections of visualcron. That's why I'm posting this question.

I hope we are now talking about the same thing 🤔

Regards
Erik
Uses Visualcron since 2006.
Support
2008-11-06T13:53:34Z
Ok, this can be done already (update FTP connection password) if you just use the API. Just use the Connections.Update() method.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
ErikC
  •  ErikC
  • Paid support Topic Starter
2008-11-06T18:32:16Z
I know, I made a program for this.

I just thought that what I want isn't possible due to security issues. You can get passwords of all the users in the user management like this. That's not good.

That leaves us with the variables from 1 and 2, but those are just nice to haves.


Regards
Erik
Uses Visualcron since 2006.
Support
2010-04-07T12:06:27Z
We have added some basic Server variables in 5.5.6. here:

http://www.visualcron.co....aspx?g=posts&t=1158 

Also, please give us feedback regarding an idea of future development.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top