I'm trying to authenticate using LDAP against an AD server. I'm trying to set the userDnPatterns as described here: https://jira.springframework.org/browse/SEC-130

So in my config settings, I have a userDnPatterns set simply to '{0}'. But I get the following error when trying to authenticate that way:

Code:
DEBUG springsecurity.RequestHolderAuthenticationFilter  - Authentication request failed: org.springframework.security.authentication.AuthenticationServiceException: Failed to parse DN; nested exception is org.springframework.ldap.core.ParseException: Encountered "<EOF>" at line 1, column 8.
Was expecting:
    <SPACED_EQUALS> ...
I have also tried setting userDnPatterns to 'mydomain\{0}' and '{0}@mydomain', but get similar DN parsing errors.

Does anyone know if the solution outlined in the ticket above actually works, or is there a different work-around for making this work?

I'm using Spring Security 3.0.3.