Hi,
I working on this app and I've run into a problem when I want to use both "simple" authentication (from db) and LDAP based authentication. I've tried
both separately and they all work but when I put them together they don't.
and I'm getting something like:Code:<intercept-url pattern="/**" access="ROLE_USER,ROLE_ADMIN,ROLE_MYCOMP-ADMINISTRATORS,ROLE_MYCOMP-RESOURCES"/> ............ <ldap-server id="ldapServer" url="ldap://10.1.0.2:389/OU=myGroup,DC=mycomp,DC=com" manager-dn="userATmycomp.com" manager-password="******"/> <ldap-user-service id="ldap-user-service" server-ref="ldapServer" user-search-filter="(userPrincipalName={0})" /> <ldap-authentication-provider server-ref="ldapServer" group-search-base="CN=MYCOMP-Resources" group-search-filter="(member={0})" user-search-base="OU=People" user-search-filter="(userPrincipalName={0})" role-prefix="ROLE_" /> <authentication-provider> <password-encoder hash="md5" base64="true"/> <jdbc-user-service data-source-ref="dataSource" authorities-by-username-query="SELECT RTRIM(username) as username, RTRIM(authority) as authority from cm_user u WHERE u.username =?" users-by-username-query="SELECT RTRIM(username) as username, RTRIM(password) as password,enabled from cm_user WHERE username=?"/> </authentication-provider>
Is there any solution using only xml configuration?Code:More than one UserDetailsService registered. Please use a specific Id in your configuration.
Thanks.


