Jump to content

Recommended Posts

Posted

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 :(

  • 7 months later...
Posted

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

Capture-HAPDefault-aspx.JPG

Capture-HAP-Logout-Error.JPG

Capture-HAP-UnAuth.JPG

  • 4 years later...
Posted

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:-

 

Hap error.JPG

 

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

Posted
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 :p)

 

Edit - ninaj'd :(

 

Steve

Posted

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 :p So might want to change that once you fix this.

 

Steve

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...