Sean, I paid the $30 and am happy to offer it as a contribution to your effort. Thanks again. WRT Windows Authtentication, I'm having trouble implementing it. You mention in the email that you sent out that it is based on the original IBuySpy Implentation.
Can I look to the threads on the original IBuySpy for assistance? The problem that I'm having is that I can't seem to implement the Roles. Admin tab is not showing up for the users in the Admin Role, etc. Thanks
Sean, One other point... when I use the tag , I'm getting an error that says Unrecognized tag 'identity' in the config file. I am able to authenticate using what's suggested in the original IBuySpy: But I can't get authorization to work. Thanks in advance.
I used, Also, I was having problems with the following code section in the Application_AuthenticateRequest method. The problem is that Context.User.Identity.AuthenticationType is Negotiate in this method. Dim intUserId As Integer Select Case User.Identity.AuthenticationType
Case "Forms" intUserId = Int32.Parse(Context.User.Identity.Name) Case "Windows" Dim objUser As New UsersDB() Dim dr As SqlDataReader = objUser.GetSingleUserByEmail(_portalSettings.PortalId, Context.User.Identity.Name) If dr.Read() Then intUserId = dr("UserId")
End If dr.Close() End Select Anyone else have this problem?
I am also having problems with this:-( Changing ,Case "Windows", to, Case "Negotiate", made it connect ok with WinXP and Win2003server beta but not w2k. I made a temp fix setting the case to Case Else. Now it seems to work fine for all clients. It would be
good though if the log off button diapeard when in windows mode. In my webconfig I have put it like this:
Johnathan, In my case I had to change Case to NTLM on the Global.asax page. Additionally, I think a source of your problem is that you are not using impersonation. If you don't, ASP.Net runs under the local ASPNET user account, or in my case, since I'm on a
Domain controller w/o local accounts, the account I specified in Machine.config. I finally got impersonation to work. In Shauns code, is an element contained in the element. It should NOT be nested. It should be seperate. I'm put together a small aspx page
that Shows what Authentication method is being used, what account you are logged in as and what account ASP.Net is running under. If you want me to email it to you, just send me your address. Good luck.
don't change the case statement to check for negotiate. Replace it with this code: If TypeOf Context.User.Identity Is WindowsIdentity Then Dim objUser As New UsersDB() Dim dr As SqlDataReader = objUser.GetSingleUserByEmail(_portalSettings.PortalId, Context.User.Identity.Name)
If dr.Read() Then intUserId = dr("UserId") End If dr.Close() Else intUserId = Int32.Parse(Context.User.Identity.Name) End If this is tested and works better Glen
The hypUser link does not appear even after applying the changes listed in the other thread. Anyone else experiencing this? I'm trying to decipher what happens in the global.asax. I only intend on using this in an intranet environment so I'm trying to separate
what's needed for forms vs. windows authentication. Any guidence appreciated.
Once Windows Authentication is running how do you specify the link between Groups and Roles? Is it as simple as creating a Role like Domain\Group. I've been struggling with this for a couple of weeks (really only for a few hours here and there). DB issues have
been resolved, thank goodness. Currently I'm researching the following. I thought it was the Global.asax in the select statement but I haven't been able to solve this as of yet. Has anyone else seen this? Thanks Server Error in '/DotNetNuke' Application. --------------------------------------------------------------------------------
Input string was not in a correct format. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details:
System.FormatException: Input string was not in a correct format. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the
exception stack trace below. Stack Trace: [FormatException: Input string was not in a correct format.] Microsoft.VisualBasic.CompilerServices.DoubleType.Parse(String Value, NumberFormatInfo NumberFormat) +166 Microsoft.VisualBasic.CompilerServices.IntegerType.FromString(String
Value) +97 [InvalidCastException: Cast from string "RA-PCMAIN\PCouch" to type 'Integer' is not valid.] Microsoft.VisualBasic.CompilerServices.IntegerType.FromString(String Value) +212 DotNetNuke.DesktopPortalBanner.Page_Load(Object sender, EventArgs e) +2194
System.Web.UI.Control.OnLoad(EventArgs e) +67 System.Web.UI.Control.LoadRecursive() +29 System.Web.UI.Control.LoadRecursive() +92 System.Web.UI.Control.LoadRecursive() +92 System.Web.UI.Control.LoadRecursive() +92 System.Web.UI.Page.ProcessRequestMain() +724
ba-insight
Member
115 Points
23 Posts
Windows Authentication
Feb 26, 2003 09:38 AM|LINK
ba-insight
Member
115 Points
23 Posts
Re: Windows Authentication
Feb 26, 2003 11:50 AM|LINK
smcculloch
Contributor
6930 Points
1386 Posts
Re: Windows Authentication
Feb 26, 2003 11:17 PM|LINK
JonathanHjer...
Member
55 Points
11 Posts
Re: Windows Authentication
Feb 27, 2003 12:16 PM|LINK
http://jonathan.nixi.com
ba-insight
Member
115 Points
23 Posts
Re: Windows Authentication
Feb 27, 2003 02:21 PM|LINK
gmalan
Member
35 Points
7 Posts
Re: Windows Authentication
Feb 27, 2003 11:09 PM|LINK
smcculloch
Contributor
6930 Points
1386 Posts
Re: Windows Authentication
Feb 28, 2003 01:16 AM|LINK
gismapper
Member
90 Points
18 Posts
Windows Authentication
Feb 28, 2003 05:22 PM|LINK
PatrickCouch
Member
65 Points
13 Posts
Re: Windows Authentication
Mar 22, 2003 10:36 AM|LINK
gismapper
Member
90 Points
18 Posts
Re: Windows Authentication
Mar 25, 2003 12:18 PM|LINK