Retrieving database with password protection

Hi there,

I am trying to write a program that retrieves document from a database from my Lotus Notes database.

Currently my program works fine. However, everytime i try to retrieve any datas, i have to key in my password.

Is there any ‘get’ function that allows me to input my password to retrieve the data. so that i only need to key in my password once everytime i open my program?

Thanks to everyone that can offer me any help or advise in advance.

Subject: Retrieving database with password protection

what kind of program/toolkit are you using?

in c-api there’s SECKFMSwitchToIDFile (can also be used in c++ api).

Markus Seitz

markus.seitz@icodex.com

Subject: RE: Retrieving database with password protection

Hi Markus, thanks for your response. I am using the c++ api toolkit.

By the way, do you mean i can only get the file when i download the c-api toolkit?. There is a extpwd sample for the c++ toolkit. Is it the same?

If so, how do i use it? Sorry for my questions, but i have been trying to read the samples the whole day but still cannot make head or tail with it.

Once again, thanks for your response. Really appreciate it

Subject: RE: Retrieving database with password protection

you can call any c-api functions from within c++ api. download c-api toolkit if you need documentation, header files and libs are already included.

SECKFMSwitchToIDFile is just a simple call.

extpwd sample creates an extension manager dll that allows you to hook password prompt (and supply password). but you need to modify & compile it, put dll in your program directory and make a notes.ini entry. i’d rather stick to SECKFMSwitchToIDFile.

You can also create an id-file that has no password, so that’ll avoid the prompt, or setup single sign on (windows/domain password must match id-file password)…

Markus Seitz

markus.seitz@icodex.com

Subject: RE: Retrieving database with password protection

Hi mark,

Thanks for your help. I think i go the gist of it. thanks for your help again.

Subject: If you have Notes running on your machine…

File, Security, User Security and check this box:

Subject: RE: If you have Notes running on your machine…

Hi Bill,

Thanks for your response. But do you know of any program that can actually catch the user entering the password? There is a program available for the c api. But i do not know how to use it for the c++ api.(I am using the c++ api)

This is so that i can enter the password for the user instead.

Thanks for the reply once again.Appreciate it.