![]() ![]() This and further details are explained in the J2EE Tutorial and servlet specification. It's always crucial that the Login Form has the action "j_security_check" and that the fields "j_username" and "j_password" are present, otherwise Form-Based authentication won't work properly. ![]() If you have a closer look at the source of the login form (/security/protected/login.jsp) you'll see the following html Enter name and password (which is simply "pass" in our example) of a member of the crew of HMS Bounty.Īfter successful login you can test of your user belongs to a specific role. Now (re)start Tomcat and go to You should see the following Login Form. RoleBase="ou=crews,ou=groups,o=sevenSeas" All members of the crew are stored in a groupOfUniqueNames entry below "ou=crews,ou=groups,o=sevenSeas". ![]() " is a placeholder for the value of the username entered by the user into the login form.įinally you have to tell Tomcat how he can determine if someone is member of the crew from HMS Bounty. ![]()
0 Comments
Leave a Reply. |