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

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthentication4.3.4 work around so user doesn4.3.4 work around so user doesn't have to type domain at login the first time
Previous
 
Next
New Post
8/8/2006 11:11 PM
 

I ended up finding the solution on some other forums, but I made some improvements and I wanted to put it all together in one place for everyone.

add the following script to the top of

..\admin\Security\Signin.ascx.vb

<script runat="server">

Sub change(ByVal sender As Object, ByVal e As EventArgs)

Select Case txtUsername.Text

Case "admin"

Case "host"

Case Else

   If txtUsername.Text.StartsWith("Domain") Then

      'The user added the wrong domain information

      If txtUsername.Text.Contains("/") Then

         txtUsername.Text = txtUsername.Text.Replace("/", "\")

      End If

Else

      'The user didn't enter the domain so add it for them

      txtUsername.Text = String.Format("Domain\{0}", txtUsername.Text)

   End If

End Select

End Sub

</script>

 

Then change

<td colspan="2" align="center"><asp:textbox id="txtUsername" columns="9" width="130" cssclass="NormalTextBox" runat="server" /></td>

to:

<td colspan="2" align="center"><asp:textbox id="txtUsername" ontextchanged="change" columns="9" width="130" cssclass="NormalTextBox" runat="server" /></td>

 
New Post
8/9/2006 9:26 AM
 

Why will this not work with DNN 3.3.4 ??  (I tried)   I would prefer to use your flavor of the code but it will not work in the signin.ascx file.

This is what I have been using:
<script runat="server">  
Sub change(sender As Object, e As EventArgs)

if txtUsername.Text="admin" then
 txtUsername.Text="admin"

elseif txtUsername.Text="host" then
 txtUsername.Text="host"

else txtUsername.Text="Domain\" & txtUsername.Text
end if
end sub
</script>

Thanks

 
New Post
9/11/2006 3:14 AM
 
Hi,

this was exactly what I was looking for

Great job!

www.if-then-else.org
 
New Post
4/4/2007 1:47 PM
 
This is prefect.  I had to modify the script a little so that a user can check a box to indicate that they want to login using the Domain since I am authenticating in a mixed mode environement.  If anyone is interested, I will supply the changes I made.
 
New Post
7/6/2007 9:23 PM
 

Have just begin my journey into DNN and this is exactly what I am looking for as we are wanting a mixed mode environment. I have got AD authentication working fine in 4.5.3 but would be very interested in looking at the code you use to add the check box for domain or local authentication

thanks

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthentication4.3.4 work around so user doesn4.3.4 work around so user doesn't have to type domain at login the first time


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