Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Reset password for SAML and LDAP users results in a NPE #12582

Open
@kiranchavala

Description

problem

Reset password for SAML and LDAP users results in a NPE

versions

ACS 4.20.x and 4.22

The steps to reproduce the bug

  1. As a admin Create a LDAP or SAML based Users

  2. Enable the global setting "user.password.reset.enabled"

  3. Click on Forgot password and provide the LDAP or saml account details

  4. No mail is sent

2026年02月04日 04:46:12,292 ERROR [c.c.a.ApiServlet] (qtp1390913202-16:[ctx-ab5a7a2c]) (logid:84bb83de) unknown exception writing api response java.lang.NullPointerException: Cannot invoke "javax.servlet.http.HttpSession.invalidate()" because "session" is null
	at com.cloud.api.ApiServlet.invalidateHttpSession(ApiServlet.java:656)
	at com.cloud.api.auth.DefaultForgotPasswordAPIAuthenticatorCmd.authenticate(DefaultForgotPasswordAPIAuthenticatorCmd.java:120)
	at com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:304)
	at com.cloud.api.ApiServlet1ドル.run(ApiServlet.java:190)
	at org.apache.cloudstack.managed.context.impl.DefaultManagedContext1ドル.call(DefaultManagedContext.java:56)
	at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
	at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
	at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:187)
	at com.cloud.api.ApiServlet.doPost(ApiServlet.java:146)


What to do about it?

Since the SAML and LDAP authentication and password changes happens outside cloudstack we should not reset the password

Thrown an exception meessage saying reset password is not supported for SAML and LDAP user account

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      AltStyle によって変換されたページ (->オリジナル) /