HumHub single sign-on: LDAP, Active Directory, Keycloak
Members should not need one more password. HumHub can check passwords against your LDAP or Active Directory, let people sign in with Google or another account, or hand the sign-in to an identity provider such as Keycloak. HumHub 1.19 changed how directory accounts are stored, which matters before an upgrade.
Three ways to sign in with an existing account
| Way | How members sign in | Typical for |
|---|---|---|
| LDAP (core) | Directory username and password, typed in HumHub's login form | On-premise Active Directory or OpenLDAP the server can reach |
| OAuth / OpenID Connect (modules) | A button that opens the provider's login page | Google, LinkedIn, GitHub, Facebook; an identity provider such as Keycloak |
| SAML (module) | Redirect to the organization's identity provider | Entra ID, ADFS and other SAML providers |
An identity provider such as Keycloak sits between HumHub and several directories at once: it federates Microsoft Entra ID (formerly Azure AD), SAML providers and LDAP, and HumHub talks to it with OpenID Connect only.
LDAP and Active Directory in the core
Administration → Users → Settings, tab LDAP. Tick Enable LDAP Support, then fill:
- Hostname, Port and Encryption; Disable Certificate Checking only for a test server.
- Username and Password: the account HumHub binds with to search the directory ("Some servers require that this be in DN form").
- Base DN: where accounts are searched.
- User Filter: who may sign in, such as members of one group of the directory.
- Username Attribute (
sAMAccountNameon Active Directory,uidon OpenLDAP) and E-Mail Address Attribute (mailby default). - ID Attribute: an attribute that never changes,
objectGUIDon Active Directory oruidNumberon OpenLDAP. Fill it: without it, HumHub matches accounts by email or username, which breaks when someone's address changes. - Ignored LDAP entries: DNs never imported.
- Fetch/Update Users Automatically: the hourly cron queues a full synchronization of the directory's accounts and profile fields.
The page answers on save with Status: OK! (n Users), a warning when the filter finds nobody, or the error of the directory server.
Profile fields are mapped to directory attributes in the field's own LDAP Attribute option (profile fields); these fields are then locked for the members the directory manages.

What changed in HumHub 1.19
HumHub 1.19 split "how a user proves who they are" from "who manages the account":
- The link between a HumHub account and its directory entry is now a stored identity, like the ones of the OAuth modules, keyed on the ID Attribute.
- Allowed Authentication Methods chooses how directory users may sign in. Unticking LDAP disables the direct LDAP password login and sends them through the other methods you tick, such as SAML or OpenID Connect, while the directory still manages their accounts.
- Only the directory's own sign-in may write the profile fields it manages; another module that only authenticates (SAML, JWT, password) can no longer overwrite or empty them (1.19.4).
- When a directory entry is deleted and recreated (a new
objectGUIDafter a migration), 1.19 finds the account again by email or username and repairs the link, instead of creating a duplicate blocked by the existing email address.
Upgrade note: the 1.19 database migration moves the LDAP links into the new table, but not the links of other external sign-ins such as SAML or JWT, whose old columns are dropped. Those members end up as local accounts without their external identity. Update the SSO modules to versions that migrate their own data first, or back up the database (as before any upgrade) so the links can be restored. A copy of the community to test the upgrade on first catches it before members do.
OAuth and OpenID Connect modules
Each provider is a module of the marketplace: Google Sign-In, LinkedIn Sign-In, GitHub Sign-In and a Facebook module, and the free CUZY module Keycloak Sign-In for a Keycloak server with OpenID Connect, which also synchronizes groups and email both ways and supports back-channel logout. You create an application (a "client") at the provider, then paste its client id and secret into the module's configuration; the module's page shows the redirect address to declare.
When local registration is off, HumHub 1.19 sends invitation links to the external sign-in, and the mobile app opens sign-in pages in its in-app browser.
SAML and other options
HumHub's SAML SSO, Advanced LDAP (group and space mapping) and SCIM (provisioning from an identity provider) modules are reserved to HumHub's Professional Edition. The free JWT SSO module signs members in from your own website or application with signed tokens. Without the Professional Edition, Keycloak is the usual way to reach a SAML provider or Entra ID.
Choosing
- Google Workspace: Google Sign-In.
- Microsoft 365: Keycloak with Entra ID as identity provider, then Keycloak Sign-In.
- On-premise Active Directory and a HumHub on the same network: core LDAP; otherwise Keycloak, which can reach it through its own LDAP federation.
- Turn on two-factor authentication for the accounts that still use a HumHub password, at least administrators.
On a CUZY hosted community
Single sign-on is on every plan and during the trial: Google, LinkedIn, GitHub and Facebook sign-in, and Keycloak Sign-In for a company directory through Keycloak (single sign-on on CUZY Hosting). Professional Edition modules (SAML SSO, Advanced LDAP, SCIM) are not offered; Keycloak covers the same directories. Two-factor authentication is enforced for administrators from the start, and HumHub upgrades are applied when you choose, on a testing copy first on the Business plan. Compare the plans.
Read next
- HumHub emails not arriving: SMTP, sender and queue
- Add new HumHub members to spaces automatically
- HumHub notification and email summary defaults
- HumHub groups, space roles and permissions explained
- Custom HumHub profile fields, shown at registration
- HumHub registration: approval, invitation only, domains
- HumHub legal notice, privacy policy and cookie notice
- HumHub theme: colors, logo, Clean Theme and dark mode
- HumHub cron jobs and queue: when background jobs never run
- Keycloak Sign-In module: features and price
- New versions of the modules by email: the CUZY newsletter, a few times a year