SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
COM Agent- Logon failure

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
COM Agent- Logon failure
Author Message
cdinvesco



Joined: 24 Apr 2012
Posts: 2
Country: United States

Post COM Agent- Logon failure Reply with quote
Win 7 SP1, testing COM control with version 4.4 Build 339 with below code. I have checked to be sure logon is with domain/user syntax.
Options->Network->Remote Control is enabled with port 1097
(the COM License has been replaced by XXX)
RC = Remote_24x7.OpenSession("corp\quantid", "XXX", "WinSock", "LocalHost", "1097", "", False)
Is the license for the com control the right 'password' to pass in?)

The error I get from the com lastError is "An Error occurred during authentication"

The DEBUG log error is :
2012-04-24 11:46:36,664 [Thread-11811] DEBUG com.softtreetech.jscheduler.business.log.DbLogAdaptor - Database: invoked
2012-04-24 11:46:43,193 [Thread-3] DEBUG com.softtreetech.jscheduler.business.remotecontrol.RemoteOperationsImpl - Connect called corp\quantid XXX *****
2012-04-24 11:46:43,194 [Thread-11811] DEBUG com.softtreetech.jscheduler.business.remotecontrol.SocketConnection - requestId 3
2012-04-24 11:46:43,195 [Thread-11811] DEBUG com.softtreetech.jscheduler.business.remotecontrol.SocketConnection - requestId 6
2012-04-24 11:46:43,195 [Thread-11811] DEBUG com.softtreetech.jscheduler.business.remotecontrol.SocketConnection - Method name opensession
2012-04-24 11:46:43,195 [Thread-11811] DEBUG com.softtreetech.jscheduler.business.remotecontrol.SocketConnection - methodSignature LSSSS
2012-04-24 11:46:43,195 [Thread-11811] DEBUG com.softtreetech.jscheduler.business.remotecontrol.SocketConnection - arguments 4
2012-04-24 11:46:43,195 [Thread-11811] DEBUG com.softtreetech.jscheduler.business.remotecontrol.SocketConnection - method params [ATL002333635, corp\quantid, XXX, *****]
2012-04-24 11:46:43,195 [Thread-4] DEBUG com.softtreetech.jscheduler.business.remotecontrol.RemoteOperationsImpl - Open session called ATL002333635 corp\quantid XXX
2012-04-24 11:46:43,195 [Thread-4] DEBUG com.softtreetech.jscheduler.business.runner.security.SecurityService - hasRemoteControlAccess: C:\Users\quantid\24x7Sched\userchk.exe
2012-04-24 11:46:43,291 [Thread-4] DEBUG com.softtreetech.jscheduler.business.runner.security.SecurityService - Logon failure: unknown user name or bad password.
Tue Apr 24, 2012 12:01 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6485

Post Reply with quote
I don't think so. For MP Edition that should be the actual user password. The debug log is indicating that login failed for user account corp\quantid and the error came from operation system when trying to authenticate that user.

It looks like you are running it on Windows. You should be able to see matching login failed message in Windows security event log.
Tue Apr 24, 2012 12:31 pm View user's profile Send private message
cdinvesco



Joined: 24 Apr 2012
Posts: 2
Country: United States

Post password Reply with quote
The 24x7 Remote Control COM API docs state:
User The user ID that you want to use for the connection. If an empty
string is specified for the User, 24x7 Remote Control COM
automatically obtains user ID of the user logged on the computer
running 24x7 Remote Control COM.
Password Reserved. A String value. In the current version you should use
the 24x7 serial number.

Otherwise i would have to hardcode a password for the login which changes every 6 weeks.
Is there not another auth method that uses the current credentials?
Tue Apr 24, 2012 12:52 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6485

Post Reply with quote
The COM interface can be used with both the old legacy 24x7 Scheduler Windows Edition and with the new 24x7 Multi-platform Edition. Their internal security implementation is quite different. The legacy version manages internal users and passwords, has weak security and doesn't require passwords for remote connections. The new version closely integrates with operation system and network which is a much better method from the security point of view. The drawback, you need to use real user accounts and passwords. As with any other unattended automation processes, you should either use a special account with non-expiring password, that's typically what other people do , or you make the code to read required password from some config file or database and pass it dynamically. That stored password can be encrypted and decrypted in run-time as required.
Tue Apr 24, 2012 1:41 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.