Link to home
Start Free TrialLog in
Avatar of jennifer_merritt
jennifer_merrittFlag for United States of America

asked on

Lotus iNotes Login from HTML Post form

Hello Experts.
I would like to use a url to loginto lotus iNotes. The url i am currently using is : https://server.domain.org/webmailredirect.nsf?Login=iwaredir.nsf&username=atestuser&password=atestpassword

I would like to submit this using a form. I can get it to work with this form. But...I need to use the POST and Not GET method.

For some reason the form will not work when i use Post. It will work perfectly when i use get.

What i am trying to accoplish is a small form on the main page of the intranet that users can put their username and password in that will open lotus iNotes.

I found this article, but i need the username and password to not be in the URL.

https://www.experts-exchange.com/questions/20649579/ByPass-authentication-Using-URL.html 
<form id="form1" name="form1" method="post" action="https://server.domain.org/redirectDWA.nsf" target="_blank" enctype="application/x-www-form-urlencoded">
 
  	<input type="hidden" name="Login"  id="Login" value="iwaredir%2Ensf" />


    <input type="hidden" name="username" id="username"  value="testuser"/> 

    <input type="hidden" name="password" id="password" value="testpassword"/>

</form>

Open in new window


Thanks :o)
Jennifer
Avatar of Sjef Bosman
Sjef Bosman
Flag of France image

Any reason you don't want to use the customizable login-form in domcfg.nsf ? You could put it into an IFRAME...

http://www-12.lotus.com/ldd/doc/domino_notes/7.0/help7_admin.nsf/f4b82fbb75e942a6852566ac0037f284/236f179d441b18d48525706f0065d988?OpenDocument
Avatar of jennifer_merritt

ASKER

Actually i need the form to work as it is. The fields will be filled from a script. I just need to know how to get the form to use the POST method instead of GET.
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
Not sure why this worked, but it did:

I changed the form action from 'action="https://server.domain.org/redirectDWA.nsf"'

to: action="https://server.domain.org/webmailredirect.nsf?login"
Guessing: it might be a rights issue. What are the differences in the user's rights on those 2 databases? I assume that, for a POST, at least Depositor or Author rights are required.

In any case: thanks for the grade!
i think the problem was with the ?login at the end of the URL. Because it worked for both databases...redirectDWA and webmailredirect.nsf.

Odd i know, but i am sooooo glad that it finally works.

thanks for all of your help!

Jennifer