SpringSource/spring-security — pull request #8 by michaelpigg (2012-05-23 12:02:06+00:00)
Title: Change default subjectDnRegex pattern in SubjectDnX509PrincipalExtractor to match CN at end of DN

Changes subjectDnRegex default pattern from "CN=(.*?)," to "CN=(.*?)(?:,.*)*$" to match a CN occurring anywhere in the subject DN field. Added unit test to show that this works and does not break existing unit tests.