H
HomarrHomerCH

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?
Solution:
I know, but there is no answer there. Answer was given by Meierschlumpf on github. The error means that the user cannot be found in LDAP....
CB
Cakey Bot40d ago
Thank you for submitting a support request. Depending on the volume of requests, our team should get in contact with you shortly.
⚠️ Please include the following details in your post or we may reject your request without further comment: - Log (See https://homarr.dev/docs/community/faq#how-do-i-open-the-console--log) - Operating system (Unraid, TrueNAS, Ubuntu, ...) - Exact Homarr version (eg. 0.15.0, not latest) - Configuration (eg. docker-compose, screenshot or similar. Use ``your-text`` to format) - Other relevant information (eg. your devices, your browser, ...)
❓ Frequently Asked Questions | Homarr documentation
Can I install Homarr on a Raspberry Pi?
H
HomerCH39d ago
For anyone wondering about the networks, nord is IPVLAN L2 mode, and the other 2 are docker networks. I have confirmed that it is not an error on my part. This is a bug. Included the NEXTAUTH_URL, still no joy
M
Meierschlumpf39d ago
GitHub
LDAP: Cannot read properties of undefined (reading 'dn') · Issue #1...
Environment Docker Version 1.1.0 Describe the problem Hi, I've deployed the Kubernetes version from https://oben01.github.io/charts/charts/homarr/ but when I'm trying to login on the ui usi...
Solution
H
HomerCH38d ago
I know, but there is no answer there. Answer was given by Meierschlumpf on github. The error means that the user cannot be found in LDAP.
H
HomerCH37d ago
I don't know how to unmark the solution. The real reason for the error is that homarr, when making an ldap query, always uses scope BASE. For my case, with the Univention Corporate Server, the queries will only work with scope SUB.
H
HomerCH37d ago
GitHub
LDAP: Cannot read properties of undefined (reading 'dn') · Issue #1...
Environment Docker Version 1.1.0 Describe the problem Hi, I've deployed the Kubernetes version from https://oben01.github.io/charts/charts/homarr/ but when I'm trying to login on the ui usi...
M
Meierschlumpf37d ago
Okay thanks for investigating, just published a pull request to add support to change this scope
H
HomerCH36d ago
Thank you very much! Is it possible to apply this as "patch", of sorts, myself, and if not, when can I expect the next release?
M
Meierschlumpf36d ago
You should be able to use the dev tag for now, next release will come this week I think
H
HomerCH36d ago
Thank you
H
HomerCH35d ago
No description
H
HomerCH35d ago
Works like a charm with the :dev tag
T
Tag35d ago
Don't forget to switch back to latest once we roll out the next version :)
Want results from more Discord servers?
Add your server
More Posts
Media Server Widget is broken.My logs are spammed with ``` ERROR failed to communicate with media server 'Jellyfin' (85cf6619-9bFailed to fetch icons from repository 'GitHub'Hi everyone, I have an issue retrieving the icons from GitHub repositories. From the docker logs, I homarr stopped workinghomarr stopped working Error [TRPCClientError]: no such table: user at TRPCClientError.from (fDeployed to k3s cluster running Traefik, IngressRoute only partially works; 404s on /onboardI've got a k3s cluster running, seemingly just fine. I've got a couple services deployed already, sWhat encryption is being used to encrypt the passwordHey devs, I am trying to create my own installer in python to install homarr i have question what eHomarr not loading / SABnzbd not workingHello guys, i have tried setting up SABnzbd widget, put in the API key, and it didnt work got 404 erLDAP: Credential Window MissingNew installation, using ldap (tcp/389). After the container comes up I can reach the web-interface,AdGuard home integrationHi! I have been trying for a few days to make my AdGuard Home integration work. I’ve tested if HomarSome Widgets not workingSo far, thanks ot the help of others here, I've got some things working but others aren't. Apps allIs it possible to use Plex auth for users to log into Homarr? Similarly to how Overseerr does.Looking to reduce the number of login details needed for users, while maintaining authentication to error cpu and rami got this issues: https://i.gyazo.com/93974ff01b2c07eabc2a87635e9226ce.png how to fix it ? i haveHomarr goes down after ~10 minutesHi everyone, first time using homarr and using docker/docker compose in general, so I hope I'm not mIntegrations Not WorkingFor some reason none of my integrations seem to be able to pull any data from my servers. It looks lIndex ManagerI have two boards one for Desktop and one for iPhone, Prowlarr Index manager works perfect on iPhoneShare Calendar on Board without Showing Radarr/SonarrI would like to be able to share a calendar on my public facing "default" board without having Radarsolid background color?Besides creating a solid image, Is there a way to just specify a color code for background?Homarr Stuck on Welcome Screen after updateRunning on Unraid 6.12.3, after last update Homarr is stuck at the welcome screen. Getting this screOpen AI Linkthe link to open AI works but shows up with a red dot instead of Green, i have tried the various codGuide: Plex setupHi everyone I see that there are a lot of people asking for help with the plex issues. I have been Disable internal Auth and use SSOI have homarr setup using Traefik and Authentik for SSO but I cannot found a way to disable the inte