enjay Posted September 22, 2011 Posted September 22, 2011 After a bit of additional tweaking to the web.config file (removing the lines about endpoints and setting the svg mime type), I got everything running and could log in. however now when I try, I get a logon error saying unknown user or password (screenshot below). I've tried restarting IIS a few times, but the error remains, also tried domain admin, staff and pupil logons, all of which fail. Any ideas?
nickbro Posted September 22, 2011 Posted September 22, 2011 The username/password entered into setup.aspx isn't correct. Make sure it's the administrator's username/password
gavlar Posted September 22, 2011 Posted September 22, 2011 Hi Nick Im having a problem with the logon aswell. It works fine for me but any of the other student or staff accounts don't seem to work, i get this error Also, i don't seem to be able to see the upload button in the Extended version?
nickbro Posted September 22, 2011 Posted September 22, 2011 That's an impersonation error, meaning the user cannot be impersonated by HAP+. As it suggests, something is wrong with your configuration.
enjay Posted September 23, 2011 Posted September 23, 2011 The username/password entered into setup.aspx isn't correct. Make sure it's the administrator's username/password Perfectly possible I typed it incorrectly - how do I now change it though? When I browse to ~/hap/setup.aspx, I just get the logon screen...
nickbro Posted September 23, 2011 Posted September 23, 2011 Edit the web.config look for ~/setup.aspx set it to remove any other rules
enjay Posted September 23, 2011 Posted September 23, 2011 Thanks Nick. I've changed the password and re-instated the (as per the instructions on the setup page); I can still log in but everyone else gets the below message.
nickbro Posted September 23, 2011 Posted September 23, 2011 As it suggests something is wrong when it's trying to impersonate the current user, which is very odd. What User are you running the HAP+ application pool as?
enjay Posted September 23, 2011 Posted September 23, 2011 As it suggests something is wrong when it's trying to impersonate the current user, which is very odd. What User are you running the HAP+ application pool as? Do you mean the process model identity in IIS? If so, that is set "application pool identity"; if you mean the user specified in setup.aspx, that is administrator.
nickbro Posted September 23, 2011 Posted September 23, 2011 You answered both questions there, it's very strange that it isn't able to impersonate the current user, which is where the error is coming from. Is there anything in the event logs on the server which may give a clue
enjay Posted September 23, 2011 Posted September 23, 2011 Application Event Viewer has two events from ASP: This "information": Log Name: Application Source: ASP.NET 4.0.30319.0 Date: 9/23/2011 11:37:52 AM Event ID: 1315 Task Category: Web Event Level: Information Keywords: Classic User: N/A Computer: 6002dc01c.SCH6002.Reading.sch.uk Description: Event code: 4005 Event message: Forms authentication failed for the request. Reason: The ticket supplied has expired. Event time: 9/23/2011 11:37:52 AM Event time (UTC): 9/23/2011 10:37:52 AM Event ID: 798cc1720b4d430aadfc5e82398e5ccb Event sequence: 2 Event occurrence: 1 Event detail code: 50202 Application information: Application domain: /LM/W3SVC/1/ROOT/HAP-1-129612478727483203 Trust level: Full Application Virtual Path: /HAP Application Path: C:\inetpub\wwwroot\HAP\ Machine name: 6002DC01C Process information: Process ID: 1880 Process name: w3wp.exe Account name: IIS APPPOOL\HAP Request information: Request URL: http://localhost/HAP/ Request path: /HAP/ User host address: ::1 User: Is authenticated: False Authentication Type: Thread account name: IIS APPPOOL\HAP Name to authenticate: Custom event details: Event Xml: 1315 4 3 0x80000000000000 42643 Application 6002dc01c.SCH6002.Reading.sch.uk 4005 Forms authentication failed for the request. Reason: The ticket supplied has expired. 9/23/2011 11:37:52 AM 9/23/2011 10:37:52 AM 798cc1720b4d430aadfc5e82398e5ccb 2 1 50202 /LM/W3SVC/1/ROOT/HAP-1-129612478727483203 Full /HAP C:\inetpub\wwwroot\HAP\ 6002DC01C 1880 w3wp.exe IIS APPPOOL\HAP http://localhost/HAP/ /HAP/ ::1 False IIS APPPOOL\HAP ... followed by this "warning": Log Name: Application Source: ASP.NET 4.0.30319.0 Date: 9/23/2011 11:38:03 AM Event ID: 1309 Task Category: Web Event Level: Warning Keywords: Classic User: N/A Computer: 6002dc01c.SCH6002.Reading.sch.uk Description: Event code: 3005 Event message: An unhandled exception has occurred. Event time: 9/23/2011 11:38:03 AM Event time (UTC): 9/23/2011 10:38:03 AM Event ID: 3fc74ca032fd4ceeade4abed0e47765e Event sequence: 24 Event occurrence: 1 Event detail code: 0 Application information: Application domain: /LM/W3SVC/1/ROOT/HAP-1-129612478727483203 Trust level: Full Application Virtual Path: /HAP Application Path: C:\inetpub\wwwroot\HAP\ Machine name: 6002DC01C Process information: Process ID: 1880 Process name: w3wp.exe Account name: IIS APPPOOL\HAP Exception information: Exception type: Exception Exception message: Something is wrong at HAP.AD.User.Impersonate() at HAP.Web.Default.Page_Load(Object sender, EventArgs e) at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) Request information: Request URL: http://localhost/HAP/default.aspx Request path: /HAP/default.aspx User host address: ::1 User: JoeBloggs Is authenticated: True Authentication Type: Forms Thread account name: IIS APPPOOL\HAP Thread information: Thread ID: 7 Thread account name: IIS APPPOOL\HAP Is impersonating: False Stack trace: at HAP.AD.User.Impersonate() at HAP.Web.Default.Page_Load(Object sender, EventArgs e) at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) Custom event details: Event Xml: 1309 3 3 0x80000000000000 42644 Application 6002dc01c.SCH6002.Reading.sch.uk 3005 An unhandled exception has occurred. 9/23/2011 11:38:03 AM 9/23/2011 10:38:03 AM 3fc74ca032fd4ceeade4abed0e47765e 24 1 0 /LM/W3SVC/1/ROOT/HAP-1-129612478727483203 Full /HAP C:\inetpub\wwwroot\HAP\ 6002DC01C 1880 w3wp.exe IIS APPPOOL\HAP Exception Something is wrong at HAP.AD.User.Impersonate() at HAP.Web.Default.Page_Load(Object sender, EventArgs e) at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) http://localhost/HAP/default.aspx /HAP/default.aspx ::1 JoeBloggs True Forms IIS APPPOOL\HAP 7 IIS APPPOOL\HAP False at HAP.AD.User.Impersonate() at HAP.Web.Default.Page_Load(Object sender, EventArgs e) at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) Hopefully they mean more to you than they do to me!
enjay Posted September 26, 2011 Posted September 26, 2011 Hi Nick, do those Event Viewer messages help at all?
nickbro Posted September 26, 2011 Posted September 26, 2011 Is interactive logons disabled on your server, as HAP+ uses interactive logons to impersonate the user
enjay Posted September 27, 2011 Posted September 27, 2011 Is interactive logons disabled on your server, as HAP+ uses interactive logons to impersonate the user No, "allow logon locally" is defined just to administrative groups, and "impersonate a client after logon" is not configured. I'm somewhat cautious about changing settings at such a high level - what else am I potentially exposing myself to by changing this? Is there anything I need to be aware of once I've changed it?
gavlar Posted September 27, 2011 Posted September 27, 2011 I'm having the same propblem as you @enjay. Let me know if you find a solution.
nickbro Posted September 27, 2011 Posted September 27, 2011 I've editted the HAP.AD to try interactive and network logon rights, see if the attached updated dll makes any difference 1
enjay Posted September 27, 2011 Posted September 27, 2011 Thanks Nick, the updated hap.ad file does this trick. Now I just need to get this certificate sorted and I'm away (hopefully!!)
nickbro Posted September 27, 2011 Posted September 27, 2011 Well I'll check the change in, this will make it into the v7.3 release for this weekend, if my internet at home is back on by then, DAM Sky
gavlar Posted September 27, 2011 Posted September 27, 2011 Thanks Nick, this stopped the error message i was getting. However i still can't access any of the Drives in the basic view with test student and staff accounts, i get an error that says "Error: Unauthorised Access You have attempted to access a restricted resource" and nothing shows in the extended view for these users. Any idea which settings i need to change?
nickbro Posted September 27, 2011 Posted September 27, 2011 It's got to be because of the Interactive Logon Rights it needs to run properly. Best thing is to run HAP+ on a Server which isn't a domain controller
donutcat Posted September 30, 2011 Posted September 30, 2011 I've editted the HAP.AD to try interactive and network logon rights, see if the attached updated dll makes any difference I had problems authenticating against, AD, and followed through this thread. Everything else worked, but as soon as I replaced the dll everything came to life. Excellent project, really impressed with the booking system concept, especially dealing with SIMS!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now