Sign-In and LDAP
These three pages of the Integrations group are plain forms, and they are for administrators (superusers) only. Microsoft Sign-In and Google Sign-In let staff log in with their work account instead of a Horilla password. LDAP stores the address of a company directory server. The other four integrations are on Integrations. All the secrets you type here are only as safe as the people who can open these pages, so keep the permissions tight.
Microsoft Sign-In
Settings → Integrations → Microsoft Sign-In (/settings/microsoft-sso/). It lets staff log in with their Microsoft work account (Microsoft Entra ID, formerly Azure AD) instead of a Horilla password. Administrators only (superusers).

- The Redirect URI
- Enable
- Tenant Id
- Client Id
- Client Secret
- Allowed Email Domains
- Hide Password Sign-In
- Save
Before you start, on the Microsoft side. In the Entra admin centre register an application (App registrations, New registration). Choose Single tenant for company use. Add a Web redirect address that is exactly the one shown in box (1), including https and the closing slash. Copy the Application (client) ID and the Directory (tenant) ID, then create a client secret under Certificates & secrets and copy its Value (not the Secret ID) straight away, because Microsoft shows it once. The default permission User.Read is enough; the scopes Horilla asks for are openid profile email. Write down the secret's expiry date: when it expires, nobody can use Microsoft sign-in until you paste a new one.
The fields
- Redirect URI (1). Shown for copying. It is built from the address you opened Horilla with, so open Horilla with the public address before you copy it.
- Enable Microsoft Sign-In (2). Off by default.
- Tenant Id (3). Required. Your Directory (tenant) ID, a domain such as
contoso.com, or one oforganizations,common,consumers. A single tenant ID is the safest choice; withorganizationsorcommonanyone with a Microsoft work account can reach the sign-in, and Horilla then matches people only by their sign-in name. - Client Id (4). The Application (client) ID. It must look like
12345678-1234-1234-1234-123456789abc. - Client Secret (5). The secret value. It is stored encrypted, filled in on later visits and can be shown with the eye icon. Spaces, line breaks or a pasted Secret ID are refused.
- Allowed Email Domains (6). Optional, comma separated, domains only (
contoso.com, not e-mail addresses). Empty means any domain. - Hide Password Sign-In (7). One switch shared by Microsoft and Google. It can only be turned on while a provider is switched on.
In this workspace the switch is off, the Tenant Id is organizations and the Client Id is a placeholder, and no secret is saved, so Microsoft sign-in is not offered.
Who gets in. Microsoft sign-in does not create employees. The person must already be an active employee whose Email (or Work Email) matches the Microsoft address. If two employees share the address, sign-in is refused. People who sign in this way are not asked for a Horilla password or the two-step code.
What users see. On the login page, a Sign In With Microsoft button appears under the Sign In button, after an "Or" divider. It shows only when the switch is on and the tenant, client ID and secret are all filled in. With Hide Password Sign-In on, only the buttons are shown and a small Sign In With Password link opens the normal form, so an administrator can never be locked out. If Microsoft refuses the sign-in, the login page shows "The Microsoft Sign-In Was Not Completed." followed by Microsoft's reason. (Read from the product code and the shipped setup guide; we could not test a real Microsoft sign-in.)

- The username and password form
This is the login page today in this workspace, checked while signed out without logging in. The provider buttons would sit under the Sign In button.
When it is not configured. The button never appears. Calling /login/microsoft/ by hand sends the visitor back to the login page with "Microsoft Sign-In Is Not Available."
Google Sign-In
Settings → Integrations → Google Sign-In (/settings/google-sso/). The same idea for Google Workspace accounts. Administrators only (superusers).

- The Authorized Redirect URI
- Enable
- Client Id
- Client Secret
- Allowed Workspace Domains
- Hide Password Sign-In
- Save
Before you start, on the Google side. In Google Cloud Console create or choose a project, set up the OAuth consent screen (choose Internal if you use Workspace, so only your own staff can sign in), then create an OAuth client ID of type Web application with the address in box (1) as an authorized redirect URI. Copy the Client ID (ending .apps.googleusercontent.com) and the Client secret. The default scopes openid, email, profile are enough.
The fields
- Authorized Redirect URI (1). Shown for copying; it must match Google exactly.
- Enable Google Sign-In (2). Off by default.
- Client Id (3). Must look like
1234567890-abc123.apps.googleusercontent.com. - Client Secret (4). Stored encrypted, shown with the eye icon. The Client ID pasted into this box is refused.
- Allowed Workspace Domains (5). Required when enabled. Only Google Workspace accounts of these domains may sign in. A personal
@gmail.comaccount never passes, even if it is saved on an employee. - Hide Password Sign-In (6). The same shared switch as on the Microsoft page.
In this workspace the switch is off, the Client Id is an example value and the secret is empty.
Who gets in and what users see. Exactly as for Microsoft: the person must be an active employee with a matching Email or Work Email, the Sign In With Google button shows under the Sign In button only when everything is filled in, and the two-step code is skipped. Horilla also insists that Google says the address is verified and that the account's Workspace domain and the address domain are both on the allowed list. When it is not configured, /login/google/ returns to the login page with "Google Sign-In Is Not Available." (Read from the product code; not tested with a real Google account.)
LDAP
Settings → Integrations → LDAP (/settings/ldap-settings/). It stores the address of a company directory server. Administrators only (superusers).

- Ldap Server
- Bind Dn
- Bind password
- Base Dn
- Save
- Ldap Server (1). The address, for example
ldap://ldap.example.com:389. The first-time default isldap://127.0.0.1:389. - Bind Dn (2). The directory account Horilla signs in with to read people, for example
cn=admin,dc=example,dc=com. - Bind password (3). The password of that account. The box is always empty when you open the page, even when one is saved, and it is required, so you must retype it every time you save anything.
- Base Dn (4). The branch to search, for example
ou=people,dc=example,dc=com.
All four are required. The page only saves these four values and shows "Configuration updated successfully."
What it does and does not do. The page text says "authenticate and sync employees", but in 2.4.0 it does neither on its own. The LDAP sign-in backend is switched off in the code, so staff cannot log in with their directory password. The only thing that uses the values is a server command, import_ldap_users, which an administrator runs by hand. It copies people with the object class inetOrgPerson into Horilla and, for the users it finds, sets the Horilla password to the digits of the phone number stored in the directory. Do not run it without understanding that. The bind password is stored as plain text in the database. (Read from the product code; we did not save the form.)
After 2.4.0: the password problem is fixed in the latest source
(read from the source of 2 December 2026; not run). The import command now never touches passwords: an employee who already exists keeps their Horilla password. It looks the person up by the directory's uid (matched to the Horilla username) first and by email second, creates or updates the employee's name, email and phone, and ends with a line such as "Done. Created: 3, Updated: 12, No Horilla user: 0, Skipped: 0, Failed: 0." One bad entry no longer stops the rest. The reverse command, which copies Horilla people into the directory, no longer sets a userPassword made from the phone number either; those entries cannot sign in until a password is set in the directory itself. The old command is kept as import_ldap_users_legacy. Still true in the latest source: the sign-in backend is switched off, the bind password is stored as plain text, and the page still asks you to retype it on every save.
When it is empty. Nothing else in Horilla notices. Sofia is sent back to the dashboard (checked).
