-
-
Notifications
You must be signed in to change notification settings - Fork 74
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
Several Suggestions for improvement #231
Comments
Hello @tylkomat, thanks for describing a bit more what you need and why you created the previous PR #209. Some of the issues you found are "clear", some are not, and some of the 4 points you described should certainly be broken down a bit more. My big problem with PR #209 was that I just couldn't follow the reason of all the changes. So my suggestion is as follows, instead of working in a single big PR that fits all your needs, let's break down at least the first few problems which could be useful to anyone and are easily understandable and let's "complete" that ticket once first bits are already in place. I can think of this: More than 500 groups
Support for following aliases
Other points which may need some further explanation
Finally in 4) there seems to be a problem with "existing groups not recognized". Let's discuss and fix that problem separately. Bottom LineI appreciate having a ticket explaining the "big picture" of changes you'd like to see. I think that it makes sense now to do that a bit step by step with dedicated tasks which are easier to grasp and can logically be of some benefit already when applied step-by-step with having to wait for a big PR with lots of changes. |
Duplication
In this example we have group1 and group2 as examples, with DNs:
For the groups I use the following filter and base DN:
I suppose the
After applying my mapping the "Import LDAP groups (Backend)" table would like this:
As you can see each member of a group will result in an additional duplicate. |
following AliasesAccording to this FAQ https://www.openldap.org/faq/data/cache/1111.html
It could be recognized automatically without a separate option, if the schema is always like this. |
We have a fairly complex LDAP structure, but not unusual. As far as I know it is a common structure for openLDAP, but it's one that is not fully supported by this plugin.
This structure poses some issues. Here you see our partial configuration, but this configuration does not work without changes to the code base.
BE_USERS
Base DN: ou=People,dc=example,dc=com
Filter: (&(objectClass=shadowAccount)(uid={USERNAME}))
Mapping:
realName = <displayname>
email = <mailAddressbook>
username = <uid>
BE_GROUPS
Base DN: ou=WWW,ou=IT-Services,dc=example,dc=com
Filter: (&(objectClass=alias)(aliasedObjectName={USERDN})(ou:dn:=typo3)(ou:dn:=be))
Mapping:
I found the following issues:
Then, instead of filtering for all BE_USERS (we have over 10k and there is a hard stop of 2k in the code) I could just filter for the ones which are in groups, since these are the only ones that have access to the typo3. Additionally a filter for duplicates is necessary, as a user can be in many groups. Sorting by name in the end would be nice too.
I'm willing to adopt my previous PR #209 to the new version if you are interested.
The text was updated successfully, but these errors were encountered: