HomarrH
Homarr10mo ago
6 replies
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

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 !
Was this page helpful?