Skip to content

It is required that i use groups for ldap authentification #637

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
fga1794 opened this issue Apr 28, 2025 · 3 comments · May be fixed by #646
Open

It is required that i use groups for ldap authentification #637

fga1794 opened this issue Apr 28, 2025 · 3 comments · May be fixed by #646
Labels
bug Something isn't working

Comments

@fga1794
Copy link

fga1794 commented Apr 28, 2025

The Helm chart version

netbox-5.0.24

Environment Versions

kubernetes

Custom chart values

remoteAuth:
  enabled: false
  backends:
    - netbox.authentication.LDAPBackend
  autoCreateUser: true
  header: HTTP_REMOTE_USER
  ldap:
    serverUri: 'xx'
    startTls: true
    ignoreCertErrors: true
    bindDn: "xx" 
    bindPassword: ldap_bind_password
    # userDnTemplate: ""
    userSearchBaseDn: "xx"
    userSearchAttr: sAMAccountName

Current Behavior & Steps to Reproduce

Hello, i don't want to use the groups for authentification ldap
https://netboxlabs.com/docs/netbox/en/stable/installation/6-ldap/

However, the file created by helm use groups. If i do not put values , it set default one and does not work
How can i do without groups ?

Expected Behavior

use ldap only with search user without group associted to AD

NetBox Logs


@fga1794 fga1794 added the bug Something isn't working label Apr 28, 2025
@LeoColomb
Copy link
Member

Thanks for filing this issue, @fga1794.
Have you tried using empty array/string values?

@fga1794
Copy link
Author

fga1794 commented Apr 29, 2025

yes i tried with empty values.
in this case, I got the error :
name 'AUTH_LDAP_REQUIRE_GROUP' is not defined

@LeoColomb
Copy link
Member

Thanks @fga1794
Could you please paste here the complete error log?

LeoColomb added a commit that referenced this issue May 1, 2025
Thus fix the empty group issue.
Fixes #637
@LeoColomb LeoColomb linked a pull request May 1, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants