Link to home
Start Free TrialLog in
Avatar of mkumaran
mkumaran

asked on

Login the same database

In my server settings.. the authentication is session based, login will use a custom based form, a default database is specified as home database.. so if the user enters http://servername then the custom form authenticates the user.

But I want to provide access to a database inside the server from IIS server... If the user clicks the URL from IIS's webpage (for eg http://servername/dbname.nsf?Login).. it opens the custom login form and if the user enters the username and password correctly it opens the database... BUT if the username/password is incorrect then the URL automatically changed to the Names database of the server (like http://servername/names.nsf?login)...

We do not want to change the HOME page settings of our server.

How can I maintain the authentication resides on the same database till the user authenticates succesfully ?

Regards,
Kumar
Avatar of zvonko
zvonko

Hello Kumar,

is not your customized $$LoginUserForm form in the database domcfg.nsf ?

When in this domcfg.nsf you can create two config documents:
Mapping a Login Form
Mapping Error Messages

I tested for this "Mapping Error Messages" to place the database and form for "Authentication Failure", but I got allways the form dedicated for:
Login Form/Target Database file name:/Target Form name:

This is also the behaviour when you do not create one of this config documents but simple create the domcfg.nsf from the template domcfg.ntf
Therin you simply adapt the allready present form: $$LoginUserForm

But still your question: How to make disapear: /names.nsf?Login
is not solved. My assumption is, that is hardcoded.

Try this all on your servers instalation. Be warned that "tell http restart" is not enough. Best choice is to stop and start the srever (not simply: restart server).

Good luck,
zvonko
Avatar of mkumaran

ASKER

Hi zvonko,

Thanks for your quciker response.
I've checked the domcfg.nsf... the it has two documents already created.. one for mapping the custom login form.. which is pointing to DCLF.nsf (from Lotus Sandbox) and the other is created with default values.. so the "Error Message and Response Mapping" form contains the default entries only.. which is same as the database name "Domcfg.nsf".

Since we are using DCLF.nsf we didn't change anything in $$LoginUserForm.
Names.nsf is no where hardcoded (even I checked the server document).. Server document's default home page is a different notes application and not Names.nsf

Do we need to remove the default Domcfg.nsf from the error message form ?

Regards,
Kumar
ASKER CERTIFIED SOLUTION
Avatar of zvonko
zvonko

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
Hi Zvonko,

I found that the DCLF's custom form's action tag includes "Names.nsf?login"... which gives the problem...

Anyhow thanks a lot for your valuable suggestions.

Regards,
Suresh
Hello Suresh,

tahnk you for the feedback ;-)
but wath about my points <|;-)

Regards,
zvonko
Sorry :-)

thank you for the points.

Regards,
zvonko