Skip to content

Expose get-password-expiration API in user portal for OpenLDAP and Samba #8059

Description

@gsanchietti

Summary

Add get-password-expiration endpoint to the api-moduled user portal for both OpenLDAP and Samba account providers.

Logged-in users can query their own password expiration info. Client UIs (e.g. CTI) can use this to prompt password change before expiry.

API

Endpoint: POST /api/get-password-expiration
Auth: Bearer token (from POST /api/login)

Response example:

{
  "status": "success",
  "message": "password_expiration",
  "expired": false,
  "expiration": "2026-12-21T07:51:25Z",
  "must_change": false
}

Implementation PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    verifiedAll test cases were verified successfully
    No fields configured for Feature.

    Projects

    Status
    Verified

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions