Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Anyone know how to pass a logon and password to LOGON.CSP?

Status
Not open for further replies.

MZorola

IS-IT--Management
May 19, 2003
3
US
We have our own intranet. We want the current username and password for our intranet to be sent to the logon.csp. I have tried cookies and session variables but it appears as though I lose the session once I get to logon.csp from my asp page. Any ideas?
 
I do it in .aspx by having the user click a button from my intranet app that passes hideen form variables containing the logon info:

<!-- cjl Crystal Enterprise updated 12/24/2002 -->
<a href=&quot; Crystal Enterprise Reports </a>

<form id=&quot;CELogonFrom&quot; method=&quot;post&quot; Action=&quot; <input name=&quot;aps&quot; value=&quot;<%=CrystalAPSName%>&quot; type=&quot;hidden&quot;> <input name=&quot;usr&quot; value=&quot;<%=CrystalLogonName%>&quot; type=&quot;hidden&quot;>
<input name=&quot;pwd&quot; value=&quot;<%=CrystalPassword%>&quot; type=&quot;hidden&quot;> <input name=&quot;aut&quot; value=&quot;secEnterprise&quot; type=&quot;hidden&quot;>
<INPUT style=&quot;FONT-FAMILY: Verdana, Arial; BACKGROUND-COLOR: silver; width: 205&quot; type=&quot;submit&quot; value=&quot;ADRS Reports ePortfolio(Test)&quot;>
</form>
<!-- cjl Crystal Enterprise -->

On the server side I read the login info from my database but could use the session user and ID if I had these accounts set up in enterprise.

Hope this helps.
 
Thanks for the info. I had also thought of a form with hidden fields. I was hoping for a different solution but it looks like this is the only way.

Marcos
 
It is SSO (single sign on) related. You may consider:
1. LDAP, ADS.
2. NT Authenticaion.
3. Customized SSO, like the hidden form.

Regarding #3, you could auto submit the hidden form, then in the handler page to read the form variable and put it in session. ( There are two sessions, ASP session and CSP session.) During the processing, you may consider using encrypt / decrypt the user id and password in the hidden form.

Good luck,
Ben
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top