Getting an Invalid Context Key on LDAP Login for ALM?
Question ID: 105294
0
0

Hello,
We are getting the following error upon attempted logins to the ALM system:
Messages:
Failed to Login;
Invalid context key;

Stack Trace:
com.mercury.optane.core.CTdException: Invalid context key
at com.mercury.td.ldap.CLdapCommandFactory$CAbsLdapCommand.getContextValue(CLdapCommandFactory.java:304)
at com.mercury.td.ldap.CLdapCommandFactory$CLdapMacroCommand.execute(CLdapCommandFactory.java:1050)
at com.mercury.td.saserver.api.logics.CTdUserLogic.performLdapAuthentication(CTdUserLogic.java:2101)
at com.mercury.td.saserver.api.logics.CTdUserLogic.performLdapAuthentication(CTdUserLogic.java:1940)
at com.mercury.td.saserver.api.logics.CTdUserLogic.authenticateUserAgainstNetDomain(CTdUserLogic.java:1986)
at com.mercury.td.saserver.api.logics.CTdUserLogic.checkUserNonEncryptedPassword(CTdUserLogic.java:1596)
at com.mercury.td.saserver.api.logics.CTdUserLogic.checkUserPassword(CTdUserLogic.java:1558)
at com.mercury.td.saserver.api.logics.CSessionLogic.login(CSessionLogic.java:247)
at com.mercury.td.saserver.api.logics.CSessionLogic.login(CSessionLogic.java:175)
at com.mercury.td.saserver.requests.Login.execute(Login.java:48)
at com.mercury.optane.core.web.RequestsDispatcher.execute(RequestsDispatcher.java:90)
wrapped in com.mercury.optane.core.CTdException: Failed to Login
at com.mercury.optane.core.web.RequestsDispatcher.execute(RequestsDispatcher.java:97)
at com.mercury.td.web.CAbsServlet.executeFunction(CAbsServlet.java:483)
at com.mercury.td.web.CAbsServlet.processRequest(CAbsServlet.java:475)
at com.mercury.td.web.CAbsServlet.doPost(CAbsServlet.java:349)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.hp.qc.core.utils.gzipfilter.GZIPFilter.doFilter(GZIPFilter.java:30)

This is happening for all users. Any suggestions would be appreciated.

HomerJ

Marked as spam
Posted by (Questions: 379, Answers: 35)
Asked on February 6, 2014 12:19 pm
87 views
Answers (1)
1
Private answer

Hi HomerJ,

I see that the issue looks to be related to your LDAP installation, as this has been my experience in the past that something has changed within the LDAP settings and is not generally a QC/ ALM related issue. I would attempt the following to hopefully resolve the issue (starting at step one and continuing until the issue is resolved):

1) I would check with you IT department to see if anything has changed with your passwords and LDAP server, since you said that all users were affected. (If there have been changes to the LDAP server settings, if you cannot log in, you might be able to correct them within the DB under the qc_siteadmin_db project under the PARAM table, edit the settings for the LDAP corrections and restart the servers to correct the changes.)

2) Restart the servers, the DB server first, and once it is up and running restart the App server (more than likely the APP server is the only one needing the restart, but this way you can insure that both are freshly restarted and running correctly.

3) If the prior 2 steps didn't resolve the issues, then you can follow the procedure for changing the log in authentication from LDAP to QC Authentication:

Change the PARAM_NAME variable value for the qcsiteadmin_db database
1. In the qcsiteadmin_db database, find the PARAMS table.
2. Look for the record where PARAM_NAME = 'Authentication'. Change the PARAM_VALUE to 'QualityCenter'.
3. Look for records where PARAM_NAME starts with 'LDAP', and delete all of them except one 'LDAP_SEARCH_USER_CRITIRIA'.
4. Restart the Quality Center service using the Quality Center icon in system tray.

You should be able to log in using old Site Administrator user/password.

After this you can then access site admin and correct the settings that are incorrect to change your authentication settings back to LDAP.

I hope this helps.

Dan

Marked as spam
Posted by (Questions: 0, Answers: 770)
Answered on February 6, 2014 12:32 pm
0
Hi Dan, Thanks a ton. We followed your steps and in the end it was as you correctly guessed a LDAP configuration issue that had changed within IT and was set up differently on the QC side. All is working now, thanks.
( at February 6, 2014 12:33 pm)
0
You're welcome. Glad that worked or you.
( at February 6, 2014 12:34 pm)
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top