Link to home
Start Free TrialLog in
Avatar of jmlacoste
jmlacosteFlag for France

asked on

No password prompt to read names.nsf

Hello all,

We are having issues with a piece of code that seem to behave differently nowadays.
We want to access contacts in a local names.nsf file without asking for the Lotus Notes password of the user.

We were thinking that if the Notes client was running, ie the user had already logged into Notes, we could access his names.nsf file without asking him his Notes ID...
After some tests it seems like Notes is always asking for the password, no matter if it is running or not.

Does anyone know for sure if this has always been the behaviour, or has it changed recently with newer versions of Notes?

Here is the line of code that prompts for the password (I understand that if pwd="", it will ask for it anyway) :

session = new NotesSession();
session.Initialize(_notesPwd); // << bugger

Open in new window


Thanks for your help!
ASKER CERTIFIED SOLUTION
Avatar of Sjef Bosman
Sjef Bosman
Flag of France image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jmlacoste

ASKER

Thanks a lot,
simple and perfect answer