Vb.net Manually Log A User Into Dnn



Re: Retrieving User Info from DotNetNuke

Vb.net Manually Log A User Into Dnn

Aug 10, 2005 07:08 PM|NateDawg|LINK

Vb.net manually log a user into dnn email

In this tip I am not going to explain how to create new DNN module and its settings. Instead, I will try explaining how to register a new user and login from a custom module interface by using Dotnetnuke class methods. User Registration Interface: For building a Custom Registration module we need to have required. I have a dnn 7.2.2 development site running under dnndev.me on my local machine. I have created a simple product catalogue module and am trying to integrate the new search for dnn 7.

Manually

Can I get the password of a logged in user un-hashed so that I can use it and their username to log that user into a database?

I'm writing modules that interface to a company’s back-end database and I would like them (the user) to each log into that database so I can set permissions per-user rather than using one username and password to log into the database and funneling everyone across that connection. It would be nice if I could use the info of an already validated user to keep them from having to log-in a second time whenever they get to a page that interfaces with the database. BTW here's some background that might make a difference in the answer. I’m using:

Windows 2003 SP1

The server is the Active Directory primary domain controller.

IIS 6.0

MS-SQL server 2000 SP4

Vb.net Manually Log A User Into Dnn

DNN 3.1

Manually

Vb.net Manually Log A User Into Dnn Email

And Tam’s Authentication & login modules

Using the username and password of a user that is in A.D. for DNN was quite nice and saves my users from having to have a log-in for there PC and the website, but now I would like it if there was a way of telling SQL server that when this authenticated user goes to this module say to delete data from the database it will use there username and password to connect to the database so that only users who I specify may delete data and if it becomes an issue with the manager and they ask me who deleted the data I can refer back to the SQL log file and find the username of the person who performed the deletion. (Not a problem yet, just trying to cover my own ;-)

For anyone not familiar with how tam’s authentication modules work, I’ll give a quick overview. When a user (who has a username and password already in Active Directory) goes to the portal for the first time and logs in using there windows username and password the module will authenticate it against Active Directory. At that point the user information is also stored in the DNN database. So the same username and password exist for the user in both A.D. and DNN. I don’t care were I get the password from as long as it will work to log the user into the SQL server, which uses Windows Authentication.

Any help would be appreciated.

Vb.net Manually Log A User Into Dnn Word

Thanks, Nathan Rover