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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0User loginUser login
Previous
 
Next
New Post
1/26/2007 8:49 AM
 
Ok, i'm trying to implement a web service that allows users to log in using the same database as the website. From what i've noticed, passwords are kept in the Membership table, and in the web.config file, it appears they're encrypted using 3DES.

I've tried decrypting the passwords using the 3DES method with the provided decryption key in the web.config file, but i'm missing the initialisation Vector used to encrypt. I've also tried adding the DotNetNuke libraries and adding the connectionstring and machinekey and the rest of the required stuff to the web.config file used by the web service, but the UserLogin method fails. I've also noticed there's a salt value in the database, associated with each password.

Anyway, any ideas as to how i could use the login from within an external application ? All i need is a way to verify the identity of the user, because the rest of the stuff will be handled through my own external tables and methods.


Thank you in advance, and sorry if i'm beginning to be a pain in the a*s :D
 
New Post
1/26/2007 11:02 AM
 
There is a method of the UserController in DotNetNuke (ValidateUser) that is used to check whether a user provides valid user credentials.  You could wrap this in a web-service and call the webservice from your app.

Charles Nurse
Chief Architect
Evoq Content Team Lead,
DNN Corp.

Want to contribute to the Platform project? - See here
MVP (ASP.NET) and
ASPInsiders Member
View my profile on LinkedIn
 
New Post
1/27/2007 3:37 AM
 
Actually I've added the references in the web service, and called the method, but it fails. I suspect i may be missing something in the web service's web.config file, as it is not the same one as DNN's ...


Any idea about what specific config elements it requires from the web.config file ?
 
New Post
1/27/2007 9:54 AM
 

You can download IWeb Core and it will do this. What we did with IWEB is allow you to pass an encrypted password and the IWEB module unencrypts it. So it's not using DotNetNuke's encryption. It uses it's own and allows you to set the key.

http://iweb.adefwebserver.com

 



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
1/28/2007 7:18 AM
 
Actually i've been looking into the IWEB modules for a few of days now :) In the meantime i've managed to build the web service in the same directory as DNN so that the libraries could read the web.config file with all the proper settings. The issue was in the section, as i needed to place the codebehind file in a separate directory, so i added it and now i can use it fine with the ValidateUser() method. I'm developing in C# so the codefiles couldn't build together in the same directory.

Anyway, IWEB looks really interesting and i'm probably going to start using it for the website. The web service was required so that the users could log in from an external app using the same credentials.
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0User loginUser 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