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 ForumsAuthenticationAuthenticationHow do I edit the login code or is it possible?How do I edit the login code or is it possible?
Previous
 
Next
New Post
10/16/2007 8:43 PM
 

Hi,

I managed to get DNN 4.6.2 up and running with AD roles synchronization working perfectly.  I can be automatically authenticated against  AD once browsing the DNN portal using my Windows login.  I checked the users list my account is listed as domain\username format so when I manually log back  to my portal either in STANDARD Mode or Windows I have to supply my credentials in domain\username  format  then my password.

My question is in STANDARD MODE is it possible to log into DNN 4.6.2 without the domainname prefix? i.e. Username: username Password: password.  I am asking this because I noticed in our network some users are able to log without the domainname prefix into their account .

If it is possible how do  I edit the code to automatically filled in the domainname?

I would appreciate if someonce could reply on my query.

 

 
New Post
10/16/2007 10:37 PM
 

Being able to login in standard mode is something that I didn't really think about before and I'm guessing Charles didn't either. I'll have to talk to him about it and see what can be done for a fix.

I'm guessing that your users that are logging in without their domain are manually registering on your site. WIth the AD Authentication it needs the domain\username or username@domain format. I looked at the standard DNN login code and it doesn't account for users possibly being AD users like it did in 4.5.5. and below. Are all your users going to be authenticating against the Active Directory? If so then there are some other options we can look at.

 
New Post
10/17/2007 12:53 AM
 

Hi Mike,

This is the scenario:

User X - The first time User X connects to the DNN portal he is automatically logged in using AD authentication. In the users list his account shows domainname\USERX . Now  USer X decided to log out of DNN portal so he logs off and close the browser. Then if he tried to log back in this time he can just supply his username and password without the the domainname prefix in the Windows Login window. Simply : Username: UserX  Password: password  and that creates another username of the same person in the list. Since user X  second DNN account has no domainname prefix, he can log in the portal using the Standard mode.

User Y: The first time User Y browses the DNN portal he is automatically logged in using AD authentication.  Now if User Y manually logs back into the DNN portal he MUST  supply his username in  domainname\User Y format.  And this confuses me why is it User X can get in to the portal by just supplying his username ( without domainname) but not User Y. And one more thing User Y can log into the DNN portal by selecting STANDARD MODE and supply his username in domainname\username format. Is this normal?

Yes Mike, all users are authenticated against Active Directory. Do you have any idea or fix so the users won't have to supply their domainname everytime they log on? I am using DNN 4.6.2

 

cheers,

zed

 

 

 

 
New Post
10/17/2007 12:08 PM
 

Hey Zed

I just tried your User X scenario on my dev site and I can't login with just username/password on either the standard or Windows Login screens. I also tried User Y scenario and can't login in standard mode (which wouldn't have surprised me if it did but it looks like Charles might have accounted for that when he separated the login providers).

Is this a fresh 4.6.2 install or an upgrade from a 4.5.5 or earlier install?

In any case, if all your users are authenticated against the AD you could just disable the DNN Authentication on the Authentication page. This will just give the Windows Login option. I'm using the script from this post (http://www.dotnetnuke.com/Community/ForumsDotNetNuke/tabid/795/forumid/89/threadid/60815/scope/posts/Default.aspx) on DesktopModules/AuthenticationServices/ActiveDirectory/Login.ascx so that my users don't have to enter the domain name. NOTE: I had to give my user account SuperUser status in the Users table so that I could admin the site(s) under this scenario.

 
New Post
10/17/2007 5:12 PM
 

Hi Mike,

It was a fresh install of  DNN 4.6.2 well initially I had a DNN 4.5.5 but I deleted that and started a fresh install of  4.6.2. I have edited the  login.ascx of the two Authentication types both DNN and ActiveDirectory and added the script that you've  pointed me to.  I can now login without specifying the domainname. Thanks a lot for your help on this issue.

 

 Hey Mike I have some more questions if you don't mind as I dont know much about ASp.  I would like to know which variable is being used for the username attribute, Is it the controlname="txtUsername" or resourcekey="Username"

<td class="SubHead" align="left"><dnn:label id="plUsername" controlname="txtUsername" runat="server" resourcekey="Username" /></td>
 </tr>
 <tr>
  <td align="left"><asp:textbox id="txtUsername" ontextchanged="change" columns="9" width="150" cssclass="NormalTextBox" runat="server" /></td>

 

 

 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationHow do I edit the login code or is it possible?How do I edit the login code or is it possible?


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