Example 1 : In the below condition it won't ask for credentials.
C:\\InCharge8\\SAM\\smarts\\local\\conf
SAM s conf file: User Name = test Password = test
C:\\InCharge8\\IP\\smarts\\local\\conf
IP s conf file: Username = test Password = test
Example 2 : Credentials will be asked in the below case:
C:\\InCharge8\\SAM\\smarts\\local\\conf
SAM s conf file: User Name = test Password = test
C:\\InCharge8\\IP\\smarts\\local\\conf
IP s conf file: Username = test Password = test123
Basically, whichever user is logged into SAM, that user must have an entry in serverConnect.conf file in AM, If it does, then no prompt. The reason for the prompt is, first the program take the user that's already logged into SAM and try to do a match, if no match is found, then it will prompt and ask for the credential.