-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
LDAP Improve suggestions #2212
Comments
Actually userDn is baseDn and you can use custom filter for users and admins, including filter by group. For example:
|
Fetching membership is already described in #2121 so that leaves only auth check that is missing or not requested already |
I use apacheds group instead of ad group, the ldap tree like this userFilter use userDN as base dn (code here), so, this is impossible, to check is user in group need
same for admin. |
Problem is that filter must return user record not group record as attributes (name, email etc) are fetched from returned query record. In your provided settings it will return group record that is not correct and can not possibly work. I have not used ApacheDS but what I looked up if there is no attribute under user record that links to groups than it is not possible to query users by group at least I don't know how to do it using single ldap query that means that this would require complete LDAP rewrite to support this. Can you give example what attributes are present under |
Yes, just as I thought there is no way to support that and for this to work most probably new authentication type must be added or need complete rewrite of current one... |
+1 to testing the LDAP connection from the admin panel. Was about to create a new issue before I found this one. |
|
Is someone aroud who can drop an comment, if thats possible ? |
There is plan to implement server global user groups (that could be than used for assigning to teams) and than we could do proper user ldap group implementation |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions. |
pubkeys are taken from ldap now, are they not? |
@ptman yes if you enable that |
@lafriks my point was that it should maybe be checked in the checkboxes, and maybe something else is already implemented as well |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions. |
@lafriks I found this open issue after searching for https://docs.gitea.io/en-us/authentication/
Should an issue be opened against the docs to have that portion removed until support is added to match what Gogs has? Serious question (no snark, etc intended). |
Yeah, it should not be there.. :) |
Or you could preferably open a PR to implement this for us. |
Are there any more specific ideas or plans on the design of these server global user groups? I will use this as my personal go starter project. There may be multiple ways to add some sort of group support to Gitea, but not each might be suitable. (And once implemented, it's hard to change some decisions due to backwards compatibility) A few questions:
There may be ways to implement this without adding global user groups.
Both options above require:
These kind of filters might be added for other authentication providers. |
Allowed use custom dn for user filter
Allowed use custom dn for admin filter
Fetch membership from ldap
Add connection check and auth check
Support alias
Use pubkey from ldap
Releate issues
Reference
The text was updated successfully, but these errors were encountered: