Hi Forum,
happy New Year!
I am trying to install paperless ngx (https://docs.paperless-ngx.com/) in a docker container with LDAP using this tutorial LDAP Support - How I did it · paperless-ngx/paperless-ngx · Discussion #3228 · GitHub.
As I am a newbie to LDAP in general I am struggling to find the right inputs for this section
# The URL of the LDAP server(s). List multiple servers for high availability ServerPool connection.
LDAP_AUTH_URL = ["ldap://ldap.example.com:389"]
# The LDAP search base for looking up users.
LDAP_AUTH_SEARCH_BASE = "ou=people,dc=example,dc=com"
# The LDAP username and password of a user for querying the LDAP database for user
# details. If None, then the authenticated user will be used for querying, and
# the `ldap_sync_users`, `ldap_clean_users` commands will perform an anonymous query.
LDAP_AUTH_CONNECTION_USERNAME = "svc_paperless"
LDAP_AUTH_CONNECTION_PASSWORD = "my secure password"
PAPERLESS_LDAP_UID_FORMAT = "uid={},ou=people,dc=example,dc=com"
PAPERLESS_LDAP_USER_GROUP = "cn=paperless_user,ou=groups,dc=example,dc=com"
PAPERLESS_LDAP_ADMIN_GROUP = "cn=paperless_admin,ou=groups,dc=example,dc=com"
PAPERLESS_LDAP_LLDAP_FIX = False
This is fine with:
LDAP_AUTH_URL = [“ldap://ucs.domain.internal:7389”]
this works with:
LDAP_AUTH_SEARCH_BASE = “dc=domain,dc=internal”
I used this Cool Solution - LDAP search user / simple authentication account to create a search user and filled
LDAP_AUTH_CONNECTION_USERNAME = “LDAPsearch”
LDAP_AUTH_CONNECTION_PASSWORD = “LDAPsearch user password”
but I am struggling with this section
PAPERLESS_LDAP_UID_FORMAT = “uid={},ou=people,dc=example,dc=com”
PAPERLESS_LDAP_USER_GROUP = “cn=paperless_user,ou=groups,dc=example,dc=com”
PAPERLESS_LDAP_ADMIN_GROUP = “cn=paperless_admin,ou=groups,dc=example,dc=com”
My aim is to have the UCS Administrator account to be the paperles ngx Admin and all users to be normal paperless-ngx users.
I am pretty sure it is quite easy to retrieve the input via ldapsearch but I don’t know how…
Can you help?