Jump to content

Recommended Posts

Posted

Hi,

 

I am trying to set up HAP+ on our network using the video as a guide. I am using the latest HAP 7.6 on a 2008 R2 server running IIS 7.5. I had no indicated errors on installation and configuration. AD Authentication seems to be working fine i.e. when I try to logon to HAP with an invalid user, HAP indicates such on the logon screen, when I try to logon with a valid user, I get presented with the HTTP 500 Internal Server Error page. Any idea's anyone.... what to check?

 

Thanks

 

Artie

Posted

Thanks,

 

It was the dreaded duplicate mime type svg in web.config.

 

500 Error gone away, now I get (with a valid user)

 

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

 

 

Thanks

 

Artie

Posted
What username are you trying to log on with? Usually that error means that it either can't connect to AD to get the user, or the username/password is wrong
Posted
The Username that I'm using is 'teststaff'. I know that the user exits and the password is valid. I know that my connection to AD is fine... it worked during setup.
Posted

It's not an Administrator user, but a user that can access AD. It is the same user that I use for my Moodle AD authentication and that works. Does the user need to be in Administrators or Domain Admins?

 

Artie

Posted
It unfortunately, needs to be a domain admin user. it's only used for AD access outside of the user's logon, and really only for logging on and user authentication

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