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 ForumsAuthenticationAuthenticationUsing email address to loginUsing email address to login
Previous
 
Next
New Post
11/29/2006 10:11 AM
 
On our old extranet software we standardized the users to login via their email address along with a password.  When we moved forward with DNN for our new extranet using forms authentication with Active Directory we ran into the problem where older users on our systems couldn't login via their email address due to the fact that the AD account name and email prefix didn't always match.  Training the users to enter <domain_name>/<username> would be to time consuming for us plus our users would grumble from the change.

The solution was very easy but I wondered if anyone knew of any side effects.  I've been testing it for the past day and haven't found any as of yet and the users testing the application are singing praises.  In file  \\<dnn_source>\Library\Components\ADSI\Utilities.vb

        Public Shared Function GetUserEntryByName(ByVal Name As String) As DirectoryEntry
            ' Create search object then assign required params to get user entry in Active Directory
            Dim objSearch As New ADSI.Search(GetRootDomain)
            Dim userEntries As ArrayList
            Dim userEntry As DirectoryEntry
            Dim userDomain As ADSI.Domain

            With objSearch
                .AddFilter(ADSI_CLASS, ADSI.CompareOperator.Is, Authentication.ObjectClass.person.ToString)
                '.AddFilter(ADSI_ACCOUNTNAME, ADSI.CompareOperator.Is, TrimUserDomainName(Name))
                .AddFilter(ADSI_EMAIL, ADSI.CompareOperator.Is, Name) 'FAZCHANGE -- Filter on email address instead of account name.

Changes to the cold are in bold.
 
New Post
12/1/2006 9:08 AM
 

Hi Jared,

 

I am very interrested in doing the same thing... using the e-mail address or User Principle Name as the default. But I have just installed from the starter kit and don't have the skills to change source code, recompile etc. How big of a deal is this? Is it just a matter of changing code, recompiling  ( perhaps in Visual Web developer ) and then pasting the new file somewhere convenient or would I have to back up and redeploy the whole site from the source version instead (Something I would have to learn to do)?  Is there a modified file you could post or send me that I could test? I look forward to hearing from you.

Hal Saville

hal.saville@wpho.com

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationUsing email address to loginUsing email address to login


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