H
Homarr4d ago
DeDe

Can't authenticate with ldap

Hi , i'm migrating from ghcr.io/ajnart/homarr:latest image to the official homarr image, but i'm getting stuck when i want to use ldap Auth (WindowsDomain) I've read the documentation and according my docker-compose file with it. Without ldap auth, i was able to reimport my dashboards, all is working except ldap. If anyone can help me ! Here my docker-compose.yml (this configuration working previously with the ajnart image) :
services:
homarr:
container_name: homarr
image: ghcr.io/homarr-labs/homarr:latest
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock # Optional, only if you want docker integration
- ./homarr/appdata:/appdata
ports:
- '7575'
environment:
SECRET_ENCRYPTION_KEY: this_is_a_secret!
AUTH_PROVIDER: ldap
AUTH_LDAP_URI: ldap://ip_dc:389
AUTH_LDAP_BASE: dc=domain,DC=local
AUTH_LDAP_BIND_DN: cn=ROuser,cn=Users,dc=domain,dc=local
AUTH_LDAP_BIND_PASSWORD: mypassword
AUTH_LDAP_USERNAME_ATTRIBUTE: sAMAccountName
AUTH_LDAP_USER_MAIL_ATTRIBUTE: mail
AUTH_LDAP_SEARCH_SCOPE: sub
AUTH_LDAP_GROUP_CLASS: group
AUTH_LDAP_GROUP_MEMBER_ATTRIBUTE: member
AUTH_LDAP_GROUP_MEMBER_USER_ATTRIBUTE: dn
AUTH_LDAP_OWNER_GROUP: Homarr_owners
AUTH_LDAP_ADMIN_GROUP: Homarr_admins
# AUTH_LDAP_USERNAME_FILTER_EXTRA_ARG: (sAMAccountType=805306368)
DISABLE_ANALYTICS: true
TZ: Europe/Paris
labels:
- "traefik.enable=true"
- "traefik.http.routers.homarr.rule=Host(`portal.mydomain.com`)"
- "traefik.http.routers.homarr.entrypoints=websecure"
- "traefik.http.routers.homarr.tls=true"
- "traefik.http.services.homarr.loadbalancer.server.port=7575"
networks:
- traefik_network

networks:
traefik_network:
# driver: bridge
external: true
services:
homarr:
container_name: homarr
image: ghcr.io/homarr-labs/homarr:latest
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock # Optional, only if you want docker integration
- ./homarr/appdata:/appdata
ports:
- '7575'
environment:
SECRET_ENCRYPTION_KEY: this_is_a_secret!
AUTH_PROVIDER: ldap
AUTH_LDAP_URI: ldap://ip_dc:389
AUTH_LDAP_BASE: dc=domain,DC=local
AUTH_LDAP_BIND_DN: cn=ROuser,cn=Users,dc=domain,dc=local
AUTH_LDAP_BIND_PASSWORD: mypassword
AUTH_LDAP_USERNAME_ATTRIBUTE: sAMAccountName
AUTH_LDAP_USER_MAIL_ATTRIBUTE: mail
AUTH_LDAP_SEARCH_SCOPE: sub
AUTH_LDAP_GROUP_CLASS: group
AUTH_LDAP_GROUP_MEMBER_ATTRIBUTE: member
AUTH_LDAP_GROUP_MEMBER_USER_ATTRIBUTE: dn
AUTH_LDAP_OWNER_GROUP: Homarr_owners
AUTH_LDAP_ADMIN_GROUP: Homarr_admins
# AUTH_LDAP_USERNAME_FILTER_EXTRA_ARG: (sAMAccountType=805306368)
DISABLE_ANALYTICS: true
TZ: Europe/Paris
labels:
- "traefik.enable=true"
- "traefik.http.routers.homarr.rule=Host(`portal.mydomain.com`)"
- "traefik.http.routers.homarr.entrypoints=websecure"
- "traefik.http.routers.homarr.tls=true"
- "traefik.http.services.homarr.loadbalancer.server.port=7575"
networks:
- traefik_network

networks:
traefik_network:
# driver: bridge
external: true
Thanks for your help
Solution:
it's okay, my bad, "s" missing from the older config file, problem was between the chair and the keyboard ! thanks for your help !...
Jump to solution
4 Replies
Cakey Bot
Cakey Bot4d 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?
DeDe
DeDeOP4d ago
The homarr log
2025-04-15T08:36:32.953Z info: user testuser was not found
2025-04-15T08:36:32.953Z error: Read more at https://errors.authjs.dev#credentialssignin name="Q" type="CredentialsSignin" kind="signIn" code="credentials"
at nS (/app/apps/nextjs/.next/server/chunks/279.js:382:44968)
at async nO (/app/apps/nextjs/.next/server/chunks/279.js:382:54146)
at async nH (/app/apps/nextjs/.next/server/chunks/279.js:382:58397)
at async d (/app/apps/nextjs/.next/server/app/api/auth/[...nextauth]/route.js:1:2815)
at async tf.do (/app/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:18:18835)
at async tf.handle (/app/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:18:23727)
at async doRender (/app/node_modules/next/dist/server/base-server.js:1513:42)
at async NextNodeServer.renderToResponseWithComponentsImpl (/app/node_modules/next/dist/server/base-server.js:1915:28)
at async NextNodeServer.renderPageComponent (/app/node_modules/next/dist/server/base-server.js:2403:24)
at async NextNodeServer.renderToResponseImpl (/app/node_modules/next/dist/server/base-server.js:2440:32)
2025-04-15T08:36:32.953Z info: user testuser was not found
2025-04-15T08:36:32.953Z error: Read more at https://errors.authjs.dev#credentialssignin name="Q" type="CredentialsSignin" kind="signIn" code="credentials"
at nS (/app/apps/nextjs/.next/server/chunks/279.js:382:44968)
at async nO (/app/apps/nextjs/.next/server/chunks/279.js:382:54146)
at async nH (/app/apps/nextjs/.next/server/chunks/279.js:382:58397)
at async d (/app/apps/nextjs/.next/server/app/api/auth/[...nextauth]/route.js:1:2815)
at async tf.do (/app/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:18:18835)
at async tf.handle (/app/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:18:23727)
at async doRender (/app/node_modules/next/dist/server/base-server.js:1513:42)
at async NextNodeServer.renderToResponseWithComponentsImpl (/app/node_modules/next/dist/server/base-server.js:1915:28)
at async NextNodeServer.renderPageComponent (/app/node_modules/next/dist/server/base-server.js:2403:24)
at async NextNodeServer.renderToResponseImpl (/app/node_modules/next/dist/server/base-server.js:2440:32)
Manicraft1001
Manicraft10014d ago
Hi, can you check again that your configuration is correct according to https://homarr.dev/docs/next/advanced/single-sign-on/ ? user testuser was not found indicates that it is being filtered out or something else is configured incorrectly.
Single Sign On | Homarr documentation
Homarr supports multiple authentication options, from internal userbase (credentials), to LDAP (with Active directory support), and OIDC.
Solution
DeDe
DeDe4d ago
it's okay, my bad, "s" missing from the older config file, problem was between the chair and the keyboard ! thanks for your help !

Did you find this page helpful?