HomerCH
HomerCH
HHomarr
Created by HomerCH on 3/7/2024 in #💬・get-help
LDAP: Cannot read properties of undefined (reading 'dn')
I have a docker-compose instance of homarr (v 0.15.0) and a Univention CS. So, as I have already done with nextcloud and various other services, I want to use LDAP as the homarr user backend. My config is: homarr: container_name: homarr image: ghcr.io/ajnart/homarr:latest restart: unless-stopped environment: AUTH_PROVIDER: ldap AUTH_LDAP_URI: ldap://192.168.100.21:7389 AUTH_LDAP_BASE: dc=example,dc=com AUTH_LDAP_BIND_DN: uid=homarr,cn=users,dc=example,dc=com AUTH_LDAP_BIND_PASSWORD: REDACTED AUTH_LDAP_GROUP_CLASS: univentionGroup AUTH_LDAP_ADMIN_GROUP: Domain Admins AUTH_LDAP_OWNER_GROUP: Enterprise Admins AUTH_LDAP_GROUP_MEMBER_USER_ATTRIBUTE: dn AUTH_LDAP_GROUP_MEMBER_ATTRIBUTE: memberof AUTH_LDAP_USERNAME_ATTRIBUTE: uid volumes: - /var/run/docker.sock:/var/run/docker.sock - /home/homer/docker/apps/homarr/configs:/app/data/configs - /home/homer/docker/apps/homarr/icons:/app/public/icons - /home/homer/docker/apps/homarr/data:/data networks: nord: ipv4_address: 192.168.200.17 arr: ipv4_address: 10.0.1.13 legitimate: ipv4_address: 10.0.0.15 dns: - 10.0.1.254 ##Adguard Using this config, I then try to login (with the verified, correct credentials) and I get: user Administrator is trying to log in using LDAP. Signing in... ERROR Cannot read properties of undefined (reading 'dn') at Object.authorize (.next/server/chunks/7534.js:93:38) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Object.callback (node_modules/next-auth/core/routes/callback.js:362:14) at async AuthHandler (node_modules/next-auth/core/index.js:302:28) at async NextAuthApiHandler (node_modules/next-auth/next/index.js:22:19) at async auth (.next/server/pages/api/auth/[...nextauth].js:129:12) Is this just me, or is it Next-Auth?
18 replies