|
[
Permlink
| « Hide
]
Denis Gervalle added a comment - 26/Jun/08 14:23
Patch for appropriate two pass ldap authentication against local ldap config then main global wiki ldap config. This patch is for release 1.4.1
Patch for appropriate two pass ldap authentication against local ldap config then main global wiki ldap config. This patch is for release 1.5M2
The patch proposal has been prepared in collaboration with Thomas Mortagne for the technical approach that may be taken.
What is proposed is to use the same two pass authentication that is done in the original XWiki authentication against its DB, to the LDAP authentication. Therefore LDAP authentication is done that way:
This model has the advantage to be simple to understand and generic like the original authentication against xwiki DB. It has one drawback, the first matching ldap authentication will drive the creation of the user in the xwiki DB. Therefore, to avoind duplicating main xwiki users into local xwiki DB, it is important that main xwiki users failed to authenticate using the local xwiki ldap authentication, do that fallback to main ldap xwiki authentication occurs. To help achieving this goal, the patch introduce an additional group filter, that worked as an exclusion group: In xwiki.cfg: xwiki.authentication.ldap.exclude_group=groupDN When user pass the user_group filter successfully (if available), it is that check against the exclude_group and if a match is found, authentication failed. Thanks for the patch, I will review it and find some automated tests to write to validate this when I have time (at worst next Wednesday during the bugfixing day)
Some comment:
To summarize:
(I only looked at 1.5 branch patch)
Thanks for your detailed review, here is my comments:
To summarize:
In the hope that you agree, here is my fixed patch.
The general problem is that it's difficult to apply a patch doing so many modifications not related with the issue. I don't speaking about improvement or not, simply this patch change behaviors from user point of view that is not referenced anywhere. What you did specifically for Applied patch from Denis Gervalle with some minor modifications.
Thanks |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||