If subgroups are under different DN (comparing to main groups), the plugin fails to fetch them. nil as 'Groups base DN' doesn't help here either.
So, in this fork I solved this issue (#205) by:
Introducing 'Nested groups base DN', which is used only for subgroups.
New option 'Create nested groups', which controls, whether subgroups are imported into Redmine.
Regarding the latter:
The plugin always creates all groups, the user belongs to. But, when importing users, who belong to subgroups, we may not want such groups to be imported (such users are also added to the corresponding main group). Therefore, I added 'Create nested groups', that allows to control this.
If subgroups are under different DN (comparing to main groups), the plugin fails to fetch them.
nil
as 'Groups base DN' doesn't help here either.So, in this fork I solved this issue (#205) by:
Regarding the latter:
The plugin always creates all groups, the user belongs to. But, when importing users, who belong to subgroups, we may not want such groups to be imported (such users are also added to the corresponding main group). Therefore, I added 'Create nested groups', that allows to control this.
Thanks @acosonic for the idea.