GitHub 0

LDAP Integration

Connect Pocket ID to your LDAP server for user synchronization

Pocket ID can sync users and groups from an LDAP Source (lldap, OpenLDAP, Active Directory, etc.).

LDAP Sync

  • The LDAP Service will sync on Pocket ID startup and every hour once enabled from the Web UI.
  • Users or groups synced from LDAP can NOT be edited from the Pocket ID Web UI.

Set up LDAP after Initial Setup

  1. Follow the installation guide here.
  2. Once you have signed in with the initial admin account, navigate to the Application Configuration section at https://pocket.id/settings/admin/application-configuration.
  3. Client Configuration Setup
LDAP Variable Example Value Description
LDAP URL ldaps://ldap.mydomain.com:636 The URL with port to connect to LDAP
LDAP Bind DN cn=admin,ou=users,dc=domain,dc=com The full DN value for the user with search privileges in LDAP
LDAP Bind Password securepassword The password for the Bind DN account
LDAP Search Base dc=domain,dc=com The top-level path to search for users and groups
User Search Filter (objectClass=person) The filter to use to search for users from LDAP
User Group Search Filter (objectClass=groupOfNames) The filter to use to search for groups from LDAP

  1. LDAP Attribute Configuration Setup
LDAP Variable Example Value Description
User Unique Identifier Attribute uuid The LDAP attribute to uniquely identify the user, this should never change
Username Attribute uid The LDAP attribute to use as the username of users
User Mail Attribute mail The LDAP attribute to use for the email of users
User First Name Attribute givenName The LDAP attribute to use for the first name of users
User Last Name Attribute sn The LDAP attribute to use for the last name of users
Group Members Attribute member The LDAP attribute to use for querying members of a group.
Group Unique Identifier Attribute uuid The LDAP attribute to uniquely identify the groups, this should never change
Group Name Attribute uid The LDAP attribute to use as the name of synced groups
Admin Group Name _pocket_id_admins The group name to use for admin permissions for LDAP users

Set up LDAP during Initial Setup

  1. Follow the installation guide here.
  2. Set up your .env file with the required LDAP configuration. It is very important that you have at least one user in the Admin Group!
  3. In your .env file, set LDAP_ENABLED=true and UI_CONFIG_DISABLED=true so that Pocket ID uses the environment variables for all configuration.
  4. Wait for the server to start up and for the LDAP sync job to finish successfully (look in the logs for a line with the strings Job run successfully + name=SyncLdap)
  5. Generate a one-time token for an admin user with docker compose exec pocket-id /app/pocket-id one-time-access-token <user name or email>.
  6. Use this link to log in and set up a passkey for your admin user.
Help improve this page
Edit this page on GitHub