Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...How login with query string?How login with query string?
Previous
 
Next
New Post
11/16/2007 4:25 AM
 

Hi!

I have a DotNetNuke portal that uses login with user credentials from an active directory (AD), Integrated security. 
I have made a AD user admin webpage, that register new users to AD. But for new users to be stored in Nuke db, with own password salt among other thing,
the user need's to manually login on the DNN portal. Then the registration is complete

My question is:
I wan't to have a link from the webpage where I have the username and passord, registered in Active Directory,  in the link's query string. And the link will login the user on the DNN portal, or at least fill inn the login form elements on the DotNetNuke signin page. ??

I don't worry about encryption at this point becouse this will run on a closed intranet.

I have tried to make a new aspx page in DNN root folder like this, but with no success:

<%@ Page %>
<%@ Import Namespace="System.Web.Security" %>
<%@ Import Namespace="DotNetNuke" %>
<script runat="server" language="vb">
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)

Dim _portalSettings As PortalSettings = CType(HttpContext.Current.Items("PortalSettings"),PortalSettings)
Dim _portalSecurity As New PortalSecurity()
Dim requestUsername = Server.UrlDecode(Request.QueryString("username")) + ""
Dim requestPassword = Server.UrlDecode(Request.QueryString("password")) + ""

If ((requestUsername <> "") And (requestPassword <> "")) Then
Dim userId As Integer = _portalSecurity.UserLogin(requestUsername, requestPassword, _portalSettings.PortalId,_portalSettings.PortalName,"",false)

If (userId >= 0) Then
 FormsAuthentication.SetAuthCookie(userId.ToString(), False)
 Response.Redirect("DesktopDefault.aspx")
End

 

Best Regards
Pål Fredrik

 

 

 

 

I have a intranet DotNetNuke portal,

 

 
New Post
11/16/2007 11:33 AM
 

Have a look at the 4.6.0 and later authentication providers, you could create an authentication provider that accepted the querystring values and did the login, it should be a very smooth process!


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
11/22/2007 3:54 AM
 

Thanks, for the comment!

I did some modification to the login .ascx and .vb file. And now it works nice...

 

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...How login with query string?How login with query string?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out