is this a web app or a web service?
if it is a webapp, have you connected the security handler ( in your code, "ldap-security") with the security-constraints in your app. there is documentation for doing this so i will not repeat it here.
if it is a web service, make sure the end point knows about the security handler. if you are using EJB3 endpoints, you will need to add the @WebContext and @SecurityDomain annotations. if you are deploying it in a more traditional format, the xml descriptor files will need to be updated to include this linkage.
You Are correct. But My problem is little different. I want to validate LDAP user when I click on http://localhost:8080/jmx_console. If I defined the application policy in the Login-config to authenticate. I should get a pop-up for logging in the JMX_CONSOLE. Where this user will be from LDAP.
Please correct if I am wrong.
does the jboss-web.xml inside the jmx-console.war have a reference to the security domain?
note the java:/jaas/ in front of the name you gave it in the login-config.xml
Thanks sir tried the same but it's no good. Still it's saying no security domain given