Skip to content

LDAP configuration

This part of the configuration requires knowledge of the LDAP server structure of your institution.

  • Default value: None

A complete URI with following format: scheme://hostname(:port).

Example: ldaps://ldapd.my-university.de

  • Default value: None

The base DN of LDAP from where all users and groups can be accessed.

Example: dc=my-university,dc=de

LDAP_BIND_USER_DN recommended

Section titled “LDAP_BIND_USER_DN ”
  • Default value: None

The LDAP bind user must have permissions to perform searches in the LDAP directory.

Leave empty for an anonymous bind.

Example: uid=perseussysuser,cn=sysuser,dc=my-university,dc=de

LDAP_BIND_PASSWORD recommended

Section titled “LDAP_BIND_PASSWORD ”
  • Default value: None

The corresponding password for LDAP_BIND_USER_DN.

  • Default value: True

Enable/Disable LDAP SSL.

  • Default value: (&(objectClass=person)(uid={username}))

LDAP user filter to search for a user. Used to search for an user. Make sure to filter out locked users.

{username} will be replaced with the user’s login username.

  • Default value: []

A comma-separated whitelist of LDAP groups which are allowed to login into PERSEUS.

Leave empty for no restriction.

Example: tech-member,allocation-member-group

The preferred email address attribute of a user.

  • Default value: mail

The full user’s display name attribute.

  • Default value: displayName

The group attributes of which the user is a member.

  • Default value: memberOf

ldap3.Server() connect timeout. In seconds.

  • Default value: 5

ldap3.Connection() timeout. In seconds.

  • Default value: 10

Skip SSL certificate verification. Useful for local development.

  • Default value: False

Minimal LDAP configuration with using the default values described above.

Terminal window
LDAP_SERVER_URI="ldaps://ldapd.example-university.de"
LDAP_BASE_DN="dc=example-university,dc=de"
Terminal window
LDAP_SERVER_URI="ldaps://ldapd.example-university.d"
LDAP_BASE_DN="dc=example-university,dc=de"
LDAP_BIND_USER_DN="cn=perseususer,ou=sysuser,dc=example-university,dc=de"
LDAP_BIND_PASSWORD="<BIND_USER_PASSWORD>"
LDAP_USER_FILTER="(&(objectClass=person)(uid={username})(!(pwdAccountLockedTime=*)))"
LDAP_ALLOWED_GROUPS="perseusgroup,operationalstaff"