Vb.net Manually Log A User Into Dnn

Posted on by admin


The current version is 5.x. It was written in VB.NET, but the custom module can be written in any.NET supported language, i.e. It has built in support for SqlServer provider but has to extend custom provider for supporting other databases. DotNetNuke has good support for Server Operating systems. But it can be installed in XP too.

  • Creating a database table. As you can see from Listing 5, I also add data to the table using INSERT INTO SQL statement. The CREATE PROCEDURE statement creates a stored procedure as you can see in Listing 10-18, I create a stored procedure myPoc which returs data result of SELECT myName and myAddress column.
  • Deploy DotNetNuke Site through WebMatrix. Open Web Matrix, click “New” and select “App Gallery”. Select “DNN Platform” in App Frameworks, and enter a Site Name. Install DNN Platform and open it. Project default physical path: C: Users server Documents My Web Sites DNNHtml5Viewer.

Re: Retrieving User Info from DotNetNuke

Aug 10, 2005 07:08 PMNateDawgLINK

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.

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

DNN 3.1

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



How to view, annotate, redact, convert Adobe PDF, Microsoft Word, Excel, PowerPoint, tiff documents and Jpeg, gif images in Dotnetnuke ASP.NET web sites




Deploy DotNetNuke Site through WebMatrix



Open Web Matrix, click “New” and select “App Gallery”.


Select “DNN Platform” in App Frameworks, and enter a Site Name.


Install DNN Platform and open it.


Project default physical path: C:UsersserverDocumentsMy Web SitesDNNHtml5Viewer




Integrate HTML5 Viewer to DNN Site



Find DNN Site folder (DNNHtml5Viewer), integrate related RasterEdge Html5Viewer content to it. (All resources are located in RasterEdge.DocImagSDK/DemoProjects/Xdoc.HTML5 Viewer Demo)


Open Bin folder in the package, copy corresponding dll files listed below to DNNHtml5Viewer/bin:


RasterEdge.Imaging.Annotation.dll


RasterEdge.Imaging.Basic.Codec.dll


RasterEdge.Imaging.Basic.dll


RasterEdge.Imaging.DICOM.dll


User

RasterEdge.Imaging.Drawing.dll


RasterEdge.Imaging.Font.dll


RasterEdge.Imaging.JBIG2.dll


RasterEdge.Imaging.JPEG2000.dll


RasterEdge.Imaging.Processing.dll


RasterEdge.Imaging.SVG.dll


RasterEdge.XDoc.Converter.dll


RasterEdge.XDoc.Excel.dll


RasterEdge.XDoc.HTML5Viewer.dll


RasterEdge.XDoc.Office.Inner.Common.dll


RasterEdge.XDoc.Office.Inner.Office03.dll


RasterEdge.XDoc.PDF.dll


User

RasterEdge.XDoc.PDF.HTML5Editor.dll


RasterEdge.XDoc.PowerPoint.dll

Vb.net Manually Log A User Into Dnn


RasterEdge.XDoc.TIFF.dll


RasterEdge.XDoc.Word.dll


RasterEdge.XImage.AdvancedCleanup.Core.dll


RasterEdge.XImage.OCR.dll


RasterEdge.XImage.OCR.Tesseract.dll


RasterEdge.XImage.Raster.Core.dll


RasterEdge.XImage.Raster.dll


RasterEdge.XImage.BarcodeCreator.dll ( add as you need)


RasterEdge.XImage.BarcodeScanner.dll ( add as you need)


Replace Default.aspx and Default.aspx.cs in DNN Site project with files copied from package.


Copy following file and folders to DNN Site project:


RasterEdge_Cache


RasterEdge_Demo_Docs


RasterEdge_Resource_Files


Log.txt


Source (located in SDK package directory)


Vb.net Manually Log A User Into Dnn

Modify Web.Config file.


Set maxJsonLength. If the .NET framework is 2.0, add content of both node <ConfigSections> and <system.web.extensions> to <configuration>. If project runs in .NET framework 4.0, only put <system.web.extensions> into <configuration>. Otherwise you’ll get config error: duplicate scriptResourceHandler defined.









Add following two nodes into <appSettings>, values correspond to the names of cache file and resource folder mentioned above.

Vb.net Manually Log A User Into Dnn Id





Add following content into <webServer>.







Set Website: Click Site->Settings, set website running port and .NET Framework Version





Website run as follow:

Vb.net Manually Log A User Into Dnn account


Vb.net Manually Log A User Into Dnn Windows 10




Vb.net Manually Log A User Into Dnn Command




Vb.net Manually Log A User Into Dnn Online