Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

PortalWebHosting
  Ads  
Webhost4Life - $4.95 Windows Hosting
 


  Sponsors  

Meet Our Sponsors

telerik
ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Authentication ...  4.3.4 work around so user doesn't have to type domain at login the first time
Previous Previous
 
Next Next
New Post 8/8/2006 9:11 PM
User is offline Chris Wood
13 posts
10th Ranked


4.3.4 work around so user doesn't have to type domain at login the first time 

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 7:26 AM
User is offline simonduz
194 posts
www.virtualsignpost.com
9th Ranked


Re: 4.3.4 work around so user doesn't have to type domain at login the first time 

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


Have you seen our website lately?
      Virtual Sign Post
Papa BearBrought to you by the Papa Bear.
 
New Post 9/11/2006 1:14 AM
User is offline weipah
7 posts
10th Ranked


Re: 4.3.4 work around so user doesn't have to type domain at login the first time 
Hi,

this was exactly what I was looking for

Great job!

www.if-then-else.org
 
New Post 4/4/2007 11:47 AM
User is offline Charles Rasico
5 posts
10th Ranked


Re: 4.3.4 work around so user doesn't have to type domain at login the first time 
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 7:23 PM
User is offline micklow
2 posts
10th Ranked


Re: 4.3.4 work around so user doesn't have to type domain at login the first time 

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 Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Authentication ...  4.3.4 work around so user doesn't have to type domain at login the first time
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Swirlhost Inc.
Affordable DotNetNuke Hosting, Skin Development, Custom Module Development, and DotNetNuke Consulting. We will install your preference of DNN and now host with us and get a free license for the Swirl AJAX Chatroom Module.
www.swirlhost.com
Active Modules, Inc.
Creators of Active Forums, the best forum module for DotNetNuke
www.activemodules.com
DNNCovered.com - Your Offshore Dotnetnuke Partner
Dnncovered.com is the only Dotnetnuke offshore outsourcing center specializes in DNN skinning and module development with lowest pricing and quality service. Our staff is dedicated to websites based on DNN and our graphic designers are creative and imaginative well enough to provide customers the complete set of skinning solutions and packages
www.dnncovered.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP