Hi There

New to the group but eager to help. I also had a hard time to get JDBC
Realm Authentication working at first. Are you using Glassfish? If you
are using GF I might be able to help. To the all Asians on the list
Happy New Year!

Regards
Neil

On Feb 9, 9:42 pm, aykut kanyılmaz <onbira...@gmail.com> wrote:
> hi dear frends,
> i have a problem. i want to authenticate from mysql user table. but it is
> not working.
> in web.xml
>
>       <display-name>AdminConstraints</display-name>
>         <web-resource-collection>
>             <web-resource-name>Admin</web-resource-name>
>             <url-pattern>/secureAdmin/*</url-pattern>
>         </web-resource-collection>
>         <auth-constraint>
>             <role-name>Admin</role-name>
>             <role-name>User</role-name>
>         </auth-constraint>
>     </security-constraint>
>     <security-constraint>
>         <display-name>UserConstraint</display-name>
>         <web-resource-collection>
>             <web-resource-name>User</web-resource-name>
>             <url-pattern>/secureUser/*</url-pattern>
>         </web-resource-collection>
>         <auth-constraint>
>             <description/>
>             <role-name>User</role-name>
>             <role-name>Admin</role-name>
>         </auth-constraint>
>     </security-constraint>
>     <login-config>
>         <auth-method>FORM</auth-method>
>         <realm-name>JDBCAuth</realm-name>
>         <form-login-config>
>             <form-login-page>/login.jsp</form-login-page>
>             <form-error-page>/loginError.jsp</form-error-page>
>         </form-login-config>
>     </login-config>
>     <security-role>
>         <description/>
>         <role-name>Admin</role-name>
>     </security-role>
>     <security-role>
>         <description/>
>         <role-name>User</role-name>
>     </security-role>
> in login.jsp
>   <form action="j_security_check" method="POST">
>               Username:<input type="text" name="j_username"><br>
>               Password:<input type="password" name="j_password">
>               <input type="submit" value="Login">
>             </form>
>
> in glassfish admin console, i added a securty realm called 'JDBCAuth'. i
> configured this realm's username, password etc.. column but it is not
> working:(
>
> i want to use this in my next project help me please
> AYKUT KANYILMAZ

-- 
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en

Reply via email to