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,