Authentication
Ascender Registry supports three ways to sign in:
- Local accounts: usernames and passwords stored in the registry. Local sign-in always works, regardless of the LDAP and SAML settings, so you do not lose access to the local
adminaccount while you set up LDAP or SAML. - LDAP: users sign in on the normal login form with their directory username and password.
- SAML 2.0 single sign-on: users select a single sign-on button on the login page and authenticate at your identity provider (IdP).
LDAP and SAML accounts are provisioned automatically the first time a user signs in, and appear on the Users page with the type ldap or saml.
Initial administrator account
An initial administrator account is created when the database is first initialized:
| Field | Value |
|---|---|
| Username | admin |
| Password | admin, unless an initial password is provided at deployment time |
| Name | Administrator |
| Type | local |
admin@ascender.local |
To avoid ever exposing the default credentials, provide a password before the first start. Immediately after the schema is applied to a brand-new database, the registry overwrites the seeded password with the configured value. The password is read from, in order:
/run/secrets/admin-password: a mounted secret file (preferred, because it keeps the value out of the container environment). In Kubernetes this is theadmin-passwordkey of theascender-registry-secretsSecret.- The
ADMIN_PASSWORDenvironment variable.
Surrounding whitespace is trimmed, so a trailing newline in the secret file is harmless. If neither is set, the default password is left in place.
This runs on first database creation only: restarts and redeploys never overwrite a password that was rotated through the web UI, and editing the Secret on an existing deployment has no effect. For how the Ascender Pro installer sets these values, see Installing Ascender Registry.
If you deployed without setting an initial password, change it immediately after first login. See Editing a user and resetting passwords.
Sessions and login protection
- A successful sign-in starts a session that lasts seven days. Session data is stored in an encrypted, HTTP-only cookie. The encryption key is read from
/run/secrets/session-keyor theSESSION_KEYenvironment variable (a hex-encoded 32-byte key). - Repeated failed login attempts are rate limited to protect accounts against brute-force attempts.
- Signing out clears the local session. For SAML users, signing out also performs single logout at the IdP when a Logout Service URL is configured.
Open the authentication settings
Open Administration → Settings, then select Authentication. The page has an LDAP tab and a SAML tab, which are configured independently. Each tab has Return, Test, and Save buttons.

LDAP
LDAP settings
| Field | Required | Description |
|---|---|---|
| Enable LDAP | No | Master toggle for LDAP sign-in. |
| LDAP Server | Yes | URL of the LDAP server, including ldap:// or ldaps://, for example ldaps://ldap.example.com. |
| Base DN | Yes | The base DN used for locating users and groups, for example dc=example,dc=com. |
| User DN | Yes | The DN used to authenticate (bind as) the user. Use <username> as the placeholder for the username, for example uid=<username>,cn=users,dc=example,dc=com. |
| Test Bind User | No | The user (DN) to bind with when you select Test. |
| Test Bind Password | No | The password used for the test bind. Stored encrypted. Leave it blank to keep the currently saved password. |
| Require Group | No | If users must be members of a group to sign in, enter the full DN of that group, for example cn=ascender-users,ou=groups,dc=example,dc=com. |
| Server CA Certificate | No | The PEM-encoded CA certificate of your LDAP server. Enter it if you receive a "CA unknown" error. |
Select Save to store the settings.
Test the LDAP connection
Select Test to check connectivity. The test binds to the LDAP Server as the Test Bind User with the Test Bind Password. Values left blank on the form fall back to the saved values, so you can test with the stored password without re-entering it.
How LDAP sign-in works
- The user enters their username and password on the login form.
- The registry connects to the LDAP Server. For
ldaps://URLs the connection uses TLS from the start. Forldap://URLs the registry upgrades the connection with StartTLS before binding; if the server does not support StartTLS, it continues without encryption. - The registry binds with the User DN, with
<username>replaced by the username, and the password the user entered. If the bind fails, sign-in fails. - If Require Group is set, the registry checks that the user is a member of that group and refuses sign-in otherwise.
- The registry looks up the user's display name and email address in the directory. If none are found, the username is used as the name and
<username>@ldap.localas the email address. - The registry creates the account with the type
ldap, or updates the name, email, and type of an existing account with the same username. - Team membership is reconciled against the LDAP Group of every team (see Team mapping).
Group membership is checked with searches under the Base DN, covering both Active Directory (memberOf, including nested groups) and OpenLDAP posixGroup (memberUid) layouts.
When Server CA Certificate is empty, the registry does not verify the LDAP server's TLS certificate. Enter your server's CA certificate to have the certificate verified.
SAML
The registry acts as a SAML 2.0 Service Provider (SP) and works with standards-compliant identity providers. It never stores SSO passwords.
SAML settings
The SAML tab has two toggles at the top and two columns of fields.
| Field | Required | Description |
|---|---|---|
| Enable SAML | No | Master toggle for SAML sign-in. When enabled, the login page shows the single sign-on button. |
| Binding Method | No | How the authentication request is sent to the IdP: Redirect Binding or Post Binding. |
Service Provider Information
This column describes the registry itself. You register these values with your IdP.
| Field | Required | Description |
|---|---|---|
| Sign Requests | No | Signs outgoing authentication and logout requests with the SP private key, using RSA-SHA256. Requires the certificate and private key below. |
| Entity ID | Yes | The SP entity ID, for example https://ascender-registry.example.com/. It must match the audience your IdP places in the assertion. |
| Assertion Consumer Service URL | Yes | The public URL your IdP posts the SAML response to. It must end in /acs, for example https://ascender-registry.example.com/acs. |
| Public Certificate | Only when signing | The SP public X.509 certificate (PEM). Leave blank to keep the saved value. |
| Private Key | Only when signing | The SP private key (PEM, PKCS#1 or PKCS#8). Stored encrypted. Leave blank to keep the saved value. |
| Login Button Label | No | The text shown on the SAML button on the login page. Defaults to LOG IN TO YOUR COMPANY. |
Identity Provider Information
This column describes your IdP. Copy these values from your IdP's application settings or metadata.
| Field | Required | Description |
|---|---|---|
| Entity ID | Yes | The IdP issuer or entity ID, compared against the issuer of the response. |
| Single SignOn URL | Yes | The IdP single sign-on URL the authentication request is sent to. |
| Logout Service URL | No | The IdP single logout URL. Leave blank to only clear the local session on logout. |
| Public Certificate | Yes | The IdP signing certificate (PEM or bare base64), used to verify the response signature. |
Select Save to store the settings, then select Test. The test checks that the saved configuration is complete and that the certificates and key parse correctly; it does not perform a sign-in. Use the login page to verify sign-in with your IdP.
SAML endpoints
Register these endpoints with your IdP. They are public, because your IdP posts to them across sites.
| Purpose | Method | Path |
|---|---|---|
| Start sign-in from the registry | GET | /login/saml |
| Assertion consumer service | POST | /acs |
| Single logout | GET, POST | /slo |
The single logout endpoint is derived from the Assertion Consumer Service URL by replacing /acs with /slo.
How SAML sign-in works
- The user selects the single sign-on button on the login page.
- The registry builds an authentication request and sends it to the IdP's Single SignOn URL using the configured binding.
- The user authenticates at the IdP.
- The IdP posts a signed SAML response to the registry's
/acsendpoint. - The registry validates the response (IdP signature, issuer, recipient, audience, and validity window), maps the returned attributes to account fields, creates or updates the local account, reconciles team membership, and starts the session.
Sign-in started from the IdP's own dashboard (IdP-initiated sign-in) is also supported. Every validation still applies, except the correlation between the response and a request the registry sent.
Serve the registry over HTTPS. SP-initiated sign-in uses a short-lived cookie that browsers only store over HTTPS. Without HTTPS the response is still accepted and fully validated, but it is treated as IdP-initiated.
Attribute mapping
The registry reads the following attributes from the assertion. Attribute names are matched case-insensitively, and URI-style names (such as http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress) are matched on their last path segment. The first value of the first matching attribute is used.
| Account field | Accepted attribute names |
|---|---|
| Username | username, nickname, userprincipalname, samaccountname |
email, mail, emailaddress | |
| Full name | name, displayname, commonname, preferredname |
| First name | givenname, firstname |
| Last name | surname, lastname |
| Groups | group, groups (all values) |
The account is resolved as follows:
- The username is the username attribute, or the subject NameID when no username attribute is present, or the email address when neither is present. Usernames are converted to lowercase.
- If an account with that username does not exist, the registry looks for an account with the same email address, so an existing local or LDAP account can be matched.
- A matched account is converted to the type
saml, and its name and email are refreshed from the IdP. If no account matches, a newsamlaccount is created. - The display name is the first and last name when both are present, otherwise the full name, first name, username, or email address.
- Deactivated accounts are refused.
Enable verbose debug logging to have the registry log every attribute it receives, which helps when mapping attributes from an unfamiliar IdP.
Team mapping
Teams can be linked to directory and SSO groups with the LDAP Group and SAML Group fields on the Teams page. The fields appear only while LDAP or SAML is enabled.
Every time an LDAP or SAML user signs in, the registry reconciles their membership of every team that has a mapped group:
- If the user is a member of the mapped group, they are added to the team.
- If the user is not a member of the mapped group, they are removed from the team.
- Teams without a mapped group are left untouched, so you can still manage their membership manually.
For LDAP, the LDAP Group is a group DN and membership is checked in the directory. For SAML, the SAML Group is compared case-insensitively against the values of the group or groups attribute in the assertion.