Connection Manager and password reset

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
User avatar
Marcus
Posts: 367
Joined: Mon Nov 18, 2002 6:00 pm

Post by Marcus »

I don't believe it is impossible to force a connection with a different account. I can believe you haven't found the right way yet :wink:
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Connection Manager uses correct account, Windows uses another one :o
Yes, we can try to find some workaround but we may fail
User avatar
Marcus
Posts: 367
Joined: Mon Nov 18, 2002 6:00 pm

Post by Marcus »

One thing I know for sure: The first connection is made with the account used to start HostMonitor. There is no other connection (successfull or failed). HostMonitor just doesn't make the connection with the credentials supplied.

Since there are more application who are able to connect to a remote machine using a different account, I'm sure you will find the right method to connect to a remote machine. :P
Connection Manager uses correct account, Windows uses another one
This implies there should be at least two login attempts: One from HostMonitor, which is dropped and then the one from Windows. Like I said before, there is only one.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

This implies there should be at least two login attempts: One from HostMonitor, which is dropped and then the one from Windows. Like I said before, there is only one.
You do not understand. HostMonitor does not perform connection by itself. HostMonitor uses Windows API, it says "I need connection to that system using this user name and this password". Windows says "Ok" and uses different user name and password.

Regards
Alex
User avatar
Marcus
Posts: 367
Joined: Mon Nov 18, 2002 6:00 pm

Post by Marcus »

You do not understand
I do now and I'm sure you will find a solution :lol:
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

I already know one possible workaround but I cannot guarantee it will work in all cases.
Use IP address of the system instead of name. E.g. when I use \\testsystem1\d as path, Windows uses wrong user account. If I specify \\192.168.10.5\d, Windows uses specified user account.

Regards
Alex
User avatar
Marcus
Posts: 367
Joined: Mon Nov 18, 2002 6:00 pm

Post by Marcus »

Use IP address of the system instead of name
Does this mean I have to change every test?? or just the entry in the Connection Manager?
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Entry in Connection Manager.
mmonaghan
Posts: 19
Joined: Sat Nov 01, 2003 4:23 pm

Post by mmonaghan »

Posted: Thu Apr 01, 2004 7:16 am Post subject:

--------------------------------------------------------------------------------

Quote:
The message is titled "HostMonitor", says "Invalid pointer operation." and has an "OK" button. Spelling, spacing, Caps, etc were preserved.


Finally I found it. There is update at www.ks-soft.net/hostmon.eng/hm441.zip

Regards
Alex
There's no file at that address. I'd be happy to test it if it were there.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

You don't need that file anymore. Advanced Host Monitor 4.42 available at web site

Regards
Alex
User avatar
Marcus
Posts: 367
Joined: Mon Nov 18, 2002 6:00 pm

Post by Marcus »

Entry in Connection Manager.
Tried all three combinations, none worked. :cry:
User avatar
Marcus
Posts: 367
Joined: Mon Nov 18, 2002 6:00 pm

Post by Marcus »

Tried the following:

1. Created a seperate account on a remote machine
2. Added the server name as a resource for the remote machine, using the new account (in Connection Manager).
3. Changed the new password with the password generator (OK)
3. Changed the password for the account HostMonitor is running under on the remote machine (so login should fail)
4. Started the test for the remote machine

This what happened at the remote machine:
1. After starting the test, a login failure appears for the account HostMonitor is running under (OK, is changed so should not work)
2. Successfull login attempt with the new seperate account is made and the tests are performed

After 10 minutes (the test interval)
1. A login failure appears for the account HostMonitor is running under (OK, is changed so should not work)
2. HostMonitor goes to the "bad" status! No login attempts with the new seperate account is tried!

After this, changing the password for the new account, using the password generator shows a login failure for the HostMonitor account followed by a succesfull login of the new seperate account. The password is changed successfully!

Setting is to reconnect when needed and to log for failed authentication attempts (log file is not present)

Anybody any clue??
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

2. Successfull login attempt with the new seperate account is made and the tests are performed
After 10 minutes (the test interval)
1. A login failure appears for the account HostMonitor is running under (OK, is changed so should not work)
2. HostMonitor goes to the "bad" status! No login attempts with the new seperate account is tried!
Interesting who/what dropped connection between 1st and 2nd tests? HostMonitor does not do that.

Regards
Alex
User avatar
Marcus
Posts: 367
Joined: Mon Nov 18, 2002 6:00 pm

Post by Marcus »

Interesting who/what dropped connection
The problem is, there is no second connection attempt logged at the remote server. In other words: HostMonitor does not try to make the second connection (which it should).
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

I checked following test methods:
- Folder/File Size
- File/Folder Availability
- File Integrity
- Process
- Service
- CPU
- File Compare
- UNC
Code is correct.
What test did you check?

BTW:

Note #1: If application calls Windows API to perform connect (using WNetAddConnection2 function) and attempt fails, Windows ignores following calls for some time. I don't know what exactly timeout because its not documented but its how my Windows 2000 system works.
Probably different Windows works in different way, I don't know. Have not seen any information in Microsoft docs.

Note #2: Connection Manager has its own cache with 3 sec timeout. So, if HostMonitor starts test and cannot connect to remote system, it does not perform another connection to the same system using the same account (and password) within 3 sec.

Regards
Alex
Post Reply