Per-database login form using Web Site Rules and DOMCFG

We've set up a Web Site (in the Internet Sites view) for a certain URL to serve a variety of web applications.
Most web applications under that site need to use the same login form, which we've configured in DOMCFG.NSF to map the URL to a publicly readable login form.
For a couple of applications, we need to use a custom login form, so in other words, we would really need to configure per-database login forms rather than the per-virtual-server settings that DOMCFG allows.
I'm conscious that DOMCFG does not provide this, so I started hacking away with Javascript redirects.

My idea was that the standard login form could check the RedirectTo field to see if the user is going to one of those special web applications which require a custom login form, and redirect to that login form by doing a top.location.replace().

I can get the redirect to work to e.g. www.google.com, but if I redirect to the login database (DB ACL: Anonymous = Reader, Login form: $PublicAccess="1"), Domino still presents me with the original login page, but it has just changed the RedirectTo value to that second login form....!

It seems as if Domino is enforcing the standard login page for that virtual server, even though I am pointing it to a publicly accessible login page...!
Can I somehow circumvent this behavior, i.e. point to the login page that I want?

Or is there another way to show a login form based on the database the user is trying to access on that virtual server?

Thanks
int21dotorgAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

SysExpertCommented:
check
http://www-10.lotus.com/ldd/sandbox.nsf/
for a web login jumpoff database

I hope this helps !
0
int21dotorgAuthor Commented:
Thanks, but what these examples do is redirect authenticated users to different databases, and what I need to do is show unauthenticated users different login forms!

Any other suggestions?
0
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

Sjef BosmanGroupware ConsultantCommented:
Won't work. Only the form in the domcfg database is used, for the rest NOTHING. The only thing you might be able to do is to create several websites on your server. On the other hand, I think it's no possible to give each website a different login-form. Anyway, this would be my way to test this.
0
int21dotorgAuthor Commented:
That's the second "impossible" I've heard today.

I've now got it to work myself using a technique described here (http://www.keysolutions.com/NotesFAQ/all5x.html#NT000015FE).

I've changed the method slightly so that my standard login form uses a couple of Computed Subforms.

I start off with a Computed Subform with the following formula:

QS:=@UpperCase(RedirectTo);
@If(
      @Contains(QS;"CLIENT1");"LoginSubForm_Client1_Start";
      @Contains(QS;"CLIENT2");"LoginSubForm_Client2_Start";
      "LoginSubForm_Default_Start"
)

The LoginSubForm_Client1_Start contains all HTML required above the login input fields.

Then there's a subform named LoginSubForm_UserInput, which contains the fields Username, Password, RedirectTo, $PublicAccess, ReasonType, and the Login button.
This subform is used for all login forms.

And I end with a second Computer Subform based on the following formula:

QS:=@UpperCase(RedirectTo);
@If(
      @Contains(QS;"CLIENT1");"LoginSubForm_Client1_End";
      @Contains(QS;"CLIENT2");"LoginSubForm_Client2_End";
      "LoginSubForm_Default_End"
)

Works like a charm!

Thanks for the input, but no points I'm afraid.....!
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Sjef BosmanGroupware ConsultantCommented:
Ah, but you said you wanted "different login forms" :(

You just saved yourself 500 points! I'd never have thought that it would work with a subform, for practically anything else doesn't in domcfg...

Ask for a PAQ/Refund in the Community Support TA.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Lotus IBM

From novice to tech pro — start learning today.