Re: Application Realm in Tomcat

2008-02-07 Thread maux
; if (role.length() > 0) { if (request.isUserInRole(role)) { %> You have >>> been >>> granted role <%= util.HTMLFilter.filter(role) %> >>> >>> <% } >>> >>> which will output something like <admin> assuming your are >>

Re: Application Realm in Tomcat

2008-02-07 Thread david delbecq
%> <% } which will output something like <admin> assuming your are requesting admin access HTH/ Martin-- - Original Message - Wrom: YZUNNYCGPKYLEJGDGVCJVTLBXFGGMEP To: "Tomcat Users List" Sent: Thursday, February 07, 2008 2:40 PM Subject: Re: Application Realm in Tomcat

Re: Application Realm in Tomcat

2008-02-07 Thread maux
ole <%= util.HTMLFilter.filter(role) %> > > <% } > > which will output something like <admin> assuming your are > requesting > admin access > > HTH/ > Martin-- > - Original Message - > Wrom: YZUNNYCGPKYLEJGDGVCJVTLBXFGGMEP > To: "Tomcat

Re: Application Realm in Tomcat

2008-02-07 Thread mgainty
/ Martin-- - Original Message - Wrom: YZUNNYCGPKYLEJGDGVCJVTLBXFGGMEP To: "Tomcat Users List" Sent: Thursday, February 07, 2008 2:40 PM Subject: Re: Application Realm in Tomcat > Via the spec - you can't query all the roles a user has. But you can say > request.isUserInRole(rol

Re: Application Realm in Tomcat

2008-02-07 Thread Alan Chaney
If you purpose is to find the roles in the database wouldn't it be better just to query the database? What kind of realm are you using? If its something like the 'memory' realm then you can just read the file. If its a RDBM then a few lines of JDBC code or the use of a persistence manager would

Re: Application Realm in Tomcat

2008-02-07 Thread Tim Funk
Via the spec - you can't query all the roles a user has. But you can say request.isUserInRole(rolename) If you *need* access to the realm, things start to get ugly. You need to start coding against Tomcat internal specific classes. -Tim maux wrote: Hi, I am doing a Java code. This code hav

Re: Application Realm in Tomcat

2008-02-07 Thread maux
hat realm and look for the roles that exist in that database. > > If someone can help me i would be very grateful. > > Thanks a lot > > -- View this message in context: http://www.nabble.com/Application-Realm-in-Tomcat-tp15334971p15339562.html Sent from the Tomcat - Use

Application Realm in Tomcat

2008-02-07 Thread maux
message in context: http://www.nabble.com/Application-Realm-in-Tomcat-tp15334971p15334971.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e

Re: Multiple Realm in Tomcat

2006-02-22 Thread Mark Thomas
Farid Izem wrote: > Hi all, > > I have successufully configure my Tomcat to use ldap service to authenticate > my users. > Now, i would like to know if it is possible to have multiples Realm for the > same Webapps. > With this, if the first Realm fails to authenticate users, it will > automaticall

Multiple Realm in Tomcat

2006-02-22 Thread Farid Izem
Hi all, I have successufully configure my Tomcat to use ldap service to authenticate my users. Now, i would like to know if it is possible to have multiples Realm for the same Webapps. With this, if the first Realm fails to authenticate users, it will automatically use the next Realm. Imagine, a

Re: Realm in tomcat

2006-01-18 Thread Bill Barker
"Jack" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > In tomcat, "Realm" has such a definition: A Realm is a "database" of > usernames and passwords that identify valid users of a web application (or > set of web applications), plus an enumeration of the list of roles > associat

Realm in tomcat

2006-01-18 Thread Jack
In tomcat, "Realm" has such a definition: A Realm is a "database" of usernames and passwords that identify valid users of a web application (or set of web applications), plus an enumeration of the list of roles associated with each valid user. This is exactly a UserManager should do. I guess