Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Struts - A MVC web framework
Tomcat - JSP/Servlet container
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
JSP - A mailing list about Java Server Pages specification and reference
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
jcifs and security realm discussion.

jcifs and security realm discussion.

2004-01-22       - By Pitre, Russell

 Back
Reply:     1     2  

I guess what I'm trying to ask after thinking about it more....How would
I go about writing my own Realm to manage authorization.....because I
already have the authentication (single sign-on) piece through using
jcifs.....I'm not sure where to start.... I want to call isUserInRole()
and have tomcat check Active Directory and a Database (the intranet is
another interface for an application that we have that has a fat client
and this application uses a database for storing info)....i was hoping
to get a little insight into how  I can code a realm for just the
authorization piece.....


Thanx
Russ






-- --Original Message-- --
From: Pitre, Russell
Sent: Thursday, January 22, 2004 9:32 AM
To: tomcat-user@(protected)
Subject: jcifs and security realm discussion.

Hello all-



I am really puzzled right now and was hoping you all could shed some
light onto me.  I am developing a corporate intranet.  I have jcifs ntlm
http filter ( http://jcifs.samba.org/ ) working for me and all seems to
be working fine.  I can call getRemoteUser() and get the domain and
username for the user.  Which is great, I can use the username to tie
into AD and get that persons security groups to determine access to
certain job specific functions on the intranet (btw, all clients are
IE). But, I'm concerned.  My question does not really have to do with
jcifs but with security realms. I ultimately want to
isUserInRole("role") within my jsp's to determine access (I think).  But
I'm confused as to go about implementing such a scheme.  I was thinking
that I may have to write a custom realm but I'm not sure if this is the
right way to go about it.



With jcifs I can use the username from getRemoteUser() and use that to
lookup which security groups that user is member and determine my access
this way.  But I'm really skeptical of this scenario.





Does anyone have any suggestions or ideas for my situation?





Thanx in advance

Russ


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)




©2008 junlu.com - Jax Systems, LLC, U.S.A.