W32Jbot Posted March 8, 2012 Posted March 8, 2012 When i try to login to HAP on either login.aspx or setup.aspx i get thrown back to the login form with "Logged in as my.username | Logout" in the top right corner, I have tried re-entering my creds but get exactly the same result, I have also tried clicking logout and then re-authing but i still get the same result. I may be getting a different result to other users due to previous sessions? Because, When other users try to log in they get: Server Error in '/HAP' Application. ________________________________________ Logon failure: unknown user name or bad password. 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.DirectoryServices.DirectoryServicesCOMException: Logon failure: unknown user name or bad password. 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: [DirectoryServicesCOMException (0x8007052e): Logon failure: unknown user name or bad password. ] System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) +781 System.DirectoryServices.DirectoryEntry.Bind() +44 System.DirectoryServices.DirectoryEntry.get_AdsObject() +42 System.DirectoryServices.PropertyValueCollection.PopulateList() +29 System.DirectoryServices.PropertyValueCollection..ctor(DirectoryEntry entry, String propertyName) +119 System.DirectoryServices.PropertyCollection.get_Item(String propertyName) +163 System.DirectoryServices.AccountManagement.PrincipalContext.DoLDAPDirectoryInitNoContainer() +436 System.DirectoryServices.AccountManagement.PrincipalContext.DoDomainInit() +51 System.DirectoryServices.AccountManagement.PrincipalContext.Initialize() +141 System.DirectoryServices.AccountManagement.PrincipalContext.get_QueryCtx() +42 System.DirectoryServices.AccountManagement.Principal.FindByIdentityWithTypeHelper(PrincipalContext context, Type principalType, Nullable`1 identityType, String identityValue, DateTime refDate) +27 System.DirectoryServices.AccountManagement.UserPrincipal.FindByIdentity(PrincipalContext context, String identityValue) +95 HAP.AD.User.get_UserPa() +116 HAP.AD.User..ctor(String username) +113 HAP.AD.MembershipProvider.GetUser(String username, Boolean userIsOnline) +35 System.Web.Security.Membership.GetUser(String username, Boolean userIsOnline) +175 HAP.Web.Controls.Page.get_ADUser() +39 HAP.Web.Default.Page_Load(Object sender, EventArgs e) +1170 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25 System.Web.UI.Control.LoadRecursive() +71 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3064 ________________________________________ Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272 I had just got somewhere with this and then this HAPpened
W32Jbot Posted March 8, 2012 Author Posted March 8, 2012 Replaced the web.config with a backup and its back
smithson83 Posted October 24, 2012 Posted October 24, 2012 Sorry to revive an old thread but I wasn't sure where to post this. I have recently installed HAP 8.1 and for the mostpart looks great, my issue is logging in and out reliably. When I go to http://servername/HAP (which loads Default.aspx) I get a mix of errors popping up stating the "search filter is invalid", "token cookie missing, user not logged in correctly" and "logon failure: unknown username or bad password". If I manually goto /Login.aspx and login as myself (admin), things seem works fine (I say things, drives link ok etc). Having done that, the next issue is logging out. I lick logout and errors start appearing again "Logon Failure: unknown username or bad password" if I am anywhere other than the homepage, and then if I try to click on homedrives from the home page etc. which I kinda expected since I logged out. But logging out isnt directing me to the login page. I have attempted to get around the issue by setting login.aspx as the default document, but after login i get directed to the unauth' page when trying to access the homepage(unless i handball /default.aspx in), but I can access the MyDrives page. I'm assuming I have missed something suring the setup(or broken something trying to get it working) but checking over the settings and other suggestions from other similar issues in here I can't seem to make it work properly. Any help would be much appreciated
nickbro Posted October 25, 2012 Posted October 25, 2012 Seems that something is missing to make the default.aspx page require logon rights, check your web.config file for: It should be line 38
Carrot63 Posted October 26, 2016 Posted October 26, 2016 Hi We are using a very old version of hap as it has always done just what it needs to do. We have just started getting the following error when any user tries to logon, which looks remarkably similar to the opening post:- I have tried restoring the web.config file but that does not seem to have worked. We have recently changed our domain admin password which is the only thing that has been done that I am aware of. Please could somebody advise whether there is somewhere that I have to reenter the Administrator password? I cannot remember having to do it before however it is the only thing I can think of. Thanks
nickbro Posted October 26, 2016 Posted October 26, 2016 See Home Access Plus+ - Documentation, changing the admin password
Steve21 Posted October 26, 2016 Posted October 26, 2016 Hi We are using a very old version of hap as it has always done just what it needs to do. We have just started getting the following error when any user tries to logon, which looks remarkably similar to the opening post:- [ATTACH=CONFIG]39428[/ATTACH] I have tried restoring the web.config file but that does not seem to have worked. We have recently changed our domain admin password which is the only thing that has been done that I am aware of. Please could somebody advise whether there is somewhere that I have to reenter the Administrator password? I cannot remember having to do it before however it is the only thing I can think of. Thanks Check this thread out should give the details: http://www.edugeek.net/forums/home-access-plus/149785-changing-admin-username-password.html#post1282852 (Note might want to do it when no-ones about ) Edit - ninaj'd Steve
Carrot63 Posted October 26, 2016 Posted October 26, 2016 Hi Thanks for responding so quickly. I have tried that but now if get the following:- Sorry :-(
Steve21 Posted October 26, 2016 Posted October 26, 2016 Could you screenshot both bits you changed just in case they're formatted wrong etc. (Obviously hide any bits you need to ) Thanks, Steve
Carrot63 Posted October 26, 2016 Posted October 26, 2016 Here they are:- The first was just the true for first run the second was already like this so I didn't change it at all.
Carrot63 Posted October 26, 2016 Posted October 26, 2016 Hi the first image didn't upload so here it is:
Steve21 Posted October 26, 2016 Posted October 26, 2016 You might want to try changing the T to a t might be fussy on that extent, and if your setup file config wasn't restricted that means anyone could just browse to it and edit it So might want to change that once you fix this. Steve
Carrot63 Posted October 26, 2016 Posted October 26, 2016 Hi Yes I spotted that and changed it but to no avail unfortunately. I am assuming the setup.aspx file has a problem and this may not have been used for some time. I have though found a temporary work around by creating a new user with the old admin password and changing the hapconfig file to the new user. Not a final solution but it works for the moment. I will also do as you suggest and change the permissions on the setup file anyway. Not really sure where to start though looking for the error in the setup file. Thanks
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