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  |  

Affordable ASP.NET Hosting Service
  Ads  
r2i.ntegrated
 


  Sponsors  

Meet Our Sponsors

FCKeditor Project
Salaro -- Skins and more
OnyakTech
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  DNN Login and password policy
Previous Previous
 
Next Next
New Post 10/11/2007 2:44 PM
User is offline Latiful Khan
3 posts
10th Ranked


DNN Login and password policy 

Note:  Actually I am using DNN 4+ and by mistake I have put in ASP.NET1.1. So here it is now.

 I like to know two things:

Question1.

I am trying to write a function which will return a direct login url, I mean by using this link user will be able to login to DNN site, they do not have to type login information. User name and password will be hardcode with the url.

So to achive this I am creating one webpage, for example AnotherLogin.aspx and URL will be something like, http://www.test.com/AnotherLogin.aspx?username=test&password=password. Now when user will click the link then into the page_load I am collecting login details., eg., username and password and calling DoLogin method

private void DoLogin(string username, string password) {

// Use DNN API to authenticate user

.................. NEED HELP HERE ............................

// if ok then forward to http://www.test.com

// or forward to http://www.test.com/LoginError.aspx

}

Can anybody tell me how can I do this? Is there any method/s I can call, which will not only authenticate user, but also will behave same as normal DNN login (when user manually providing login details and clicking login button).

Question2:

I have an existing system which has nearly 700 users and their password encrypted by MD5. I am trying to transfer those user to DNN membership without changing their password, so that user can use same password for DNN site. I have already writen a test method which is registering user automatically (not using the webform, automatic process, like loop though the record and add DNN user).

So now I just like to know what is the way to tell DNN, when I am calling UserController method to add user to DNN membership then not to encrypt the value what I am passing as a password? And using MD5 during direct login (see my question1)?

Thanks for any reply.

 
New Post 10/15/2007 9:31 AM
User is offline Dee
5 posts
10th Ranked


Re: DNN Login and password policy 
This will login a user if they are valid and return true if successful.


Private Function pf_DNNLogin(ByVal pUsername As String, ByVal pPassword As String) As Boolean
Dim loginStatus As UserLoginStatus = UserLoginStatus.LOGIN_FAILURE
Dim bLoggedIn As Boolean = False
'
' Login the user
Dim objUser As UserInfo = UserController.UserLogin(PortalId, pUsername, pPassword, "DNN", PortalSettings.PortalName, pf_IPAddress(), loginStatus, False)
Select Case loginStatus
Case UserLoginStatus.LOGIN_SUCCESS, UserLoginStatus.LOGIN_SUPERUSER
bLoggedIn = True
Case Else
bLoggedIn = False
End Select
'
' Return if logged in
Return bLoggedIn
End Function
 
New Post 10/15/2007 3:18 PM
User is offline Michael Washington
2842 posts
ADefWebserver.com
5th Ranked










Re: DNN Login and password policy 

I don't have your answers but perhaps these links have code that can help:

Single Sign On

DotNetNuke Web Services



Michael Washington
* ADefWebserver.com
* DNN Module Developer's Guide
* IWEB - DNN Web Services
* Silverlight and DotNetNuke
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  DNN Login and password policy
 


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.

 


Efficion Consulting
A premier DotNetNuke consulting firm providing complete DNN services including: custom module development, skinning and design, installation and integration services.
www.efficionconsulting.com
DotNetNuke Training by Engage Software
Specializing in customized training, architecture and module solutions for large scale implementations lead by DNN Core Team Member Christopher Hammond.
engagesoftware.com
Smart-Thinker
DNN Modules for Social Networks for as low as $69 for 6 modules! We also maintain the DotNetNuke Directory - http://DNNDir.com
www.smart-thinker.com

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