| From: Priya Khanna [mailto:[EMAIL PROTECTED]
| Sent: Thursday, 18 January, 2007 01:41
| 
| In my application my user will be logged in
| as domain user only so is it possible to check at run time that who has
| logged in and if user has access on file server then he can access the
| files even if the tomcat is running as local user.

It may be possible to check the user's credentials via an LDAP connection
(or whatever method is appropriate for your security/authorization system).
However, it will not be possible to access the remote server directly from
Tomcat (including any of your servlets or JSPs).  You might be able to use
something like the Commons VFS (http://jakarta.apache.org/commons/vfs/).

| Second issue is that - If I want to upload the files then I want to
| check that user who is logged in to the application has write access or
| not on file server. If not then he should get error message. My user
| will be logged in to application as same user id as his/her domain user
| id. But I am not sure how to achieve this.

I'm not sure what the problem is here.  If the user doesn't have write
access to the server, you'll definitely get an error indication of some
sort.  All you have to do is decide how you want to present that to the
user.

-----------------------------------------
------------------------------------------------------------
The information contained in this message is confidential
proprietary property of Nelnet, Inc. and its affiliated 
companies (Nelnet) and is intended for the recipient only.
Any reproduction, forwarding, or copying without the express
permission of Nelnet is strictly prohibited. If you have
received this communication in error, please notify us
immediately by replying to this e-mail.
------------------------------------------------------------


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to