i am trying to connect to lotus mail database from COM. The moment i connect to the db, it pops up a password dialog. Is there any way to suppress this?
I understand that this detail is stored locally in a file called user.id Can I get the information from this file and assign it to the password field?
No. The user’s Notes password is not stored anywhere. A key derived from the password is used to encrypt critical parts of the ID file (certificates, encryption keys), and those keys need to be decrypted before authentication with the server can happen. (Notes/Domino authentication is not username/password, it’s a certificate exchange.)
If the Notes client is up and running, a setting (File->Security->User Security) will allow other Notes-based programs to run without an additional password prompt, but if Notes is not running, the user will be prompted for a password.
You CAN pass the password in the Initialize() call for the NotesSession, but unless the user has synchronised their Notes and Windows passwords, there is no way to determine what that password is at runtime except by brute-force guessing.